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 |
---|---|
org.apache.lucene.index.IndexReader.CacheHelper |
getCoreCacheHelper() |
static ElasticsearchLeafReader |
getElasticsearchLeafReader(org.apache.lucene.index.LeafReader reader) |
org.apache.lucene.index.IndexReader.CacheHelper |
getReaderCacheHelper() |
ShardId |
shardId()
Returns the shard id this segment belongs to.
|
checkIntegrity, doClose, document, getBinaryDocValues, getDelegate, getFieldInfos, getLiveDocs, getMetaData, getNormValues, getNumericDocValues, getPointValues, getSortedDocValues, getSortedNumericDocValues, getSortedSetDocValues, getTermVectors, maxDoc, numDocs, terms, toString, unwrap
docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, totalTermFreq
public 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 org.apache.lucene.index.IndexReader.CacheHelper getCoreCacheHelper()
getCoreCacheHelper
in class org.apache.lucene.index.LeafReader
public org.apache.lucene.index.IndexReader.CacheHelper getReaderCacheHelper()
getReaderCacheHelper
in class org.apache.lucene.index.IndexReader
public static ElasticsearchLeafReader getElasticsearchLeafReader(org.apache.lucene.index.LeafReader reader)