Class EsPhysicalOperationProviders.ShardContext
java.lang.Object
org.elasticsearch.xpack.esql.planner.EsPhysicalOperationProviders.ShardContext
- All Implemented Interfaces:
Closeable,AutoCloseable,ShardContext,org.elasticsearch.core.RefCounted,org.elasticsearch.core.Releasable
- Direct Known Subclasses:
EsPhysicalOperationProviders.DefaultShardContext
- Enclosing class:
EsPhysicalOperationProviders
public abstract static class EsPhysicalOperationProviders.ShardContext
extends Object
implements ShardContext, org.elasticsearch.core.Releasable
Context of each shard we're operating against. Note these objects are shared across multiple operators as
RefCounted.-
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandecRef()booleanvoidincRef()abstract doubleTuning parameter for deciding when to use the "merge" stored field loader.abstract org.apache.lucene.search.QuerytoQuery(QueryBuilder queryBuilder) Convert aQueryBuilderinto a reallucene query.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.core.Releasable
closeMethods inherited from interface org.elasticsearch.compute.lucene.ShardContext
blockLoader, buildSort, fieldType, index, newSourceLoader, searcher, shardIdentifier
-
Constructor Details
-
ShardContext
public ShardContext()
-
-
Method Details
-
incRef
public void incRef()- Specified by:
incRefin interfaceorg.elasticsearch.core.RefCounted
-
tryIncRef
public boolean tryIncRef()- Specified by:
tryIncRefin interfaceorg.elasticsearch.core.RefCounted
-
decRef
public boolean decRef()- Specified by:
decRefin interfaceorg.elasticsearch.core.RefCounted
-
hasReferences
public boolean hasReferences()- Specified by:
hasReferencesin interfaceorg.elasticsearch.core.RefCounted
-
toQuery
Convert aQueryBuilderinto a reallucene query. -
storedFieldsSequentialProportion
public abstract double storedFieldsSequentialProportion()Tuning 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.
-