public final class CreateFunctionStatement extends SchemaAlteringStatement
CREATE FUNCTION
statement parsed from a CQL query.ParsedStatement.Prepared
cfName
Constructor and Description |
---|
CreateFunctionStatement(FunctionName functionName,
java.lang.String language,
java.lang.String body,
java.util.List<ColumnIdentifier> argNames,
java.util.List<CQL3Type.Raw> argRawTypes,
CQL3Type.Raw rawReturnType,
boolean calledOnNullInput,
boolean orReplace,
boolean ifNotExists) |
Modifier and Type | Method and Description |
---|---|
boolean |
announceMigration(boolean isLocalOnly)
Announces the migration to other nodes in the cluster.
|
Event.SchemaChange |
changeEvent() |
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
protected void |
grantPermissionsToCreator(QueryState state)
Schema alteration may result in a new database object (keyspace, table, role, function) being created capable of
having permissions GRANTed on it.
|
ParsedStatement.Prepared |
prepare() |
void |
prepareKeyspace(ClientState state) |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
execute, executeInternal, getBoundTerms
columnFamily, keyspace, prepareKeyspace
getBoundVariables, getFunctions, setBoundVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctions
public CreateFunctionStatement(FunctionName functionName, java.lang.String language, java.lang.String body, java.util.List<ColumnIdentifier> argNames, java.util.List<CQL3Type.Raw> argRawTypes, CQL3Type.Raw rawReturnType, boolean calledOnNullInput, boolean orReplace, boolean ifNotExists)
public ParsedStatement.Prepared prepare() throws InvalidRequestException
prepare
in class SchemaAlteringStatement
InvalidRequestException
public void prepareKeyspace(ClientState state) throws InvalidRequestException
prepareKeyspace
in class SchemaAlteringStatement
InvalidRequestException
protected void grantPermissionsToCreator(QueryState state)
SchemaAlteringStatement
grantPermissionsToCreator
in class SchemaAlteringStatement
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatement
state
- the current client stateUnauthorizedException
InvalidRequestException
public void validate(ClientState state) throws InvalidRequestException
CQLStatement
state
- the current client stateInvalidRequestException
public Event.SchemaChange changeEvent()
changeEvent
in class SchemaAlteringStatement
public boolean announceMigration(boolean isLocalOnly) throws RequestValidationException
SchemaAlteringStatement
announceMigration
in class SchemaAlteringStatement
RequestValidationException
Copyright © 2020 The Apache Software Foundation