Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene53 for an overview
of the index format. |
org.apache.lucene.codecs.lucene60 |
Components from the Lucene 6.0 index format.
|
org.apache.lucene.codecs.lucene62 |
Components from the Lucene 6.2 index format
See
org.apache.lucene.codecs.lucene62 for an overview
of the index format. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.store |
Binary i/o API, used for all index data.
|
Modifier and Type | Method and Description |
---|---|
abstract StoredFieldsReader |
StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Returns a
StoredFieldsReader to load stored
fields. |
abstract StoredFieldsWriter |
StoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context)
Returns a
StoredFieldsWriter to write stored
fields. |
abstract Directory |
CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Returns a Directory view (read-only) for the compound files in this segment
|
abstract FieldInfos |
FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext iocontext)
|
abstract SegmentInfo |
SegmentInfoFormat.read(Directory directory,
String segmentName,
byte[] segmentID,
IOContext context)
Read
SegmentInfo data from a directory. |
abstract Bits |
LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context)
Read live docs bits.
|
abstract TermVectorsReader |
TermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context)
Returns a
TermVectorsReader to read term
vectors. |
abstract TermVectorsWriter |
TermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context)
Returns a
TermVectorsWriter to write term
vectors. |
abstract void |
CompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context)
Packs the provided segment's files into a compound format.
|
abstract void |
SegmentInfoFormat.write(Directory dir,
SegmentInfo info,
IOContext ioContext)
Write
SegmentInfo data. |
abstract void |
FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context)
Writes the provided
FieldInfos to the
directory. |
abstract void |
LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context)
Persist live docs bits.
|
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
CompressingStoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
CompressingStoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
TermVectorsReader |
CompressingTermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
TermVectorsWriter |
CompressingTermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context) |
Constructor and Description |
---|
CompressingStoredFieldsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
CompressingStoredFieldsWriter(Directory directory,
SegmentInfo si,
String segmentSuffix,
IOContext context,
String formatName,
CompressionMode compressionMode,
int chunkSize,
int maxDocsPerChunk,
int blockSize)
Sole constructor.
|
CompressingTermVectorsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
CompressingTermVectorsWriter(Directory directory,
SegmentInfo si,
String segmentSuffix,
IOContext context,
String formatName,
CompressionMode compressionMode,
int chunkSize,
int blockSize)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
Lucene50StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
Lucene50StoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
Directory |
Lucene50CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context) |
FieldInfos |
Lucene50FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext context) |
Bits |
Lucene50LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
void |
Lucene50CompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context) |
void |
Lucene50FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context) |
void |
Lucene50LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
FieldInfos |
Lucene60FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext context) |
void |
Lucene60FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
SegmentInfo |
Lucene62SegmentInfoFormat.read(Directory dir,
String segment,
byte[] segmentID,
IOContext context) |
void |
Lucene62SegmentInfoFormat.write(Directory dir,
SegmentInfo si,
IOContext ioContext) |
Modifier and Type | Field and Description |
---|---|
IOContext |
SegmentWriteState.context
IOContext for all writes; you should pass this
to Directory.createOutput(String,IOContext) . |
IOContext |
SegmentReadState.context
IOContext to pass to Directory.openInput(String,IOContext) . |
Constructor and Description |
---|
SegmentReader(SegmentCommitInfo si,
IOContext context)
Constructs a new SegmentReader with a new core.
|
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context)
Create a
SegmentReadState . |
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
String segmentSuffix)
Create a
SegmentReadState . |
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context)
Sole constructor.
|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context,
String segmentSuffix)
Constructor which takes segment suffix.
|
Modifier and Type | Field and Description |
---|---|
static IOContext |
IOContext.DEFAULT |
static IOContext |
IOContext.READ |
static IOContext |
IOContext.READONCE |
Modifier and Type | Method and Description |
---|---|
static int |
BufferedIndexInput.bufferSize(IOContext context)
Returns default buffer sizes for the given
IOContext |
void |
Directory.copyFrom(Directory from,
String src,
String dest,
IOContext context)
Copies the file src in from to this directory under the new
file name dest.
|
void |
TrackingDirectoryWrapper.copyFrom(Directory from,
String src,
String dest,
IOContext context) |
void |
LockValidatingDirectoryWrapper.copyFrom(Directory from,
String src,
String dest,
IOContext context) |
abstract IndexOutput |
Directory.createOutput(String name,
IOContext context)
Creates a new, empty file in the directory with the given name.
|
IndexOutput |
FilterDirectory.createOutput(String name,
IOContext context) |
IndexOutput |
FSDirectory.createOutput(String name,
IOContext context) |
IndexOutput |
FileSwitchDirectory.createOutput(String name,
IOContext context) |
IndexOutput |
TrackingDirectoryWrapper.createOutput(String name,
IOContext context) |
IndexOutput |
NRTCachingDirectory.createOutput(String name,
IOContext context) |
IndexOutput |
LockValidatingDirectoryWrapper.createOutput(String name,
IOContext context) |
IndexOutput |
RAMDirectory.createOutput(String name,
IOContext context) |
abstract IndexOutput |
Directory.createTempOutput(String prefix,
String suffix,
IOContext context)
Creates a new, empty file for writing in the directory, with a
temporary file name including prefix and suffix, ending with the
reserved extension
.tmp . |
IndexOutput |
FilterDirectory.createTempOutput(String prefix,
String suffix,
IOContext context) |
IndexOutput |
FSDirectory.createTempOutput(String prefix,
String suffix,
IOContext context) |
IndexOutput |
FileSwitchDirectory.createTempOutput(String prefix,
String suffix,
IOContext context) |
IndexOutput |
TrackingDirectoryWrapper.createTempOutput(String prefix,
String suffix,
IOContext context) |
IndexOutput |
NRTCachingDirectory.createTempOutput(String prefix,
String suffix,
IOContext context) |
IndexOutput |
RAMDirectory.createTempOutput(String prefix,
String suffix,
IOContext context) |
protected boolean |
NRTCachingDirectory.doCacheWrite(String name,
IOContext context)
Subclass can override this to customize logic; return
true if this file should be written to the RAMDirectory.
|
ChecksumIndexInput |
Directory.openChecksumInput(String name,
IOContext context)
Returns a stream reading an existing file, computing checksum as it reads
|
IndexInput |
SimpleFSDirectory.openInput(String name,
IOContext context)
Creates an IndexInput for the file with the given name.
|
abstract IndexInput |
Directory.openInput(String name,
IOContext context)
Returns a stream reading an existing file.
|
IndexInput |
FilterDirectory.openInput(String name,
IOContext context) |
IndexInput |
NIOFSDirectory.openInput(String name,
IOContext context) |
IndexInput |
FileSwitchDirectory.openInput(String name,
IOContext context) |
IndexInput |
NRTCachingDirectory.openInput(String name,
IOContext context) |
IndexInput |
MMapDirectory.openInput(String name,
IOContext context)
Creates an IndexInput for the file with the given name.
|
IndexInput |
RAMDirectory.openInput(String name,
IOContext context)
Returns a stream reading an existing file.
|
Constructor and Description |
---|
BufferedIndexInput(String resourceDesc,
IOContext context) |
IOContext(IOContext ctxt,
boolean readOnce)
This constructor is used to initialize a
IOContext instance with a new value for the readOnce variable. |
RAMDirectory(FSDirectory dir,
IOContext context)
Creates a new
RAMDirectory instance from a different
Directory implementation. |
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.