Interface PromqlPlan
- All Known Implementing Classes:
AcrossSeriesAggregate,InstantSelector,LiteralSelector,PromqlFunctionCall,RangeSelector,ScalarConversionFunction,ScalarFunction,Selector,Subquery,ValueTransformationFunction,VectorBinaryArithmetic,VectorBinaryComparison,VectorBinaryOperator,VectorBinarySet,VectorConversionFunction,WithinSeriesAggregate
public interface PromqlPlan
Marker interface for PromQL-specific logical plan nodes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PromqlDataTypegetType(LogicalPlan plan) output()Returns any grouping attributes, for example those added viaby(...), orFieldAttribute.timeSeriesAttribute(Source)(group by all).static booleanUtility methods to check the return type of a PromqlPlanstatic booleanUtility methods to check the return type of a PromqlPlanstatic booleanreturnsScalar(LogicalPlan plan) Utility methods to check the return type of a PromqlPlanThe PromQL return type of this plan node.
-
Method Details
-
output
Returns any grouping attributes, for example those added viaby(...), orFieldAttribute.timeSeriesAttribute(Source)(group by all).Note: The value and step column are added by
PromqlCommand.output()and should not be added by implementations of this interface. -
returnType
PromqlDataType returnType()The PromQL return type of this plan node. -
returnsRangeVector
Utility methods to check the return type of a PromqlPlan- Parameters:
plan- the logical plan to check- Returns:
- true if the plan returns a range vector
- Throws:
IllegalArgumentException- if the plan is not a PromqlPlan
-
returnsInstantVector
Utility methods to check the return type of a PromqlPlan- Parameters:
plan- the logical plan to check- Returns:
- true if the plan returns an instant vector
- Throws:
IllegalArgumentException- if the plan is not a PromqlPlan
-
returnsScalar
Utility methods to check the return type of a PromqlPlan- Parameters:
plan- the logical plan to check- Returns:
- true if the plan returns a scalar
- Throws:
IllegalArgumentException- if the plan is not a PromqlPlan
-
getType
-