- All Superinterfaces:
org.elasticsearch.core.RefCounted
public interface ShardContext
extends org.elasticsearch.core.RefCounted
Context of each shard we're operating against.
-
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Method Summary
Modifier and TypeMethodDescriptionblockLoader(String name, boolean asUnsupportedSource, MappedFieldType.FieldExtractPreference fieldExtractPreference) Returns something to load values from this field into aBlock.buildSort(List<SortBuilder<?>> sorts) Build a "sort" configuration from an Elasticsearch style builder.Returns theMappedFieldTypefor the given field name.intindex()The index of this shard in the list of shards being processed.Build something to load source_source.org.apache.lucene.search.IndexSearchersearcher()GetIndexSearcherholding the actual data.A "name" for the shard that you can look up against other APIs like_cat/shards.Methods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRef
-
Method Details
-
index
int index()The index of this shard in the list of shards being processed. -
searcher
org.apache.lucene.search.IndexSearcher searcher()GetIndexSearcherholding the actual data. -
buildSort
Build a "sort" configuration from an Elasticsearch style builder.- Throws:
IOException
-
shardIdentifier
String shardIdentifier()A "name" for the shard that you can look up against other APIs like_cat/shards. -
newSourceLoader
SourceLoader newSourceLoader()Build something to load source_source. -
blockLoader
BlockLoader blockLoader(String name, boolean asUnsupportedSource, MappedFieldType.FieldExtractPreference fieldExtractPreference) Returns something to load values from this field into aBlock. -
fieldType
Returns theMappedFieldTypefor the given field name. By default, this delegate toQueryRewriteContext.getFieldType(String)
-