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.
  • Constructor Details

    • ShardContext

      public ShardContext()
  • Method Details

    • incRef

      public void incRef()
      Specified by:
      incRef in interface org.elasticsearch.core.RefCounted
    • tryIncRef

      public boolean tryIncRef()
      Specified by:
      tryIncRef in interface org.elasticsearch.core.RefCounted
    • decRef

      public boolean decRef()
      Specified by:
      decRef in interface org.elasticsearch.core.RefCounted
    • hasReferences

      public boolean hasReferences()
      Specified by:
      hasReferences in interface org.elasticsearch.core.RefCounted
    • toQuery

      public abstract org.apache.lucene.search.Query toQuery(QueryBuilder queryBuilder)
      Convert a QueryBuilder into a real lucene 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 of 1 means I have to be exactly a sequential block, like 0, 1, 2, 3, .. 1299, 1300. A value of .2 means we'll use the sequential reader even if we only need one in ten documents.