public class CreateTypeStatement extends SchemaAlteringStatement
ParsedStatement.Prepared
cfName
Constructor and Description |
---|
CreateTypeStatement(UTName name,
boolean ifNotExists) |
Modifier and Type | Method and Description |
---|---|
void |
addDefinition(FieldIdentifier name,
CQL3Type.Raw type) |
void |
addToRawBuilder(Types.RawBuilder builder) |
Event.SchemaChange |
announceMigration(QueryState queryState,
boolean isLocalOnly)
Announces the migration to other nodes in the cluster.
|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
static void |
checkForDuplicateNames(UserType type) |
UserType |
createType() |
java.lang.String |
keyspace() |
void |
prepareKeyspace(ClientState state) |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
execute, executeInternal, getBoundTerms, grantPermissionsToCreator, prepare
columnFamily, prepareKeyspace
getBoundVariables, getFunctions, setBoundVariables, setBoundVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctions
public CreateTypeStatement(UTName name, boolean ifNotExists)
public void prepareKeyspace(ClientState state) throws InvalidRequestException
prepareKeyspace
in class SchemaAlteringStatement
InvalidRequestException
public void addDefinition(FieldIdentifier name, CQL3Type.Raw type)
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatement
state
- the current client stateUnauthorizedException
InvalidRequestException
public void validate(ClientState state) throws RequestValidationException
CQLStatement
state
- the current client stateRequestValidationException
public static void checkForDuplicateNames(UserType type) throws InvalidRequestException
InvalidRequestException
public void addToRawBuilder(Types.RawBuilder builder) throws InvalidRequestException
InvalidRequestException
public java.lang.String keyspace()
keyspace
in class CFStatement
public UserType createType() throws InvalidRequestException
InvalidRequestException
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException
SchemaAlteringStatement
announceMigration
in class SchemaAlteringStatement
null
if no schema change
has occurred (when IF NOT EXISTS is used, for example)InvalidRequestException
ConfigurationException
Copyright © 2020 The Apache Software Foundation