org.apache.lucene.codecs.lucene40
@Deprecated public class Lucene40PostingsReader extends PostingsReaderBase
Lucene40PostingsFormat| Constructor and Description |
|---|
Lucene40PostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext ioContext,
String segmentSuffix)
Deprecated.
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
DocsEnum |
docs(FieldInfo fieldInfo,
BlockTermState termState,
Bits liveDocs,
DocsEnum reuse,
int flags)
Deprecated.
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)
Deprecated.
Must fully consume state, since after this call that
TermState may be reused.
|
void |
init(IndexInput termsIn)
Deprecated.
Performs any initialization, such as reading and
verifying the header from the provided terms
dictionary
IndexInput. |
BlockTermState |
newTermState()
Deprecated.
Return a newly created empty TermState
|
void |
nextTerm(FieldInfo fieldInfo,
BlockTermState _termState)
Deprecated.
Actually decode metadata for next term
|
long |
ramBytesUsed()
Deprecated.
Returns approximate RAM bytes used
|
void |
readTermsBlock(IndexInput termsIn,
FieldInfo fieldInfo,
BlockTermState _termState)
Deprecated.
Reads data for all terms in the next block; this
method should merely load the byte[] blob but not
decode, which is done in
PostingsReaderBase.nextTerm(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.BlockTermState). |
public Lucene40PostingsReader(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 readTermsBlock(IndexInput termsIn, FieldInfo fieldInfo, BlockTermState _termState) throws IOException
PostingsReaderBasePostingsReaderBase.nextTerm(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.BlockTermState).readTermsBlock in class PostingsReaderBaseIOExceptionpublic void nextTerm(FieldInfo fieldInfo, BlockTermState _termState) throws IOException
PostingsReaderBasenextTerm in class PostingsReaderBaseIOExceptionpublic 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.