public interface ScalarFunction extends FunctionType
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Row row,
Object[] parameters,
SelectItem operandItem)
Applies and evaluates the function on a particular row of data.
|
getExpectedColumnType, getFunctionName
Object evaluate(Row row, Object[] parameters, SelectItem operandItem)
row
- the row containing dataparameters
- any parameters associated with the function calloperandItem
- the select item which is the argument to this function. If a
function takes multiple select items, this will be the primary
one.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.