public class ToNumberFunction extends DefaultScalarFunction
Constructor and Description |
---|
ToNumberFunction() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Row row,
Object[] parameters,
SelectItem item)
Applies and evaluates the function on a particular row of data.
|
ColumnType |
getExpectedColumnType(ColumnType type) |
String |
getFunctionName() |
toString
public ColumnType getExpectedColumnType(ColumnType type)
public String getFunctionName()
public Object evaluate(Row row, Object[] parameters, SelectItem item)
ScalarFunction
row
- the row containing dataparameters
- any parameters associated with the function callitem
- 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–2021 The Apache Software Foundation. All rights reserved.