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, waitcompare, isAggregate, isNativeprotected 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 Functionpublic java.util.List<java.lang.String> argumentsList()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void addFunctionsTo(java.util.List<Function> functions)
addFunctionsTo in interface Functionpublic boolean referencesUserType(java.nio.ByteBuffer name)
referencesUserType in interface Functionpublic int hashCode()
hashCode in class java.lang.Objectpublic final AssignmentTestable.TestResult testAssignment(java.lang.String keyspace, ColumnSpecification receiver)
testAssignment in interface AssignmentTestablepublic java.lang.String toString()
toString in class java.lang.Objectpublic 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)
FunctioncolumnName in interface FunctioncolumnNames - the names of the columns used to call the functionCopyright © 2009-2022 The Apache Software Foundation