Class ExpressionTransform
- java.lang.Object
-
- org.apache.druid.segment.transform.ExpressionTransform
-
-
Constructor Summary
Constructors Constructor Description ExpressionTransform(String name, String expression, ExprMacroTable macroTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getExpression()
String
getName()
Returns the field name for this transform.Set<String>
getRequiredColumns()
Returns the names of all columns that this transform is going to read.RowFunction
getRowFunction()
Returns the function for this transform.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ExpressionTransform
public ExpressionTransform(String name, String expression, ExprMacroTable macroTable)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Transform
Returns the field name for this transform.
-
getExpression
public String getExpression()
-
getRowFunction
public RowFunction getRowFunction()
Description copied from interface:Transform
Returns the function for this transform. The RowFunction takes an entire row as input and returns a column value as output.- Specified by:
getRowFunction
in interfaceTransform
-
getRequiredColumns
public Set<String> getRequiredColumns()
Description copied from interface:Transform
Returns the names of all columns that this transform is going to read.- Specified by:
getRequiredColumns
in interfaceTransform
-
-