public final class Lucene50PostingsReader extends PostingsReaderBase
Constructor and Description |
---|
Lucene50PostingsReader(SegmentReadState state)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
void |
close() |
void |
decodeTerm(long[] longs,
DataInput in,
FieldInfo fieldInfo,
BlockTermState _termState,
boolean absolute)
Actually decode metadata for next term
|
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.
|
Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
void |
init(IndexInput termsIn,
SegmentReadState state)
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()
Return the memory usage of this object in bytes.
|
String |
toString() |
public Lucene50PostingsReader(SegmentReadState state) throws IOException
IOException
public void init(IndexInput termsIn, SegmentReadState state) throws IOException
PostingsReaderBase
IndexInput
.init
in class PostingsReaderBase
IOException
public BlockTermState newTermState()
PostingsReaderBase
newTermState
in class PostingsReaderBase
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class PostingsReaderBase
IOException
public void decodeTerm(long[] longs, DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute) throws IOException
PostingsReaderBase
public DocsEnum docs(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsEnum reuse, int flags) throws IOException
PostingsReaderBase
docs
in class PostingsReaderBase
IOException
public DocsAndPositionsEnum docsAndPositions(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
PostingsReaderBase
docsAndPositions
in class PostingsReaderBase
IOException
public long ramBytesUsed()
Accountable
public Collection<Accountable> getChildResources()
Accountable
Accountables
public void checkIntegrity() throws IOException
PostingsReaderBase
Note 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 PostingsReaderBase
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.