Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6882010C0A for ; Thu, 29 Aug 2013 23:57:46 +0000 (UTC) Received: (qmail 48717 invoked by uid 500); 29 Aug 2013 23:57:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 48623 invoked by uid 500); 29 Aug 2013 23:57:45 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 48442 invoked by uid 99); 29 Aug 2013 23:57:45 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 23:57:45 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 6603989E043; Thu, 29 Aug 2013 23:57:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aleksey@apache.org To: commits@cassandra.apache.org Date: Thu, 29 Aug 2013 23:57:48 -0000 Message-Id: <540e4fd7c3cd418fb220048a7b375373@git.apache.org> In-Reply-To: <65acf8129c4f42ab8307d34062223cac@git.apache.org> References: <65acf8129c4f42ab8307d34062223cac@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [4/6] Upgrade Thrift to 0.9.1 http://git-wip-us.apache.org/repos/asf/cassandra/blob/bffd9ea8/interface/thrift/gen-java/org/apache/cassandra/thrift/CfDef.java ---------------------------------------------------------------------- diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/CfDef.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/CfDef.java index 7cd42f2..0bdb500 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/CfDef.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/CfDef.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,7 @@ package org.apache.cassandra.thrift; */ -import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -37,6 +37,8 @@ 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; @@ -52,7 +54,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class CfDef implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +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); @@ -528,7 +530,7 @@ public class CfDef implements org.apache.thrift.TBase, jav } this.read_repair_chance = other.read_repair_chance; if (other.isSetColumn_metadata()) { - List __this__column_metadata = new ArrayList(); + 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)); } @@ -553,33 +555,11 @@ public class CfDef implements org.apache.thrift.TBase, jav this.compaction_strategy = other.compaction_strategy; } if (other.isSetCompaction_strategy_options()) { - Map __this__compaction_strategy_options = new HashMap(); - for (Map.Entry other_element : other.compaction_strategy_options.entrySet()) { - - String other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - String __this__compaction_strategy_options_copy_key = other_element_key; - - String __this__compaction_strategy_options_copy_value = other_element_value; - - __this__compaction_strategy_options.put(__this__compaction_strategy_options_copy_key, __this__compaction_strategy_options_copy_value); - } + 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(); - for (Map.Entry other_element : other.compression_options.entrySet()) { - - String other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - String __this__compression_options_copy_key = other_element_key; - - String __this__compression_options_copy_value = other_element_value; - - __this__compression_options.put(__this__compression_options_copy_key, __this__compression_options_copy_value); - } + 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; @@ -595,7 +575,7 @@ public class CfDef implements org.apache.thrift.TBase, jav this.speculative_retry = other.speculative_retry; } if (other.isSetTriggers()) { - List __this__triggers = new ArrayList(); + List __this__triggers = new ArrayList(other.triggers.size()); for (TriggerDef other_element : other.triggers) { __this__triggers.add(new TriggerDef(other_element)); } @@ -2770,390 +2750,390 @@ public class CfDef implements org.apache.thrift.TBase, jav return builder.toHashCode(); } + @Override 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()); + lastComparison = Boolean.valueOf(isSetKeyspace()).compareTo(other.isSetKeyspace()); if (lastComparison != 0) { return lastComparison; } if (isSetKeyspace()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyspace, typedOther.keyspace); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyspace, other.keyspace); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_type()).compareTo(typedOther.isSetColumn_type()); + lastComparison = Boolean.valueOf(isSetColumn_type()).compareTo(other.isSetColumn_type()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_type, typedOther.column_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_type, other.column_type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetComparator_type()).compareTo(typedOther.isSetComparator_type()); + lastComparison = Boolean.valueOf(isSetComparator_type()).compareTo(other.isSetComparator_type()); if (lastComparison != 0) { return lastComparison; } if (isSetComparator_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comparator_type, typedOther.comparator_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comparator_type, other.comparator_type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSubcomparator_type()).compareTo(typedOther.isSetSubcomparator_type()); + lastComparison = Boolean.valueOf(isSetSubcomparator_type()).compareTo(other.isSetSubcomparator_type()); if (lastComparison != 0) { return lastComparison; } if (isSetSubcomparator_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subcomparator_type, typedOther.subcomparator_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subcomparator_type, other.subcomparator_type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment()); + lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment()); if (lastComparison != 0) { return lastComparison; } if (isSetComment()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, other.comment); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRead_repair_chance()).compareTo(typedOther.isSetRead_repair_chance()); + lastComparison = Boolean.valueOf(isSetRead_repair_chance()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.read_repair_chance, other.read_repair_chance); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_metadata()).compareTo(typedOther.isSetColumn_metadata()); + lastComparison = Boolean.valueOf(isSetColumn_metadata()).compareTo(other.isSetColumn_metadata()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_metadata()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_metadata, typedOther.column_metadata); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_metadata, other.column_metadata); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGc_grace_seconds()).compareTo(typedOther.isSetGc_grace_seconds()); + lastComparison = Boolean.valueOf(isSetGc_grace_seconds()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gc_grace_seconds, other.gc_grace_seconds); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDefault_validation_class()).compareTo(typedOther.isSetDefault_validation_class()); + lastComparison = Boolean.valueOf(isSetDefault_validation_class()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.default_validation_class, other.default_validation_class); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); + lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMin_compaction_threshold()).compareTo(typedOther.isSetMin_compaction_threshold()); + lastComparison = Boolean.valueOf(isSetMin_compaction_threshold()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min_compaction_threshold, other.min_compaction_threshold); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_compaction_threshold()).compareTo(typedOther.isSetMax_compaction_threshold()); + lastComparison = Boolean.valueOf(isSetMax_compaction_threshold()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_compaction_threshold, other.max_compaction_threshold); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReplicate_on_write()).compareTo(typedOther.isSetReplicate_on_write()); + lastComparison = Boolean.valueOf(isSetReplicate_on_write()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replicate_on_write, other.replicate_on_write); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetKey_validation_class()).compareTo(typedOther.isSetKey_validation_class()); + lastComparison = Boolean.valueOf(isSetKey_validation_class()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_validation_class, other.key_validation_class); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetKey_alias()).compareTo(typedOther.isSetKey_alias()); + lastComparison = Boolean.valueOf(isSetKey_alias()).compareTo(other.isSetKey_alias()); if (lastComparison != 0) { return lastComparison; } if (isSetKey_alias()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_alias, typedOther.key_alias); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_alias, other.key_alias); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompaction_strategy()).compareTo(typedOther.isSetCompaction_strategy()); + lastComparison = Boolean.valueOf(isSetCompaction_strategy()).compareTo(other.isSetCompaction_strategy()); if (lastComparison != 0) { return lastComparison; } if (isSetCompaction_strategy()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compaction_strategy, typedOther.compaction_strategy); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compaction_strategy, other.compaction_strategy); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompaction_strategy_options()).compareTo(typedOther.isSetCompaction_strategy_options()); + lastComparison = Boolean.valueOf(isSetCompaction_strategy_options()).compareTo(other.isSetCompaction_strategy_options()); if (lastComparison != 0) { return lastComparison; } if (isSetCompaction_strategy_options()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compaction_strategy_options, typedOther.compaction_strategy_options); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compaction_strategy_options, other.compaction_strategy_options); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompression_options()).compareTo(typedOther.isSetCompression_options()); + lastComparison = Boolean.valueOf(isSetCompression_options()).compareTo(other.isSetCompression_options()); if (lastComparison != 0) { return lastComparison; } if (isSetCompression_options()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression_options, typedOther.compression_options); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression_options, other.compression_options); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBloom_filter_fp_chance()).compareTo(typedOther.isSetBloom_filter_fp_chance()); + lastComparison = Boolean.valueOf(isSetBloom_filter_fp_chance()).compareTo(other.isSetBloom_filter_fp_chance()); if (lastComparison != 0) { return lastComparison; } if (isSetBloom_filter_fp_chance()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloom_filter_fp_chance, typedOther.bloom_filter_fp_chance); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bloom_filter_fp_chance, other.bloom_filter_fp_chance); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCaching()).compareTo(typedOther.isSetCaching()); + lastComparison = Boolean.valueOf(isSetCaching()).compareTo(other.isSetCaching()); if (lastComparison != 0) { return lastComparison; } if (isSetCaching()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.caching, typedOther.caching); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.caching, other.caching); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDclocal_read_repair_chance()).compareTo(typedOther.isSetDclocal_read_repair_chance()); + lastComparison = Boolean.valueOf(isSetDclocal_read_repair_chance()).compareTo(other.isSetDclocal_read_repair_chance()); if (lastComparison != 0) { return lastComparison; } if (isSetDclocal_read_repair_chance()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dclocal_read_repair_chance, typedOther.dclocal_read_repair_chance); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dclocal_read_repair_chance, other.dclocal_read_repair_chance); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPopulate_io_cache_on_flush()).compareTo(typedOther.isSetPopulate_io_cache_on_flush()); + lastComparison = Boolean.valueOf(isSetPopulate_io_cache_on_flush()).compareTo(other.isSetPopulate_io_cache_on_flush()); if (lastComparison != 0) { return lastComparison; } if (isSetPopulate_io_cache_on_flush()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.populate_io_cache_on_flush, typedOther.populate_io_cache_on_flush); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.populate_io_cache_on_flush, other.populate_io_cache_on_flush); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMemtable_flush_period_in_ms()).compareTo(typedOther.isSetMemtable_flush_period_in_ms()); + lastComparison = Boolean.valueOf(isSetMemtable_flush_period_in_ms()).compareTo(other.isSetMemtable_flush_period_in_ms()); if (lastComparison != 0) { return lastComparison; } if (isSetMemtable_flush_period_in_ms()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.memtable_flush_period_in_ms, typedOther.memtable_flush_period_in_ms); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.memtable_flush_period_in_ms, other.memtable_flush_period_in_ms); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDefault_time_to_live()).compareTo(typedOther.isSetDefault_time_to_live()); + lastComparison = Boolean.valueOf(isSetDefault_time_to_live()).compareTo(other.isSetDefault_time_to_live()); if (lastComparison != 0) { return lastComparison; } if (isSetDefault_time_to_live()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.default_time_to_live, typedOther.default_time_to_live); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.default_time_to_live, other.default_time_to_live); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_interval()).compareTo(typedOther.isSetIndex_interval()); + lastComparison = Boolean.valueOf(isSetIndex_interval()).compareTo(other.isSetIndex_interval()); if (lastComparison != 0) { return lastComparison; } if (isSetIndex_interval()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_interval, typedOther.index_interval); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_interval, other.index_interval); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSpeculative_retry()).compareTo(typedOther.isSetSpeculative_retry()); + lastComparison = Boolean.valueOf(isSetSpeculative_retry()).compareTo(other.isSetSpeculative_retry()); if (lastComparison != 0) { return lastComparison; } if (isSetSpeculative_retry()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.speculative_retry, typedOther.speculative_retry); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.speculative_retry, other.speculative_retry); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTriggers()).compareTo(typedOther.isSetTriggers()); + lastComparison = Boolean.valueOf(isSetTriggers()).compareTo(other.isSetTriggers()); if (lastComparison != 0) { return lastComparison; } if (isSetTriggers()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.triggers, typedOther.triggers); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.triggers, other.triggers); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow_cache_size()).compareTo(typedOther.isSetRow_cache_size()); + lastComparison = Boolean.valueOf(isSetRow_cache_size()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row_cache_size, other.row_cache_size); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetKey_cache_size()).compareTo(typedOther.isSetKey_cache_size()); + lastComparison = Boolean.valueOf(isSetKey_cache_size()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_cache_size, other.key_cache_size); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow_cache_save_period_in_seconds()).compareTo(typedOther.isSetRow_cache_save_period_in_seconds()); + lastComparison = Boolean.valueOf(isSetRow_cache_save_period_in_seconds()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row_cache_save_period_in_seconds, other.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()); + lastComparison = Boolean.valueOf(isSetKey_cache_save_period_in_seconds()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_cache_save_period_in_seconds, other.key_cache_save_period_in_seconds); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMemtable_flush_after_mins()).compareTo(typedOther.isSetMemtable_flush_after_mins()); + lastComparison = Boolean.valueOf(isSetMemtable_flush_after_mins()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.memtable_flush_after_mins, other.memtable_flush_after_mins); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMemtable_throughput_in_mb()).compareTo(typedOther.isSetMemtable_throughput_in_mb()); + lastComparison = Boolean.valueOf(isSetMemtable_throughput_in_mb()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.memtable_throughput_in_mb, other.memtable_throughput_in_mb); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMemtable_operations_in_millions()).compareTo(typedOther.isSetMemtable_operations_in_millions()); + lastComparison = Boolean.valueOf(isSetMemtable_operations_in_millions()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.memtable_operations_in_millions, other.memtable_operations_in_millions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMerge_shards_chance()).compareTo(typedOther.isSetMerge_shards_chance()); + lastComparison = Boolean.valueOf(isSetMerge_shards_chance()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merge_shards_chance, other.merge_shards_chance); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow_cache_provider()).compareTo(typedOther.isSetRow_cache_provider()); + lastComparison = Boolean.valueOf(isSetRow_cache_provider()).compareTo(other.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row_cache_provider, other.row_cache_provider); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRow_cache_keys_to_save()).compareTo(typedOther.isSetRow_cache_keys_to_save()); + lastComparison = Boolean.valueOf(isSetRow_cache_keys_to_save()).compareTo(other.isSetRow_cache_keys_to_save()); if (lastComparison != 0) { return lastComparison; } if (isSetRow_cache_keys_to_save()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row_cache_keys_to_save, typedOther.row_cache_keys_to_save); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row_cache_keys_to_save, other.row_cache_keys_to_save); if (lastComparison != 0) { return lastComparison; } @@ -3583,7 +3563,7 @@ public class CfDef implements org.apache.thrift.TBase, jav struct.column_metadata = new ArrayList(_list110.size); for (int _i111 = 0; _i111 < _list110.size; ++_i111) { - ColumnDef _elem112; // required + ColumnDef _elem112; _elem112 = new ColumnDef(); _elem112.read(iprot); struct.column_metadata.add(_elem112); @@ -3674,8 +3654,8 @@ public class CfDef implements org.apache.thrift.TBase, jav struct.compaction_strategy_options = new HashMap(2*_map113.size); for (int _i114 = 0; _i114 < _map113.size; ++_i114) { - String _key115; // required - String _val116; // required + String _key115; + String _val116; _key115 = iprot.readString(); _val116 = iprot.readString(); struct.compaction_strategy_options.put(_key115, _val116); @@ -3694,8 +3674,8 @@ public class CfDef implements org.apache.thrift.TBase, jav struct.compression_options = new HashMap(2*_map117.size); for (int _i118 = 0; _i118 < _map117.size; ++_i118) { - String _key119; // required - String _val120; // required + String _key119; + String _val120; _key119 = iprot.readString(); _val120 = iprot.readString(); struct.compression_options.put(_key119, _val120); @@ -3778,7 +3758,7 @@ public class CfDef implements org.apache.thrift.TBase, jav struct.triggers = new ArrayList(_list121.size); for (int _i122 = 0; _i122 < _list121.size; ++_i122) { - TriggerDef _elem123; // required + TriggerDef _elem123; _elem123 = new TriggerDef(); _elem123.read(iprot); struct.triggers.add(_elem123); @@ -4434,7 +4414,7 @@ public class CfDef implements org.apache.thrift.TBase, jav struct.column_metadata = new ArrayList(_list132.size); for (int _i133 = 0; _i133 < _list132.size; ++_i133) { - ColumnDef _elem134; // required + ColumnDef _elem134; _elem134 = new ColumnDef(); _elem134.read(iprot); struct.column_metadata.add(_elem134); @@ -4484,8 +4464,8 @@ public class CfDef implements org.apache.thrift.TBase, jav struct.compaction_strategy_options = new HashMap(2*_map135.size); for (int _i136 = 0; _i136 < _map135.size; ++_i136) { - String _key137; // required - String _val138; // required + String _key137; + String _val138; _key137 = iprot.readString(); _val138 = iprot.readString(); struct.compaction_strategy_options.put(_key137, _val138); @@ -4499,8 +4479,8 @@ public class CfDef implements org.apache.thrift.TBase, jav struct.compression_options = new HashMap(2*_map139.size); for (int _i140 = 0; _i140 < _map139.size; ++_i140) { - String _key141; // required - String _val142; // required + String _key141; + String _val142; _key141 = iprot.readString(); _val142 = iprot.readString(); struct.compression_options.put(_key141, _val142); @@ -4546,7 +4526,7 @@ public class CfDef implements org.apache.thrift.TBase, jav struct.triggers = new ArrayList(_list143.size); for (int _i144 = 0; _i144 < _list143.size; ++_i144) { - TriggerDef _elem145; // required + TriggerDef _elem145; _elem145 = new TriggerDef(); _elem145.read(iprot); struct.triggers.add(_elem145); http://git-wip-us.apache.org/repos/asf/cassandra/blob/bffd9ea8/interface/thrift/gen-java/org/apache/cassandra/thrift/CfSplit.java ---------------------------------------------------------------------- diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/CfSplit.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/CfSplit.java index b975e21..f765b87 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/CfSplit.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/CfSplit.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,7 @@ package org.apache.cassandra.thrift; */ -import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -37,6 +37,8 @@ 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; @@ -55,7 +57,7 @@ import org.slf4j.LoggerFactory; /** * Represents input splits used by hadoop ColumnFamilyRecordReaders */ -public class CfSplit implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class CfSplit 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("CfSplit"); private static final org.apache.thrift.protocol.TField START_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("start_token", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -390,40 +392,40 @@ public class CfSplit implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class Column 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("Column"); 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)1); @@ -473,50 +475,50 @@ public class Column implements org.apache.thrift.TBase, return builder.toHashCode(); } + @Override public int compareTo(Column other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - Column typedOther = (Column)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); + lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTtl()).compareTo(typedOther.isSetTtl()); + lastComparison = Boolean.valueOf(isSetTtl()).compareTo(other.isSetTtl()); if (lastComparison != 0) { return lastComparison; } if (isSetTtl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ttl, typedOther.ttl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ttl, other.ttl); if (lastComparison != 0) { return lastComparison; } http://git-wip-us.apache.org/repos/asf/cassandra/blob/bffd9ea8/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnDef.java ---------------------------------------------------------------------- diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnDef.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnDef.java index 35ec3b7..951c967 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnDef.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnDef.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,7 @@ package org.apache.cassandra.thrift; */ -import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -37,6 +37,8 @@ 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; @@ -52,7 +54,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class ColumnDef implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class ColumnDef 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("ColumnDef"); 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)1); @@ -202,18 +204,7 @@ public class ColumnDef implements org.apache.thrift.TBase __this__index_options = new HashMap(); - for (Map.Entry other_element : other.index_options.entrySet()) { - - String other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - String __this__index_options_copy_key = other_element_key; - - String __this__index_options_copy_value = other_element_value; - - __this__index_options.put(__this__index_options_copy_key, __this__index_options_copy_value); - } + Map __this__index_options = new HashMap(other.index_options); this.index_options = __this__index_options; } } @@ -560,60 +551,60 @@ public class ColumnDef implements org.apache.thrift.TBase(2*_map90.size); for (int _i91 = 0; _i91 < _map90.size; ++_i91) { - String _key92; // required - String _val93; // required + String _key92; + String _val93; _key92 = iprot.readString(); _val93 = iprot.readString(); struct.index_options.put(_key92, _val93); @@ -908,8 +899,8 @@ public class ColumnDef implements org.apache.thrift.TBase(2*_map96.size); for (int _i97 = 0; _i97 < _map96.size; ++_i97) { - String _key98; // required - String _val99; // required + String _key98; + String _val99; _key98 = iprot.readString(); _val99 = iprot.readString(); struct.index_options.put(_key98, _val99); http://git-wip-us.apache.org/repos/asf/cassandra/blob/bffd9ea8/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnOrSuperColumn.java ---------------------------------------------------------------------- diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnOrSuperColumn.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnOrSuperColumn.java index 8831e38..2de9d0e 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnOrSuperColumn.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/ColumnOrSuperColumn.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,7 @@ package org.apache.cassandra.thrift; */ -import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -37,6 +37,8 @@ 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; @@ -67,7 +69,7 @@ import org.slf4j.LoggerFactory; * @param counter_column. The Counterolumn returned by get() or get_slice(). * @param counter_super_column. The CounterSuperColumn returned by get() or get_slice(). */ -public class ColumnOrSuperColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class ColumnOrSuperColumn 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("ColumnOrSuperColumn"); private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -452,50 +454,50 @@ public class ColumnOrSuperColumn implements org.apache.thrift.TBaseColumnPath */ -public class ColumnParent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class ColumnParent 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("ColumnParent"); private static final org.apache.thrift.protocol.TField COLUMN_FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("column_family", org.apache.thrift.protocol.TType.STRING, (short)3); @@ -337,30 +339,30 @@ public class ColumnParent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class ColumnPath 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("ColumnPath"); private static final org.apache.thrift.protocol.TField COLUMN_FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("column_family", org.apache.thrift.protocol.TType.STRING, (short)3); @@ -414,40 +416,40 @@ public class ColumnPath implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class CounterColumn 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("CounterColumn"); 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)1); @@ -334,30 +336,30 @@ public class CounterColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class CounterSuperColumn 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("CounterSuperColumn"); 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)1); @@ -162,7 +164,7 @@ public class CounterSuperColumn implements org.apache.thrift.TBase __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (CounterColumn other_element : other.columns) { __this__columns.add(new CounterColumn(other_element)); } @@ -352,30 +354,30 @@ public class CounterSuperColumn implements org.apache.thrift.TBase(_list8.size); for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - CounterColumn _elem10; // required + CounterColumn _elem10; _elem10 = new CounterColumn(); _elem10.read(iprot); struct.columns.add(_elem10); @@ -560,7 +562,7 @@ public class CounterSuperColumn implements org.apache.thrift.TBase(_list13.size); for (int _i14 = 0; _i14 < _list13.size; ++_i14) { - CounterColumn _elem15; // required + CounterColumn _elem15; _elem15 = new CounterColumn(); _elem15.read(iprot); struct.columns.add(_elem15); http://git-wip-us.apache.org/repos/asf/cassandra/blob/bffd9ea8/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlMetadata.java ---------------------------------------------------------------------- diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlMetadata.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlMetadata.java index e37d200..e2dcfa3 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlMetadata.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlMetadata.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.0) + * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,7 @@ package org.apache.cassandra.thrift; */ -import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -37,6 +37,8 @@ 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; @@ -52,7 +54,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class CqlMetadata implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class CqlMetadata 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("CqlMetadata"); private static final org.apache.thrift.protocol.TField NAME_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("name_types", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -179,35 +181,11 @@ public class CqlMetadata implements org.apache.thrift.TBase __this__name_types = new HashMap(); - for (Map.Entry other_element : other.name_types.entrySet()) { - - ByteBuffer other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - ByteBuffer __this__name_types_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); -; - - String __this__name_types_copy_value = other_element_value; - - __this__name_types.put(__this__name_types_copy_key, __this__name_types_copy_value); - } + Map __this__name_types = new HashMap(other.name_types); this.name_types = __this__name_types; } if (other.isSetValue_types()) { - Map __this__value_types = new HashMap(); - for (Map.Entry other_element : other.value_types.entrySet()) { - - ByteBuffer other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - ByteBuffer __this__value_types_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); -; - - String __this__value_types_copy_value = other_element_value; - - __this__value_types.put(__this__value_types_copy_key, __this__value_types_copy_value); - } + Map __this__value_types = new HashMap(other.value_types); this.value_types = __this__value_types; } if (other.isSetDefault_name_type()) { @@ -501,50 +479,50 @@ public class CqlMetadata implements org.apache.thrift.TBase(2*_map172.size); for (int _i173 = 0; _i173 < _map172.size; ++_i173) { - ByteBuffer _key174; // required - String _val175; // required + ByteBuffer _key174; + String _val175; _key174 = iprot.readBinary(); _val175 = iprot.readString(); struct.name_types.put(_key174, _val175); @@ -682,8 +660,8 @@ public class CqlMetadata implements org.apache.thrift.TBase(2*_map176.size); for (int _i177 = 0; _i177 < _map176.size; ++_i177) { - ByteBuffer _key178; // required - String _val179; // required + ByteBuffer _key178; + String _val179; _key178 = iprot.readBinary(); _val179 = iprot.readString(); struct.value_types.put(_key178, _val179); @@ -807,8 +785,8 @@ public class CqlMetadata implements org.apache.thrift.TBase(2*_map184.size); for (int _i185 = 0; _i185 < _map184.size; ++_i185) { - ByteBuffer _key186; // required - String _val187; // required + ByteBuffer _key186; + String _val187; _key186 = iprot.readBinary(); _val187 = iprot.readString(); struct.name_types.put(_key186, _val187); @@ -820,8 +798,8 @@ public class CqlMetadata implements org.apache.thrift.TBase(2*_map188.size); for (int _i189 = 0; _i189 < _map188.size; ++_i189) { - ByteBuffer _key190; // required - String _val191; // required + ByteBuffer _key190; + String _val191; _key190 = iprot.readBinary(); _val191 = iprot.readString(); struct.value_types.put(_key190, _val191);