public class ToBooleanFunction extends DefaultScalarFunction
| Constructor and Description |
|---|
ToBooleanFunction() |
| 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() |
toStringpublic ColumnType getExpectedColumnType(ColumnType type)
public String getFunctionName()
public Object evaluate(Row row, Object[] parameters, SelectItem item)
ScalarFunctionrow - 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–2019 The Apache Software Foundation. All rights reserved.