Java org.apache.lucene.store Directory fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.store Directory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.store Directory.

The text is from its open source code.

Subclass

org.apache.lucene.store.Directory has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidclose()
Closes the directory.
voidcopyFrom(Directory from, String src, String dest, IOContext context)
Copies an existing src file from directory from to a non-existent file dest in this directory.
IndexOutputcreateOutput(String name, IOContext context)
Creates a new, empty file in the directory and returns an IndexOutput instance for appending data to this file.
voiddeleteFile(String name)
Removes an existing file in the directory.
longfileLength(String name)
Returns the byte length of a file in the directory.
String[]listAll()
Returns names of all files stored in this directory.
LockobtainLock(String name)
Acquires and returns a Lock for a file with the given name.
ChecksumIndexInputopenChecksumInput(String name, IOContext context)
Opens a checksum-computing stream for reading an existing file.
IndexInputopenInput(String name, IOContext context)
Opens a stream for reading an existing file.
voidsync(Collection names)
Ensures that any writes to these files are moved to stable storage (made durable).
StringtoString()