public class FunctionMetadata extends Object
CREATE FUNCTION...
).Modifier and Type | Method and Description |
---|---|
String |
asCQLQuery()
Returns a CQL query representing this function.
|
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.
|
String |
getFullName()
Returns the full name 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 |
getSimpleName()
Returns the simple name of this function.
|
boolean |
isCalledOnNullInput()
Indicates whether this function's body gets called on null input.
|
String |
toString() |
public String exportAsString()
This method is equivalent to asCQLQuery()
but the output is formatted.
public String asCQLQuery()
public KeyspaceMetadata getKeyspace()
public String getFullName()
This is the name of the function, followed by the names of the argument types between parentheses,
for example sum(int,int)
.
public String getSimpleName()
This is the name of the function, without arguments. Note that functions can be overloaded with
different argument lists, therefore the simple name may not be unique. For example,
sum(int,int)
and sum(int,int,int)
both have the simple name sum
.
getFullName()
public Map<String,DataType> getArguments()
public String getBody()
public boolean isCalledOnNullInput()
This is 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–2015. All rights reserved.