Class EsPhysicalOperationProviders.DefaultShardContext
java.lang.Object
org.elasticsearch.xpack.esql.planner.EsPhysicalOperationProviders.DefaultShardContext
- All Implemented Interfaces:
ShardContext,EsPhysicalOperationProviders.ShardContext
- Enclosing class:
EsPhysicalOperationProviders
public static class EsPhysicalOperationProviders.DefaultShardContext
extends Object
implements EsPhysicalOperationProviders.ShardContext
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultShardContext(int index, SearchExecutionContext ctx, AliasFilter aliasFilter) -
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) intindex()Build something to load source_source.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.
-
Constructor Details
-
DefaultShardContext
-
-
Method Details
-
index
public int index()- Specified by:
indexin interfaceShardContext
-
searcher
public org.apache.lucene.search.IndexSearcher searcher()- Specified by:
searcherin interfaceShardContext
-
buildSort
- Specified by:
buildSortin interfaceShardContext- Throws:
IOException
-
shardIdentifier
- Specified by:
shardIdentifierin interfaceShardContext
-
newSourceLoader
Description copied from interface:EsPhysicalOperationProviders.ShardContextBuild something to load source_source.- Specified by:
newSourceLoaderin interfaceEsPhysicalOperationProviders.ShardContext
-
toQuery
Description copied from interface:EsPhysicalOperationProviders.ShardContextConvert aQueryBuilderinto a reallucene query.- Specified by:
toQueryin interfaceEsPhysicalOperationProviders.ShardContext
-
blockLoader
public BlockLoader blockLoader(String name, boolean asUnsupportedSource, MappedFieldType.FieldExtractPreference fieldExtractPreference) Description copied from interface:EsPhysicalOperationProviders.ShardContextReturns something to load values from this field into aBlock.- Specified by:
blockLoaderin interfaceEsPhysicalOperationProviders.ShardContext
-
storedFieldsSequentialProportion
public double storedFieldsSequentialProportion()Description copied from interface: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 interfaceEsPhysicalOperationProviders.ShardContext
-