Interface DruidExpression.VirtualColumnCreator
- All Known Implementing Classes:
DruidExpression.ExpressionVirtualColumnCreator
- Enclosing class:
- DruidExpression
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Used by a
DruidExpression to translate itself into a VirtualColumn to add to a native query when
referenced by a projection, filter, aggregator, etc.-
Method Summary
Modifier and TypeMethodDescriptioncreate(String name, ColumnType outputType, ExpressionParser parser, DruidExpression self) Create a virtual column for an expression.
-
Method Details
-
create
VirtualColumn create(String name, ColumnType outputType, ExpressionParser parser, DruidExpression self) Create a virtual column for an expression.- Parameters:
name- name of the virtual columnoutputType- type of the virtual columnparser- expression parser, if neededself- expression, possibly rewritten to refer to specialized virtual columns
-