public class SepPostingsReader extends PostingsReaderBase
| Constructor and Description |
|---|
SepPostingsReader(Directory dir,
FieldInfos fieldInfos,
SegmentInfo segmentInfo,
IOContext context,
IntStreamFactory intFactory,
String segmentSuffix) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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) |
BlockTermState |
newTermState()
Return a newly created empty TermState
|
void |
nextTerm(FieldInfo fieldInfo,
BlockTermState _termState)
Actually decode metadata for next term
|
void |
readTermsBlock(IndexInput termsIn,
FieldInfo fieldInfo,
BlockTermState _termState)
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 SepPostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext context, IntStreamFactory intFactory, String segmentSuffix) throws IOException
IOExceptionpublic void init(IndexInput termsIn) throws IOException
init in class PostingsReaderBaseIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in class PostingsReaderBaseIOExceptionpublic BlockTermState newTermState() throws IOException
PostingsReaderBasenewTermState 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 PostingsReaderBaseIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.