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()
This method is equivalent to asCQLQuery()
but the output is formatted.
public String asCQLQuery()
This method returns a single 'CREATE FUNCTION' query corresponding to this function definition.
public KeyspaceMetadata getKeyspace()
public String getSignature()
This is the name of the function, followed by the names of the argument types between
parentheses, for example sum(int,int)
.
Note that the returned signature is not qualified with the keyspace name.
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
.
getSignature()
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–2023. All rights reserved.