|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.codecs.PostingsReaderBase
org.apache.lucene.codecs.pulsing.PulsingPostingsReader
public class PulsingPostingsReader
Concrete class that reads the current doc/freq/skip postings format
Nested Class Summary | |
---|---|
static interface |
PulsingPostingsReader.PulsingEnumAttribute
A per-docsenum attribute that stores additional reuse information so that pulsing enums can keep a reference to their wrapped enums, and vice versa. |
static class |
PulsingPostingsReader.PulsingEnumAttributeImpl
Implementation of PulsingPostingsReader.PulsingEnumAttribute for reuse of
wrapped postings readers underneath pulsing. |
Constructor Summary | |
---|---|
PulsingPostingsReader(PostingsReaderBase wrappedPostingsReader)
|
Method Summary | |
---|---|
void |
close()
|
DocsEnum |
docs(FieldInfo field,
BlockTermState _termState,
Bits liveDocs,
DocsEnum reuse,
int flags)
Must fully consume state, since after this call that TermState may be reused. |
DocsAndPositionsEnum |
docsAndPositions(FieldInfo field,
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) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PulsingPostingsReader(PostingsReaderBase wrappedPostingsReader)
Method Detail |
---|
public void init(IndexInput termsIn) throws IOException
init
in class PostingsReaderBase
IOException
public void readTermsBlock(IndexInput termsIn, FieldInfo fieldInfo, BlockTermState _termState) throws IOException
PostingsReaderBase
PostingsReaderBase.nextTerm(org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.BlockTermState)
.
readTermsBlock
in class PostingsReaderBase
IOException
public BlockTermState newTermState() throws IOException
PostingsReaderBase
newTermState
in class PostingsReaderBase
IOException
public void nextTerm(FieldInfo fieldInfo, BlockTermState _termState) throws IOException
PostingsReaderBase
nextTerm
in class PostingsReaderBase
IOException
public DocsEnum docs(FieldInfo field, BlockTermState _termState, Bits liveDocs, DocsEnum reuse, int flags) throws IOException
PostingsReaderBase
docs
in class PostingsReaderBase
IOException
public DocsAndPositionsEnum docsAndPositions(FieldInfo field, BlockTermState _termState, Bits liveDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
PostingsReaderBase
docsAndPositions
in class PostingsReaderBase
IOException
public void close() throws IOException
close
in interface Closeable
close
in class PostingsReaderBase
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |