Class PlannerUtils
java.lang.Object
org.elasticsearch.xpack.esql.planner.PlannerUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlockFactoryDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.elasticsearch.core.Tuple<PhysicalPlan, PhysicalPlan> breakPlanBetweenCoordinatorAndDataNode(PhysicalPlan plan, Configuration config) static PhysicalPlanlocalPlan(List<SearchExecutionContext> searchContexts, Configuration configuration, FoldContext foldCtx, PhysicalPlan plan) static PhysicalPlanlocalPlan(PhysicalPlan plan, LocalLogicalPlanOptimizer logicalOptimizer, LocalPhysicalPlanOptimizer physicalOptimizer) static PhysicalPlanlocalPlan(Configuration configuration, FoldContext foldCtx, PhysicalPlan plan, SearchStats searchStats) Returns a set of concrete indices after resolving the original indices specified in the FROM command.static String[]Returns the original indices specified in the FROM command of the query.static PhysicalPlanreductionPlan(PhysicalPlan plan) static QueryBuilderExtracts the ES query for the@timestampfield for the passed plan.static ElementTypetoElementType(DataType dataType) Map QL'sDataTypeto the compute engine'sElementType.static ElementTypetoElementType(DataType dataType, MappedFieldType.FieldExtractPreference fieldExtractPreference) Map QL'sDataTypeto the compute engine'sElementType.static ElementTypetoSortableElementType(DataType dataType) Map QL'sDataTypeto the compute engine'sElementType, for sortable types only.
-
Field Details
-
NON_BREAKING_BLOCK_FACTORY
Deprecated, for removal: This API element is subject to removal in a future version.A non-breaking block factory used to create small pages during the planning TODO: Remove this
-
-
Constructor Details
-
PlannerUtils
public PlannerUtils()
-
-
Method Details
-
breakPlanBetweenCoordinatorAndDataNode
public static org.elasticsearch.core.Tuple<PhysicalPlan,PhysicalPlan> breakPlanBetweenCoordinatorAndDataNode(PhysicalPlan plan, Configuration config) -
reductionPlan
-
planConcreteIndices
Returns a set of concrete indices after resolving the original indices specified in the FROM command. -
planOriginalIndices
Returns the original indices specified in the FROM command of the query. We need the original query to resolve alias filters. -
localPlan
public static PhysicalPlan localPlan(List<SearchExecutionContext> searchContexts, Configuration configuration, FoldContext foldCtx, PhysicalPlan plan) -
localPlan
public static PhysicalPlan localPlan(Configuration configuration, FoldContext foldCtx, PhysicalPlan plan, SearchStats searchStats) -
localPlan
public static PhysicalPlan localPlan(PhysicalPlan plan, LocalLogicalPlanOptimizer logicalOptimizer, LocalPhysicalPlanOptimizer physicalOptimizer) -
requestTimestampFilter
Extracts the ES query for the@timestampfield for the passed plan. -
toSortableElementType
Map QL'sDataTypeto the compute engine'sElementType, for sortable types only. This specifically excludes spatial data types, which are not themselves sortable. -
toElementType
Map QL'sDataTypeto the compute engine'sElementType. -
toElementType
public static ElementType toElementType(DataType dataType, MappedFieldType.FieldExtractPreference fieldExtractPreference) Map QL'sDataTypeto the compute engine'sElementType. Under some situations, the same data type might be extracted into a different element type. For example, spatial types can be extracted into doc-values under specific conditions, otherwise they extract as BytesRef.
-