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.lucene40 |
Lucene 4.0 file format.
|
org.apache.lucene.codecs.lucene41 |
Lucene 4.1 file format.
|
org.apache.lucene.codecs.lucene46 |
Lucene 4.6 file format.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Method and Description |
---|---|
abstract FieldInfos |
FieldInfosReader.read(Directory directory,
String segmentName,
String segmentSuffix,
IOContext iocontext)
Read the
FieldInfos previously written with FieldInfosWriter . |
Modifier and Type | Method and Description |
---|---|
protected void |
StoredFieldsWriter.addDocument(Iterable<? extends IndexableField> doc,
FieldInfos fieldInfos)
sugar method for startDocument() + writeField() for every stored field in the document
|
abstract StoredFieldsReader |
StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Returns a
StoredFieldsReader to load stored
fields. |
abstract void |
TermVectorsWriter.finish(FieldInfos fis,
int numDocs)
Called before
TermVectorsWriter.close() , passing in the number
of documents that were written. |
abstract void |
StoredFieldsWriter.finish(FieldInfos fis,
int numDocs)
Called before
StoredFieldsWriter.close() , passing in the number
of documents that were written. |
abstract TermVectorsReader |
TermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context)
Returns a
TermVectorsReader to read term
vectors. |
abstract void |
SegmentInfoWriter.write(Directory dir,
SegmentInfo info,
FieldInfos fis,
IOContext ioContext)
Write
SegmentInfo data. |
abstract void |
FieldInfosWriter.write(Directory directory,
String segmentName,
String segmentSuffix,
FieldInfos infos,
IOContext context)
Writes the provided
FieldInfos to the
directory. |
Constructor and Description |
---|
BlockTreeTermsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo info,
PostingsReaderBase postingsReader,
IOContext ioContext,
String segmentSuffix,
int indexDivisor)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
CompressingStoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
void |
CompressingTermVectorsWriter.finish(FieldInfos fis,
int numDocs) |
void |
CompressingStoredFieldsWriter.finish(FieldInfos fis,
int numDocs) |
TermVectorsReader |
CompressingTermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
Constructor and Description |
---|
CompressingStoredFieldsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
CompressingTermVectorsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
Lucene40StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
void |
Lucene40TermVectorsWriter.finish(FieldInfos fis,
int numDocs) |
void |
Lucene40StoredFieldsWriter.finish(FieldInfos fis,
int numDocs) |
TermVectorsReader |
Lucene40TermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
void |
Lucene40SegmentInfoWriter.write(Directory dir,
SegmentInfo si,
FieldInfos fis,
IOContext ioContext)
Deprecated.
Save a single segment's info.
|
Constructor and Description |
---|
Lucene40PostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext ioContext,
String segmentSuffix)
Deprecated.
Sole constructor.
|
Lucene40StoredFieldsReader(Directory d,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Sole constructor.
|
Lucene40TermVectorsReader(Directory d,
SegmentInfo si,
FieldInfos fieldInfos,
IOContext context)
Sole constructor.
|
Constructor and Description |
---|
Lucene41PostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext ioContext,
String segmentSuffix)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Lucene46SegmentInfoWriter.write(Directory dir,
SegmentInfo si,
FieldInfos fis,
IOContext ioContext)
Save a single segment's info.
|
Modifier and Type | Field and Description |
---|---|
FieldInfos |
MergeState.fieldInfos
FieldInfos of the newly merged segment. |
FieldInfos |
SegmentReadState.fieldInfos
FieldInfos describing all fields in this
segment. |
FieldInfos |
SegmentWriteState.fieldInfos
FieldInfos describing all fields in this
segment. |
Modifier and Type | Method and Description |
---|---|
FieldInfos |
FilterAtomicReader.getFieldInfos() |
abstract FieldInfos |
AtomicReader.getFieldInfos()
Get the
FieldInfos describing all fields in
this reader. |
FieldInfos |
ParallelAtomicReader.getFieldInfos()
Get the
FieldInfos describing all fields in
this reader. |
FieldInfos |
SlowCompositeReaderWrapper.getFieldInfos() |
FieldInfos |
SegmentReader.getFieldInfos() |
static FieldInfos |
MultiFields.getMergedFieldInfos(IndexReader reader)
Call this to get the (merged) FieldInfos for a
composite reader.
|
Constructor and Description |
---|
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
int termsIndexDivisor)
Create a
SegmentReadState . |
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
int termsIndexDivisor,
String segmentSuffix)
Create a
SegmentReadState . |
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
int termIndexInterval,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context)
Sole constructor.
|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
int termIndexInterval,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context,
String segmentSuffix)
Constructor which takes segment suffix.
|
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.