/** * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.cassandra.thrift; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; import org.apache.thrift.scheme.TupleScheme; import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import java.util.EnumMap; import java.util.Set; import java.util.HashSet; import java.util.EnumSet; import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CfDef implements org.apache.thrift.TBase<CfDef, CfDef._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CfDef"); private static final org.apache.thrift.protocol.TField KEYSPACE_FIELD_DESC = new org.apache.thrift.protocol.TField("keyspace", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField COLUMN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("column_type", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField COMPARATOR_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("comparator_type", org.apache.thrift.protocol.TType.STRING, (short)5); private static final org.apache.thrift.protocol.TField SUBCOMPARATOR_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("subcomparator_type", org.apache.thrift.protocol.TType.STRING, (short)6); private static final org.apache.thrift.protocol.TField COMMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("comment", org.apache.thrift.protocol.TType.STRING, (short)8); private static final org.apache.thrift.protocol.TField ROW_CACHE_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("row_cache_size", org.apache.thrift.protocol.TType.DOUBLE, (short)9); private static final org.apache.thrift.protocol.TField KEY_CACHE_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("key_cache_size", org.apache.thrift.protocol.TType.DOUBLE, (short)11); private static final org.apache.thrift.protocol.TField READ_REPAIR_CHANCE_FIELD_DESC = new org.apache.thrift.protocol.TField("read_repair_chance", org.apache.thrift.protocol.TType.DOUBLE, (short)12); private static final org.apache.thrift.protocol.TField COLUMN_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("column_metadata", org.apache.thrift.protocol.TType.LIST, (short)13); private static final org.apache.thrift.protocol.TField GC_GRACE_SECONDS_FIELD_DESC = new org.apache.thrift.protocol.TField("gc_grace_seconds", org.apache.thrift.protocol.TType.I32, (short)14); private static final org.apache.thrift.protocol.TField DEFAULT_VALIDATION_CLASS_FIELD_DESC = new org.apache.thrift.protocol.TField("default_validation_class", org.apache.thrift.protocol.TType.STRING, (short)15); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)16); private static final org.apache.thrift.protocol.TField MIN_COMPACTION_THRESHOLD_FIELD_DESC = new org.apache.thrift.protocol.TField("min_compaction_threshold", org.apache.thrift.protocol.TType.I32, (short)17); private static final org.apache.thrift.protocol.TField MAX_COMPACTION_THRESHOLD_FIELD_DESC = new org.apache.thrift.protocol.TField("max_compaction_threshold", org.apache.thrift.protocol.TType.I32, (short)18); private static final org.apache.thrift.protocol.TField ROW_CACHE_SAVE_PERIOD_IN_SECONDS_FIELD_DESC = new org.apache.thrift.protocol.TField("row_cache_save_period_in_seconds", org.apache.thrift.protocol.TType.I32, (short)19); private static final org.apache.thrift.protocol.TField KEY_CACHE_SAVE_PERIOD_IN_SECONDS_FIELD_DESC = new org.apache.thrift.protocol.TField("key_cache_save_period_in_seconds", org.apache.thrift.protocol.TType.I32, (short)20); private static final org.apache.thrift.protocol.TField MEMTABLE_FLUSH_AFTER_MINS_FIELD_DESC = new org.apache.thrift.protocol.TField("memtable_flush_after_mins", org.apache.thrift.protocol.TType.I32, (short)21); private static final org.apache.thrift.protocol.TField MEMTABLE_THROUGHPUT_IN_MB_FIELD_DESC = new org.apache.thrift.protocol.TField("memtable_throughput_in_mb", org.apache.thrift.protocol.TType.I32, (short)22); private static final org.apache.thrift.protocol.TField MEMTABLE_OPERATIONS_IN_MILLIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("memtable_operations_in_millions", org.apache.thrift.protocol.TType.DOUBLE, (short)23); private static final org.apache.thrift.protocol.TField REPLICATE_ON_WRITE_FIELD_DESC = new org.apache.thrift.protocol.TField("replicate_on_write", org.apache.thrift.protocol.TType.BOOL, (short)24); private static final org.apache.thrift.protocol.TField MERGE_SHARDS_CHANCE_FIELD_DESC = new org.apache.thrift.protocol.TField("merge_shards_chance", org.apache.thrift.protocol.TType.DOUBLE, (short)25); private static final org.apache.thrift.protocol.TField KEY_VALIDATION_CLASS_FIELD_DESC = new org.apache.thrift.protocol.TField("key_validation_class", org.apache.thrift.protocol.TType.STRING, (short)26); private static final org.apache.thrift.protocol.TField ROW_CACHE_PROVIDER_FIELD_DESC = new org.apache.thrift.protocol.TField("row_cache_provider", org.apache.thrift.protocol.TType.STRING, (short)27); private static final org.apache.thrift.protocol.TField KEY_ALIAS_FIELD_DESC = new org.apache.thrift.protocol.TField("key_alias", org.apache.thrift.protocol.TType.STRING, (short)28); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new CfDefStandardSchemeFactory()); schemes.put(TupleScheme.class, new CfDefTupleSchemeFactory()); } public String keyspace; // required public String name; // required public String column_type; // optional public String comparator_type; // optional public String subcomparator_type; // optional public String comment; // optional public double row_cache_size; // optional public double key_cache_size; // optional public double read_repair_chance; // optional public List<ColumnDef> column_metadata; // optional public int gc_grace_seconds; // optional public String default_validation_class; // optional public int id; // optional public int min_compaction_threshold; // optional public int max_compaction_threshold; // optional public int row_cache_save_period_in_seconds; // optional public int key_cache_save_period_in_seconds; // optional public int memtable_flush_after_mins; // optional public int memtable_throughput_in_mb; // optional public double memtable_operations_in_millions; // optional public boolean replicate_on_write; // optional public double merge_shards_chance; // optional public String key_validation_class; // optional public String row_cache_provider; // optional public ByteBuffer key_alias; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYSPACE((short)1, "keyspace"), NAME((short)2, "name"), COLUMN_TYPE((short)3, "column_type"), COMPARATOR_TYPE((short)5, "comparator_type"), SUBCOMPARATOR_TYPE((short)6, "subcomparator_type"), COMMENT((short)8, "comment"), ROW_CACHE_SIZE((short)9, "row_cache_size"), KEY_CACHE_SIZE((short)11, "key_cache_size"), READ_REPAIR_CHANCE((short)12, "read_repair_chance"), COLUMN_METADATA((short)13, "column_metadata"), GC_GRACE_SECONDS((short)14, "gc_grace_seconds"), DEFAULT_VALIDATION_CLASS((short)15, "default_validation_class"), ID((short)16, "id"), MIN_COMPACTION_THRESHOLD((short)17, "min_compaction_threshold"), MAX_COMPACTION_THRESHOLD((short)18, "max_compaction_threshold"), ROW_CACHE_SAVE_PERIOD_IN_SECONDS((short)19, "row_cache_save_period_in_seconds"), KEY_CACHE_SAVE_PERIOD_IN_SECONDS((short)20, "key_cache_save_period_in_seconds"), MEMTABLE_FLUSH_AFTER_MINS((short)21, "memtable_flush_after_mins"), MEMTABLE_THROUGHPUT_IN_MB((short)22, "memtable_throughput_in_mb"), MEMTABLE_OPERATIONS_IN_MILLIONS((short)23, "memtable_operations_in_millions"), REPLICATE_ON_WRITE((short)24, "replicate_on_write"), MERGE_SHARDS_CHANCE((short)25, "merge_shards_chance"), KEY_VALIDATION_CLASS((short)26, "key_validation_class"), ROW_CACHE_PROVIDER((short)27, "row_cache_provider"), KEY_ALIAS((short)28, "key_alias"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // KEYSPACE return KEYSPACE; case 2: // NAME return NAME; case 3: // COLUMN_TYPE return COLUMN_TYPE; case 5: // COMPARATOR_TYPE return COMPARATOR_TYPE; case 6: // SUBCOMPARATOR_TYPE return SUBCOMPARATOR_TYPE; case 8: // COMMENT return COMMENT; case 9: // ROW_CACHE_SIZE return ROW_CACHE_SIZE; case 11: // KEY_CACHE_SIZE return KEY_CACHE_SIZE; case 12: // READ_REPAIR_CHANCE return READ_REPAIR_CHANCE; case 13: // COLUMN_METADATA return COLUMN_METADATA; case 14: // GC_GRACE_SECONDS return GC_GRACE_SECONDS; case 15: // DEFAULT_VALIDATION_CLASS return DEFAULT_VALIDATION_CLASS; case 16: // ID return ID; case 17: // MIN_COMPACTION_THRESHOLD return MIN_COMPACTION_THRESHOLD; case 18: // MAX_COMPACTION_THRESHOLD return MAX_COMPACTION_THRESHOLD; case 19: // ROW_CACHE_SAVE_PERIOD_IN_SECONDS return ROW_CACHE_SAVE_PERIOD_IN_SECONDS; case 20: // KEY_CACHE_SAVE_PERIOD_IN_SECONDS return KEY_CACHE_SAVE_PERIOD_IN_SECONDS; case 21: // MEMTABLE_FLUSH_AFTER_MINS return MEMTABLE_FLUSH_AFTER_MINS; case 22: // MEMTABLE_THROUGHPUT_IN_MB return MEMTABLE_THROUGHPUT_IN_MB; case 23: // MEMTABLE_OPERATIONS_IN_MILLIONS return MEMTABLE_OPERATIONS_IN_MILLIONS; case 24: // REPLICATE_ON_WRITE return REPLICATE_ON_WRITE; case 25: // MERGE_SHARDS_CHANCE return MERGE_SHARDS_CHANCE; case 26: // KEY_VALIDATION_CLASS return KEY_VALIDATION_CLASS; case 27: // ROW_CACHE_PROVIDER return ROW_CACHE_PROVIDER; case 28: // KEY_ALIAS return KEY_ALIAS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __ROW_CACHE_SIZE_ISSET_ID = 0; private static final int __KEY_CACHE_SIZE_ISSET_ID = 1; private static final int __READ_REPAIR_CHANCE_ISSET_ID = 2; private static final int __GC_GRACE_SECONDS_ISSET_ID = 3; private static final int __ID_ISSET_ID = 4; private static final int __MIN_COMPACTION_THRESHOLD_ISSET_ID = 5; private static final int __MAX_COMPACTION_THRESHOLD_ISSET_ID = 6; private static final int __ROW_CACHE_SAVE_PERIOD_IN_SECONDS_ISSET_ID = 7; private static final int __KEY_CACHE_SAVE_PERIOD_IN_SECONDS_ISSET_ID = 8; private static final int __MEMTABLE_FLUSH_AFTER_MINS_ISSET_ID = 9; private static final int __MEMTABLE_THROUGHPUT_IN_MB_ISSET_ID = 10; private static final int __MEMTABLE_OPERATIONS_IN_MILLIONS_ISSET_ID = 11; private static final int __REPLICATE_ON_WRITE_ISSET_ID = 12; private static final int __MERGE_SHARDS_CHANCE_ISSET_ID = 13; private short __isset_bitfield = 0; private _Fields optionals[] = {_Fields.COLUMN_TYPE,_Fields.COMPARATOR_TYPE,_Fields.SUBCOMPARATOR_TYPE,_Fields.COMMENT,_Fields.ROW_CACHE_SIZE,_Fields.KEY_CACHE_SIZE,_Fields.READ_REPAIR_CHANCE,_Fields.COLUMN_METADATA,_Fields.GC_GRACE_SECONDS,_Fields.DEFAULT_VALIDATION_CLASS,_Fields.ID,_Fields.MIN_COMPACTION_THRESHOLD,_Fields.MAX_COMPACTION_THRESHOLD,_Fields.ROW_CACHE_SAVE_PERIOD_IN_SECONDS,_Fields.KEY_CACHE_SAVE_PERIOD_IN_SECONDS,_Fields.MEMTABLE_FLUSH_AFTER_MINS,_Fields.MEMTABLE_THROUGHPUT_IN_MB,_Fields.MEMTABLE_OPERATIONS_IN_MILLIONS,_Fields.REPLICATE_ON_WRITE,_Fields.MERGE_SHARDS_CHANCE,_Fields.KEY_VALIDATION_CLASS,_Fields.ROW_CACHE_PROVIDER,_Fields.KEY_ALIAS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.KEYSPACE, new org.apache.thrift.meta_data.FieldMetaData("keyspace", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.COLUMN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("column_type", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.COMPARATOR_TYPE, new org.apache.thrift.meta_data.FieldMetaData("comparator_type", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.SUBCOMPARATOR_TYPE, new org.apache.thrift.meta_data.FieldMetaData("subcomparator_type", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ROW_CACHE_SIZE, new org.apache.thrift.meta_data.FieldMetaData("row_cache_size", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))); tmpMap.put(_Fields.KEY_CACHE_SIZE, new org.apache.thrift.meta_data.FieldMetaData("key_cache_size", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))); tmpMap.put(_Fields.READ_REPAIR_CHANCE, new org.apache.thrift.meta_data.FieldMetaData("read_repair_chance", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))); tmpMap.put(_Fields.COLUMN_METADATA, new org.apache.thrift.meta_data.FieldMetaData("column_metadata", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDef.class)))); tmpMap.put(_Fields.GC_GRACE_SECONDS, new org.apache.thrift.meta_data.FieldMetaData("gc_grace_seconds", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.DEFAULT_VALIDATION_CLASS, new org.apache.thrift.meta_data.FieldMetaData("default_validation_class", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.MIN_COMPACTION_THRESHOLD, new org.apache.thrift.meta_data.FieldMetaData("min_compaction_threshold", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.MAX_COMPACTION_THRESHOLD, new org.apache.thrift.meta_data.FieldMetaData("max_compaction_threshold", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.ROW_CACHE_SAVE_PERIOD_IN_SECONDS, new org.apache.thrift.meta_data.FieldMetaData("row_cache_save_period_in_seconds", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.KEY_CACHE_SAVE_PERIOD_IN_SECONDS, new org.apache.thrift.meta_data.FieldMetaData("key_cache_save_period_in_seconds", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.MEMTABLE_FLUSH_AFTER_MINS, new org.apache.thrift.meta_data.FieldMetaData("memtable_flush_after_mins", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.MEMTABLE_THROUGHPUT_IN_MB, new org.apache.thrift.meta_data.FieldMetaData("memtable_throughput_in_mb", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.MEMTABLE_OPERATIONS_IN_MILLIONS, new org.apache.thrift.meta_data.FieldMetaData("memtable_operations_in_millions", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))); tmpMap.put(_Fields.REPLICATE_ON_WRITE, new org.apache.thrift.meta_data.FieldMetaData("replicate_on_write", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.MERGE_SHARDS_CHANCE, new org.apache.thrift.meta_data.FieldMetaData("merge_shards_chance", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))); tmpMap.put(_Fields.KEY_VALIDATION_CLASS, new org.apache.thrift.meta_data.FieldMetaData("key_validation_class", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ROW_CACHE_PROVIDER, new org.apache.thrift.meta_data.FieldMetaData("row_cache_provider", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.KEY_ALIAS, new org.apache.thrift.meta_data.FieldMetaData("key_alias", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CfDef.class, metaDataMap); } public CfDef() { this.column_type = "Standard"; this.comparator_type = "BytesType"; this.row_cache_size = (double)0; this.key_cache_size = (double)200000; this.read_repair_chance = 1; this.row_cache_provider = "org.apache.cassandra.cache.ConcurrentLinkedHashCacheProvider"; } public CfDef( String keyspace, String name) { this(); this.keyspace = keyspace; this.name = name; } /** * Performs a deep copy on <i>other</i>. */ public CfDef(CfDef other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeyspace()) { this.keyspace = other.keyspace; } if (other.isSetName()) { this.name = other.name; } if (other.isSetColumn_type()) { this.column_type = other.column_type; } if (other.isSetComparator_type()) { this.comparator_type = other.comparator_type; } if (other.isSetSubcomparator_type()) { this.subcomparator_type = other.subcomparator_type; } if (other.isSetComment()) { this.comment = other.comment; } this.row_cache_size = other.row_cache_size; this.key_cache_size = other.key_cache_size; this.read_repair_chance = other.read_repair_chance; if (other.isSetColumn_metadata()) { List<ColumnDef> __this__column_metadata = new ArrayList<ColumnDef>(); for (ColumnDef other_element : other.column_metadata) { __this__column_metadata.add(new ColumnDef(other_element)); } this.column_metadata = __this__column_metadata; } this.gc_grace_seconds = other.gc_grace_seconds; if (other.isSetDefault_validation_class()) { this.default_validation_class = other.default_validation_class; } this.id = other.id; this.min_compaction_threshold = other.min_compaction_threshold; this.max_compaction_threshold = other.max_compaction_threshold; this.row_cache_save_period_in_seconds = other.row_cache_save_period_in_seconds; this.key_cache_save_period_in_seconds = other.key_cache_save_period_in_seconds; this.memtable_flush_after_mins = other.memtable_flush_after_mins; this.memtable_throughput_in_mb = other.memtable_throughput_in_mb; this.memtable_operations_in_millions = other.memtable_operations_in_millions; this.replicate_on_write = other.replicate_on_write; this.merge_shards_chance = other.merge_shards_chance; if (other.isSetKey_validation_class()) { this.key_validation_class = other.key_validation_class; } if (other.isSetRow_cache_provider()) { this.row_cache_provider = other.row_cache_provider; } if (other.isSetKey_alias()) { this.key_alias = org.apache.thrift.TBaseHelper.copyBinary(other.key_alias); ; } } public CfDef deepCopy() { return new CfDef(this); } @Override public void clear() { this.keyspace = null; this.name = null; this.column_type = "Standard"; this.comparator_type = "BytesType"; this.subcomparator_type = null; this.comment = null; this.row_cache_size = (double)0; this.key_cache_size = (double)200000; this.read_repair_chance = 1; this.column_metadata = null; setGc_grace_secondsIsSet(false); this.gc_grace_seconds = 0; this.default_validation_class = null; setIdIsSet(false); this.id = 0; setMin_compaction_thresholdIsSet(false); this.min_compaction_threshold = 0; setMax_compaction_thresholdIsSet(false); this.max_compaction_threshold = 0; setRow_cache_save_period_in_secondsIsSet(false); this.row_cache_save_period_in_seconds = 0; setKey_cache_save_period_in_secondsIsSet(false); this.key_cache_save_period_in_seconds = 0; setMemtable_flush_after_minsIsSet(false); this.memtable_flush_after_mins = 0; setMemtable_throughput_in_mbIsSet(false); this.memtable_throughput_in_mb = 0; setMemtable_operations_in_millionsIsSet(false); this.memtable_operations_in_millions = 0.0; setReplicate_on_writeIsSet(false); this.replicate_on_write = false; setMerge_shards_chanceIsSet(false); this.merge_shards_chance = 0.0; this.key_validation_class = null; this.row_cache_provider = "org.apache.cassandra.cache.ConcurrentLinkedHashCacheProvider"; this.key_alias = null; } public String getKeyspace() { return this.keyspace; } public CfDef setKeyspace(String keyspace) { this.keyspace = keyspace; return this; } public void unsetKeyspace() { this.keyspace = null; } /** Returns true if field keyspace is set (has been assigned a value) and false otherwise */ public boolean isSetKeyspace() { return this.keyspace != null; } public void setKeyspaceIsSet(boolean value) { if (!value) { this.keyspace = null; } } public String getName() { return this.name; } public CfDef setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public String getColumn_type() { return this.column_type; } public CfDef setColumn_type(String column_type) { this.column_type = column_type; return this; } public void unsetColumn_type() { this.column_type = null; } /** Returns true if field column_type is set (has been assigned a value) and false otherwise */ public boolean isSetColumn_type() { return this.column_type != null; } public void setColumn_typeIsSet(boolean value) { if (!value) { this.column_type = null; } } public String getComparator_type() { return this.comparator_type; } public CfDef setComparator_type(String comparator_type) { this.comparator_type = comparator_type; return this; } public void unsetComparator_type() { this.comparator_type = null; } /** Returns true if field comparator_type is set (has been assigned a value) and false otherwise */ public boolean isSetComparator_type() { return this.comparator_type != null; } public void setComparator_typeIsSet(boolean value) { if (!value) { this.comparator_type = null; } } public String getSubcomparator_type() { return this.subcomparator_type; } public CfDef setSubcomparator_type(String subcomparator_type) { this.subcomparator_type = subcomparator_type; return this; } public void unsetSubcomparator_type() { this.subcomparator_type = null; } /** Returns true if field subcomparator_type is set (has been assigned a value) and false otherwise */ public boolean isSetSubcomparator_type() { return this.subcomparator_type != null; } public void setSubcomparator_typeIsSet(boolean value) { if (!value) { this.subcomparator_type = null; } } public String getComment() { return this.comment; } public CfDef setComment(String comment) { this.comment = comment; return this; } public void unsetComment() { this.comment = null; } /** Returns true if field comment is set (has been assigned a value) and false otherwise */ public boolean isSetComment() { return this.comment != null; } public void setCommentIsSet(boolean value) { if (!value) { this.comment = null; } } public double getRow_cache_size() { return this.row_cache_size; } public CfDef setRow_cache_size(double row_cache_size) { this.row_cache_size = row_cache_size; setRow_cache_sizeIsSet(true); return this; } public void unsetRow_cache_size() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ROW_CACHE_SIZE_ISSET_ID); } /** Returns true if field row_cache_size is set (has been assigned a value) and false otherwise */ public boolean isSetRow_cache_size() { return EncodingUtils.testBit(__isset_bitfield, __ROW_CACHE_SIZE_ISSET_ID); } public void setRow_cache_sizeIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ROW_CACHE_SIZE_ISSET_ID, value); } public double getKey_cache_size() { return this.key_cache_size; } public CfDef setKey_cache_size(double key_cache_size) { this.key_cache_size = key_cache_size; setKey_cache_sizeIsSet(true); return this; } public void unsetKey_cache_size() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEY_CACHE_SIZE_ISSET_ID); } /** Returns true if field key_cache_size is set (has been assigned a value) and false otherwise */ public boolean isSetKey_cache_size() { return EncodingUtils.testBit(__isset_bitfield, __KEY_CACHE_SIZE_ISSET_ID); } public void setKey_cache_sizeIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEY_CACHE_SIZE_ISSET_ID, value); } public double getRead_repair_chance() { return this.read_repair_chance; } public CfDef setRead_repair_chance(double read_repair_chance) { this.read_repair_chance = read_repair_chance; setRead_repair_chanceIsSet(true); return this; } public void unsetRead_repair_chance() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __READ_REPAIR_CHANCE_ISSET_ID); } /** Returns true if field read_repair_chance is set (has been assigned a value) and false otherwise */ public boolean isSetRead_repair_chance() { return EncodingUtils.testBit(__isset_bitfield, __READ_REPAIR_CHANCE_ISSET_ID); } public void setRead_repair_chanceIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __READ_REPAIR_CHANCE_ISSET_ID, value); } public int getColumn_metadataSize() { return (this.column_metadata == null) ? 0 : this.column_metadata.size(); } public java.util.Iterator<ColumnDef> getColumn_metadataIterator() { return (this.column_metadata == null) ? null : this.column_metadata.iterator(); } public void addToColumn_metadata(ColumnDef elem) { if (this.column_metadata == null) { this.column_metadata = new ArrayList<ColumnDef>(); } this.column_metadata.add(elem); } public List<ColumnDef> getColumn_metadata() { return this.column_metadata; } public CfDef setColumn_metadata(List<ColumnDef> column_metadata) { this.column_metadata = column_metadata; return this; } public void unsetColumn_metadata() { this.column_metadata = null; } /** Returns true if field column_metadata is set (has been assigned a value) and false otherwise */ public boolean isSetColumn_metadata() { return this.column_metadata != null; } public void setColumn_metadataIsSet(boolean value) { if (!value) { this.column_metadata = null; } } public int getGc_grace_seconds() { return this.gc_grace_seconds; } public CfDef setGc_grace_seconds(int gc_grace_seconds) { this.gc_grace_seconds = gc_grace_seconds; setGc_grace_secondsIsSet(true); return this; } public void unsetGc_grace_seconds() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __GC_GRACE_SECONDS_ISSET_ID); } /** Returns true if field gc_grace_seconds is set (has been assigned a value) and false otherwise */ public boolean isSetGc_grace_seconds() { return EncodingUtils.testBit(__isset_bitfield, __GC_GRACE_SECONDS_ISSET_ID); } public void setGc_grace_secondsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __GC_GRACE_SECONDS_ISSET_ID, value); } public String getDefault_validation_class() { return this.default_validation_class; } public CfDef setDefault_validation_class(String default_validation_class) { this.default_validation_class = default_validation_class; return this; } public void unsetDefault_validation_class() { this.default_validation_class = null; } /** Returns true if field default_validation_class is set (has been assigned a value) and false otherwise */ public boolean isSetDefault_validation_class() { return this.default_validation_class != null; } public void setDefault_validation_classIsSet(boolean value) { if (!value) { this.default_validation_class = null; } } public int getId() { return this.id; } public CfDef setId(int id) { this.id = id; setIdIsSet(true); return this; } public void unsetId() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID); } /** Returns true if field id is set (has been assigned a value) and false otherwise */ public boolean isSetId() { return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID); } public void setIdIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value); } public int getMin_compaction_threshold() { return this.min_compaction_threshold; } public CfDef setMin_compaction_threshold(int min_compaction_threshold) { this.min_compaction_threshold = min_compaction_threshold; setMin_compaction_thresholdIsSet(true); return this; } public void unsetMin_compaction_threshold() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MIN_COMPACTION_THRESHOLD_ISSET_ID); } /** Returns true if field min_compaction_threshold is set (has been assigned a value) and false otherwise */ public boolean isSetMin_compaction_threshold() { return EncodingUtils.testBit(__isset_bitfield, __MIN_COMPACTION_THRESHOLD_ISSET_ID); } public void setMin_compaction_thresholdIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MIN_COMPACTION_THRESHOLD_ISSET_ID, value); } public int getMax_compaction_threshold() { return this.max_compaction_threshold; } public CfDef setMax_compaction_threshold(int max_compaction_threshold) { this.max_compaction_threshold = max_compaction_threshold; setMax_compaction_thresholdIsSet(true); return this; } public void unsetMax_compaction_threshold() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_COMPACTION_THRESHOLD_ISSET_ID); } /** Returns true if field max_compaction_threshold is set (has been assigned a value) and false otherwise */ public boolean isSetMax_compaction_threshold() { return EncodingUtils.testBit(__isset_bitfield, __MAX_COMPACTION_THRESHOLD_ISSET_ID); } public void setMax_compaction_thresholdIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_COMPACTION_THRESHOLD_ISSET_ID, value); } public int getRow_cache_save_period_in_seconds() { return this.row_cache_save_period_in_seconds; } public CfDef setRow_cache_save_period_in_seconds(int row_cache_save_period_in_seconds) { this.row_cache_save_period_in_seconds = row_cache_save_period_in_seconds; setRow_cache_save_period_in_secondsIsSet(true); return this; } public void unsetRow_cache_save_period_in_seconds() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ROW_CACHE_SAVE_PERIOD_IN_SECONDS_ISSET_ID); } /** Returns true if field row_cache_save_period_in_seconds is set (has been assigned a value) and false otherwise */ public boolean isSetRow_cache_save_period_in_seconds() { return EncodingUtils.testBit(__isset_bitfield, __ROW_CACHE_SAVE_PERIOD_IN_SECONDS_ISSET_ID); } public void setRow_cache_save_period_in_secondsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ROW_CACHE_SAVE_PERIOD_IN_SECONDS_ISSET_ID, value); } public int getKey_cache_save_period_in_seconds() { return this.key_cache_save_period_in_seconds; } public CfDef setKey_cache_save_period_in_seconds(int key_cache_save_period_in_seconds) { this.key_cache_save_period_in_seconds = key_cache_save_period_in_seconds; setKey_cache_save_period_in_secondsIsSet(true); return this; } public void unsetKey_cache_save_period_in_seconds() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEY_CACHE_SAVE_PERIOD_IN_SECONDS_ISSET_ID); } /** Returns true if field key_cache_save_period_in_seconds is set (has been assigned a value) and false otherwise */ public boolean isSetKey_cache_save_period_in_seconds() { return EncodingUtils.testBit(__isset_bitfield, __KEY_CACHE_SAVE_PERIOD_IN_SECONDS_ISSET_ID); } public void setKey_cache_save_period_in_secondsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEY_CACHE_SAVE_PERIOD_IN_SECONDS_ISSET_ID, value); } public int getMemtable_flush_after_mins() { return this.memtable_flush_after_mins; } public CfDef setMemtable_flush_after_mins(int memtable_flush_after_mins) { this.memtable_flush_after_mins = memtable_flush_after_mins; setMemtable_flush_after_minsIsSet(true); return this; } public void unsetMemtable_flush_after_mins() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MEMTABLE_FLUSH_AFTER_MINS_ISSET_ID); } /** Returns true if field memtable_flush_after_mins is set (has been assigned a value) and false otherwise */ public boolean isSetMemtable_flush_after_mins() { return EncodingUtils.testBit(__isset_bitfield, __MEMTABLE_FLUSH_AFTER_MINS_ISSET_ID); } public void setMemtable_flush_after_minsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MEMTABLE_FLUSH_AFTER_MINS_ISSET_ID, value); } public int getMemtable_throughput_in_mb() { return this.memtable_throughput_in_mb; } public CfDef setMemtable_throughput_in_mb(int memtable_throughput_in_mb) { this.memtable_throughput_in_mb = memtable_throughput_in_mb; setMemtable_throughput_in_mbIsSet(true); return this; } public void unsetMemtable_throughput_in_mb() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MEMTABLE_THROUGHPUT_IN_MB_ISSET_ID); } /** Returns true if field memtable_throughput_in_mb is set (has been assigned a value) and false otherwise */ public boolean isSetMemtable_throughput_in_mb() { return EncodingUtils.testBit(__isset_bitfield, __MEMTABLE_THROUGHPUT_IN_MB_ISSET_ID); } public void setMemtable_throughput_in_mbIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MEMTABLE_THROUGHPUT_IN_MB_ISSET_ID, value); } public double getMemtable_operations_in_millions() { return this.memtable_operations_in_millions; } public CfDef setMemtable_operations_in_millions(double memtable_operations_in_millions) { this.memtable_operations_in_millions = memtable_operations_in_millions; setMemtable_operations_in_millionsIsSet(true); return this; } public void unsetMemtable_operations_in_millions() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MEMTABLE_OPERATIONS_IN_MILLIONS_ISSET_ID); } /** Returns true if field memtable_operations_in_millions is set (has been assigned a value) and false otherwise */ public boolean isSetMemtable_operations_in_millions() { return EncodingUtils.testBit(__isset_bitfield, __MEMTABLE_OPERATIONS_IN_MILLIONS_ISSET_ID); } public void setMemtable_operations_in_millionsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MEMTABLE_OPERATIONS_IN_MILLIONS_ISSET_ID, value); } public boolean isReplicate_on_write() { return this.replicate_on_write; } public CfDef setReplicate_on_write(boolean replicate_on_write) { this.replicate_on_write = replicate_on_write; setReplicate_on_writeIsSet(true); return this; } public void unsetReplicate_on_write() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __REPLICATE_ON_WRITE_ISSET_ID); } /** Returns true if field replicate_on_write is set (has been assigned a value) and false otherwise */ public boolean isSetReplicate_on_write() { return EncodingUtils.testBit(__isset_bitfield, __REPLICATE_ON_WRITE_ISSET_ID); } public void setReplicate_on_writeIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __REPLICATE_ON_WRITE_ISSET_ID, value); } public double getMerge_shards_chance() { return this.merge_shards_chance; } public CfDef setMerge_shards_chance(double merge_shards_chance) { this.merge_shards_chance = merge_shards_chance; setMerge_shards_chanceIsSet(true); return this; } public void unsetMerge_shards_chance() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MERGE_SHARDS_CHANCE_ISSET_ID); } /** Returns true if field merge_shards_chance is set (has been assigned a value) and false otherwise */ public boolean isSetMerge_shards_chance() { return EncodingUtils.testBit(__isset_bitfield, __MERGE_SHARDS_CHANCE_ISSET_ID); } public void setMerge_shards_chanceIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MERGE_SHARDS_CHANCE_ISSET_ID, value); } public String getKey_validation_class() { return this.key_validation_class; } public CfDef setKey_validation_class(String key_validation_class) { this.key_validation_class = key_validation_class; return this; } public void unsetKey_validation_class() { this.key_validation_class = null; } /** Returns true if field key_validation_class is set (has been assigned a value) and false otherwise */ public boolean isSetKey_validation_class() { return this.key_validation_class != null; } public void setKey_validation_classIsSet(boolean value) { if (!value) { this.key_validation_class = null; } } public String getRow_cache_provider() { return this.row_cache_provider; } public CfDef setRow_cache_provider(String row_cache_provider) { this.row_cache_provider = row_cache_provider; return this; } public void unsetRow_cache_provider() { this.row_cache_provider = null; } /** Returns true if field row_cache_provider is set (has been assigned a value) and false otherwise */ public boolean isSetRow_cache_provider() { return this.row_cache_provider != null; } public void setRow_cache_providerIsSet(boolean value) { if (!value) { this.row_cache_provider = null; } } public byte[] getKey_alias() { setKey_alias(org.apache.thrift.TBaseHelper.rightSize(key_alias)); return key_alias == null ? null : key_alias.array(); } public ByteBuffer bufferForKey_alias() { return key_alias; } public CfDef setKey_alias(byte[] key_alias) { setKey_alias(key_alias == null ? (ByteBuffer)null : ByteBuffer.wrap(key_alias)); return this; } public CfDef setKey_alias(ByteBuffer key_alias) { this.key_alias = key_alias; return this; } public void unsetKey_alias() { this.key_alias = null; } /** Returns true if field key_alias is set (has been assigned a value) and false otherwise */ public boolean isSetKey_alias() { return this.key_alias != null; } public void setKey_aliasIsSet(boolean value) { if (!value) { this.key_alias = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYSPACE: if (value == null) { unsetKeyspace(); } else { setKeyspace((String)value); } break; case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case COLUMN_TYPE: if (value == null) { unsetColumn_type(); } else { setColumn_type((String)value); } break; case COMPARATOR_TYPE: if (value == null) { unsetComparator_type(); } else { setComparator_type((String)value); } break; case SUBCOMPARATOR_TYPE: if (value == null) { unsetSubcomparator_type(); } else { setSubcomparator_type((String)value); } break; case COMMENT: if (value == null) { unsetComment(); } else { setComment((String)value); } break; case ROW_CACHE_SIZE: if (value == null) { unsetRow_cache_size(); } else { setRow_cache_size((Double)value); } break; case KEY_CACHE_SIZE: if (value == null) { unsetKey_cache_size(); } else { setKey_cache_size((Double)value); } break; case READ_REPAIR_CHANCE: if (value == null) { unsetRead_repair_chance(); } else { setRead_repair_chance((Double)value); } break; case COLUMN_METADATA: if (value == null) { unsetColumn_metadata(); } else { setColumn_metadata((List<ColumnDef>)value); } break; case GC_GRACE_SECONDS: if (value == null) { unsetGc_grace_seconds(); } else { setGc_grace_seconds((Integer)value); } break; case DEFAULT_VALIDATION_CLASS: if (value == null) { unsetDefault_validation_class(); } else { setDefault_validation_class((String)value); } break; case ID: if (value == null) { unsetId(); } else { setId((Integer)value); } break; case MIN_COMPACTION_THRESHOLD: if (value == null) { unsetMin_compaction_threshold(); } else { setMin_compaction_threshold((Integer)value); } break; case MAX_COMPACTION_THRESHOLD: if (value == null) { unsetMax_compaction_threshold(); } else { setMax_compaction_threshold((Integer)value); } break; case ROW_CACHE_SAVE_PERIOD_IN_SECONDS: if (value == null) { unsetRow_cache_save_period_in_seconds(); } else { setRow_cache_save_period_in_seconds((Integer)value); } break; case KEY_CACHE_SAVE_PERIOD_IN_SECONDS: if (value == null) { unsetKey_cache_save_period_in_seconds(); } else { setKey_cache_save_period_in_seconds((Integer)value); } break; case MEMTABLE_FLUSH_AFTER_MINS: if (value == null) { unsetMemtable_flush_after_mins(); } else { setMemtable_flush_after_mins((Integer)value); } break; case MEMTABLE_THROUGHPUT_IN_MB: if (value == null) { unsetMemtable_throughput_in_mb(); } else { setMemtable_throughput_in_mb((Integer)value); } break; case MEMTABLE_OPERATIONS_IN_MILLIONS: if (value == null) { unsetMemtable_operations_in_millions(); } else { setMemtable_operations_in_millions((Double)value); } break; case REPLICATE_ON_WRITE: if (value == null) { unsetReplicate_on_write(); } else { setReplicate_on_write((Boolean)value); } break; case MERGE_SHARDS_CHANCE: if (value == null) { unsetMerge_shards_chance(); } else { setMerge_shards_chance((Double)value); } break; case KEY_VALIDATION_CLASS: if (value == null) { unsetKey_validation_class(); } else { setKey_validation_class((String)value); } break; case ROW_CACHE_PROVIDER: if (value == null) { unsetRow_cache_provider(); } else { setRow_cache_provider((String)value); } break; case KEY_ALIAS: if (value == null) { unsetKey_alias(); } else { setKey_alias((ByteBuffer)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYSPACE: return getKeyspace(); case NAME: return getName(); case COLUMN_TYPE: return getColumn_type(); case COMPARATOR_TYPE: return getComparator_type(); case SUBCOMPARATOR_TYPE: return getSubcomparator_type(); case COMMENT: return getComment(); case ROW_CACHE_SIZE: return Double.valueOf(getRow_cache_size()); case KEY_CACHE_SIZE: return Double.valueOf(getKey_cache_size()); case READ_REPAIR_CHANCE: return Double.valueOf(getRead_repair_chance()); case COLUMN_METADATA: return getColumn_metadata(); case GC_GRACE_SECONDS: return Integer.valueOf(getGc_grace_seconds()); case DEFAULT_VALIDATION_CLASS: return getDefault_validation_class(); case ID: return Integer.valueOf(getId()); case MIN_COMPACTION_THRESHOLD: return Integer.valueOf(getMin_compaction_threshold()); case MAX_COMPACTION_THRESHOLD: return Integer.valueOf(getMax_compaction_threshold()); case ROW_CACHE_SAVE_PERIOD_IN_SECONDS: return Integer.valueOf(getRow_cache_save_period_in_seconds()); case KEY_CACHE_SAVE_PERIOD_IN_SECONDS: return Integer.valueOf(getKey_cache_save_period_in_seconds()); case MEMTABLE_FLUSH_AFTER_MINS: return Integer.valueOf(getMemtable_flush_after_mins()); case MEMTABLE_THROUGHPUT_IN_MB: return Integer.valueOf(getMemtable_throughput_in_mb()); case MEMTABLE_OPERATIONS_IN_MILLIONS: return Double.valueOf(getMemtable_operations_in_millions()); case REPLICATE_ON_WRITE: return Boolean.valueOf(isReplicate_on_write()); case MERGE_SHARDS_CHANCE: return Double.valueOf(getMerge_shards_chance()); case KEY_VALIDATION_CLASS: return getKey_validation_class(); case ROW_CACHE_PROVIDER: return getRow_cache_provider(); case KEY_ALIAS: return getKey_alias(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case KEYSPACE: return isSetKeyspace(); case NAME: return isSetName(); case COLUMN_TYPE: return isSetColumn_type(); case COMPARATOR_TYPE: return isSetComparator_type(); case SUBCOMPARATOR_TYPE: return isSetSubcomparator_type(); case COMMENT: return isSetComment(); case ROW_CACHE_SIZE: return isSetRow_cache_size(); case KEY_CACHE_SIZE: return isSetKey_cache_size(); case READ_REPAIR_CHANCE: return isSetRead_repair_chance(); case COLUMN_METADATA: return isSetColumn_metadata(); case GC_GRACE_SECONDS: return isSetGc_grace_seconds(); case DEFAULT_VALIDATION_CLASS: return isSetDefault_validation_class(); case ID: return isSetId(); case MIN_COMPACTION_THRESHOLD: return isSetMin_compaction_threshold(); case MAX_COMPACTION_THRESHOLD: return isSetMax_compaction_threshold(); case ROW_CACHE_SAVE_PERIOD_IN_SECONDS: return isSetRow_cache_save_period_in_seconds(); case KEY_CACHE_SAVE_PERIOD_IN_SECONDS: return isSetKey_cache_save_period_in_seconds(); case MEMTABLE_FLUSH_AFTER_MINS: return isSetMemtable_flush_after_mins(); case MEMTABLE_THROUGHPUT_IN_MB: return isSetMemtable_throughput_in_mb(); case MEMTABLE_OPERATIONS_IN_MILLIONS: return isSetMemtable_operations_in_millions(); case REPLICATE_ON_WRITE: return isSetReplicate_on_write(); case MERGE_SHARDS_CHANCE: return isSetMerge_shards_chance(); case KEY_VALIDATION_CLASS: return isSetKey_validation_class(); case ROW_CACHE_PROVIDER: return isSetRow_cache_provider(); case KEY_ALIAS: return isSetKey_alias(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof CfDef) return this.equals((CfDef)that); return false; } public boolean equals(CfDef that) { if (that == null) return false; boolean this_present_keyspace = true && this.isSetKeyspace(); boolean that_present_keyspace = true && that.isSetKeyspace(); if (this_present_keyspace || that_present_keyspace) { if (!(this_present_keyspace && that_present_keyspace)) return false; if (!this.keyspace.equals(that.keyspace)) return false; } boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_column_type = true && this.isSetColumn_type(); boolean that_present_column_type = true && that.isSetColumn_type(); if (this_present_column_type || that_present_column_type) { if (!(this_present_column_type && that_present_column_type)) return false; if (!this.column_type.equals(that.column_type)) return false; } boolean this_present_comparator_type = true && this.isSetComparator_type(); boolean that_present_comparator_type = true && that.isSetComparator_type(); if (this_present_comparator_type || that_present_comparator_type) { if (!(this_present_comparator_type && that_present_comparator_type)) return false; if (!this.comparator_type.equals(that.comparator_type)) return false; } boolean this_present_subcomparator_type = true && this.isSetSubcomparator_type(); boolean that_present_subcomparator_type = true && that.isSetSubcomparator_type(); if (this_present_subcomparator_type || that_present_subcomparator_type) { if (!(this_present_subcomparator_type && that_present_subcomparator_type)) return false; if (!this.subcomparator_type.equals(that.subcomparator_type)) return false; } boolean this_present_comment = true && this.isSetComment(); boolean that_present_comment = true && that.isSetComment(); if (this_present_comment || that_present_comment) { if (!(this_present_comment && that_present_comment)) return false; if (!this.comment.equals(that.comment)) return false; } boolean this_present_row_cache_size = true && this.isSetRow_cache_size(); boolean that_present_row_cache_size = true && that.isSetRow_cache_size(); if (this_present_row_cache_size || that_present_row_cache_size) { if (!(this_present_row_cache_size && that_present_row_cache_size)) return false; if (this.row_cache_size != that.row_cache_size) return false; } boolean this_present_key_cache_size = true && this.isSetKey_cache_size(); boolean that_present_key_cache_size = true && that.isSetKey_cache_size(); if (this_present_key_cache_size || that_present_key_cache_size) { if (!(this_present_key_cache_size && that_present_key_cache_size)) return false; if (this.key_cache_size != that.key_cache_size) return false; } boolean this_present_read_repair_chance = true && this.isSetRead_repair_chance(); boolean that_present_read_repair_chance = true && that.isSetRead_repair_chance(); if (this_present_read_repair_chance || that_present_read_repair_chance) { if (!(this_present_read_repair_chance && that_present_read_repair_chance)) return false; if (this.read_repair_chance != that.read_repair_chance) return false; } boolean this_present_column_metadata = true && this.isSetColumn_metadata(); boolean that_present_column_metadata = true && that.isSetColumn_metadata(); if (this_present_column_metadata || that_present_column_metadata) { if (!(this_present_column_metadata && that_present_column_metadata)) return false; if (!this.column_metadata.equals(that.column_metadata)) return false; } boolean this_present_gc_grace_seconds = true && this.isSetGc_grace_seconds(); boolean that_present_gc_grace_seconds = true && that.isSetGc_grace_seconds(); if (this_present_gc_grace_seconds || that_present_gc_grace_seconds) { if (!(this_present_gc_grace_seconds && that_present_gc_grace_seconds)) return false; if (this.gc_grace_seconds != that.gc_grace_seconds) return false; } boolean this_present_default_validation_class = true && this.isSetDefault_validation_class(); boolean that_present_default_validation_class = true && that.isSetDefault_validation_class(); if (this_present_default_validation_class || that_present_default_validation_class) { if (!(this_present_default_validation_class && that_present_default_validation_class)) return false; if (!this.default_validation_class.equals(that.default_validation_class)) return false; } boolean this_present_id = true && this.isSetId(); boolean that_present_id = true && that.isSetId(); if (this_present_id || that_present_id) { if (!(this_present_id && that_present_id)) return false; if (this.id != that.id) return false; } boolean this_present_min_compaction_threshold = true && this.isSetMin_compaction_threshold(); boolean that_present_min_compaction_threshold = true && that.isSetMin_compaction_threshold(); if (this_present_min_compaction_threshold || that_present_min_compaction_threshold) { if (!(this_present_min_compaction_threshold && that_present_min_compaction_threshold)) return false; if (this.min_compaction_threshold != that.min_compaction_threshold) return false; } boolean this_present_max_compaction_threshold = true && this.isSetMax_compaction_threshold(); boolean that_present_max_compaction_threshold = true && that.isSetMax_compaction_threshold(); if (this_present_max_compaction_threshold || that_present_max_compaction_threshold) { if (!(this_present_max_compaction_threshold && that_present_max_compaction_threshold)) return false; if (this.max_compaction_threshold != that.max_compaction_threshold) return false; } boolean this_present_row_cache_save_period_in_seconds = true && this.isSetRow_cache_save_period_in_seconds(); boolean that_present_row_cache_save_period_in_seconds = true && that.isSetRow_cache_save_period_in_seconds(); if (this_present_row_cache_save_period_in_seconds || that_present_row_cache_save_period_in_seconds) { if (!(this_present_row_cache_save_period_in_seconds && that_present_row_cache_save_period_in_seconds)) return false; if (this.row_cache_save_period_in_seconds != that.row_cache_save_period_in_seconds) return false; } boolean this_present_key_cache_save_period_in_seconds = true && this.isSetKey_cache_save_period_in_seconds(); boolean that_present_key_cache_save_period_in_seconds = true && that.isSetKey_cache_save_period_in_seconds(); if (this_present_key_cache_save_period_in_seconds || that_present_key_cache_save_period_in_seconds) { if (!(this_present_key_cache_save_period_in_seconds && that_present_key_cache_save_period_in_seconds)) return false; if (this.key_cache_save_period_in_seconds != that.key_cache_save_period_in_seconds) return false; } boolean this_present_memtable_flush_after_mins = true && this.isSetMemtable_flush_after_mins(); boolean that_present_memtable_flush_after_mins = true && that.isSetMemtable_flush_after_mins(); if (this_present_memtable_flush_after_mins || that_present_memtable_flush_after_mins) { if (!(this_present_memtable_flush_after_mins && that_present_memtable_flush_after_mins)) return false; if (this.memtable_flush_after_mins != that.memtable_flush_after_mins) return false; } boolean this_present_memtable_throughput_in_mb = true && this.isSetMemtable_throughput_in_mb(); boolean that_present_memtable_throughput_in_mb = true && that.isSetMemtable_throughput_in_mb(); if (this_present_memtable_throughput_in_mb || that_present_memtable_throughput_in_mb) { if (!(this_present_memtable_throughput_in_mb && that_present_memtable_throughput_in_mb)) return false; if (this.memtable_throughput_in_mb != that.memtable_throughput_in_mb) return false; } boolean this_present_memtable_operations_in_millions = true && this.isSetMemtable_operations_in_millions(); boolean that_present_memtable_operations_in_millions = true && that.isSetMemtable_operations_in_millions(); if (this_present_memtable_operations_in_millions || that_present_memtable_operations_in_millions) { if (!(this_present_memtable_operations_in_millions && that_present_memtable_operations_in_millions)) return false; if (this.memtable_operations_in_millions != that.memtable_operations_in_millions) return false; } boolean this_present_replicate_on_write = true && this.isSetReplicate_on_write(); boolean that_present_replicate_on_write = true && that.isSetReplicate_on_write(); if (this_present_replicate_on_write || that_present_replicate_on_write) { if (!(this_present_replicate_on_write && that_present_replicate_on_write)) return false; if (this.replicate_on_write != that.replicate_on_write) return false; } boolean this_present_merge_shards_chance = true && this.isSetMerge_shards_chance(); boolean that_present_merge_shards_chance = true && that.isSetMerge_shards_chance(); if (this_present_merge_shards_chance || that_present_merge_shards_chance) { if (!(this_present_merge_shards_chance && that_present_merge_shards_chance)) return false; if (this.merge_shards_chance != that.merge_shards_chance) return false; } boolean this_present_key_validation_class = true && this.isSetKey_validation_class(); boolean that_present_key_validation_class = true && that.isSetKey_validation_class(); if (this_present_key_validation_class || that_present_key_validation_class) { if (!(this_present_key_validation_class && that_present_key_validation_class)) return false; if (!this.key_validation_class.equals(that.key_validation_class)) return false; } boolean this_present_row_cache_provider = true && this.isSetRow_cache_provider(); boolean that_present_row_cache_provider = true && that.isSetRow_cache_provider(); if (this_present_row_cache_provider || that_present_row_cache_provider) { if (!(this_present_row_cache_provider && that_present_row_cache_provider)) return false; if (!this.row_cache_provider.equals(that.row_cache_provider)) return false; } boolean this_present_key_alias = true && this.isSetKey_alias(); boolean that_present_key_alias = true && that.isSetKey_alias(); if (this_present_key_alias || that_present_key_alias) { if (!(this_present_key_alias && that_present_key_alias)) return false; if (!this.key_alias.equals(that.key_alias)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(CfDef other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; CfDef typedOther = (CfDef)other; lastComparison = Boolean.valueOf(isSetKeyspace()).compareTo(typedOther.isSetKeyspace()); if (lastComparison != 0) { return lastComparison; } if (isSetKeyspace()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyspace, typedOther.keyspace); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetColumn_type()).compareTo(typedOther.isSetColumn_type()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_type()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_type, typedOther.column_type); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetComparator_type()).compareTo(typedOther.isSetComparator_type()); if (lastComparison != 0) { return lastComparison; } if (isSetComparator_type()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comparator_type, typedOther.comparator_type); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSubcomparator_type()).compareTo(typedOther.isSetSubcomparator_type()); if (lastComparison != 0) { return lastComparison; } if (isSetSubcomparator_type()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subcomparator_type, typedOther.subcomparator_type); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment()); if (lastComparison != 0) { return lastComparison; } if (isSetComment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRow_cache_size()).compareTo(typedOther.isSetRow_cache_size()); if (lastComparison != 0) { return lastComparison; } if (isSetRow_cache_size()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row_cache_size, typedOther.row_cache_size); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetKey_cache_size()).compareTo(typedOther.isSetKey_cache_size()); if (lastComparison != 0) { return lastComparison; } if (isSetKey_cache_size()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_cache_size, typedOther.key_cache_size); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRead_repair_chance()).compareTo(typedOther.isSetRead_repair_chance()); if (lastComparison != 0) { return lastComparison; } if (isSetRead_repair_chance()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.read_repair_chance, typedOther.read_repair_chance); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetColumn_metadata()).compareTo(typedOther.isSetColumn_metadata()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_metadata()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_metadata, typedOther.column_metadata); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetGc_grace_seconds()).compareTo(typedOther.isSetGc_grace_seconds()); if (lastComparison != 0) { return lastComparison; } if (isSetGc_grace_seconds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gc_grace_seconds, typedOther.gc_grace_seconds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetDefault_validation_class()).compareTo(typedOther.isSetDefault_validation_class()); if (lastComparison != 0) { return lastComparison; } if (isSetDefault_validation_class()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.default_validation_class, typedOther.default_validation_class); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMin_compaction_threshold()).compareTo(typedOther.isSetMin_compaction_threshold()); if (lastComparison != 0) { return lastComparison; } if (isSetMin_compaction_threshold()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min_compaction_threshold, typedOther.min_compaction_threshold); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMax_compaction_threshold()).compareTo(typedOther.isSetMax_compaction_threshold()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_compaction_threshold()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_compaction_threshold, typedOther.max_compaction_threshold); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRow_cache_save_period_in_seconds()).compareTo(typedOther.isSetRow_cache_save_period_in_seconds()); if (lastComparison != 0) { return lastComparison; } if (isSetRow_cache_save_period_in_seconds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row_cache_save_period_in_seconds, typedOther.row_cache_save_period_in_seconds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetKey_cache_save_period_in_seconds()).compareTo(typedOther.isSetKey_cache_save_period_in_seconds()); if (lastComparison != 0) { return lastComparison; } if (isSetKey_cache_save_period_in_seconds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_cache_save_period_in_seconds, typedOther.key_cache_save_period_in_seconds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMemtable_flush_after_mins()).compareTo(typedOther.isSetMemtable_flush_after_mins()); if (lastComparison != 0) { return lastComparison; } if (isSetMemtable_flush_after_mins()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.memtable_flush_after_mins, typedOther.memtable_flush_after_mins); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMemtable_throughput_in_mb()).compareTo(typedOther.isSetMemtable_throughput_in_mb()); if (lastComparison != 0) { return lastComparison; } if (isSetMemtable_throughput_in_mb()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.memtable_throughput_in_mb, typedOther.memtable_throughput_in_mb); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMemtable_operations_in_millions()).compareTo(typedOther.isSetMemtable_operations_in_millions()); if (lastComparison != 0) { return lastComparison; } if (isSetMemtable_operations_in_millions()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.memtable_operations_in_millions, typedOther.memtable_operations_in_millions); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetReplicate_on_write()).compareTo(typedOther.isSetReplicate_on_write()); if (lastComparison != 0) { return lastComparison; } if (isSetReplicate_on_write()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replicate_on_write, typedOther.replicate_on_write); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMerge_shards_chance()).compareTo(typedOther.isSetMerge_shards_chance()); if (lastComparison != 0) { return lastComparison; } if (isSetMerge_shards_chance()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merge_shards_chance, typedOther.merge_shards_chance); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetKey_validation_class()).compareTo(typedOther.isSetKey_validation_class()); if (lastComparison != 0) { return lastComparison; } if (isSetKey_validation_class()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_validation_class, typedOther.key_validation_class); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRow_cache_provider()).compareTo(typedOther.isSetRow_cache_provider()); if (lastComparison != 0) { return lastComparison; } if (isSetRow_cache_provider()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row_cache_provider, typedOther.row_cache_provider); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetKey_alias()).compareTo(typedOther.isSetKey_alias()); if (lastComparison != 0) { return lastComparison; } if (isSetKey_alias()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_alias, typedOther.key_alias); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("CfDef("); boolean first = true; sb.append("keyspace:"); if (this.keyspace == null) { sb.append("null"); } else { sb.append(this.keyspace); } first = false; if (!first) sb.append(", "); sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (isSetColumn_type()) { if (!first) sb.append(", "); sb.append("column_type:"); if (this.column_type == null) { sb.append("null"); } else { sb.append(this.column_type); } first = false; } if (isSetComparator_type()) { if (!first) sb.append(", "); sb.append("comparator_type:"); if (this.comparator_type == null) { sb.append("null"); } else { sb.append(this.comparator_type); } first = false; } if (isSetSubcomparator_type()) { if (!first) sb.append(", "); sb.append("subcomparator_type:"); if (this.subcomparator_type == null) { sb.append("null"); } else { sb.append(this.subcomparator_type); } first = false; } if (isSetComment()) { if (!first) sb.append(", "); sb.append("comment:"); if (this.comment == null) { sb.append("null"); } else { sb.append(this.comment); } first = false; } if (isSetRow_cache_size()) { if (!first) sb.append(", "); sb.append("row_cache_size:"); sb.append(this.row_cache_size); first = false; } if (isSetKey_cache_size()) { if (!first) sb.append(", "); sb.append("key_cache_size:"); sb.append(this.key_cache_size); first = false; } if (isSetRead_repair_chance()) { if (!first) sb.append(", "); sb.append("read_repair_chance:"); sb.append(this.read_repair_chance); first = false; } if (isSetColumn_metadata()) { if (!first) sb.append(", "); sb.append("column_metadata:"); if (this.column_metadata == null) { sb.append("null"); } else { sb.append(this.column_metadata); } first = false; } if (isSetGc_grace_seconds()) { if (!first) sb.append(", "); sb.append("gc_grace_seconds:"); sb.append(this.gc_grace_seconds); first = false; } if (isSetDefault_validation_class()) { if (!first) sb.append(", "); sb.append("default_validation_class:"); if (this.default_validation_class == null) { sb.append("null"); } else { sb.append(this.default_validation_class); } first = false; } if (isSetId()) { if (!first) sb.append(", "); sb.append("id:"); sb.append(this.id); first = false; } if (isSetMin_compaction_threshold()) { if (!first) sb.append(", "); sb.append("min_compaction_threshold:"); sb.append(this.min_compaction_threshold); first = false; } if (isSetMax_compaction_threshold()) { if (!first) sb.append(", "); sb.append("max_compaction_threshold:"); sb.append(this.max_compaction_threshold); first = false; } if (isSetRow_cache_save_period_in_seconds()) { if (!first) sb.append(", "); sb.append("row_cache_save_period_in_seconds:"); sb.append(this.row_cache_save_period_in_seconds); first = false; } if (isSetKey_cache_save_period_in_seconds()) { if (!first) sb.append(", "); sb.append("key_cache_save_period_in_seconds:"); sb.append(this.key_cache_save_period_in_seconds); first = false; } if (isSetMemtable_flush_after_mins()) { if (!first) sb.append(", "); sb.append("memtable_flush_after_mins:"); sb.append(this.memtable_flush_after_mins); first = false; } if (isSetMemtable_throughput_in_mb()) { if (!first) sb.append(", "); sb.append("memtable_throughput_in_mb:"); sb.append(this.memtable_throughput_in_mb); first = false; } if (isSetMemtable_operations_in_millions()) { if (!first) sb.append(", "); sb.append("memtable_operations_in_millions:"); sb.append(this.memtable_operations_in_millions); first = false; } if (isSetReplicate_on_write()) { if (!first) sb.append(", "); sb.append("replicate_on_write:"); sb.append(this.replicate_on_write); first = false; } if (isSetMerge_shards_chance()) { if (!first) sb.append(", "); sb.append("merge_shards_chance:"); sb.append(this.merge_shards_chance); first = false; } if (isSetKey_validation_class()) { if (!first) sb.append(", "); sb.append("key_validation_class:"); if (this.key_validation_class == null) { sb.append("null"); } else { sb.append(this.key_validation_class); } first = false; } if (isSetRow_cache_provider()) { if (!first) sb.append(", "); sb.append("row_cache_provider:"); if (this.row_cache_provider == null) { sb.append("null"); } else { sb.append(this.row_cache_provider); } first = false; } if (isSetKey_alias()) { if (!first) sb.append(", "); sb.append("key_alias:"); if (this.key_alias == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.key_alias, sb); } first = false; } sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields if (keyspace == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'keyspace' was not present! Struct: " + toString()); } if (name == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' was not present! Struct: " + toString()); } // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class CfDefStandardSchemeFactory implements SchemeFactory { public CfDefStandardScheme getScheme() { return new CfDefStandardScheme(); } } private static class CfDefStandardScheme extends StandardScheme<CfDef> { public void read(org.apache.thrift.protocol.TProtocol iprot, CfDef struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // KEYSPACE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.keyspace = iprot.readString(); struct.setKeyspaceIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // COLUMN_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.column_type = iprot.readString(); struct.setColumn_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // COMPARATOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.comparator_type = iprot.readString(); struct.setComparator_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // SUBCOMPARATOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.subcomparator_type = iprot.readString(); struct.setSubcomparator_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 8: // COMMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.comment = iprot.readString(); struct.setCommentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 9: // ROW_CACHE_SIZE if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { struct.row_cache_size = iprot.readDouble(); struct.setRow_cache_sizeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 11: // KEY_CACHE_SIZE if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { struct.key_cache_size = iprot.readDouble(); struct.setKey_cache_sizeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 12: // READ_REPAIR_CHANCE if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { struct.read_repair_chance = iprot.readDouble(); struct.setRead_repair_chanceIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 13: // COLUMN_METADATA if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list66 = iprot.readListBegin(); struct.column_metadata = new ArrayList<ColumnDef>(_list66.size); for (int _i67 = 0; _i67 < _list66.size; ++_i67) { ColumnDef _elem68; // required _elem68 = new ColumnDef(); _elem68.read(iprot); struct.column_metadata.add(_elem68); } iprot.readListEnd(); } struct.setColumn_metadataIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 14: // GC_GRACE_SECONDS if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.gc_grace_seconds = iprot.readI32(); struct.setGc_grace_secondsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 15: // DEFAULT_VALIDATION_CLASS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.default_validation_class = iprot.readString(); struct.setDefault_validation_classIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 16: // ID if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.id = iprot.readI32(); struct.setIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 17: // MIN_COMPACTION_THRESHOLD if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.min_compaction_threshold = iprot.readI32(); struct.setMin_compaction_thresholdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 18: // MAX_COMPACTION_THRESHOLD if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.max_compaction_threshold = iprot.readI32(); struct.setMax_compaction_thresholdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 19: // ROW_CACHE_SAVE_PERIOD_IN_SECONDS if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.row_cache_save_period_in_seconds = iprot.readI32(); struct.setRow_cache_save_period_in_secondsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 20: // KEY_CACHE_SAVE_PERIOD_IN_SECONDS if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.key_cache_save_period_in_seconds = iprot.readI32(); struct.setKey_cache_save_period_in_secondsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 21: // MEMTABLE_FLUSH_AFTER_MINS if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.memtable_flush_after_mins = iprot.readI32(); struct.setMemtable_flush_after_minsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 22: // MEMTABLE_THROUGHPUT_IN_MB if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.memtable_throughput_in_mb = iprot.readI32(); struct.setMemtable_throughput_in_mbIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 23: // MEMTABLE_OPERATIONS_IN_MILLIONS if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { struct.memtable_operations_in_millions = iprot.readDouble(); struct.setMemtable_operations_in_millionsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 24: // REPLICATE_ON_WRITE if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.replicate_on_write = iprot.readBool(); struct.setReplicate_on_writeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 25: // MERGE_SHARDS_CHANCE if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) { struct.merge_shards_chance = iprot.readDouble(); struct.setMerge_shards_chanceIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 26: // KEY_VALIDATION_CLASS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key_validation_class = iprot.readString(); struct.setKey_validation_classIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 27: // ROW_CACHE_PROVIDER if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.row_cache_provider = iprot.readString(); struct.setRow_cache_providerIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 28: // KEY_ALIAS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key_alias = iprot.readBinary(); struct.setKey_aliasIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, CfDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keyspace != null) { oprot.writeFieldBegin(KEYSPACE_FIELD_DESC); oprot.writeString(struct.keyspace); oprot.writeFieldEnd(); } if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.column_type != null) { if (struct.isSetColumn_type()) { oprot.writeFieldBegin(COLUMN_TYPE_FIELD_DESC); oprot.writeString(struct.column_type); oprot.writeFieldEnd(); } } if (struct.comparator_type != null) { if (struct.isSetComparator_type()) { oprot.writeFieldBegin(COMPARATOR_TYPE_FIELD_DESC); oprot.writeString(struct.comparator_type); oprot.writeFieldEnd(); } } if (struct.subcomparator_type != null) { if (struct.isSetSubcomparator_type()) { oprot.writeFieldBegin(SUBCOMPARATOR_TYPE_FIELD_DESC); oprot.writeString(struct.subcomparator_type); oprot.writeFieldEnd(); } } if (struct.comment != null) { if (struct.isSetComment()) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); oprot.writeString(struct.comment); oprot.writeFieldEnd(); } } if (struct.isSetRow_cache_size()) { oprot.writeFieldBegin(ROW_CACHE_SIZE_FIELD_DESC); oprot.writeDouble(struct.row_cache_size); oprot.writeFieldEnd(); } if (struct.isSetKey_cache_size()) { oprot.writeFieldBegin(KEY_CACHE_SIZE_FIELD_DESC); oprot.writeDouble(struct.key_cache_size); oprot.writeFieldEnd(); } if (struct.isSetRead_repair_chance()) { oprot.writeFieldBegin(READ_REPAIR_CHANCE_FIELD_DESC); oprot.writeDouble(struct.read_repair_chance); oprot.writeFieldEnd(); } if (struct.column_metadata != null) { if (struct.isSetColumn_metadata()) { oprot.writeFieldBegin(COLUMN_METADATA_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.column_metadata.size())); for (ColumnDef _iter69 : struct.column_metadata) { _iter69.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.isSetGc_grace_seconds()) { oprot.writeFieldBegin(GC_GRACE_SECONDS_FIELD_DESC); oprot.writeI32(struct.gc_grace_seconds); oprot.writeFieldEnd(); } if (struct.default_validation_class != null) { if (struct.isSetDefault_validation_class()) { oprot.writeFieldBegin(DEFAULT_VALIDATION_CLASS_FIELD_DESC); oprot.writeString(struct.default_validation_class); oprot.writeFieldEnd(); } } if (struct.isSetId()) { oprot.writeFieldBegin(ID_FIELD_DESC); oprot.writeI32(struct.id); oprot.writeFieldEnd(); } if (struct.isSetMin_compaction_threshold()) { oprot.writeFieldBegin(MIN_COMPACTION_THRESHOLD_FIELD_DESC); oprot.writeI32(struct.min_compaction_threshold); oprot.writeFieldEnd(); } if (struct.isSetMax_compaction_threshold()) { oprot.writeFieldBegin(MAX_COMPACTION_THRESHOLD_FIELD_DESC); oprot.writeI32(struct.max_compaction_threshold); oprot.writeFieldEnd(); } if (struct.isSetRow_cache_save_period_in_seconds()) { oprot.writeFieldBegin(ROW_CACHE_SAVE_PERIOD_IN_SECONDS_FIELD_DESC); oprot.writeI32(struct.row_cache_save_period_in_seconds); oprot.writeFieldEnd(); } if (struct.isSetKey_cache_save_period_in_seconds()) { oprot.writeFieldBegin(KEY_CACHE_SAVE_PERIOD_IN_SECONDS_FIELD_DESC); oprot.writeI32(struct.key_cache_save_period_in_seconds); oprot.writeFieldEnd(); } if (struct.isSetMemtable_flush_after_mins()) { oprot.writeFieldBegin(MEMTABLE_FLUSH_AFTER_MINS_FIELD_DESC); oprot.writeI32(struct.memtable_flush_after_mins); oprot.writeFieldEnd(); } if (struct.isSetMemtable_throughput_in_mb()) { oprot.writeFieldBegin(MEMTABLE_THROUGHPUT_IN_MB_FIELD_DESC); oprot.writeI32(struct.memtable_throughput_in_mb); oprot.writeFieldEnd(); } if (struct.isSetMemtable_operations_in_millions()) { oprot.writeFieldBegin(MEMTABLE_OPERATIONS_IN_MILLIONS_FIELD_DESC); oprot.writeDouble(struct.memtable_operations_in_millions); oprot.writeFieldEnd(); } if (struct.isSetReplicate_on_write()) { oprot.writeFieldBegin(REPLICATE_ON_WRITE_FIELD_DESC); oprot.writeBool(struct.replicate_on_write); oprot.writeFieldEnd(); } if (struct.isSetMerge_shards_chance()) { oprot.writeFieldBegin(MERGE_SHARDS_CHANCE_FIELD_DESC); oprot.writeDouble(struct.merge_shards_chance); oprot.writeFieldEnd(); } if (struct.key_validation_class != null) { if (struct.isSetKey_validation_class()) { oprot.writeFieldBegin(KEY_VALIDATION_CLASS_FIELD_DESC); oprot.writeString(struct.key_validation_class); oprot.writeFieldEnd(); } } if (struct.row_cache_provider != null) { if (struct.isSetRow_cache_provider()) { oprot.writeFieldBegin(ROW_CACHE_PROVIDER_FIELD_DESC); oprot.writeString(struct.row_cache_provider); oprot.writeFieldEnd(); } } if (struct.key_alias != null) { if (struct.isSetKey_alias()) { oprot.writeFieldBegin(KEY_ALIAS_FIELD_DESC); oprot.writeBinary(struct.key_alias); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class CfDefTupleSchemeFactory implements SchemeFactory { public CfDefTupleScheme getScheme() { return new CfDefTupleScheme(); } } private static class CfDefTupleScheme extends TupleScheme<CfDef> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, CfDef struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.keyspace); oprot.writeString(struct.name); BitSet optionals = new BitSet(); if (struct.isSetColumn_type()) { optionals.set(0); } if (struct.isSetComparator_type()) { optionals.set(1); } if (struct.isSetSubcomparator_type()) { optionals.set(2); } if (struct.isSetComment()) { optionals.set(3); } if (struct.isSetRow_cache_size()) { optionals.set(4); } if (struct.isSetKey_cache_size()) { optionals.set(5); } if (struct.isSetRead_repair_chance()) { optionals.set(6); } if (struct.isSetColumn_metadata()) { optionals.set(7); } if (struct.isSetGc_grace_seconds()) { optionals.set(8); } if (struct.isSetDefault_validation_class()) { optionals.set(9); } if (struct.isSetId()) { optionals.set(10); } if (struct.isSetMin_compaction_threshold()) { optionals.set(11); } if (struct.isSetMax_compaction_threshold()) { optionals.set(12); } if (struct.isSetRow_cache_save_period_in_seconds()) { optionals.set(13); } if (struct.isSetKey_cache_save_period_in_seconds()) { optionals.set(14); } if (struct.isSetMemtable_flush_after_mins()) { optionals.set(15); } if (struct.isSetMemtable_throughput_in_mb()) { optionals.set(16); } if (struct.isSetMemtable_operations_in_millions()) { optionals.set(17); } if (struct.isSetReplicate_on_write()) { optionals.set(18); } if (struct.isSetMerge_shards_chance()) { optionals.set(19); } if (struct.isSetKey_validation_class()) { optionals.set(20); } if (struct.isSetRow_cache_provider()) { optionals.set(21); } if (struct.isSetKey_alias()) { optionals.set(22); } oprot.writeBitSet(optionals, 23); if (struct.isSetColumn_type()) { oprot.writeString(struct.column_type); } if (struct.isSetComparator_type()) { oprot.writeString(struct.comparator_type); } if (struct.isSetSubcomparator_type()) { oprot.writeString(struct.subcomparator_type); } if (struct.isSetComment()) { oprot.writeString(struct.comment); } if (struct.isSetRow_cache_size()) { oprot.writeDouble(struct.row_cache_size); } if (struct.isSetKey_cache_size()) { oprot.writeDouble(struct.key_cache_size); } if (struct.isSetRead_repair_chance()) { oprot.writeDouble(struct.read_repair_chance); } if (struct.isSetColumn_metadata()) { { oprot.writeI32(struct.column_metadata.size()); for (ColumnDef _iter70 : struct.column_metadata) { _iter70.write(oprot); } } } if (struct.isSetGc_grace_seconds()) { oprot.writeI32(struct.gc_grace_seconds); } if (struct.isSetDefault_validation_class()) { oprot.writeString(struct.default_validation_class); } if (struct.isSetId()) { oprot.writeI32(struct.id); } if (struct.isSetMin_compaction_threshold()) { oprot.writeI32(struct.min_compaction_threshold); } if (struct.isSetMax_compaction_threshold()) { oprot.writeI32(struct.max_compaction_threshold); } if (struct.isSetRow_cache_save_period_in_seconds()) { oprot.writeI32(struct.row_cache_save_period_in_seconds); } if (struct.isSetKey_cache_save_period_in_seconds()) { oprot.writeI32(struct.key_cache_save_period_in_seconds); } if (struct.isSetMemtable_flush_after_mins()) { oprot.writeI32(struct.memtable_flush_after_mins); } if (struct.isSetMemtable_throughput_in_mb()) { oprot.writeI32(struct.memtable_throughput_in_mb); } if (struct.isSetMemtable_operations_in_millions()) { oprot.writeDouble(struct.memtable_operations_in_millions); } if (struct.isSetReplicate_on_write()) { oprot.writeBool(struct.replicate_on_write); } if (struct.isSetMerge_shards_chance()) { oprot.writeDouble(struct.merge_shards_chance); } if (struct.isSetKey_validation_class()) { oprot.writeString(struct.key_validation_class); } if (struct.isSetRow_cache_provider()) { oprot.writeString(struct.row_cache_provider); } if (struct.isSetKey_alias()) { oprot.writeBinary(struct.key_alias); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, CfDef struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.keyspace = iprot.readString(); struct.setKeyspaceIsSet(true); struct.name = iprot.readString(); struct.setNameIsSet(true); BitSet incoming = iprot.readBitSet(23); if (incoming.get(0)) { struct.column_type = iprot.readString(); struct.setColumn_typeIsSet(true); } if (incoming.get(1)) { struct.comparator_type = iprot.readString(); struct.setComparator_typeIsSet(true); } if (incoming.get(2)) { struct.subcomparator_type = iprot.readString(); struct.setSubcomparator_typeIsSet(true); } if (incoming.get(3)) { struct.comment = iprot.readString(); struct.setCommentIsSet(true); } if (incoming.get(4)) { struct.row_cache_size = iprot.readDouble(); struct.setRow_cache_sizeIsSet(true); } if (incoming.get(5)) { struct.key_cache_size = iprot.readDouble(); struct.setKey_cache_sizeIsSet(true); } if (incoming.get(6)) { struct.read_repair_chance = iprot.readDouble(); struct.setRead_repair_chanceIsSet(true); } if (incoming.get(7)) { { org.apache.thrift.protocol.TList _list71 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.column_metadata = new ArrayList<ColumnDef>(_list71.size); for (int _i72 = 0; _i72 < _list71.size; ++_i72) { ColumnDef _elem73; // required _elem73 = new ColumnDef(); _elem73.read(iprot); struct.column_metadata.add(_elem73); } } struct.setColumn_metadataIsSet(true); } if (incoming.get(8)) { struct.gc_grace_seconds = iprot.readI32(); struct.setGc_grace_secondsIsSet(true); } if (incoming.get(9)) { struct.default_validation_class = iprot.readString(); struct.setDefault_validation_classIsSet(true); } if (incoming.get(10)) { struct.id = iprot.readI32(); struct.setIdIsSet(true); } if (incoming.get(11)) { struct.min_compaction_threshold = iprot.readI32(); struct.setMin_compaction_thresholdIsSet(true); } if (incoming.get(12)) { struct.max_compaction_threshold = iprot.readI32(); struct.setMax_compaction_thresholdIsSet(true); } if (incoming.get(13)) { struct.row_cache_save_period_in_seconds = iprot.readI32(); struct.setRow_cache_save_period_in_secondsIsSet(true); } if (incoming.get(14)) { struct.key_cache_save_period_in_seconds = iprot.readI32(); struct.setKey_cache_save_period_in_secondsIsSet(true); } if (incoming.get(15)) { struct.memtable_flush_after_mins = iprot.readI32(); struct.setMemtable_flush_after_minsIsSet(true); } if (incoming.get(16)) { struct.memtable_throughput_in_mb = iprot.readI32(); struct.setMemtable_throughput_in_mbIsSet(true); } if (incoming.get(17)) { struct.memtable_operations_in_millions = iprot.readDouble(); struct.setMemtable_operations_in_millionsIsSet(true); } if (incoming.get(18)) { struct.replicate_on_write = iprot.readBool(); struct.setReplicate_on_writeIsSet(true); } if (incoming.get(19)) { struct.merge_shards_chance = iprot.readDouble(); struct.setMerge_shards_chanceIsSet(true); } if (incoming.get(20)) { struct.key_validation_class = iprot.readString(); struct.setKey_validation_classIsSet(true); } if (incoming.get(21)) { struct.row_cache_provider = iprot.readString(); struct.setRow_cache_providerIsSet(true); } if (incoming.get(22)) { struct.key_alias = iprot.readBinary(); struct.setKey_aliasIsSet(true); } } } }