public class CreateKeyspaceStatement
extends java.lang.Object
CREATE KEYSPACE
statement parsed from a CQL query.Constructor and Description |
---|
CreateKeyspaceStatement(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> attrs)
Creates a new
CreateKeyspaceStatement instance for a given
keyspace name and keyword arguments. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.String |
getStrategyClass() |
java.util.Map<java.lang.String,java.lang.String> |
getStrategyOptions() |
void |
validate()
The
CqlParser only goes as far as extracting the keyword arguments
from these statements, so this method is responsible for processing and
validating, and must be called prior to access. |
public CreateKeyspaceStatement(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> attrs)
CreateKeyspaceStatement
instance for a given
keyspace name and keyword arguments.name
- the name of the keyspace to createattrs
- map of the raw keyword arguments that followed the WITH
keyword.public void validate() throws InvalidRequestException
CqlParser
only goes as far as extracting the keyword arguments
from these statements, so this method is responsible for processing and
validating, and must be called prior to access.InvalidRequestException
- if arguments are missing or unacceptablepublic java.lang.String getName()
public java.lang.String getStrategyClass()
public java.util.Map<java.lang.String,java.lang.String> getStrategyOptions()
Copyright © 2013 The Apache Software Foundation