public class FloorExpressionConversion extends AbstractExpressionConversion
Modifier and Type | Method and Description |
---|---|
static RowExtraction |
applyTimestampFloor(RowExtraction rex,
Granularity queryGranularity) |
RowExtraction |
convert(ExpressionConverter converter,
PlannerContext plannerContext,
List<String> rowOrder,
org.apache.calcite.rex.RexNode expression)
Translate a row-expression to a Druid column reference.
|
static FloorExpressionConversion |
instance() |
operatorName, sqlKind
public static FloorExpressionConversion instance()
public static RowExtraction applyTimestampFloor(RowExtraction rex, Granularity queryGranularity)
public RowExtraction convert(ExpressionConverter converter, PlannerContext plannerContext, List<String> rowOrder, org.apache.calcite.rex.RexNode expression)
ExpressionConversion
converter
- converter that can be used to convert sub-expressionsplannerContext
- SQL planner contextrowOrder
- order of fields in the Druid rows to be extracted fromexpression
- expression meant to be applied on top of the tableCopyright © 2011–2017. All rights reserved.