public class FunctionMetadata extends Object
CREATE FUNCTION...).| Modifier and Type | Method and Description |
|---|---|
String |
asCQLQuery()
Returns a CQL query representing this function.
|
boolean |
equals(Object other) |
String |
exportAsString()
Returns a CQL query representing this function in human readable form.
|
Map<String,DataType> |
getArguments()
Returns the names and types of this function's arguments.
|
String |
getBody()
Returns the body of this function.
|
KeyspaceMetadata |
getKeyspace()
Returns the keyspace this function belongs to.
|
String |
getLanguage()
Returns the programming language in which this function's body is written.
|
List<String> |
getMonotonicOn()
Returns the argument names that the function is monotonic on.
|
DataType |
getReturnType()
Returns the return type of this function.
|
String |
getSignature()
Returns the CQL signature of this function.
|
String |
getSimpleName()
Returns the simple name of this function.
|
int |
hashCode() |
boolean |
isCalledOnNullInput()
Indicates whether this function's body gets called on null input.
|
boolean |
isDeterministic() |
boolean |
isMonotonic()
Indicates whether or not this function is monotonic on all of its arguments.
|
String |
toString() |
public String exportAsString()
asCQLQuery() but the output is formatted.public String asCQLQuery()
public KeyspaceMetadata getKeyspace()
public String getSignature()
sum(int,int).
Note that the returned signature is not qualified with the keyspace name.public String getSimpleName()
sum(int,int) and sum(int,int,int) both have the simple name sum.getSignature()public Map<String,DataType> getArguments()
public String getBody()
public boolean isCalledOnNullInput()
true if the function was created with CALLED ON NULL INPUT,
and false if it was created with RETURNS NULL ON NULL INPUT.public String getLanguage()
public DataType getReturnType()
public boolean isDeterministic()
public boolean isMonotonic()
public List<String> getMonotonicOn()
isMonotonic() returns true, this will return all argument names. Otherwise
this will return either one argument or an empty list.Copyright © 2012–2018. All rights reserved.