Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.appending |
Codec for on append-only outputs, such as plain output streams and append-only filesystems.
|
org.apache.lucene.codecs.blockterms |
Pluggable term index / block terms dictionary implementations.
|
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.codecs.sep |
Sep: base support for separate files (doc,frq,pos,skp,pyl)
|
org.apache.lucene.codecs.simpletext |
Simpletext Codec: writes human readable postings.
|
org.apache.lucene.index |
Misc index tools and index support.
|
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 |
StoredFieldsWriter.finish(FieldInfos fis,
int numDocs)
Called before
StoredFieldsWriter.close() , passing in the number
of documents that were written. |
abstract void |
TermVectorsWriter.finish(FieldInfos fis,
int numDocs)
Called before
TermVectorsWriter.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.
|
Constructor and Description |
---|
AppendingTermsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo info,
PostingsReaderBase postingsReader,
IOContext ioContext,
String segmentSuffix,
int indexDivisor)
Deprecated.
|
Constructor and Description |
---|
BlockTermsReader(TermsIndexReaderBase indexReader,
Directory dir,
FieldInfos fieldInfos,
SegmentInfo info,
PostingsReaderBase postingsReader,
IOContext context,
String segmentSuffix) |
FixedGapTermsIndexReader(Directory dir,
FieldInfos fieldInfos,
String segment,
int indexDivisor,
Comparator<BytesRef> termComp,
String segmentSuffix,
IOContext context) |
VariableGapTermsIndexReader(Directory dir,
FieldInfos fieldInfos,
String segment,
int indexDivisor,
String segmentSuffix,
IOContext context) |
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 |
Lucene40StoredFieldsWriter.finish(FieldInfos fis,
int numDocs) |
void |
Lucene40TermVectorsWriter.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.
|
Constructor and Description |
---|
SepPostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext context,
IntStreamFactory intFactory,
String segmentSuffix) |
Modifier and Type | Method and Description |
---|---|
FieldInfos |
SimpleTextFieldInfosReader.read(Directory directory,
String segmentName,
String segmentSuffix,
IOContext iocontext) |
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
SimpleTextStoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
void |
SimpleTextTermVectorsWriter.finish(FieldInfos fis,
int numDocs) |
void |
SimpleTextStoredFieldsWriter.finish(FieldInfos fis,
int numDocs) |
TermVectorsReader |
SimpleTextTermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
void |
SimpleTextSegmentInfoWriter.write(Directory dir,
SegmentInfo si,
FieldInfos fis,
IOContext ioContext) |
void |
SimpleTextFieldInfosWriter.write(Directory directory,
String segmentName,
String segmentSuffix,
FieldInfos infos,
IOContext context) |
Constructor and Description |
---|
SimpleTextStoredFieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
Modifier and Type | Field and Description |
---|---|
FieldInfos |
MergeState.fieldInfos
FieldInfos of the newly merged segment. |
FieldInfos |
SegmentWriteState.fieldInfos
FieldInfos describing all fields in this
segment. |
FieldInfos |
SegmentReadState.fieldInfos
FieldInfos describing all fields in this
segment. |
Modifier and Type | Method and Description |
---|---|
FieldInfos |
SegmentReader.getFieldInfos() |
FieldInfos |
FilterAtomicReader.getFieldInfos() |
abstract FieldInfos |
AtomicReader.getFieldInfos()
Get the
FieldInfos describing all fields in
this reader. |
FieldInfos |
SlowCompositeReaderWrapper.getFieldInfos() |
FieldInfos |
ParallelAtomicReader.getFieldInfos()
Get the
FieldInfos describing all fields in
this reader. |
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-2016 The Apache Software Foundation. All Rights Reserved.