public class ToNumberFunction extends DefaultScalarFunction
AVG, COUNT, MAX, MIN, SUM, TO_BOOLEAN, TO_DATE, TO_NUMBER, TO_STRING
Constructor and Description |
---|
ToNumberFunction() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Row row,
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, SelectItem item)
ScalarFunction
row
- the row containing dataitem
- 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–2015 The Apache Software Foundation. All rights reserved.