public final class ElasticsearchLeafReader
extends org.apache.lucene.index.FilterLeafReader
FilterLeafReader that exposes
Elasticsearch internal per shard / index information like the shard ID.org.apache.lucene.index.FilterLeafReader.FilterFields, org.apache.lucene.index.FilterLeafReader.FilterPostingsEnum, org.apache.lucene.index.FilterLeafReader.FilterTerms, org.apache.lucene.index.FilterLeafReader.FilterTermsEnum| Constructor and Description |
|---|
ElasticsearchLeafReader(org.apache.lucene.index.LeafReader in,
ShardId shardId)
Construct a FilterLeafReader based on the specified base reader.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCoreCacheKey() |
static ElasticsearchLeafReader |
getElasticsearchLeafReader(org.apache.lucene.index.LeafReader reader) |
ShardId |
shardId()
Returns the shard id this segment belongs to.
|
addCoreClosedListener, checkIntegrity, doClose, document, fields, getBinaryDocValues, getDelegate, getDocsWithField, getFieldInfos, getIndexSort, getLiveDocs, getNormValues, getNumericDocValues, getPointValues, getSortedDocValues, getSortedNumericDocValues, getSortedSetDocValues, getTermVectors, maxDoc, numDocs, removeCoreClosedListener, toString, unwrapaddCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, removeCoreClosedListenerAsReaderClosedListener, terms, totalTermFreqaddReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getCombinedCoreAndDeletesKey, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRefpublic ElasticsearchLeafReader(org.apache.lucene.index.LeafReader in,
ShardId shardId)
Construct a FilterLeafReader based on the specified base reader.
Note that base reader is closed if this FilterLeafReader is closed.
in - specified base reader.public ShardId shardId()
public java.lang.Object getCoreCacheKey()
getCoreCacheKey in class org.apache.lucene.index.IndexReaderpublic static ElasticsearchLeafReader getElasticsearchLeafReader(org.apache.lucene.index.LeafReader reader)