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.
|
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.
|
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()
Copyright © 2012–2017. All rights reserved.