public class PulsingPostingsReader extends PostingsReaderBase
| Modifier and Type | Class and Description |
|---|---|
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 and Description |
|---|
PulsingPostingsReader(SegmentReadState state,
PostingsReaderBase wrappedPostingsReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
void |
close() |
void |
decodeTerm(long[] empty,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute)
Actually decode metadata for next term
|
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)
Performs any initialization, such as reading and
verifying the header from the provided terms
dictionary
IndexInput. |
BlockTermState |
newTermState()
Return a newly created empty TermState
|
long |
ramBytesUsed()
Returns approximate RAM bytes used
|
public PulsingPostingsReader(SegmentReadState state, PostingsReaderBase wrappedPostingsReader)
public void init(IndexInput termsIn) throws IOException
PostingsReaderBaseIndexInput.init in class PostingsReaderBaseIOExceptionpublic BlockTermState newTermState() throws IOException
PostingsReaderBasenewTermState in class PostingsReaderBaseIOExceptionpublic void decodeTerm(long[] empty,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute)
throws IOException
PostingsReaderBasepublic DocsEnum docs(FieldInfo field, BlockTermState _termState, Bits liveDocs, DocsEnum reuse, int flags) throws IOException
PostingsReaderBasedocs in class PostingsReaderBaseIOExceptionpublic DocsAndPositionsEnum docsAndPositions(FieldInfo field, BlockTermState _termState, Bits liveDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
PostingsReaderBasedocsAndPositions in class PostingsReaderBaseIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class PostingsReaderBaseIOExceptionpublic long ramBytesUsed()
PostingsReaderBaseramBytesUsed in class PostingsReaderBasepublic void checkIntegrity()
throws IOException
PostingsReaderBaseNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity in class PostingsReaderBaseIOExceptionCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.