public final class CreateFunctionStatement
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CreateFunctionStatement.Raw |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
keyspaceName |
Constructor and Description |
---|
CreateFunctionStatement(java.lang.String keyspaceName,
java.lang.String functionName,
java.util.List<ColumnIdentifier> argumentNames,
java.util.List<CQL3Type.Raw> rawArgumentTypes,
CQL3Type.Raw rawReturnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body,
boolean orReplace,
boolean ifNotExists) |
Modifier and Type | Method and Description |
---|---|
Keyspaces |
apply(Keyspaces schema)
Apply a statement transformation to a schema snapshot.
|
void |
authorize(ClientState client)
Perform any access verification necessary for the statement.
|
ResultMessage |
execute(QueryState state,
boolean locally) |
ResultMessage |
execute(QueryState state,
QueryOptions options,
long queryStartNanoTime)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeLocally(QueryState state,
QueryOptions options)
Variant of execute used for internal query against the system tables, and thus only query the local node.
|
AuditLogContext |
getAuditLogContext()
Provides the context needed for audit logging statements.
|
java.lang.String |
toString() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
public CreateFunctionStatement(java.lang.String keyspaceName, java.lang.String functionName, java.util.List<ColumnIdentifier> argumentNames, java.util.List<CQL3Type.Raw> rawArgumentTypes, CQL3Type.Raw rawReturnType, boolean calledOnNullInput, java.lang.String language, java.lang.String body, boolean orReplace, boolean ifNotExists)
public Keyspaces apply(Keyspaces schema)
SchemaTransformation
schema
- Keyspaces to base the transformation onpublic void authorize(ClientState client)
CQLStatement
client
- the current client statepublic AuditLogContext getAuditLogContext()
CQLStatement
public java.lang.String toString()
toString
in class java.lang.Object
public final void validate(ClientState state)
CQLStatement
validate
in interface CQLStatement
state
- the current client statepublic ResultMessage execute(QueryState state, QueryOptions options, long queryStartNanoTime)
CQLStatement
execute
in interface CQLStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)queryStartNanoTime
- the timestamp returned by System.nanoTime() when this statement was receivedpublic ResultMessage executeLocally(QueryState state, QueryOptions options)
CQLStatement
executeLocally
in interface CQLStatement
state
- the current query statepublic ResultMessage execute(QueryState state, boolean locally)
Copyright © 2009-2021 The Apache Software Foundation