public interface Function extends AssignmentTestable
AssignmentTestable.TestResult
Modifier and Type | Field and Description |
---|---|
static java.nio.ByteBuffer |
UNRESOLVED
A marker buffer used to represent function parameters that cannot be resolved at some stage of CQL processing.
|
Modifier and Type | Method and Description |
---|---|
void |
addFunctionsTo(java.util.List<Function> functions) |
java.util.List<AbstractType<?>> |
argTypes() |
java.lang.String |
columnName(java.util.List<java.lang.String> columnNames)
Returns the name of the function to use within a ResultSet.
|
default java.util.Optional<Difference> |
compare(Function other) |
boolean |
isAggregate()
Checks whether the function is an aggregate function or not.
|
boolean |
isNative()
Checks whether the function is a native/hard coded one or not.
|
boolean |
isPure()
Checks whether the function is a pure function (as in doesn't depend on, nor produces side effects) or not.
|
FunctionName |
name() |
boolean |
referencesUserType(java.nio.ByteBuffer name) |
AbstractType<?> |
returnType() |
testAssignment
static final java.nio.ByteBuffer UNRESOLVED
FunctionName name()
java.util.List<AbstractType<?>> argTypes()
AbstractType<?> returnType()
boolean isNative()
true
if the function is a native/hard coded one, false
otherwise.boolean isPure()
true
if the function is a pure function, false
otherwise.boolean isAggregate()
true
if the function is an aggregate function, false
otherwise.void addFunctionsTo(java.util.List<Function> functions)
boolean referencesUserType(java.nio.ByteBuffer name)
java.lang.String columnName(java.util.List<java.lang.String> columnNames)
columnNames
- the names of the columns used to call the functiondefault java.util.Optional<Difference> compare(Function other)
Copyright © 2009- The Apache Software Foundation