org.apache.cassandra.thrift.CfDef Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (1.0.0-dev)
*
* 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 org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
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 javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@Generated(value = "Autogenerated by Thrift Compiler (1.0.0-dev)", date = "2016-02-10")
public class CfDef implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
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 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 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 KEY_ALIAS_FIELD_DESC = new org.apache.thrift.protocol.TField("key_alias", org.apache.thrift.protocol.TType.STRING, (short)28);
private static final org.apache.thrift.protocol.TField COMPACTION_STRATEGY_FIELD_DESC = new org.apache.thrift.protocol.TField("compaction_strategy", org.apache.thrift.protocol.TType.STRING, (short)29);
private static final org.apache.thrift.protocol.TField COMPACTION_STRATEGY_OPTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("compaction_strategy_options", org.apache.thrift.protocol.TType.MAP, (short)30);
private static final org.apache.thrift.protocol.TField COMPRESSION_OPTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("compression_options", org.apache.thrift.protocol.TType.MAP, (short)32);
private static final org.apache.thrift.protocol.TField BLOOM_FILTER_FP_CHANCE_FIELD_DESC = new org.apache.thrift.protocol.TField("bloom_filter_fp_chance", org.apache.thrift.protocol.TType.DOUBLE, (short)33);
private static final SchemeFactory STANDARD_SCHEME_FACTORY = new CfDefStandardSchemeFactory();
private static final SchemeFactory TUPLE_SCHEME_FACTORY = 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 read_repair_chance; // optional
public List 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 boolean replicate_on_write; // optional
public double merge_shards_chance; // optional
public String key_validation_class; // optional
public ByteBuffer key_alias; // optional
public String compaction_strategy; // optional
public Map compaction_strategy_options; // optional
public Map compression_options; // optional
public double bloom_filter_fp_chance; // 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"),
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"),
REPLICATE_ON_WRITE((short)24, "replicate_on_write"),
MERGE_SHARDS_CHANCE((short)25, "merge_shards_chance"),
KEY_VALIDATION_CLASS((short)26, "key_validation_class"),
KEY_ALIAS((short)28, "key_alias"),
COMPACTION_STRATEGY((short)29, "compaction_strategy"),
COMPACTION_STRATEGY_OPTIONS((short)30, "compaction_strategy_options"),
COMPRESSION_OPTIONS((short)32, "compression_options"),
BLOOM_FILTER_FP_CHANCE((short)33, "bloom_filter_fp_chance");
private static final Map byName = new HashMap();
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 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 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 28: // KEY_ALIAS
return KEY_ALIAS;
case 29: // COMPACTION_STRATEGY
return COMPACTION_STRATEGY;
case 30: // COMPACTION_STRATEGY_OPTIONS
return COMPACTION_STRATEGY_OPTIONS;
case 32: // COMPRESSION_OPTIONS
return COMPRESSION_OPTIONS;
case 33: // BLOOM_FILTER_FP_CHANCE
return BLOOM_FILTER_FP_CHANCE;
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 __READ_REPAIR_CHANCE_ISSET_ID = 0;
private static final int __GC_GRACE_SECONDS_ISSET_ID = 1;
private static final int __ID_ISSET_ID = 2;
private static final int __MIN_COMPACTION_THRESHOLD_ISSET_ID = 3;
private static final int __MAX_COMPACTION_THRESHOLD_ISSET_ID = 4;
private static final int __REPLICATE_ON_WRITE_ISSET_ID = 5;
private static final int __MERGE_SHARDS_CHANCE_ISSET_ID = 6;
private static final int __BLOOM_FILTER_FP_CHANCE_ISSET_ID = 7;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.COLUMN_TYPE,_Fields.COMPARATOR_TYPE,_Fields.SUBCOMPARATOR_TYPE,_Fields.COMMENT,_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.REPLICATE_ON_WRITE,_Fields.MERGE_SHARDS_CHANCE,_Fields.KEY_VALIDATION_CLASS,_Fields.KEY_ALIAS,_Fields.COMPACTION_STRATEGY,_Fields.COMPACTION_STRATEGY_OPTIONS,_Fields.COMPRESSION_OPTIONS,_Fields.BLOOM_FILTER_FP_CHANCE};
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.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.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.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)));
tmpMap.put(_Fields.COMPACTION_STRATEGY, new org.apache.thrift.meta_data.FieldMetaData("compaction_strategy", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.COMPACTION_STRATEGY_OPTIONS, new org.apache.thrift.meta_data.FieldMetaData("compaction_strategy_options", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.COMPRESSION_OPTIONS, new org.apache.thrift.meta_data.FieldMetaData("compression_options", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.BLOOM_FILTER_FP_CHANCE, new org.apache.thrift.meta_data.FieldMetaData("bloom_filter_fp_chance", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
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.read_repair_chance = 1;
}
public CfDef(
String keyspace,
String name)
{
this();
this.keyspace = keyspace;
this.name = name;
}
/**
* Performs a deep copy on other.
*/
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.read_repair_chance = other.read_repair_chance;
if (other.isSetColumn_metadata()) {
List __this__column_metadata = new ArrayList(other.column_metadata.size());
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.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.isSetKey_alias()) {
this.key_alias = org.apache.thrift.TBaseHelper.copyBinary(other.key_alias);
}
if (other.isSetCompaction_strategy()) {
this.compaction_strategy = other.compaction_strategy;
}
if (other.isSetCompaction_strategy_options()) {
Map __this__compaction_strategy_options = new HashMap(other.compaction_strategy_options);
this.compaction_strategy_options = __this__compaction_strategy_options;
}
if (other.isSetCompression_options()) {
Map __this__compression_options = new HashMap(other.compression_options);
this.compression_options = __this__compression_options;
}
this.bloom_filter_fp_chance = other.bloom_filter_fp_chance;
}
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.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;
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.key_alias = null;
this.compaction_strategy = null;
this.compaction_strategy_options = null;
this.compression_options = null;
setBloom_filter_fp_chanceIsSet(false);
this.bloom_filter_fp_chance = 0.0;
}
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 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 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();
}
this.column_metadata.add(elem);
}
public List getColumn_metadata() {
return this.column_metadata;
}
public CfDef setColumn_metadata(List 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 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 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 org.apache.thrift.TBaseHelper.copyBinary(key_alias);
}
public CfDef setKey_alias(byte[] key_alias) {
this.key_alias = key_alias == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(key_alias, key_alias.length));
return this;
}
public CfDef setKey_alias(ByteBuffer key_alias) {
this.key_alias = org.apache.thrift.TBaseHelper.copyBinary(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 String getCompaction_strategy() {
return this.compaction_strategy;
}
public CfDef setCompaction_strategy(String compaction_strategy) {
this.compaction_strategy = compaction_strategy;
return this;
}
public void unsetCompaction_strategy() {
this.compaction_strategy = null;
}
/** Returns true if field compaction_strategy is set (has been assigned a value) and false otherwise */
public boolean isSetCompaction_strategy() {
return this.compaction_strategy != null;
}
public void setCompaction_strategyIsSet(boolean value) {
if (!value) {
this.compaction_strategy = null;
}
}
public int getCompaction_strategy_optionsSize() {
return (this.compaction_strategy_options == null) ? 0 : this.compaction_strategy_options.size();
}
public void putToCompaction_strategy_options(String key, String val) {
if (this.compaction_strategy_options == null) {
this.compaction_strategy_options = new HashMap();
}
this.compaction_strategy_options.put(key, val);
}
public Map getCompaction_strategy_options() {
return this.compaction_strategy_options;
}
public CfDef setCompaction_strategy_options(Map compaction_strategy_options) {
this.compaction_strategy_options = compaction_strategy_options;
return this;
}
public void unsetCompaction_strategy_options() {
this.compaction_strategy_options = null;
}
/** Returns true if field compaction_strategy_options is set (has been assigned a value) and false otherwise */
public boolean isSetCompaction_strategy_options() {
return this.compaction_strategy_options != null;
}
public void setCompaction_strategy_optionsIsSet(boolean value) {
if (!value) {
this.compaction_strategy_options = null;
}
}
public int getCompression_optionsSize() {
return (this.compression_options == null) ? 0 : this.compression_options.size();
}
public void putToCompression_options(String key, String val) {
if (this.compression_options == null) {
this.compression_options = new HashMap();
}
this.compression_options.put(key, val);
}
public Map getCompression_options() {
return this.compression_options;
}
public CfDef setCompression_options(Map compression_options) {
this.compression_options = compression_options;
return this;
}
public void unsetCompression_options() {
this.compression_options = null;
}
/** Returns true if field compression_options is set (has been assigned a value) and false otherwise */
public boolean isSetCompression_options() {
return this.compression_options != null;
}
public void setCompression_optionsIsSet(boolean value) {
if (!value) {
this.compression_options = null;
}
}
public double getBloom_filter_fp_chance() {
return this.bloom_filter_fp_chance;
}
public CfDef setBloom_filter_fp_chance(double bloom_filter_fp_chance) {
this.bloom_filter_fp_chance = bloom_filter_fp_chance;
setBloom_filter_fp_chanceIsSet(true);
return this;
}
public void unsetBloom_filter_fp_chance() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __BLOOM_FILTER_FP_CHANCE_ISSET_ID);
}
/** Returns true if field bloom_filter_fp_chance is set (has been assigned a value) and false otherwise */
public boolean isSetBloom_filter_fp_chance() {
return EncodingUtils.testBit(__isset_bitfield, __BLOOM_FILTER_FP_CHANCE_ISSET_ID);
}
public void setBloom_filter_fp_chanceIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __BLOOM_FILTER_FP_CHANCE_ISSET_ID, value);
}
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 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)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 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 KEY_ALIAS:
if (value == null) {
unsetKey_alias();
} else {
if (value instanceof byte[]) {
setKey_alias((byte[])value);
} else {
setKey_alias((ByteBuffer)value);
}
}
break;
case COMPACTION_STRATEGY:
if (value == null) {
unsetCompaction_strategy();
} else {
setCompaction_strategy((String)value);
}
break;
case COMPACTION_STRATEGY_OPTIONS:
if (value == null) {
unsetCompaction_strategy_options();
} else {
setCompaction_strategy_options((Map)value);
}
break;
case COMPRESSION_OPTIONS:
if (value == null) {
unsetCompression_options();
} else {
setCompression_options((Map)value);
}
break;
case BLOOM_FILTER_FP_CHANCE:
if (value == null) {
unsetBloom_filter_fp_chance();
} else {
setBloom_filter_fp_chance((Double)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 READ_REPAIR_CHANCE:
return getRead_repair_chance();
case COLUMN_METADATA:
return getColumn_metadata();
case GC_GRACE_SECONDS:
return getGc_grace_seconds();
case DEFAULT_VALIDATION_CLASS:
return getDefault_validation_class();
case ID:
return getId();
case MIN_COMPACTION_THRESHOLD:
return getMin_compaction_threshold();
case MAX_COMPACTION_THRESHOLD:
return getMax_compaction_threshold();
case REPLICATE_ON_WRITE:
return isReplicate_on_write();
case MERGE_SHARDS_CHANCE:
return getMerge_shards_chance();
case KEY_VALIDATION_CLASS:
return getKey_validation_class();
case KEY_ALIAS:
return getKey_alias();
case COMPACTION_STRATEGY:
return getCompaction_strategy();
case COMPACTION_STRATEGY_OPTIONS:
return getCompaction_strategy_options();
case COMPRESSION_OPTIONS:
return getCompression_options();
case BLOOM_FILTER_FP_CHANCE:
return getBloom_filter_fp_chance();
}
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 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 REPLICATE_ON_WRITE:
return isSetReplicate_on_write();
case MERGE_SHARDS_CHANCE:
return isSetMerge_shards_chance();
case KEY_VALIDATION_CLASS:
return isSetKey_validation_class();
case KEY_ALIAS:
return isSetKey_alias();
case COMPACTION_STRATEGY:
return isSetCompaction_strategy();
case COMPACTION_STRATEGY_OPTIONS:
return isSetCompaction_strategy_options();
case COMPRESSION_OPTIONS:
return isSetCompression_options();
case BLOOM_FILTER_FP_CHANCE:
return isSetBloom_filter_fp_chance();
}
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_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_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_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;
}
boolean this_present_compaction_strategy = true && this.isSetCompaction_strategy();
boolean that_present_compaction_strategy = true && that.isSetCompaction_strategy();
if (this_present_compaction_strategy || that_present_compaction_strategy) {
if (!(this_present_compaction_strategy && that_present_compaction_strategy))
return false;
if (!this.compaction_strategy.equals(that.compaction_strategy))
return false;
}
boolean this_present_compaction_strategy_options = true && this.isSetCompaction_strategy_options();
boolean that_present_compaction_strategy_options = true && that.isSetCompaction_strategy_options();
if (this_present_compaction_strategy_options || that_present_compaction_strategy_options) {
if (!(this_present_compaction_strategy_options && that_present_compaction_strategy_options))
return false;
if (!this.compaction_strategy_options.equals(that.compaction_strategy_options))
return false;
}
boolean this_present_compression_options = true && this.isSetCompression_options();
boolean that_present_compression_options = true && that.isSetCompression_options();
if (this_present_compression_options || that_present_compression_options) {
if (!(this_present_compression_options && that_present_compression_options))
return false;
if (!this.compression_options.equals(that.compression_options))
return false;
}
boolean this_present_bloom_filter_fp_chance = true && this.isSetBloom_filter_fp_chance();
boolean that_present_bloom_filter_fp_chance = true && that.isSetBloom_filter_fp_chance();
if (this_present_bloom_filter_fp_chance || that_present_bloom_filter_fp_chance) {
if (!(this_present_bloom_filter_fp_chance && that_present_bloom_filter_fp_chance))
return false;
if (this.bloom_filter_fp_chance != that.bloom_filter_fp_chance)
return false;
}
return true;
}
@Override
public int hashCode() {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy