public abstract class PostingsReaderBase extends Object implements Closeable, Accountable
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.| Modifier | Constructor and Description |
|---|---|
protected |
PostingsReaderBase()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
checkIntegrity()
Checks consistency of this reader.
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitramBytesUsedprotected PostingsReaderBase()
public abstract void init(IndexInput termsIn) throws IOException
IndexInput.IOExceptionpublic abstract BlockTermState newTermState() throws IOException
IOExceptionpublic abstract void decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState state,
boolean absolute)
throws IOException
public abstract DocsEnum docs(FieldInfo fieldInfo, BlockTermState state, Bits skipDocs, DocsEnum reuse, int flags) throws IOException
IOExceptionpublic abstract DocsAndPositionsEnum docsAndPositions(FieldInfo fieldInfo, BlockTermState state, Bits skipDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
IOExceptionpublic abstract void checkIntegrity()
throws IOException
Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
IOExceptionpublic abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.