org.apache.cassandra.cql3
Class PropertyDefinitions

java.lang.Object
  extended by org.apache.cassandra.cql3.PropertyDefinitions
Direct Known Subclasses:
CFPropDefs, KSPropDefs

public class PropertyDefinitions
extends java.lang.Object


Field Summary
protected static org.slf4j.Logger logger
           
protected  java.util.Map<java.lang.String,java.lang.String> properties
           
 
Constructor Summary
PropertyDefinitions()
           
 
Method Summary
 void addProperty(java.lang.String name, java.lang.String value)
           
 java.lang.Boolean getBoolean(java.lang.String key, java.lang.Boolean defaultValue)
           
 java.lang.Double getDouble(java.lang.String key, java.lang.Double defaultValue)
           
 java.lang.Integer getInt(java.lang.String key, java.lang.Integer defaultValue)
           
protected  java.lang.String getSimple(java.lang.String name)
           
 java.lang.String getString(java.lang.String key, java.lang.String defaultValue)
           
 java.lang.Boolean hasProperty(java.lang.String name)
           
static java.lang.Integer toInt(java.lang.String key, java.lang.String value, java.lang.Integer defaultValue)
           
 void validate(java.util.Set<java.lang.String> keywords, java.util.Set<java.lang.String> obsolete)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger

properties

protected final java.util.Map<java.lang.String,java.lang.String> properties
Constructor Detail

PropertyDefinitions

public PropertyDefinitions()
Method Detail

addProperty

public void addProperty(java.lang.String name,
                        java.lang.String value)
                 throws org.apache.cassandra.thrift.InvalidRequestException
Throws:
org.apache.cassandra.thrift.InvalidRequestException

validate

public void validate(java.util.Set<java.lang.String> keywords,
                     java.util.Set<java.lang.String> obsolete)
              throws org.apache.cassandra.thrift.InvalidRequestException
Throws:
org.apache.cassandra.thrift.InvalidRequestException

getSimple

protected java.lang.String getSimple(java.lang.String name)
                              throws org.apache.cassandra.thrift.InvalidRequestException
Throws:
org.apache.cassandra.thrift.InvalidRequestException

hasProperty

public java.lang.Boolean hasProperty(java.lang.String name)

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.String defaultValue)
                           throws org.apache.cassandra.thrift.InvalidRequestException
Throws:
org.apache.cassandra.thrift.InvalidRequestException

getBoolean

public java.lang.Boolean getBoolean(java.lang.String key,
                                    java.lang.Boolean defaultValue)
                             throws org.apache.cassandra.thrift.InvalidRequestException
Throws:
org.apache.cassandra.thrift.InvalidRequestException

getDouble

public java.lang.Double getDouble(java.lang.String key,
                                  java.lang.Double defaultValue)
                           throws org.apache.cassandra.thrift.InvalidRequestException
Throws:
org.apache.cassandra.thrift.InvalidRequestException

getInt

public java.lang.Integer getInt(java.lang.String key,
                                java.lang.Integer defaultValue)
                         throws org.apache.cassandra.thrift.InvalidRequestException
Throws:
org.apache.cassandra.thrift.InvalidRequestException

toInt

public static java.lang.Integer toInt(java.lang.String key,
                                      java.lang.String value,
                                      java.lang.Integer defaultValue)
                               throws org.apache.cassandra.thrift.InvalidRequestException
Throws:
org.apache.cassandra.thrift.InvalidRequestException


Copyright © 2012 The Apache Software Foundation