public class CreateTypeStatement extends SchemaAlteringStatement
ParsedStatement.PreparedcfName| 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, preparecolumnFamily, prepareKeyspacegetBoundVariables, getFunctions, setBoundVariables, setBoundVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFunctionspublic CreateTypeStatement(UTName name, boolean ifNotExists)
public void prepareKeyspace(ClientState state) throws InvalidRequestException
prepareKeyspace in class SchemaAlteringStatementInvalidRequestExceptionpublic void addDefinition(FieldIdentifier name, CQL3Type.Raw type)
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatementstate - the current client stateUnauthorizedExceptionInvalidRequestExceptionpublic void validate(ClientState state) throws RequestValidationException
CQLStatementstate - the current client stateRequestValidationExceptionpublic static void checkForDuplicateNames(UserType type) throws InvalidRequestException
InvalidRequestExceptionpublic void addToRawBuilder(Types.RawBuilder builder) throws InvalidRequestException
InvalidRequestExceptionpublic java.lang.String keyspace()
keyspace in class CFStatementpublic UserType createType() throws InvalidRequestException
InvalidRequestExceptionpublic Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException
SchemaAlteringStatementannounceMigration in class SchemaAlteringStatementnull if no schema change
has occurred (when IF NOT EXISTS is used, for example)InvalidRequestExceptionConfigurationExceptionCopyright © 2018 The Apache Software Foundation