Package edu.caltech.nanodb.functions
Class ScalarFunction
- java.lang.Object
-
- edu.caltech.nanodb.functions.Function
-
- edu.caltech.nanodb.functions.ScalarFunction
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
AggregateFunction
,SimpleFunction
public abstract class ScalarFunction extends Function
This class represents functions that return a scalar value.
-
-
Constructor Summary
Constructors Constructor Description ScalarFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ColumnType
getReturnType(java.util.List<Expression> args, Schema schema)
Returns the column type of the resulting column after applying the function.
-
-
-
Method Detail
-
getReturnType
public abstract ColumnType getReturnType(java.util.List<Expression> args, Schema schema)
Returns the column type of the resulting column after applying the function. This generally depends on the column type of the inputs.- Parameters:
args
- the arguments to the function callschema
- the schema of the table- Returns:
- the column type of the resulting column
-
-