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.

@FunctionalInterface public static interface DruidExpression.VirtualColumnCreator
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 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 column
      outputType - type of the virtual column
      parser - expression parser, if needed
      self - expression, possibly rewritten to refer to specialized virtual columns