Class CreateFunctionStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
-
- org.apache.cassandra.cql3.statements.schema.CreateFunctionStatement
-
- All Implemented Interfaces:
CQLStatement
,CQLStatement.SingleKeyspaceCqlStatement
,SchemaTransformation
public final class CreateFunctionStatement extends AlterSchemaStatement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateFunctionStatement.Raw
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQLStatement
CQLStatement.SingleKeyspaceCqlStatement
-
Nested classes/interfaces inherited from interface org.apache.cassandra.schema.SchemaTransformation
SchemaTransformation.SchemaTransformationResult
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
keyspaceName, state
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.AuditLogContext
getAuditLogContext()
Provides the context needed for audit logging statements.java.lang.String
toString()
-
Methods inherited from class org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
execute, execute, executeLocally, keyspace, validate, validateDefaultTimeToLive
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
Methods inherited from interface org.apache.cassandra.schema.SchemaTransformation
fixedTimestampMicros
-
-
-
-
Constructor Detail
-
CreateFunctionStatement
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)
-
-
Method Detail
-
apply
public Keyspaces apply(Keyspaces schema)
Description copied from interface:SchemaTransformation
Apply a statement transformation to a schema snapshot.Implementing methods should be side-effect free (outside of throwing exceptions if the transformation cannot be successfully applied to the provided schema).
- Parameters:
schema
- Keyspaces to base the transformation on- Returns:
- Keyspaces transformed by the statement
-
authorize
public void authorize(ClientState client)
Description copied from interface:CQLStatement
Perform any access verification necessary for the statement.- Parameters:
client
- the current client state
-
getAuditLogContext
public AuditLogContext getAuditLogContext()
Description copied from interface:CQLStatement
Provides the context needed for audit logging statements.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-