public final class Lucene41PostingsReader extends PostingsReaderBase
for details| Constructor and Description |
|---|
Lucene41PostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext ioContext,
String segmentSuffix)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute)
Actually decode metadata for next term
|
DocsEnum |
docs(FieldInfo fieldInfo,
BlockTermState termState,
Bits liveDocs,
DocsEnum reuse,
int flags)
Must fully consume state, since after this call that
TermState may be reused.
|
DocsAndPositionsEnum |
docsAndPositions(FieldInfo fieldInfo,
BlockTermState termState,
Bits liveDocs,
DocsAndPositionsEnum reuse,
int flags)
Must fully consume state, since after this call that
TermState may be reused.
|
void |
init(IndexInput termsIn)
Performs any initialization, such as reading and
verifying the header from the provided terms
dictionary
IndexInput. |
BlockTermState |
newTermState()
Return a newly created empty TermState
|
long |
ramBytesUsed()
Returns approximate RAM bytes used
|
public Lucene41PostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, String segmentSuffix) throws IOException
IOExceptionpublic void init(IndexInput termsIn) throws IOException
PostingsReaderBaseIndexInput.init in class PostingsReaderBaseIOExceptionpublic BlockTermState newTermState()
PostingsReaderBasenewTermState in class PostingsReaderBasepublic void close()
throws IOException
close in interface Closeableclose in class PostingsReaderBaseIOExceptionpublic void decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute)
throws IOException
PostingsReaderBasepublic DocsEnum docs(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsEnum reuse, int flags) throws IOException
PostingsReaderBasedocs in class PostingsReaderBaseIOExceptionpublic DocsAndPositionsEnum docsAndPositions(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
PostingsReaderBasedocsAndPositions in class PostingsReaderBaseIOExceptionpublic long ramBytesUsed()
PostingsReaderBaseramBytesUsed in class PostingsReaderBaseCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.