Class EsPhysicalOperationProviders.DefaultShardContext
java.lang.Object
org.elasticsearch.xpack.esql.planner.EsPhysicalOperationProviders.ShardContext
org.elasticsearch.xpack.esql.planner.EsPhysicalOperationProviders.DefaultShardContext
- All Implemented Interfaces:
Closeable,AutoCloseable,ShardContext,org.elasticsearch.core.RefCounted,org.elasticsearch.core.Releasable
- Enclosing class:
EsPhysicalOperationProviders
public static class EsPhysicalOperationProviders.DefaultShardContext
extends EsPhysicalOperationProviders.ShardContext
-
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionDefaultShardContext(int index, org.elasticsearch.core.Releasable releasable, SearchExecutionContext ctx, AliasFilter aliasFilter) -
Method Summary
Modifier and TypeMethodDescriptionblockLoader(String name, boolean asUnsupportedSource, MappedFieldType.FieldExtractPreference fieldExtractPreference) buildSort(List<SortBuilder<?>> sorts) voidclose()intindex()org.apache.lucene.search.IndexSearchersearcher()doubleTuning parameter for deciding when to use the "merge" stored field loader.org.apache.lucene.search.QuerytoQuery(QueryBuilder queryBuilder) Convert aQueryBuilderinto a reallucene query.Methods inherited from class org.elasticsearch.xpack.esql.planner.EsPhysicalOperationProviders.ShardContext
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
DefaultShardContext
public DefaultShardContext(int index, org.elasticsearch.core.Releasable releasable, SearchExecutionContext ctx, AliasFilter aliasFilter)
-
-
Method Details
-
index
public int index() -
searcher
public org.apache.lucene.search.IndexSearcher searcher() -
buildSort
- Throws:
IOException
-
shardIdentifier
-
newSourceLoader
-
toQuery
Description copied from class:EsPhysicalOperationProviders.ShardContextConvert aQueryBuilderinto a reallucene query.- Specified by:
toQueryin classEsPhysicalOperationProviders.ShardContext
-
blockLoader
public BlockLoader blockLoader(String name, boolean asUnsupportedSource, MappedFieldType.FieldExtractPreference fieldExtractPreference) -
fieldType
-
storedFieldsSequentialProportion
public double storedFieldsSequentialProportion()Description copied from class:EsPhysicalOperationProviders.ShardContextTuning parameter for deciding when to use the "merge" stored field loader. Think of it as "how similar to a sequential block of documents do I have to be before I'll use the merge reader?" So a value of1means I have to be exactly a sequential block, like0, 1, 2, 3, .. 1299, 1300. A value of.2means we'll use the sequential reader even if we only need one in ten documents.- Specified by:
storedFieldsSequentialProportionin classEsPhysicalOperationProviders.ShardContext
-
close
public void close()
-