|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.codecs.PostingsReaderBase
public abstract class PostingsReaderBase
The core terms dictionaries (BlockTermsReader,
BlockTreeTermsReader) interact with a single instance
of this class to manage creation of DocsEnum
and
DocsAndPositionsEnum
instances. It provides an
IndexInput (termsIn) where this class may read any
previously stored data that it had written in its
corresponding PostingsWriterBase
at indexing
time.
Constructor Summary | |
---|---|
protected |
PostingsReaderBase()
Sole constructor. |
Method Summary | |
---|---|
abstract void |
close()
|
abstract void |
decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState state,
boolean absolute)
Actually decode metadata for next term |
abstract DocsEnum |
docs(FieldInfo fieldInfo,
BlockTermState state,
Bits skipDocs,
DocsEnum reuse,
int flags)
Must fully consume state, since after this call that TermState may be reused. |
abstract DocsAndPositionsEnum |
docsAndPositions(FieldInfo fieldInfo,
BlockTermState state,
Bits skipDocs,
DocsAndPositionsEnum reuse,
int flags)
Must fully consume state, since after this call that TermState may be reused. |
abstract void |
init(IndexInput termsIn)
Performs any initialization, such as reading and verifying the header from the provided terms dictionary IndexInput . |
abstract BlockTermState |
newTermState()
Return a newly created empty TermState |
abstract long |
ramBytesUsed()
Returns approximate RAM bytes used |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PostingsReaderBase()
Method Detail |
---|
public abstract void init(IndexInput termsIn) throws IOException
IndexInput
.
IOException
public abstract BlockTermState newTermState() throws IOException
IOException
public abstract void decodeTerm(long[] longs, DataInput in, FieldInfo fieldInfo, BlockTermState state, boolean absolute) throws IOException
IOException
PostingsWriterBase.encodeTerm(long[], org.apache.lucene.store.DataOutput, org.apache.lucene.index.FieldInfo, org.apache.lucene.codecs.BlockTermState, boolean)
public abstract DocsEnum docs(FieldInfo fieldInfo, BlockTermState state, Bits skipDocs, DocsEnum reuse, int flags) throws IOException
IOException
public abstract DocsAndPositionsEnum docsAndPositions(FieldInfo fieldInfo, BlockTermState state, Bits skipDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
IOException
public abstract long ramBytesUsed()
public abstract void close() throws IOException
close
in interface Closeable
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |