public abstract class FilterCodecReader extends CodecReader
FilterCodecReader contains another CodecReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality.LeafReader.CoreClosedListenerIndexReader.ReaderClosedListener| Modifier and Type | Field and Description |
|---|---|
protected CodecReader |
in
The underlying CodecReader instance.
|
| Constructor and Description |
|---|
FilterCodecReader(CodecReader in)
Creates a new FilterCodecReader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCoreClosedListener(LeafReader.CoreClosedListener listener)
Expert: adds a CoreClosedListener to this reader's shared core
|
void |
checkIntegrity()
Checks consistency of this reader.
|
protected void |
doClose()
Implements close.
|
Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
DocValuesProducer |
getDocValuesReader()
Expert: retrieve underlying DocValuesProducer
|
FieldInfos |
getFieldInfos()
Get the
FieldInfos describing all fields in
this reader. |
StoredFieldsReader |
getFieldsReader()
Expert: retrieve thread-private StoredFieldsReader
|
Sort |
getIndexSort()
Returns null if this leaf is unsorted, or the
Sort that it was sorted by |
Bits |
getLiveDocs()
Returns the
Bits representing live (not
deleted) docs. |
NormsProducer |
getNormsReader()
Expert: retrieve underlying NormsProducer
|
PointsReader |
getPointsReader()
Expert: retrieve underlying PointsReader
|
PointValues |
getPointValues()
Returns the
PointValues used for numeric or
spatial searches, or null if there are no point fields. |
FieldsProducer |
getPostingsReader()
Expert: retrieve underlying FieldsProducer
|
TermVectorsReader |
getTermVectorsReader()
Expert: retrieve thread-private TermVectorsReader
|
int |
maxDoc()
Returns one greater than the largest possible document number.
|
int |
numDocs()
Returns the number of documents in this index.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
void |
removeCoreClosedListener(LeafReader.CoreClosedListener listener)
Expert: removes a CoreClosedListener from this reader's shared core
|
document, fields, getBinaryDocValues, getDocsWithField, getNormValues, getNumericDocValues, getSortedDocValues, getSortedNumericDocValues, getSortedSetDocValues, getTermVectorsaddCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, removeCoreClosedListenerAsReaderClosedListener, terms, totalTermFreqaddReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getCombinedCoreAndDeletesKey, getCoreCacheKey, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRefprotected final CodecReader in
public FilterCodecReader(CodecReader in)
in - the underlying CodecReader instance.public StoredFieldsReader getFieldsReader()
CodecReadergetFieldsReader in class CodecReaderpublic TermVectorsReader getTermVectorsReader()
CodecReadergetTermVectorsReader in class CodecReaderpublic NormsProducer getNormsReader()
CodecReadergetNormsReader in class CodecReaderpublic DocValuesProducer getDocValuesReader()
CodecReadergetDocValuesReader in class CodecReaderpublic FieldsProducer getPostingsReader()
CodecReadergetPostingsReader in class CodecReaderpublic Bits getLiveDocs()
LeafReaderBits representing live (not
deleted) docs. A set bit indicates the doc ID has not
been deleted. If this method returns null it means
there are no deleted documents (all documents are
live).
The returned instance has been safely published for
use by multiple threads without additional
synchronization.getLiveDocs in class LeafReaderpublic FieldInfos getFieldInfos()
LeafReaderFieldInfos describing all fields in
this reader.getFieldInfos in class LeafReaderpublic PointsReader getPointsReader()
CodecReadergetPointsReader in class CodecReaderpublic PointValues getPointValues()
LeafReaderPointValues used for numeric or
spatial searches, or null if there are no point fields.getPointValues in class LeafReaderpublic int numDocs()
IndexReadernumDocs in class IndexReaderpublic int maxDoc()
IndexReadermaxDoc in class IndexReaderpublic Sort getIndexSort()
LeafReaderSort that it was sorted bygetIndexSort in class LeafReaderpublic void addCoreClosedListener(LeafReader.CoreClosedListener listener)
LeafReaderaddCoreClosedListener in class LeafReaderpublic void removeCoreClosedListener(LeafReader.CoreClosedListener listener)
LeafReaderremoveCoreClosedListener in class LeafReaderprotected void doClose()
throws IOException
IndexReaderdoClose in class CodecReaderIOExceptionpublic long ramBytesUsed()
AccountableramBytesUsed in interface AccountableramBytesUsed in class CodecReaderpublic Collection<Accountable> getChildResources()
AccountablegetChildResources in interface AccountablegetChildResources in class CodecReaderAccountablespublic void checkIntegrity()
throws IOException
LeafReaderNote 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 CodecReaderIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.