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

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

Introduction

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

The text is from its open source code.

Subclass

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

Field

AtomicLongsizeInBytes

Constructor

RAMDirectory()
Constructs an empty Directory .
RAMDirectory(LockFactory lockFactory)
Constructs an empty Directory with the given LockFactory .
RAMDirectory(FSDirectory dir, IOContext context)
Creates a new RAMDirectory instance from a different Directory implementation.

Method

voidclose()
Closes the store to future operations, releasing associated memory.
IndexOutputcreateOutput(String name, IOContext context)
longfileLength(String name)
Returns the length in bytes of a file in the directory.
String[]listAll()
LockobtainLock(String name)
IndexInputopenInput(String name, IOContext context)
Returns a stream reading an existing file.
longramBytesUsed()
Return total size in bytes of all files in this directory.