org.apache.cassandra.thrift
Class CfDef

java.lang.Object
  extended by org.apache.cassandra.thrift.CfDef
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<CfDef>, org.apache.thrift.TBase<CfDef,CfDef._Fields>

public class CfDef
extends java.lang.Object
implements org.apache.thrift.TBase<CfDef,CfDef._Fields>, java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Nested Class Summary
static class CfDef._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 java.util.List<ColumnDef> column_metadata
           
 java.lang.String column_type
           
 java.lang.String comment
           
 java.lang.String comparator_type
           
 java.lang.String default_validation_class
           
 int gc_grace_seconds
           
 int id
           
 int key_cache_save_period_in_seconds
           
 double key_cache_size
           
 java.lang.String keyspace
           
 int max_compaction_threshold
           
 int memtable_flush_after_mins
           
 double memtable_operations_in_millions
           
 int memtable_throughput_in_mb
           
static java.util.Map<CfDef._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 int min_compaction_threshold
           
 java.lang.String name
           
 double read_repair_chance
           
 int row_cache_save_period_in_seconds
           
 double row_cache_size
           
 java.lang.String subcomparator_type
           
 
Constructor Summary
CfDef()
           
CfDef(CfDef other)
          Performs a deep copy on other.
CfDef(java.lang.String keyspace, java.lang.String name)
           
 
Method Summary
 void addToColumn_metadata(ColumnDef elem)
           
 void clear()
           
 int compareTo(CfDef other)
           
 CfDef deepCopy()
           
 boolean equals(CfDef that)
           
 boolean equals(java.lang.Object that)
           
 CfDef._Fields fieldForId(int fieldId)
           
 java.util.List<ColumnDef> getColumn_metadata()
           
 java.util.Iterator<ColumnDef> getColumn_metadataIterator()
           
 int getColumn_metadataSize()
           
 java.lang.String getColumn_type()
           
 java.lang.String getComment()
           
 java.lang.String getComparator_type()
           
 java.lang.String getDefault_validation_class()
           
 java.lang.Object getFieldValue(CfDef._Fields field)
           
 int getGc_grace_seconds()
           
 int getId()
           
 int getKey_cache_save_period_in_seconds()
           
 double getKey_cache_size()
           
 java.lang.String getKeyspace()
           
 int getMax_compaction_threshold()
           
 int getMemtable_flush_after_mins()
           
 double getMemtable_operations_in_millions()
           
 int getMemtable_throughput_in_mb()
           
 int getMin_compaction_threshold()
           
 java.lang.String getName()
           
 double getRead_repair_chance()
           
 int getRow_cache_save_period_in_seconds()
           
 double getRow_cache_size()
           
 java.lang.String getSubcomparator_type()
           
 int hashCode()
           
 boolean isSet(CfDef._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetColumn_metadata()
          Returns true if field column_metadata is set (has been asigned a value) and false otherwise
 boolean isSetColumn_type()
          Returns true if field column_type is set (has been asigned a value) and false otherwise
 boolean isSetComment()
          Returns true if field comment is set (has been asigned a value) and false otherwise
 boolean isSetComparator_type()
          Returns true if field comparator_type is set (has been asigned a value) and false otherwise
 boolean isSetDefault_validation_class()
          Returns true if field default_validation_class is set (has been asigned a value) and false otherwise
 boolean isSetGc_grace_seconds()
          Returns true if field gc_grace_seconds is set (has been asigned a value) and false otherwise
 boolean isSetId()
          Returns true if field id is set (has been asigned a value) and false otherwise
 boolean isSetKey_cache_save_period_in_seconds()
          Returns true if field key_cache_save_period_in_seconds is set (has been asigned a value) and false otherwise
 boolean isSetKey_cache_size()
          Returns true if field key_cache_size is set (has been asigned a value) and false otherwise
 boolean isSetKeyspace()
          Returns true if field keyspace is set (has been asigned a value) and false otherwise
 boolean isSetMax_compaction_threshold()
          Returns true if field max_compaction_threshold is set (has been asigned a value) and false otherwise
 boolean isSetMemtable_flush_after_mins()
          Returns true if field memtable_flush_after_mins is set (has been asigned a value) and false otherwise
 boolean isSetMemtable_operations_in_millions()
          Returns true if field memtable_operations_in_millions is set (has been asigned a value) and false otherwise
 boolean isSetMemtable_throughput_in_mb()
          Returns true if field memtable_throughput_in_mb is set (has been asigned a value) and false otherwise
 boolean isSetMin_compaction_threshold()
          Returns true if field min_compaction_threshold is set (has been asigned a value) and false otherwise
 boolean isSetName()
          Returns true if field name is set (has been asigned a value) and false otherwise
 boolean isSetRead_repair_chance()
          Returns true if field read_repair_chance is set (has been asigned a value) and false otherwise
 boolean isSetRow_cache_save_period_in_seconds()
          Returns true if field row_cache_save_period_in_seconds is set (has been asigned a value) and false otherwise
 boolean isSetRow_cache_size()
          Returns true if field row_cache_size is set (has been asigned a value) and false otherwise
 boolean isSetSubcomparator_type()
          Returns true if field subcomparator_type is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 CfDef setColumn_metadata(java.util.List<ColumnDef> column_metadata)
           
 void setColumn_metadataIsSet(boolean value)
           
 CfDef setColumn_type(java.lang.String column_type)
           
 void setColumn_typeIsSet(boolean value)
           
 CfDef setComment(java.lang.String comment)
           
 void setCommentIsSet(boolean value)
           
 CfDef setComparator_type(java.lang.String comparator_type)
           
 void setComparator_typeIsSet(boolean value)
           
 CfDef setDefault_validation_class(java.lang.String default_validation_class)
           
 void setDefault_validation_classIsSet(boolean value)
           
 void setFieldValue(CfDef._Fields field, java.lang.Object value)
           
 CfDef setGc_grace_seconds(int gc_grace_seconds)
           
 void setGc_grace_secondsIsSet(boolean value)
           
 CfDef setId(int id)
           
 void setIdIsSet(boolean value)
           
 CfDef setKey_cache_save_period_in_seconds(int key_cache_save_period_in_seconds)
           
 void setKey_cache_save_period_in_secondsIsSet(boolean value)
           
 CfDef setKey_cache_size(double key_cache_size)
           
 void setKey_cache_sizeIsSet(boolean value)
           
 CfDef setKeyspace(java.lang.String keyspace)
           
 void setKeyspaceIsSet(boolean value)
           
 CfDef setMax_compaction_threshold(int max_compaction_threshold)
           
 void setMax_compaction_thresholdIsSet(boolean value)
           
 CfDef setMemtable_flush_after_mins(int memtable_flush_after_mins)
           
 void setMemtable_flush_after_minsIsSet(boolean value)
           
 CfDef setMemtable_operations_in_millions(double memtable_operations_in_millions)
           
 void setMemtable_operations_in_millionsIsSet(boolean value)
           
 CfDef setMemtable_throughput_in_mb(int memtable_throughput_in_mb)
           
 void setMemtable_throughput_in_mbIsSet(boolean value)
           
 CfDef setMin_compaction_threshold(int min_compaction_threshold)
           
 void setMin_compaction_thresholdIsSet(boolean value)
           
 CfDef setName(java.lang.String name)
           
 void setNameIsSet(boolean value)
           
 CfDef setRead_repair_chance(double read_repair_chance)
           
 void setRead_repair_chanceIsSet(boolean value)
           
 CfDef setRow_cache_save_period_in_seconds(int row_cache_save_period_in_seconds)
           
 void setRow_cache_save_period_in_secondsIsSet(boolean value)
           
 CfDef setRow_cache_size(double row_cache_size)
           
 void setRow_cache_sizeIsSet(boolean value)
           
 CfDef setSubcomparator_type(java.lang.String subcomparator_type)
           
 void setSubcomparator_typeIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetColumn_metadata()
           
 void unsetColumn_type()
           
 void unsetComment()
           
 void unsetComparator_type()
           
 void unsetDefault_validation_class()
           
 void unsetGc_grace_seconds()
           
 void unsetId()
           
 void unsetKey_cache_save_period_in_seconds()
           
 void unsetKey_cache_size()
           
 void unsetKeyspace()
           
 void unsetMax_compaction_threshold()
           
 void unsetMemtable_flush_after_mins()
           
 void unsetMemtable_operations_in_millions()
           
 void unsetMemtable_throughput_in_mb()
           
 void unsetMin_compaction_threshold()
           
 void unsetName()
           
 void unsetRead_repair_chance()
           
 void unsetRow_cache_save_period_in_seconds()
           
 void unsetRow_cache_size()
           
 void unsetSubcomparator_type()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

keyspace

public java.lang.String keyspace

name

public java.lang.String name

column_type

public java.lang.String column_type

comparator_type

public java.lang.String comparator_type

subcomparator_type

public java.lang.String subcomparator_type

comment

public java.lang.String comment

row_cache_size

public double row_cache_size

key_cache_size

public double key_cache_size

read_repair_chance

public double read_repair_chance

column_metadata

public java.util.List<ColumnDef> column_metadata

gc_grace_seconds

public int gc_grace_seconds

default_validation_class

public java.lang.String default_validation_class

id

public int id

min_compaction_threshold

public int min_compaction_threshold

max_compaction_threshold

public int max_compaction_threshold

row_cache_save_period_in_seconds

public int row_cache_save_period_in_seconds

key_cache_save_period_in_seconds

public int key_cache_save_period_in_seconds

memtable_flush_after_mins

public int memtable_flush_after_mins

memtable_throughput_in_mb

public int memtable_throughput_in_mb

memtable_operations_in_millions

public double memtable_operations_in_millions

metaDataMap

public static final java.util.Map<CfDef._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

CfDef

public CfDef()

CfDef

public CfDef(java.lang.String keyspace,
             java.lang.String name)

CfDef

public CfDef(CfDef other)
Performs a deep copy on other.

Method Detail

deepCopy

public CfDef deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<CfDef,CfDef._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<CfDef,CfDef._Fields>

getKeyspace

public java.lang.String getKeyspace()

setKeyspace

public CfDef setKeyspace(java.lang.String keyspace)

unsetKeyspace

public void unsetKeyspace()

isSetKeyspace

public boolean isSetKeyspace()
Returns true if field keyspace is set (has been asigned a value) and false otherwise


setKeyspaceIsSet

public void setKeyspaceIsSet(boolean value)

getName

public java.lang.String getName()

setName

public CfDef setName(java.lang.String name)

unsetName

public void unsetName()

isSetName

public boolean isSetName()
Returns true if field name is set (has been asigned a value) and false otherwise


setNameIsSet

public void setNameIsSet(boolean value)

getColumn_type

public java.lang.String getColumn_type()

setColumn_type

public CfDef setColumn_type(java.lang.String column_type)

unsetColumn_type

public void unsetColumn_type()

isSetColumn_type

public boolean isSetColumn_type()
Returns true if field column_type is set (has been asigned a value) and false otherwise


setColumn_typeIsSet

public void setColumn_typeIsSet(boolean value)

getComparator_type

public java.lang.String getComparator_type()

setComparator_type

public CfDef setComparator_type(java.lang.String comparator_type)

unsetComparator_type

public void unsetComparator_type()

isSetComparator_type

public boolean isSetComparator_type()
Returns true if field comparator_type is set (has been asigned a value) and false otherwise


setComparator_typeIsSet

public void setComparator_typeIsSet(boolean value)

getSubcomparator_type

public java.lang.String getSubcomparator_type()

setSubcomparator_type

public CfDef setSubcomparator_type(java.lang.String subcomparator_type)

unsetSubcomparator_type

public void unsetSubcomparator_type()

isSetSubcomparator_type

public boolean isSetSubcomparator_type()
Returns true if field subcomparator_type is set (has been asigned a value) and false otherwise


setSubcomparator_typeIsSet

public void setSubcomparator_typeIsSet(boolean value)

getComment

public java.lang.String getComment()

setComment

public CfDef setComment(java.lang.String comment)

unsetComment

public void unsetComment()

isSetComment

public boolean isSetComment()
Returns true if field comment is set (has been asigned a value) and false otherwise


setCommentIsSet

public void setCommentIsSet(boolean value)

getRow_cache_size

public double getRow_cache_size()

setRow_cache_size

public CfDef setRow_cache_size(double row_cache_size)

unsetRow_cache_size

public void unsetRow_cache_size()

isSetRow_cache_size

public boolean isSetRow_cache_size()
Returns true if field row_cache_size is set (has been asigned a value) and false otherwise


setRow_cache_sizeIsSet

public void setRow_cache_sizeIsSet(boolean value)

getKey_cache_size

public double getKey_cache_size()

setKey_cache_size

public CfDef setKey_cache_size(double key_cache_size)

unsetKey_cache_size

public void unsetKey_cache_size()

isSetKey_cache_size

public boolean isSetKey_cache_size()
Returns true if field key_cache_size is set (has been asigned a value) and false otherwise


setKey_cache_sizeIsSet

public void setKey_cache_sizeIsSet(boolean value)

getRead_repair_chance

public double getRead_repair_chance()

setRead_repair_chance

public CfDef setRead_repair_chance(double read_repair_chance)

unsetRead_repair_chance

public void unsetRead_repair_chance()

isSetRead_repair_chance

public boolean isSetRead_repair_chance()
Returns true if field read_repair_chance is set (has been asigned a value) and false otherwise


setRead_repair_chanceIsSet

public void setRead_repair_chanceIsSet(boolean value)

getColumn_metadataSize

public int getColumn_metadataSize()

getColumn_metadataIterator

public java.util.Iterator<ColumnDef> getColumn_metadataIterator()

addToColumn_metadata

public void addToColumn_metadata(ColumnDef elem)

getColumn_metadata

public java.util.List<ColumnDef> getColumn_metadata()

setColumn_metadata

public CfDef setColumn_metadata(java.util.List<ColumnDef> column_metadata)

unsetColumn_metadata

public void unsetColumn_metadata()

isSetColumn_metadata

public boolean isSetColumn_metadata()
Returns true if field column_metadata is set (has been asigned a value) and false otherwise


setColumn_metadataIsSet

public void setColumn_metadataIsSet(boolean value)

getGc_grace_seconds

public int getGc_grace_seconds()

setGc_grace_seconds

public CfDef setGc_grace_seconds(int gc_grace_seconds)

unsetGc_grace_seconds

public void unsetGc_grace_seconds()

isSetGc_grace_seconds

public boolean isSetGc_grace_seconds()
Returns true if field gc_grace_seconds is set (has been asigned a value) and false otherwise


setGc_grace_secondsIsSet

public void setGc_grace_secondsIsSet(boolean value)

getDefault_validation_class

public java.lang.String getDefault_validation_class()

setDefault_validation_class

public CfDef setDefault_validation_class(java.lang.String default_validation_class)

unsetDefault_validation_class

public void unsetDefault_validation_class()

isSetDefault_validation_class

public boolean isSetDefault_validation_class()
Returns true if field default_validation_class is set (has been asigned a value) and false otherwise


setDefault_validation_classIsSet

public void setDefault_validation_classIsSet(boolean value)

getId

public int getId()

setId

public CfDef setId(int id)

unsetId

public void unsetId()

isSetId

public boolean isSetId()
Returns true if field id is set (has been asigned a value) and false otherwise


setIdIsSet

public void setIdIsSet(boolean value)

getMin_compaction_threshold

public int getMin_compaction_threshold()

setMin_compaction_threshold

public CfDef setMin_compaction_threshold(int min_compaction_threshold)

unsetMin_compaction_threshold

public void unsetMin_compaction_threshold()

isSetMin_compaction_threshold

public boolean isSetMin_compaction_threshold()
Returns true if field min_compaction_threshold is set (has been asigned a value) and false otherwise


setMin_compaction_thresholdIsSet

public void setMin_compaction_thresholdIsSet(boolean value)

getMax_compaction_threshold

public int getMax_compaction_threshold()

setMax_compaction_threshold

public CfDef setMax_compaction_threshold(int max_compaction_threshold)

unsetMax_compaction_threshold

public void unsetMax_compaction_threshold()

isSetMax_compaction_threshold

public boolean isSetMax_compaction_threshold()
Returns true if field max_compaction_threshold is set (has been asigned a value) and false otherwise


setMax_compaction_thresholdIsSet

public void setMax_compaction_thresholdIsSet(boolean value)

getRow_cache_save_period_in_seconds

public int getRow_cache_save_period_in_seconds()

setRow_cache_save_period_in_seconds

public CfDef setRow_cache_save_period_in_seconds(int row_cache_save_period_in_seconds)

unsetRow_cache_save_period_in_seconds

public void unsetRow_cache_save_period_in_seconds()

isSetRow_cache_save_period_in_seconds

public boolean isSetRow_cache_save_period_in_seconds()
Returns true if field row_cache_save_period_in_seconds is set (has been asigned a value) and false otherwise


setRow_cache_save_period_in_secondsIsSet

public void setRow_cache_save_period_in_secondsIsSet(boolean value)

getKey_cache_save_period_in_seconds

public int getKey_cache_save_period_in_seconds()

setKey_cache_save_period_in_seconds

public CfDef setKey_cache_save_period_in_seconds(int key_cache_save_period_in_seconds)

unsetKey_cache_save_period_in_seconds

public void unsetKey_cache_save_period_in_seconds()

isSetKey_cache_save_period_in_seconds

public boolean isSetKey_cache_save_period_in_seconds()
Returns true if field key_cache_save_period_in_seconds is set (has been asigned a value) and false otherwise


setKey_cache_save_period_in_secondsIsSet

public void setKey_cache_save_period_in_secondsIsSet(boolean value)

getMemtable_flush_after_mins

public int getMemtable_flush_after_mins()

setMemtable_flush_after_mins

public CfDef setMemtable_flush_after_mins(int memtable_flush_after_mins)

unsetMemtable_flush_after_mins

public void unsetMemtable_flush_after_mins()

isSetMemtable_flush_after_mins

public boolean isSetMemtable_flush_after_mins()
Returns true if field memtable_flush_after_mins is set (has been asigned a value) and false otherwise


setMemtable_flush_after_minsIsSet

public void setMemtable_flush_after_minsIsSet(boolean value)

getMemtable_throughput_in_mb

public int getMemtable_throughput_in_mb()

setMemtable_throughput_in_mb

public CfDef setMemtable_throughput_in_mb(int memtable_throughput_in_mb)

unsetMemtable_throughput_in_mb

public void unsetMemtable_throughput_in_mb()

isSetMemtable_throughput_in_mb

public boolean isSetMemtable_throughput_in_mb()
Returns true if field memtable_throughput_in_mb is set (has been asigned a value) and false otherwise


setMemtable_throughput_in_mbIsSet

public void setMemtable_throughput_in_mbIsSet(boolean value)

getMemtable_operations_in_millions

public double getMemtable_operations_in_millions()

setMemtable_operations_in_millions

public CfDef setMemtable_operations_in_millions(double memtable_operations_in_millions)

unsetMemtable_operations_in_millions

public void unsetMemtable_operations_in_millions()

isSetMemtable_operations_in_millions

public boolean isSetMemtable_operations_in_millions()
Returns true if field memtable_operations_in_millions is set (has been asigned a value) and false otherwise


setMemtable_operations_in_millionsIsSet

public void setMemtable_operations_in_millionsIsSet(boolean value)

setFieldValue

public void setFieldValue(CfDef._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<CfDef,CfDef._Fields>

getFieldValue

public java.lang.Object getFieldValue(CfDef._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<CfDef,CfDef._Fields>

isSet

public boolean isSet(CfDef._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<CfDef,CfDef._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(CfDef that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(CfDef other)
Specified by:
compareTo in interface java.lang.Comparable<CfDef>

fieldForId

public CfDef._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<CfDef,CfDef._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<CfDef,CfDef._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<CfDef,CfDef._Fields>
Throws:
org.apache.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2010 The Apache Software Foundation