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 |
---|---|
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, getLiveDocs, getNormValues, getNumericDocValues, getSortedDocValues, getSortedNumericDocValues, getSortedSetDocValues, getTermVectors, maxDoc, numDocs, removeCoreClosedListener, toString, unwrap
addCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, removeCoreClosedListenerAsReaderClosedListener, termDocsEnum, termPositionsEnum, terms, totalTermFreq
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getCombinedCoreAndDeletesKey, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRef
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 Object getCoreCacheKey()
getCoreCacheKey
in class org.apache.lucene.index.IndexReader
public static ElasticsearchLeafReader getElasticsearchLeafReader(org.apache.lucene.index.LeafReader reader)
Copyright © 2009–2016. All rights reserved.