public abstract class AbstractFunction extends java.lang.Object implements Function
AssignmentTestable.TestResult
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AbstractType<?>> |
argTypes |
protected FunctionName |
name |
protected AbstractType<?> |
returnType |
Modifier | Constructor and Description |
---|---|
protected |
AbstractFunction(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType) |
Modifier and Type | Method and Description |
---|---|
void |
addFunctionsTo(java.util.List<Function> functions) |
java.util.List<AbstractType<?>> |
argTypes() |
java.util.List<java.lang.String> |
argumentsList() |
java.lang.String |
columnName(java.util.List<java.lang.String> columnNames)
Returns the name of the function to use within a ResultSet.
|
java.lang.String |
elementKeyspace() |
java.lang.String |
elementName() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
FunctionName |
name() |
boolean |
referencesUserType(java.nio.ByteBuffer name) |
AbstractType<?> |
returnType() |
AssignmentTestable.TestResult |
testAssignment(java.lang.String keyspace,
ColumnSpecification receiver) |
protected java.lang.String |
toCqlString(AbstractType<?> type)
Converts the specified type into its CQL representation.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compare, isAggregate, isNative
protected final FunctionName name
protected final java.util.List<AbstractType<?>> argTypes
protected final AbstractType<?> returnType
protected AbstractFunction(FunctionName name, java.util.List<AbstractType<?>> argTypes, AbstractType<?> returnType)
public FunctionName name()
public java.util.List<AbstractType<?>> argTypes()
public AbstractType<?> returnType()
returnType
in interface Function
public java.util.List<java.lang.String> argumentsList()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void addFunctionsTo(java.util.List<Function> functions)
addFunctionsTo
in interface Function
public boolean referencesUserType(java.nio.ByteBuffer name)
referencesUserType
in interface Function
public int hashCode()
hashCode
in class java.lang.Object
public final AssignmentTestable.TestResult testAssignment(java.lang.String keyspace, ColumnSpecification receiver)
testAssignment
in interface AssignmentTestable
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String elementKeyspace()
public java.lang.String elementName()
protected java.lang.String toCqlString(AbstractType<?> type)
For user function and aggregates tuples need to be handle in a special way as they are frozen by nature but the frozen keyword should not appear in their CQL definition.
type
- the typepublic java.lang.String columnName(java.util.List<java.lang.String> columnNames)
Function
columnName
in interface Function
columnNames
- the names of the columns used to call the functionCopyright © 2009-2021 The Apache Software Foundation