diff --git a/CHANGES.txt b/CHANGES.txt index 2d3ee24079..863214c92e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,7 @@ (CASSANDRA-5722) * Add ability for CQL3 to list partition keys (CASSANDRA-4536) * Improve native protocol serialization (CASSANDRA-5664) + * Upgrade Thrift to 0.9.1 (CASSANDRA-5923) Merged from 1.2: * Fix CqlRecordWriter with composite keys (CASSANDRA-5949) * Add snitch, schema version, cluster, partitioner to JMX (CASSANDRA-5881) diff --git a/build.xml b/build.xml index 4fc9817fb5..4d8ae14288 100644 --- a/build.xml +++ b/build.xml @@ -340,7 +340,7 @@ - + @@ -355,7 +355,7 @@ - + diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationException.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationException.java index a2e917c444..b16c400133 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationException.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationException.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,24 +27,37 @@ 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; 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 org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * invalid authentication request (invalid keyspace, user does not exist, or credentials invalid) */ -public class AuthenticationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class AuthenticationException extends TException 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("AuthenticationException"); private static final org.apache.thrift.protocol.TField WHY_FIELD_DESC = new org.apache.thrift.protocol.TField("why", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -249,20 +262,20 @@ public class AuthenticationException extends TException implements org.apache.th return builder.toHashCode(); } + @Override public int compareTo(AuthenticationException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - AuthenticationException typedOther = (AuthenticationException)other; - lastComparison = Boolean.valueOf(isSetWhy()).compareTo(typedOther.isSetWhy()); + lastComparison = Boolean.valueOf(isSetWhy()).compareTo(other.isSetWhy()); if (lastComparison != 0) { return lastComparison; } if (isSetWhy()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.why, typedOther.why); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.why, other.why); if (lastComparison != 0) { return lastComparison; } diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationRequest.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationRequest.java index 5697987b84..5778fa5a47 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationRequest.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationRequest.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; /** * Authentication requests can contain any data, dependent on the IAuthenticator used */ -public class AuthenticationRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class AuthenticationRequest 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("AuthenticationRequest"); private static final org.apache.thrift.protocol.TField CREDENTIALS_FIELD_DESC = new org.apache.thrift.protocol.TField("credentials", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -153,18 +155,7 @@ public class AuthenticationRequest implements org.apache.thrift.TBase __this__credentials = new HashMap(); - for (Map.Entry other_element : other.credentials.entrySet()) { - - String other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - String __this__credentials_copy_key = other_element_key; - - String __this__credentials_copy_value = other_element_value; - - __this__credentials.put(__this__credentials_copy_key, __this__credentials_copy_value); - } + Map __this__credentials = new HashMap(other.credentials); this.credentials = __this__credentials; } } @@ -285,20 +276,20 @@ public class AuthenticationRequest implements org.apache.thrift.TBase(2*_map80.size); for (int _i81 = 0; _i81 < _map80.size; ++_i81) { - String _key82; // required - String _val83; // required + String _key82; + String _val83; _key82 = iprot.readString(); _val83 = iprot.readString(); struct.credentials.put(_key82, _val83); @@ -459,8 +450,8 @@ public class AuthenticationRequest implements org.apache.thrift.TBase(2*_map86.size); for (int _i87 = 0; _i87 < _map86.size; ++_i87) { - String _key88; // required - String _val89; // required + String _key88; + String _val89; _key88 = iprot.readString(); _val89 = iprot.readString(); struct.credentials.put(_key88, _val89); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthorizationException.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthorizationException.java index f3a8506112..cd1bdf72fd 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthorizationException.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthorizationException.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; /** * invalid authorization request (user does not have access to keyspace) */ -public class AuthorizationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class AuthorizationException extends TException 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("AuthorizationException"); private static final org.apache.thrift.protocol.TField WHY_FIELD_DESC = new org.apache.thrift.protocol.TField("why", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -260,20 +262,20 @@ public class AuthorizationException extends TException implements org.apache.thr return builder.toHashCode(); } + @Override public int compareTo(AuthorizationException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - AuthorizationException typedOther = (AuthorizationException)other; - lastComparison = Boolean.valueOf(isSetWhy()).compareTo(typedOther.isSetWhy()); + lastComparison = Boolean.valueOf(isSetWhy()).compareTo(other.isSetWhy()); if (lastComparison != 0) { return lastComparison; } if (isSetWhy()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.why, typedOther.why); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.why, other.why); if (lastComparison != 0) { return lastComparison; } diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/CASResult.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/CASResult.java index d18241d9be..4d21bfe5e3 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/CASResult.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/CASResult.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 CASResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class CASResult 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("CASResult"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -162,7 +164,7 @@ public class CASResult implements org.apache.thrift.TBase __this__current_values = new ArrayList(); + List __this__current_values = new ArrayList(other.current_values.size()); for (Column other_element : other.current_values) { __this__current_values.add(new Column(other_element)); } @@ -342,30 +344,30 @@ public class CASResult implements org.apache.thrift.TBase(_list48.size); for (int _i49 = 0; _i49 < _list48.size; ++_i49) { - Column _elem50; // required + Column _elem50; _elem50 = new Column(); _elem50.read(iprot); struct.current_values.add(_elem50); @@ -557,7 +559,7 @@ public class CASResult implements org.apache.thrift.TBase(_list53.size); for (int _i54 = 0; _i54 < _list53.size; ++_i54) { - Column _elem55; // required + Column _elem55; _elem55 = new Column(); _elem55.read(iprot); struct.current_values.add(_elem55); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java index e495373e56..837acfc0e9 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.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; @@ -370,18 +372,33 @@ public class Cassandra { public String system_update_column_family(CfDef cf_def) throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException; /** - * Executes a CQL (Cassandra Query Language) statement and returns a - * CqlResult containing the results. + * @deprecated Will become a no-op in 2.2. Please use the CQL3 version instead. * * @param query * @param compression */ public CqlResult execute_cql_query(ByteBuffer query, Compression compression) throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, org.apache.thrift.TException; + /** + * Executes a CQL3 (Cassandra Query Language) statement and returns a + * CqlResult containing the results. + * + * @param query + * @param compression + * @param consistency + */ public CqlResult execute_cql3_query(ByteBuffer query, Compression compression, ConsistencyLevel consistency) throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, org.apache.thrift.TException; /** - * Prepare a CQL (Cassandra Query Language) statement by compiling and returning + * @deprecated Will become a no-op in 2.2. Please use the CQL3 version instead. + * + * @param query + * @param compression + */ + public CqlPreparedResult prepare_cql_query(ByteBuffer query, Compression compression) throws InvalidRequestException, org.apache.thrift.TException; + + /** + * Prepare a CQL3 (Cassandra Query Language) statement by compiling and returning * - the type of CQL statement * - an id token of the compiled CQL stored on the server side. * - a count of the discovered bound markers in the statement @@ -389,19 +406,24 @@ public class Cassandra { * @param query * @param compression */ - public CqlPreparedResult prepare_cql_query(ByteBuffer query, Compression compression) throws InvalidRequestException, org.apache.thrift.TException; - public CqlPreparedResult prepare_cql3_query(ByteBuffer query, Compression compression) throws InvalidRequestException, org.apache.thrift.TException; /** - * Executes a prepared CQL (Cassandra Query Language) statement by passing an id token and a list of variables - * to bind and returns a CqlResult containing the results. + * @deprecated Will become a no-op in 2.2. Please use the CQL3 version instead. * * @param itemId * @param values */ public CqlResult execute_prepared_cql_query(int itemId, List values) throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, org.apache.thrift.TException; + /** + * Executes a prepared CQL3 (Cassandra Query Language) statement by passing an id token, a list of variables + * to bind, and the consistency level, and returns a CqlResult containing the results. + * + * @param itemId + * @param values + * @param consistency + */ public CqlResult execute_prepared_cql3_query(int itemId, List values, ConsistencyLevel consistency) throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, org.apache.thrift.TException; /** @@ -415,91 +437,91 @@ public class Cassandra { public interface AsyncIface { - public void login(AuthenticationRequest auth_request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void login(AuthenticationRequest auth_request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void set_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void set_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_paged_slice(String column_family, KeyRange range, ByteBuffer start_column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_paged_slice(String column_family, KeyRange range, ByteBuffer start_column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void cas(ByteBuffer key, String column_family, List expected, List updates, ConsistencyLevel serial_consistency_level, ConsistencyLevel commit_consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void cas(ByteBuffer key, String column_family, List expected, List updates, ConsistencyLevel serial_consistency_level, ConsistencyLevel commit_consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void atomic_batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void atomic_batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void truncate(String cfname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void truncate(String cfname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_schema_versions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_schema_versions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_keyspaces(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_keyspaces(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_cluster_name(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_cluster_name(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_version(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_version(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_ring(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_ring(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_token_map(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_token_map(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_partitioner(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_partitioner(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_snitch(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_snitch(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_splits(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_splits(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void trace_next_query(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void trace_next_query(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void describe_splits_ex(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void describe_splits_ex(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void system_add_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void system_add_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void system_drop_column_family(String column_family, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void system_drop_column_family(String column_family, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void system_add_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void system_add_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void system_drop_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void system_drop_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void system_update_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void system_update_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void system_update_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void system_update_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void execute_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void execute_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void execute_cql3_query(ByteBuffer query, Compression compression, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void execute_cql3_query(ByteBuffer query, Compression compression, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void prepare_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void prepare_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void prepare_cql3_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void prepare_cql3_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void execute_prepared_cql_query(int itemId, List values, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void execute_prepared_cql_query(int itemId, List values, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void execute_prepared_cql3_query(int itemId, List values, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void execute_prepared_cql3_query(int itemId, List values, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void set_cql_version(String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void set_cql_version(String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -1820,7 +1842,7 @@ public class Cassandra { super(protocolFactory, clientManager, transport); } - public void login(AuthenticationRequest auth_request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void login(AuthenticationRequest auth_request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); login_call method_call = new login_call(auth_request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1829,7 +1851,7 @@ public class Cassandra { public static class login_call extends org.apache.thrift.async.TAsyncMethodCall { private AuthenticationRequest auth_request; - public login_call(AuthenticationRequest auth_request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public login_call(AuthenticationRequest auth_request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.auth_request = auth_request; } @@ -1852,7 +1874,7 @@ public class Cassandra { } } - public void set_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void set_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); set_keyspace_call method_call = new set_keyspace_call(keyspace, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1861,7 +1883,7 @@ public class Cassandra { public static class set_keyspace_call extends org.apache.thrift.async.TAsyncMethodCall { private String keyspace; - public set_keyspace_call(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public set_keyspace_call(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keyspace = keyspace; } @@ -1884,7 +1906,7 @@ public class Cassandra { } } - public void get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_call method_call = new get_call(key, column_path, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1895,7 +1917,7 @@ public class Cassandra { private ByteBuffer key; private ColumnPath column_path; private ConsistencyLevel consistency_level; - public get_call(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_call(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.column_path = column_path; @@ -1922,7 +1944,7 @@ public class Cassandra { } } - public void get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_slice_call method_call = new get_slice_call(key, column_parent, predicate, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1934,7 +1956,7 @@ public class Cassandra { private ColumnParent column_parent; private SlicePredicate predicate; private ConsistencyLevel consistency_level; - public get_slice_call(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_slice_call(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.column_parent = column_parent; @@ -1963,7 +1985,7 @@ public class Cassandra { } } - public void get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_count_call method_call = new get_count_call(key, column_parent, predicate, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1975,7 +1997,7 @@ public class Cassandra { private ColumnParent column_parent; private SlicePredicate predicate; private ConsistencyLevel consistency_level; - public get_count_call(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_count_call(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.column_parent = column_parent; @@ -2004,7 +2026,7 @@ public class Cassandra { } } - public void multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); multiget_slice_call method_call = new multiget_slice_call(keys, column_parent, predicate, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2016,7 +2038,7 @@ public class Cassandra { private ColumnParent column_parent; private SlicePredicate predicate; private ConsistencyLevel consistency_level; - public multiget_slice_call(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public multiget_slice_call(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.column_parent = column_parent; @@ -2045,7 +2067,7 @@ public class Cassandra { } } - public void multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); multiget_count_call method_call = new multiget_count_call(keys, column_parent, predicate, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2057,7 +2079,7 @@ public class Cassandra { private ColumnParent column_parent; private SlicePredicate predicate; private ConsistencyLevel consistency_level; - public multiget_count_call(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public multiget_count_call(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keys = keys; this.column_parent = column_parent; @@ -2086,7 +2108,7 @@ public class Cassandra { } } - public void get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_range_slices_call method_call = new get_range_slices_call(column_parent, predicate, range, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2098,7 +2120,7 @@ public class Cassandra { private SlicePredicate predicate; private KeyRange range; private ConsistencyLevel consistency_level; - public get_range_slices_call(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_range_slices_call(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.column_parent = column_parent; this.predicate = predicate; @@ -2127,7 +2149,7 @@ public class Cassandra { } } - public void get_paged_slice(String column_family, KeyRange range, ByteBuffer start_column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_paged_slice(String column_family, KeyRange range, ByteBuffer start_column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_paged_slice_call method_call = new get_paged_slice_call(column_family, range, start_column, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2139,7 +2161,7 @@ public class Cassandra { private KeyRange range; private ByteBuffer start_column; private ConsistencyLevel consistency_level; - public get_paged_slice_call(String column_family, KeyRange range, ByteBuffer start_column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_paged_slice_call(String column_family, KeyRange range, ByteBuffer start_column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.column_family = column_family; this.range = range; @@ -2168,7 +2190,7 @@ public class Cassandra { } } - public void get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_indexed_slices_call method_call = new get_indexed_slices_call(column_parent, index_clause, column_predicate, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2180,7 +2202,7 @@ public class Cassandra { private IndexClause index_clause; private SlicePredicate column_predicate; private ConsistencyLevel consistency_level; - public get_indexed_slices_call(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_indexed_slices_call(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.column_parent = column_parent; this.index_clause = index_clause; @@ -2209,7 +2231,7 @@ public class Cassandra { } } - public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); insert_call method_call = new insert_call(key, column_parent, column, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2221,7 +2243,7 @@ public class Cassandra { private ColumnParent column_parent; private Column column; private ConsistencyLevel consistency_level; - public insert_call(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public insert_call(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.column_parent = column_parent; @@ -2250,7 +2272,7 @@ public class Cassandra { } } - public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_call method_call = new add_call(key, column_parent, column, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2262,7 +2284,7 @@ public class Cassandra { private ColumnParent column_parent; private CounterColumn column; private ConsistencyLevel consistency_level; - public add_call(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public add_call(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.column_parent = column_parent; @@ -2291,7 +2313,7 @@ public class Cassandra { } } - public void cas(ByteBuffer key, String column_family, List expected, List updates, ConsistencyLevel serial_consistency_level, ConsistencyLevel commit_consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void cas(ByteBuffer key, String column_family, List expected, List updates, ConsistencyLevel serial_consistency_level, ConsistencyLevel commit_consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); cas_call method_call = new cas_call(key, column_family, expected, updates, serial_consistency_level, commit_consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2305,7 +2327,7 @@ public class Cassandra { private List updates; private ConsistencyLevel serial_consistency_level; private ConsistencyLevel commit_consistency_level; - public cas_call(ByteBuffer key, String column_family, List expected, List updates, ConsistencyLevel serial_consistency_level, ConsistencyLevel commit_consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public cas_call(ByteBuffer key, String column_family, List expected, List updates, ConsistencyLevel serial_consistency_level, ConsistencyLevel commit_consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.column_family = column_family; @@ -2338,7 +2360,7 @@ public class Cassandra { } } - public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); remove_call method_call = new remove_call(key, column_path, timestamp, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2350,7 +2372,7 @@ public class Cassandra { private ColumnPath column_path; private long timestamp; private ConsistencyLevel consistency_level; - public remove_call(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public remove_call(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.column_path = column_path; @@ -2379,7 +2401,7 @@ public class Cassandra { } } - public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); remove_counter_call method_call = new remove_counter_call(key, path, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2390,7 +2412,7 @@ public class Cassandra { private ByteBuffer key; private ColumnPath path; private ConsistencyLevel consistency_level; - public remove_counter_call(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public remove_counter_call(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.key = key; this.path = path; @@ -2417,7 +2439,7 @@ public class Cassandra { } } - public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); batch_mutate_call method_call = new batch_mutate_call(mutation_map, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2427,7 +2449,7 @@ public class Cassandra { public static class batch_mutate_call extends org.apache.thrift.async.TAsyncMethodCall { private Map>> mutation_map; private ConsistencyLevel consistency_level; - public batch_mutate_call(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public batch_mutate_call(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.mutation_map = mutation_map; this.consistency_level = consistency_level; @@ -2452,7 +2474,7 @@ public class Cassandra { } } - public void atomic_batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void atomic_batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); atomic_batch_mutate_call method_call = new atomic_batch_mutate_call(mutation_map, consistency_level, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2462,7 +2484,7 @@ public class Cassandra { public static class atomic_batch_mutate_call extends org.apache.thrift.async.TAsyncMethodCall { private Map>> mutation_map; private ConsistencyLevel consistency_level; - public atomic_batch_mutate_call(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public atomic_batch_mutate_call(Map>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.mutation_map = mutation_map; this.consistency_level = consistency_level; @@ -2487,7 +2509,7 @@ public class Cassandra { } } - public void truncate(String cfname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void truncate(String cfname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); truncate_call method_call = new truncate_call(cfname, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2496,7 +2518,7 @@ public class Cassandra { public static class truncate_call extends org.apache.thrift.async.TAsyncMethodCall { private String cfname; - public truncate_call(String cfname, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public truncate_call(String cfname, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.cfname = cfname; } @@ -2519,7 +2541,7 @@ public class Cassandra { } } - public void describe_schema_versions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_schema_versions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_schema_versions_call method_call = new describe_schema_versions_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2527,7 +2549,7 @@ public class Cassandra { } public static class describe_schema_versions_call extends org.apache.thrift.async.TAsyncMethodCall { - public describe_schema_versions_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_schema_versions_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } @@ -2548,7 +2570,7 @@ public class Cassandra { } } - public void describe_keyspaces(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_keyspaces(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_keyspaces_call method_call = new describe_keyspaces_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2556,7 +2578,7 @@ public class Cassandra { } public static class describe_keyspaces_call extends org.apache.thrift.async.TAsyncMethodCall { - public describe_keyspaces_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_keyspaces_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } @@ -2577,7 +2599,7 @@ public class Cassandra { } } - public void describe_cluster_name(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_cluster_name(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_cluster_name_call method_call = new describe_cluster_name_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2585,7 +2607,7 @@ public class Cassandra { } public static class describe_cluster_name_call extends org.apache.thrift.async.TAsyncMethodCall { - public describe_cluster_name_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_cluster_name_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } @@ -2606,7 +2628,7 @@ public class Cassandra { } } - public void describe_version(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_version(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_version_call method_call = new describe_version_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2614,7 +2636,7 @@ public class Cassandra { } public static class describe_version_call extends org.apache.thrift.async.TAsyncMethodCall { - public describe_version_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_version_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } @@ -2635,7 +2657,7 @@ public class Cassandra { } } - public void describe_ring(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_ring(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_ring_call method_call = new describe_ring_call(keyspace, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2644,7 +2666,7 @@ public class Cassandra { public static class describe_ring_call extends org.apache.thrift.async.TAsyncMethodCall { private String keyspace; - public describe_ring_call(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_ring_call(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keyspace = keyspace; } @@ -2667,7 +2689,7 @@ public class Cassandra { } } - public void describe_token_map(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_token_map(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_token_map_call method_call = new describe_token_map_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2675,7 +2697,7 @@ public class Cassandra { } public static class describe_token_map_call extends org.apache.thrift.async.TAsyncMethodCall { - public describe_token_map_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_token_map_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } @@ -2696,7 +2718,7 @@ public class Cassandra { } } - public void describe_partitioner(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_partitioner(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_partitioner_call method_call = new describe_partitioner_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2704,7 +2726,7 @@ public class Cassandra { } public static class describe_partitioner_call extends org.apache.thrift.async.TAsyncMethodCall { - public describe_partitioner_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_partitioner_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } @@ -2725,7 +2747,7 @@ public class Cassandra { } } - public void describe_snitch(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_snitch(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_snitch_call method_call = new describe_snitch_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2733,7 +2755,7 @@ public class Cassandra { } public static class describe_snitch_call extends org.apache.thrift.async.TAsyncMethodCall { - public describe_snitch_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_snitch_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } @@ -2754,7 +2776,7 @@ public class Cassandra { } } - public void describe_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_keyspace_call method_call = new describe_keyspace_call(keyspace, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2763,7 +2785,7 @@ public class Cassandra { public static class describe_keyspace_call extends org.apache.thrift.async.TAsyncMethodCall { private String keyspace; - public describe_keyspace_call(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_keyspace_call(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keyspace = keyspace; } @@ -2786,7 +2808,7 @@ public class Cassandra { } } - public void describe_splits(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_splits(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_splits_call method_call = new describe_splits_call(cfName, start_token, end_token, keys_per_split, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2798,7 +2820,7 @@ public class Cassandra { private String start_token; private String end_token; private int keys_per_split; - public describe_splits_call(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_splits_call(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.cfName = cfName; this.start_token = start_token; @@ -2827,7 +2849,7 @@ public class Cassandra { } } - public void trace_next_query(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void trace_next_query(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); trace_next_query_call method_call = new trace_next_query_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2835,7 +2857,7 @@ public class Cassandra { } public static class trace_next_query_call extends org.apache.thrift.async.TAsyncMethodCall { - public trace_next_query_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public trace_next_query_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } @@ -2856,7 +2878,7 @@ public class Cassandra { } } - public void describe_splits_ex(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void describe_splits_ex(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_splits_ex_call method_call = new describe_splits_ex_call(cfName, start_token, end_token, keys_per_split, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2868,7 +2890,7 @@ public class Cassandra { private String start_token; private String end_token; private int keys_per_split; - public describe_splits_ex_call(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public describe_splits_ex_call(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.cfName = cfName; this.start_token = start_token; @@ -2897,7 +2919,7 @@ public class Cassandra { } } - public void system_add_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void system_add_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); system_add_column_family_call method_call = new system_add_column_family_call(cf_def, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2906,7 +2928,7 @@ public class Cassandra { public static class system_add_column_family_call extends org.apache.thrift.async.TAsyncMethodCall { private CfDef cf_def; - public system_add_column_family_call(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public system_add_column_family_call(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.cf_def = cf_def; } @@ -2929,7 +2951,7 @@ public class Cassandra { } } - public void system_drop_column_family(String column_family, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void system_drop_column_family(String column_family, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); system_drop_column_family_call method_call = new system_drop_column_family_call(column_family, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2938,7 +2960,7 @@ public class Cassandra { public static class system_drop_column_family_call extends org.apache.thrift.async.TAsyncMethodCall { private String column_family; - public system_drop_column_family_call(String column_family, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public system_drop_column_family_call(String column_family, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.column_family = column_family; } @@ -2961,7 +2983,7 @@ public class Cassandra { } } - public void system_add_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void system_add_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); system_add_keyspace_call method_call = new system_add_keyspace_call(ks_def, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -2970,7 +2992,7 @@ public class Cassandra { public static class system_add_keyspace_call extends org.apache.thrift.async.TAsyncMethodCall { private KsDef ks_def; - public system_add_keyspace_call(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public system_add_keyspace_call(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.ks_def = ks_def; } @@ -2993,7 +3015,7 @@ public class Cassandra { } } - public void system_drop_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void system_drop_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); system_drop_keyspace_call method_call = new system_drop_keyspace_call(keyspace, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3002,7 +3024,7 @@ public class Cassandra { public static class system_drop_keyspace_call extends org.apache.thrift.async.TAsyncMethodCall { private String keyspace; - public system_drop_keyspace_call(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public system_drop_keyspace_call(String keyspace, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.keyspace = keyspace; } @@ -3025,7 +3047,7 @@ public class Cassandra { } } - public void system_update_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void system_update_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); system_update_keyspace_call method_call = new system_update_keyspace_call(ks_def, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3034,7 +3056,7 @@ public class Cassandra { public static class system_update_keyspace_call extends org.apache.thrift.async.TAsyncMethodCall { private KsDef ks_def; - public system_update_keyspace_call(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public system_update_keyspace_call(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.ks_def = ks_def; } @@ -3057,7 +3079,7 @@ public class Cassandra { } } - public void system_update_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void system_update_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); system_update_column_family_call method_call = new system_update_column_family_call(cf_def, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3066,7 +3088,7 @@ public class Cassandra { public static class system_update_column_family_call extends org.apache.thrift.async.TAsyncMethodCall { private CfDef cf_def; - public system_update_column_family_call(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public system_update_column_family_call(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.cf_def = cf_def; } @@ -3089,7 +3111,7 @@ public class Cassandra { } } - public void execute_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void execute_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); execute_cql_query_call method_call = new execute_cql_query_call(query, compression, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3099,7 +3121,7 @@ public class Cassandra { public static class execute_cql_query_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer query; private Compression compression; - public execute_cql_query_call(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public execute_cql_query_call(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.query = query; this.compression = compression; @@ -3124,7 +3146,7 @@ public class Cassandra { } } - public void execute_cql3_query(ByteBuffer query, Compression compression, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void execute_cql3_query(ByteBuffer query, Compression compression, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); execute_cql3_query_call method_call = new execute_cql3_query_call(query, compression, consistency, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3135,7 +3157,7 @@ public class Cassandra { private ByteBuffer query; private Compression compression; private ConsistencyLevel consistency; - public execute_cql3_query_call(ByteBuffer query, Compression compression, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public execute_cql3_query_call(ByteBuffer query, Compression compression, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.query = query; this.compression = compression; @@ -3162,7 +3184,7 @@ public class Cassandra { } } - public void prepare_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void prepare_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); prepare_cql_query_call method_call = new prepare_cql_query_call(query, compression, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3172,7 +3194,7 @@ public class Cassandra { public static class prepare_cql_query_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer query; private Compression compression; - public prepare_cql_query_call(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public prepare_cql_query_call(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.query = query; this.compression = compression; @@ -3197,7 +3219,7 @@ public class Cassandra { } } - public void prepare_cql3_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void prepare_cql3_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); prepare_cql3_query_call method_call = new prepare_cql3_query_call(query, compression, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3207,7 +3229,7 @@ public class Cassandra { public static class prepare_cql3_query_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer query; private Compression compression; - public prepare_cql3_query_call(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public prepare_cql3_query_call(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.query = query; this.compression = compression; @@ -3232,7 +3254,7 @@ public class Cassandra { } } - public void execute_prepared_cql_query(int itemId, List values, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void execute_prepared_cql_query(int itemId, List values, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); execute_prepared_cql_query_call method_call = new execute_prepared_cql_query_call(itemId, values, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3242,7 +3264,7 @@ public class Cassandra { public static class execute_prepared_cql_query_call extends org.apache.thrift.async.TAsyncMethodCall { private int itemId; private List values; - public execute_prepared_cql_query_call(int itemId, List values, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public execute_prepared_cql_query_call(int itemId, List values, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.itemId = itemId; this.values = values; @@ -3267,7 +3289,7 @@ public class Cassandra { } } - public void execute_prepared_cql3_query(int itemId, List values, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void execute_prepared_cql3_query(int itemId, List values, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); execute_prepared_cql3_query_call method_call = new execute_prepared_cql3_query_call(itemId, values, consistency, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3278,7 +3300,7 @@ public class Cassandra { private int itemId; private List values; private ConsistencyLevel consistency; - public execute_prepared_cql3_query_call(int itemId, List values, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public execute_prepared_cql3_query_call(int itemId, List values, ConsistencyLevel consistency, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.itemId = itemId; this.values = values; @@ -3305,7 +3327,7 @@ public class Cassandra { } } - public void set_cql_version(String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void set_cql_version(String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); set_cql_version_call method_call = new set_cql_version_call(version, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -3314,7 +3336,7 @@ public class Cassandra { public static class set_cql_version_call extends org.apache.thrift.async.TAsyncMethodCall { private String version; - public set_cql_version_call(String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public set_cql_version_call(String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.version = version; } @@ -4517,7 +4539,2743 @@ public class Cassandra { } - public static class login_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { + private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + public AsyncProcessor(I iface) { + super(iface, getProcessMap(new HashMap>())); + } + + protected AsyncProcessor(I iface, Map> processMap) { + super(iface, getProcessMap(processMap)); + } + + private static Map> getProcessMap(Map> processMap) { + processMap.put("login", new login()); + processMap.put("set_keyspace", new set_keyspace()); + processMap.put("get", new get()); + processMap.put("get_slice", new get_slice()); + processMap.put("get_count", new get_count()); + processMap.put("multiget_slice", new multiget_slice()); + processMap.put("multiget_count", new multiget_count()); + processMap.put("get_range_slices", new get_range_slices()); + processMap.put("get_paged_slice", new get_paged_slice()); + processMap.put("get_indexed_slices", new get_indexed_slices()); + processMap.put("insert", new insert()); + processMap.put("add", new add()); + processMap.put("cas", new cas()); + processMap.put("remove", new remove()); + processMap.put("remove_counter", new remove_counter()); + processMap.put("batch_mutate", new batch_mutate()); + processMap.put("atomic_batch_mutate", new atomic_batch_mutate()); + processMap.put("truncate", new truncate()); + processMap.put("describe_schema_versions", new describe_schema_versions()); + processMap.put("describe_keyspaces", new describe_keyspaces()); + processMap.put("describe_cluster_name", new describe_cluster_name()); + processMap.put("describe_version", new describe_version()); + processMap.put("describe_ring", new describe_ring()); + processMap.put("describe_token_map", new describe_token_map()); + processMap.put("describe_partitioner", new describe_partitioner()); + processMap.put("describe_snitch", new describe_snitch()); + processMap.put("describe_keyspace", new describe_keyspace()); + processMap.put("describe_splits", new describe_splits()); + processMap.put("trace_next_query", new trace_next_query()); + processMap.put("describe_splits_ex", new describe_splits_ex()); + processMap.put("system_add_column_family", new system_add_column_family()); + processMap.put("system_drop_column_family", new system_drop_column_family()); + processMap.put("system_add_keyspace", new system_add_keyspace()); + processMap.put("system_drop_keyspace", new system_drop_keyspace()); + processMap.put("system_update_keyspace", new system_update_keyspace()); + processMap.put("system_update_column_family", new system_update_column_family()); + processMap.put("execute_cql_query", new execute_cql_query()); + processMap.put("execute_cql3_query", new execute_cql3_query()); + processMap.put("prepare_cql_query", new prepare_cql_query()); + processMap.put("prepare_cql3_query", new prepare_cql3_query()); + processMap.put("execute_prepared_cql_query", new execute_prepared_cql_query()); + processMap.put("execute_prepared_cql3_query", new execute_prepared_cql3_query()); + processMap.put("set_cql_version", new set_cql_version()); + return processMap; + } + + public static class login extends org.apache.thrift.AsyncProcessFunction { + public login() { + super("login"); + } + + public login_args getEmptyArgsInstance() { + return new login_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + login_result result = new login_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + login_result result = new login_result(); + if (e instanceof AuthenticationException) { + result.authnx = (AuthenticationException) e; + result.setAuthnxIsSet(true); + msg = result; + } + else if (e instanceof AuthorizationException) { + result.authzx = (AuthorizationException) e; + result.setAuthzxIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, login_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.login(args.auth_request,resultHandler); + } + } + + public static class set_keyspace extends org.apache.thrift.AsyncProcessFunction { + public set_keyspace() { + super("set_keyspace"); + } + + public set_keyspace_args getEmptyArgsInstance() { + return new set_keyspace_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + set_keyspace_result result = new set_keyspace_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + set_keyspace_result result = new set_keyspace_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, set_keyspace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.set_keyspace(args.keyspace,resultHandler); + } + } + + public static class get extends org.apache.thrift.AsyncProcessFunction { + public get() { + super("get"); + } + + public get_args getEmptyArgsInstance() { + return new get_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(ColumnOrSuperColumn o) { + get_result result = new get_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_result result = new get_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof NotFoundException) { + result.nfe = (NotFoundException) e; + result.setNfeIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get(args.key, args.column_path, args.consistency_level,resultHandler); + } + } + + public static class get_slice extends org.apache.thrift.AsyncProcessFunction> { + public get_slice() { + super("get_slice"); + } + + public get_slice_args getEmptyArgsInstance() { + return new get_slice_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_slice_result result = new get_slice_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_slice_result result = new get_slice_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_slice_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_slice(args.key, args.column_parent, args.predicate, args.consistency_level,resultHandler); + } + } + + public static class get_count extends org.apache.thrift.AsyncProcessFunction { + public get_count() { + super("get_count"); + } + + public get_count_args getEmptyArgsInstance() { + return new get_count_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + get_count_result result = new get_count_result(); + result.success = o; + result.setSuccessIsSet(true); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_count_result result = new get_count_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_count_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_count(args.key, args.column_parent, args.predicate, args.consistency_level,resultHandler); + } + } + + public static class multiget_slice extends org.apache.thrift.AsyncProcessFunction>> { + public multiget_slice() { + super("multiget_slice"); + } + + public multiget_slice_args getEmptyArgsInstance() { + return new multiget_slice_args(); + } + + public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>>() { + public void onComplete(Map> o) { + multiget_slice_result result = new multiget_slice_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + multiget_slice_result result = new multiget_slice_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, multiget_slice_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { + iface.multiget_slice(args.keys, args.column_parent, args.predicate, args.consistency_level,resultHandler); + } + } + + public static class multiget_count extends org.apache.thrift.AsyncProcessFunction> { + public multiget_count() { + super("multiget_count"); + } + + public multiget_count_args getEmptyArgsInstance() { + return new multiget_count_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + multiget_count_result result = new multiget_count_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + multiget_count_result result = new multiget_count_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, multiget_count_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.multiget_count(args.keys, args.column_parent, args.predicate, args.consistency_level,resultHandler); + } + } + + public static class get_range_slices extends org.apache.thrift.AsyncProcessFunction> { + public get_range_slices() { + super("get_range_slices"); + } + + public get_range_slices_args getEmptyArgsInstance() { + return new get_range_slices_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_range_slices_result result = new get_range_slices_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_range_slices_result result = new get_range_slices_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_range_slices_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_range_slices(args.column_parent, args.predicate, args.range, args.consistency_level,resultHandler); + } + } + + public static class get_paged_slice extends org.apache.thrift.AsyncProcessFunction> { + public get_paged_slice() { + super("get_paged_slice"); + } + + public get_paged_slice_args getEmptyArgsInstance() { + return new get_paged_slice_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_paged_slice_result result = new get_paged_slice_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_paged_slice_result result = new get_paged_slice_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_paged_slice_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_paged_slice(args.column_family, args.range, args.start_column, args.consistency_level,resultHandler); + } + } + + public static class get_indexed_slices extends org.apache.thrift.AsyncProcessFunction> { + public get_indexed_slices() { + super("get_indexed_slices"); + } + + public get_indexed_slices_args getEmptyArgsInstance() { + return new get_indexed_slices_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_indexed_slices_result result = new get_indexed_slices_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_indexed_slices_result result = new get_indexed_slices_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_indexed_slices_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_indexed_slices(args.column_parent, args.index_clause, args.column_predicate, args.consistency_level,resultHandler); + } + } + + public static class insert extends org.apache.thrift.AsyncProcessFunction { + public insert() { + super("insert"); + } + + public insert_args getEmptyArgsInstance() { + return new insert_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + insert_result result = new insert_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + insert_result result = new insert_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, insert_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.insert(args.key, args.column_parent, args.column, args.consistency_level,resultHandler); + } + } + + public static class add extends org.apache.thrift.AsyncProcessFunction { + public add() { + super("add"); + } + + public add_args getEmptyArgsInstance() { + return new add_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + add_result result = new add_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + add_result result = new add_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, add_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add(args.key, args.column_parent, args.column, args.consistency_level,resultHandler); + } + } + + public static class cas extends org.apache.thrift.AsyncProcessFunction { + public cas() { + super("cas"); + } + + public cas_args getEmptyArgsInstance() { + return new cas_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(CASResult o) { + cas_result result = new cas_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + cas_result result = new cas_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, cas_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.cas(args.key, args.column_family, args.expected, args.updates, args.serial_consistency_level, args.commit_consistency_level,resultHandler); + } + } + + public static class remove extends org.apache.thrift.AsyncProcessFunction { + public remove() { + super("remove"); + } + + public remove_args getEmptyArgsInstance() { + return new remove_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + remove_result result = new remove_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + remove_result result = new remove_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, remove_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.remove(args.key, args.column_path, args.timestamp, args.consistency_level,resultHandler); + } + } + + public static class remove_counter extends org.apache.thrift.AsyncProcessFunction { + public remove_counter() { + super("remove_counter"); + } + + public remove_counter_args getEmptyArgsInstance() { + return new remove_counter_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + remove_counter_result result = new remove_counter_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + remove_counter_result result = new remove_counter_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, remove_counter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.remove_counter(args.key, args.path, args.consistency_level,resultHandler); + } + } + + public static class batch_mutate extends org.apache.thrift.AsyncProcessFunction { + public batch_mutate() { + super("batch_mutate"); + } + + public batch_mutate_args getEmptyArgsInstance() { + return new batch_mutate_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + batch_mutate_result result = new batch_mutate_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + batch_mutate_result result = new batch_mutate_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, batch_mutate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.batch_mutate(args.mutation_map, args.consistency_level,resultHandler); + } + } + + public static class atomic_batch_mutate extends org.apache.thrift.AsyncProcessFunction { + public atomic_batch_mutate() { + super("atomic_batch_mutate"); + } + + public atomic_batch_mutate_args getEmptyArgsInstance() { + return new atomic_batch_mutate_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + atomic_batch_mutate_result result = new atomic_batch_mutate_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + atomic_batch_mutate_result result = new atomic_batch_mutate_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, atomic_batch_mutate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.atomic_batch_mutate(args.mutation_map, args.consistency_level,resultHandler); + } + } + + public static class truncate extends org.apache.thrift.AsyncProcessFunction { + public truncate() { + super("truncate"); + } + + public truncate_args getEmptyArgsInstance() { + return new truncate_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + truncate_result result = new truncate_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + truncate_result result = new truncate_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, truncate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.truncate(args.cfname,resultHandler); + } + } + + public static class describe_schema_versions extends org.apache.thrift.AsyncProcessFunction>> { + public describe_schema_versions() { + super("describe_schema_versions"); + } + + public describe_schema_versions_args getEmptyArgsInstance() { + return new describe_schema_versions_args(); + } + + public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>>() { + public void onComplete(Map> o) { + describe_schema_versions_result result = new describe_schema_versions_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_schema_versions_result result = new describe_schema_versions_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_schema_versions_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { + iface.describe_schema_versions(resultHandler); + } + } + + public static class describe_keyspaces extends org.apache.thrift.AsyncProcessFunction> { + public describe_keyspaces() { + super("describe_keyspaces"); + } + + public describe_keyspaces_args getEmptyArgsInstance() { + return new describe_keyspaces_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + describe_keyspaces_result result = new describe_keyspaces_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_keyspaces_result result = new describe_keyspaces_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_keyspaces_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.describe_keyspaces(resultHandler); + } + } + + public static class describe_cluster_name extends org.apache.thrift.AsyncProcessFunction { + public describe_cluster_name() { + super("describe_cluster_name"); + } + + public describe_cluster_name_args getEmptyArgsInstance() { + return new describe_cluster_name_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + describe_cluster_name_result result = new describe_cluster_name_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_cluster_name_result result = new describe_cluster_name_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_cluster_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.describe_cluster_name(resultHandler); + } + } + + public static class describe_version extends org.apache.thrift.AsyncProcessFunction { + public describe_version() { + super("describe_version"); + } + + public describe_version_args getEmptyArgsInstance() { + return new describe_version_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + describe_version_result result = new describe_version_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_version_result result = new describe_version_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_version_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.describe_version(resultHandler); + } + } + + public static class describe_ring extends org.apache.thrift.AsyncProcessFunction> { + public describe_ring() { + super("describe_ring"); + } + + public describe_ring_args getEmptyArgsInstance() { + return new describe_ring_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + describe_ring_result result = new describe_ring_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_ring_result result = new describe_ring_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_ring_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.describe_ring(args.keyspace,resultHandler); + } + } + + public static class describe_token_map extends org.apache.thrift.AsyncProcessFunction> { + public describe_token_map() { + super("describe_token_map"); + } + + public describe_token_map_args getEmptyArgsInstance() { + return new describe_token_map_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + describe_token_map_result result = new describe_token_map_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_token_map_result result = new describe_token_map_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_token_map_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.describe_token_map(resultHandler); + } + } + + public static class describe_partitioner extends org.apache.thrift.AsyncProcessFunction { + public describe_partitioner() { + super("describe_partitioner"); + } + + public describe_partitioner_args getEmptyArgsInstance() { + return new describe_partitioner_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + describe_partitioner_result result = new describe_partitioner_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_partitioner_result result = new describe_partitioner_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_partitioner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.describe_partitioner(resultHandler); + } + } + + public static class describe_snitch extends org.apache.thrift.AsyncProcessFunction { + public describe_snitch() { + super("describe_snitch"); + } + + public describe_snitch_args getEmptyArgsInstance() { + return new describe_snitch_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + describe_snitch_result result = new describe_snitch_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_snitch_result result = new describe_snitch_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_snitch_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.describe_snitch(resultHandler); + } + } + + public static class describe_keyspace extends org.apache.thrift.AsyncProcessFunction { + public describe_keyspace() { + super("describe_keyspace"); + } + + public describe_keyspace_args getEmptyArgsInstance() { + return new describe_keyspace_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(KsDef o) { + describe_keyspace_result result = new describe_keyspace_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_keyspace_result result = new describe_keyspace_result(); + if (e instanceof NotFoundException) { + result.nfe = (NotFoundException) e; + result.setNfeIsSet(true); + msg = result; + } + else if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_keyspace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.describe_keyspace(args.keyspace,resultHandler); + } + } + + public static class describe_splits extends org.apache.thrift.AsyncProcessFunction> { + public describe_splits() { + super("describe_splits"); + } + + public describe_splits_args getEmptyArgsInstance() { + return new describe_splits_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + describe_splits_result result = new describe_splits_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_splits_result result = new describe_splits_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_splits_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.describe_splits(args.cfName, args.start_token, args.end_token, args.keys_per_split,resultHandler); + } + } + + public static class trace_next_query extends org.apache.thrift.AsyncProcessFunction { + public trace_next_query() { + super("trace_next_query"); + } + + public trace_next_query_args getEmptyArgsInstance() { + return new trace_next_query_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(ByteBuffer o) { + trace_next_query_result result = new trace_next_query_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + trace_next_query_result result = new trace_next_query_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, trace_next_query_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.trace_next_query(resultHandler); + } + } + + public static class describe_splits_ex extends org.apache.thrift.AsyncProcessFunction> { + public describe_splits_ex() { + super("describe_splits_ex"); + } + + public describe_splits_ex_args getEmptyArgsInstance() { + return new describe_splits_ex_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + describe_splits_ex_result result = new describe_splits_ex_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + describe_splits_ex_result result = new describe_splits_ex_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, describe_splits_ex_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.describe_splits_ex(args.cfName, args.start_token, args.end_token, args.keys_per_split,resultHandler); + } + } + + public static class system_add_column_family extends org.apache.thrift.AsyncProcessFunction { + public system_add_column_family() { + super("system_add_column_family"); + } + + public system_add_column_family_args getEmptyArgsInstance() { + return new system_add_column_family_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + system_add_column_family_result result = new system_add_column_family_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + system_add_column_family_result result = new system_add_column_family_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, system_add_column_family_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.system_add_column_family(args.cf_def,resultHandler); + } + } + + public static class system_drop_column_family extends org.apache.thrift.AsyncProcessFunction { + public system_drop_column_family() { + super("system_drop_column_family"); + } + + public system_drop_column_family_args getEmptyArgsInstance() { + return new system_drop_column_family_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + system_drop_column_family_result result = new system_drop_column_family_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + system_drop_column_family_result result = new system_drop_column_family_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, system_drop_column_family_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.system_drop_column_family(args.column_family,resultHandler); + } + } + + public static class system_add_keyspace extends org.apache.thrift.AsyncProcessFunction { + public system_add_keyspace() { + super("system_add_keyspace"); + } + + public system_add_keyspace_args getEmptyArgsInstance() { + return new system_add_keyspace_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + system_add_keyspace_result result = new system_add_keyspace_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + system_add_keyspace_result result = new system_add_keyspace_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, system_add_keyspace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.system_add_keyspace(args.ks_def,resultHandler); + } + } + + public static class system_drop_keyspace extends org.apache.thrift.AsyncProcessFunction { + public system_drop_keyspace() { + super("system_drop_keyspace"); + } + + public system_drop_keyspace_args getEmptyArgsInstance() { + return new system_drop_keyspace_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + system_drop_keyspace_result result = new system_drop_keyspace_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + system_drop_keyspace_result result = new system_drop_keyspace_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, system_drop_keyspace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.system_drop_keyspace(args.keyspace,resultHandler); + } + } + + public static class system_update_keyspace extends org.apache.thrift.AsyncProcessFunction { + public system_update_keyspace() { + super("system_update_keyspace"); + } + + public system_update_keyspace_args getEmptyArgsInstance() { + return new system_update_keyspace_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + system_update_keyspace_result result = new system_update_keyspace_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + system_update_keyspace_result result = new system_update_keyspace_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, system_update_keyspace_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.system_update_keyspace(args.ks_def,resultHandler); + } + } + + public static class system_update_column_family extends org.apache.thrift.AsyncProcessFunction { + public system_update_column_family() { + super("system_update_column_family"); + } + + public system_update_column_family_args getEmptyArgsInstance() { + return new system_update_column_family_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + system_update_column_family_result result = new system_update_column_family_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + system_update_column_family_result result = new system_update_column_family_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, system_update_column_family_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.system_update_column_family(args.cf_def,resultHandler); + } + } + + public static class execute_cql_query extends org.apache.thrift.AsyncProcessFunction { + public execute_cql_query() { + super("execute_cql_query"); + } + + public execute_cql_query_args getEmptyArgsInstance() { + return new execute_cql_query_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(CqlResult o) { + execute_cql_query_result result = new execute_cql_query_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + execute_cql_query_result result = new execute_cql_query_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, execute_cql_query_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.execute_cql_query(args.query, args.compression,resultHandler); + } + } + + public static class execute_cql3_query extends org.apache.thrift.AsyncProcessFunction { + public execute_cql3_query() { + super("execute_cql3_query"); + } + + public execute_cql3_query_args getEmptyArgsInstance() { + return new execute_cql3_query_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(CqlResult o) { + execute_cql3_query_result result = new execute_cql3_query_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + execute_cql3_query_result result = new execute_cql3_query_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, execute_cql3_query_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.execute_cql3_query(args.query, args.compression, args.consistency,resultHandler); + } + } + + public static class prepare_cql_query extends org.apache.thrift.AsyncProcessFunction { + public prepare_cql_query() { + super("prepare_cql_query"); + } + + public prepare_cql_query_args getEmptyArgsInstance() { + return new prepare_cql_query_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(CqlPreparedResult o) { + prepare_cql_query_result result = new prepare_cql_query_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + prepare_cql_query_result result = new prepare_cql_query_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, prepare_cql_query_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.prepare_cql_query(args.query, args.compression,resultHandler); + } + } + + public static class prepare_cql3_query extends org.apache.thrift.AsyncProcessFunction { + public prepare_cql3_query() { + super("prepare_cql3_query"); + } + + public prepare_cql3_query_args getEmptyArgsInstance() { + return new prepare_cql3_query_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(CqlPreparedResult o) { + prepare_cql3_query_result result = new prepare_cql3_query_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + prepare_cql3_query_result result = new prepare_cql3_query_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, prepare_cql3_query_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.prepare_cql3_query(args.query, args.compression,resultHandler); + } + } + + public static class execute_prepared_cql_query extends org.apache.thrift.AsyncProcessFunction { + public execute_prepared_cql_query() { + super("execute_prepared_cql_query"); + } + + public execute_prepared_cql_query_args getEmptyArgsInstance() { + return new execute_prepared_cql_query_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(CqlResult o) { + execute_prepared_cql_query_result result = new execute_prepared_cql_query_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + execute_prepared_cql_query_result result = new execute_prepared_cql_query_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, execute_prepared_cql_query_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.execute_prepared_cql_query(args.itemId, args.values,resultHandler); + } + } + + public static class execute_prepared_cql3_query extends org.apache.thrift.AsyncProcessFunction { + public execute_prepared_cql3_query() { + super("execute_prepared_cql3_query"); + } + + public execute_prepared_cql3_query_args getEmptyArgsInstance() { + return new execute_prepared_cql3_query_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(CqlResult o) { + execute_prepared_cql3_query_result result = new execute_prepared_cql3_query_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + execute_prepared_cql3_query_result result = new execute_prepared_cql3_query_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else if (e instanceof UnavailableException) { + result.ue = (UnavailableException) e; + result.setUeIsSet(true); + msg = result; + } + else if (e instanceof TimedOutException) { + result.te = (TimedOutException) e; + result.setTeIsSet(true); + msg = result; + } + else if (e instanceof SchemaDisagreementException) { + result.sde = (SchemaDisagreementException) e; + result.setSdeIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, execute_prepared_cql3_query_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.execute_prepared_cql3_query(args.itemId, args.values, args.consistency,resultHandler); + } + } + + public static class set_cql_version extends org.apache.thrift.AsyncProcessFunction { + public set_cql_version() { + super("set_cql_version"); + } + + public set_cql_version_args getEmptyArgsInstance() { + return new set_cql_version_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + set_cql_version_result result = new set_cql_version_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + set_cql_version_result result = new set_cql_version_result(); + if (e instanceof InvalidRequestException) { + result.ire = (InvalidRequestException) e; + result.setIreIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, set_cql_version_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.set_cql_version(args.version,resultHandler); + } + } + + } + + public static class login_args 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("login_args"); private static final org.apache.thrift.protocol.TField AUTH_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("auth_request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -4722,20 +7480,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(login_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - login_args typedOther = (login_args)other; - lastComparison = Boolean.valueOf(isSetAuth_request()).compareTo(typedOther.isSetAuth_request()); + lastComparison = Boolean.valueOf(isSetAuth_request()).compareTo(other.isSetAuth_request()); if (lastComparison != 0) { return lastComparison; } if (isSetAuth_request()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.auth_request, typedOther.auth_request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.auth_request, other.auth_request); if (lastComparison != 0) { return lastComparison; } @@ -4876,7 +7634,7 @@ public class Cassandra { } - public static class login_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class login_result 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("login_result"); private static final org.apache.thrift.protocol.TField AUTHNX_FIELD_DESC = new org.apache.thrift.protocol.TField("authnx", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -5145,30 +7903,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(login_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - login_result typedOther = (login_result)other; - lastComparison = Boolean.valueOf(isSetAuthnx()).compareTo(typedOther.isSetAuthnx()); + lastComparison = Boolean.valueOf(isSetAuthnx()).compareTo(other.isSetAuthnx()); if (lastComparison != 0) { return lastComparison; } if (isSetAuthnx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authnx, typedOther.authnx); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authnx, other.authnx); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthzx()).compareTo(typedOther.isSetAuthzx()); + lastComparison = Boolean.valueOf(isSetAuthzx()).compareTo(other.isSetAuthzx()); if (lastComparison != 0) { return lastComparison; } if (isSetAuthzx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzx, typedOther.authzx); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzx, other.authzx); if (lastComparison != 0) { return lastComparison; } @@ -5346,7 +8104,7 @@ public class Cassandra { } - public static class set_keyspace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class set_keyspace_args 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("set_keyspace_args"); 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); @@ -5551,20 +8309,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(set_keyspace_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - set_keyspace_args typedOther = (set_keyspace_args)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; } @@ -5700,7 +8458,7 @@ public class Cassandra { } - public static class set_keyspace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class set_keyspace_result 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("set_keyspace_result"); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -5905,20 +8663,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(set_keyspace_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - set_keyspace_result typedOther = (set_keyspace_result)other; - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -6063,7 +8821,7 @@ public class Cassandra { } - public static class get_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_args 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("get_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -6426,40 +9184,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_args typedOther = (get_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_path()).compareTo(typedOther.isSetColumn_path()); + lastComparison = Boolean.valueOf(isSetColumn_path()).compareTo(other.isSetColumn_path()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_path()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_path, typedOther.column_path); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_path, other.column_path); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -6654,7 +9412,7 @@ public class Cassandra { } - public static class get_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_result 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("get_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -7115,60 +9873,60 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_result typedOther = (get_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNfe()).compareTo(typedOther.isSetNfe()); + lastComparison = Boolean.valueOf(isSetNfe()).compareTo(other.isSetNfe()); if (lastComparison != 0) { return lastComparison; } if (isSetNfe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nfe, typedOther.nfe); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nfe, other.nfe); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -7448,7 +10206,7 @@ public class Cassandra { } - public static class get_slice_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_slice_args 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("get_slice_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -7875,50 +10633,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_slice_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_slice_args typedOther = (get_slice_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(typedOther.isSetColumn_parent()); + lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(other.isSetColumn_parent()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_parent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, typedOther.column_parent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, other.column_parent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(typedOther.isSetPredicate()); + lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(other.isSetPredicate()); if (lastComparison != 0) { return lastComparison; } if (isSetPredicate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, typedOther.predicate); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, other.predicate); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -8145,7 +10903,7 @@ public class Cassandra { } - public static class get_slice_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_slice_result 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("get_slice_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -8269,7 +11027,7 @@ public class Cassandra { */ public get_slice_result(get_slice_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (ColumnOrSuperColumn other_element : other.success) { __this__success.add(new ColumnOrSuperColumn(other_element)); } @@ -8562,50 +11320,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_slice_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_slice_result typedOther = (get_slice_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -8711,7 +11469,7 @@ public class Cassandra { struct.success = new ArrayList(_list216.size); for (int _i217 = 0; _i217 < _list216.size; ++_i217) { - ColumnOrSuperColumn _elem218; // required + ColumnOrSuperColumn _elem218; _elem218 = new ColumnOrSuperColumn(); _elem218.read(iprot); struct.success.add(_elem218); @@ -8853,7 +11611,7 @@ public class Cassandra { struct.success = new ArrayList(_list221.size); for (int _i222 = 0; _i222 < _list221.size; ++_i222) { - ColumnOrSuperColumn _elem223; // required + ColumnOrSuperColumn _elem223; _elem223 = new ColumnOrSuperColumn(); _elem223.read(iprot); struct.success.add(_elem223); @@ -8881,7 +11639,7 @@ public class Cassandra { } - public static class get_count_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_count_args 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("get_count_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -9308,50 +12066,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_count_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_count_args typedOther = (get_count_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(typedOther.isSetColumn_parent()); + lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(other.isSetColumn_parent()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_parent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, typedOther.column_parent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, other.column_parent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(typedOther.isSetPredicate()); + lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(other.isSetPredicate()); if (lastComparison != 0) { return lastComparison; } if (isSetPredicate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, typedOther.predicate); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, other.predicate); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -9578,7 +12336,7 @@ public class Cassandra { } - public static class get_count_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_count_result 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("get_count_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -9977,50 +12735,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_count_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_count_result typedOther = (get_count_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -10260,7 +13018,7 @@ public class Cassandra { } - public static class multiget_slice_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class multiget_slice_args 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("multiget_slice_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -10394,12 +13152,7 @@ public class Cassandra { */ public multiget_slice_args(multiget_slice_args other) { if (other.isSetKeys()) { - List __this__keys = new ArrayList(); - for (ByteBuffer other_element : other.keys) { - ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element); -; - __this__keys.add(temp_binary_element); - } + List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetColumn_parent()) { @@ -10698,50 +13451,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(multiget_slice_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - multiget_slice_args typedOther = (multiget_slice_args)other; - lastComparison = Boolean.valueOf(isSetKeys()).compareTo(typedOther.isSetKeys()); + lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, typedOther.keys); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(typedOther.isSetColumn_parent()); + lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(other.isSetColumn_parent()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_parent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, typedOther.column_parent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, other.column_parent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(typedOther.isSetPredicate()); + lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(other.isSetPredicate()); if (lastComparison != 0) { return lastComparison; } if (isSetPredicate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, typedOther.predicate); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, other.predicate); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -10865,7 +13618,7 @@ public class Cassandra { struct.keys = new ArrayList(_list224.size); for (int _i225 = 0; _i225 < _list224.size; ++_i225) { - ByteBuffer _elem226; // required + ByteBuffer _elem226; _elem226 = iprot.readBinary(); struct.keys.add(_elem226); } @@ -10981,7 +13734,7 @@ public class Cassandra { struct.keys = new ArrayList(_list229.size); for (int _i230 = 0; _i230 < _list229.size; ++_i230) { - ByteBuffer _elem231; // required + ByteBuffer _elem231; _elem231 = iprot.readBinary(); struct.keys.add(_elem231); } @@ -11000,7 +13753,7 @@ public class Cassandra { } - public static class multiget_slice_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class multiget_slice_result 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("multiget_slice_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); @@ -11126,7 +13879,7 @@ public class Cassandra { */ public multiget_slice_result(multiget_slice_result other) { if (other.isSetSuccess()) { - Map> __this__success = new HashMap>(); + Map> __this__success = new HashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -11135,7 +13888,7 @@ public class Cassandra { ByteBuffer __this__success_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); ; - List __this__success_copy_value = new ArrayList(); + List __this__success_copy_value = new ArrayList(other_element_value.size()); for (ColumnOrSuperColumn other_element_value_element : other_element_value) { __this__success_copy_value.add(new ColumnOrSuperColumn(other_element_value_element)); } @@ -11427,50 +14180,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(multiget_slice_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - multiget_slice_result typedOther = (multiget_slice_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -11576,15 +14329,15 @@ public class Cassandra { struct.success = new HashMap>(2*_map232.size); for (int _i233 = 0; _i233 < _map232.size; ++_i233) { - ByteBuffer _key234; // required - List _val235; // required + ByteBuffer _key234; + List _val235; _key234 = iprot.readBinary(); { org.apache.thrift.protocol.TList _list236 = iprot.readListBegin(); _val235 = new ArrayList(_list236.size); for (int _i237 = 0; _i237 < _list236.size; ++_i237) { - ColumnOrSuperColumn _elem238; // required + ColumnOrSuperColumn _elem238; _elem238 = new ColumnOrSuperColumn(); _elem238.read(iprot); _val235.add(_elem238); @@ -11745,15 +14498,15 @@ public class Cassandra { struct.success = new HashMap>(2*_map243.size); for (int _i244 = 0; _i244 < _map243.size; ++_i244) { - ByteBuffer _key245; // required - List _val246; // required + ByteBuffer _key245; + List _val246; _key245 = iprot.readBinary(); { org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val246 = new ArrayList(_list247.size); for (int _i248 = 0; _i248 < _list247.size; ++_i248) { - ColumnOrSuperColumn _elem249; // required + ColumnOrSuperColumn _elem249; _elem249 = new ColumnOrSuperColumn(); _elem249.read(iprot); _val246.add(_elem249); @@ -11784,7 +14537,7 @@ public class Cassandra { } - public static class multiget_count_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class multiget_count_args 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("multiget_count_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -11918,12 +14671,7 @@ public class Cassandra { */ public multiget_count_args(multiget_count_args other) { if (other.isSetKeys()) { - List __this__keys = new ArrayList(); - for (ByteBuffer other_element : other.keys) { - ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element); -; - __this__keys.add(temp_binary_element); - } + List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetColumn_parent()) { @@ -12222,50 +14970,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(multiget_count_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - multiget_count_args typedOther = (multiget_count_args)other; - lastComparison = Boolean.valueOf(isSetKeys()).compareTo(typedOther.isSetKeys()); + lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, typedOther.keys); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(typedOther.isSetColumn_parent()); + lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(other.isSetColumn_parent()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_parent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, typedOther.column_parent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, other.column_parent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(typedOther.isSetPredicate()); + lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(other.isSetPredicate()); if (lastComparison != 0) { return lastComparison; } if (isSetPredicate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, typedOther.predicate); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, other.predicate); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -12389,7 +15137,7 @@ public class Cassandra { struct.keys = new ArrayList(_list250.size); for (int _i251 = 0; _i251 < _list250.size; ++_i251) { - ByteBuffer _elem252; // required + ByteBuffer _elem252; _elem252 = iprot.readBinary(); struct.keys.add(_elem252); } @@ -12505,7 +15253,7 @@ public class Cassandra { struct.keys = new ArrayList(_list255.size); for (int _i256 = 0; _i256 < _list255.size; ++_i256) { - ByteBuffer _elem257; // required + ByteBuffer _elem257; _elem257 = iprot.readBinary(); struct.keys.add(_elem257); } @@ -12524,7 +15272,7 @@ public class Cassandra { } - public static class multiget_count_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class multiget_count_result 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("multiget_count_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); @@ -12649,19 +15397,7 @@ public class Cassandra { */ public multiget_count_result(multiget_count_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(); - for (Map.Entry other_element : other.success.entrySet()) { - - ByteBuffer other_element_key = other_element.getKey(); - Integer other_element_value = other_element.getValue(); - - ByteBuffer __this__success_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); -; - - Integer __this__success_copy_value = other_element_value; - - __this__success.put(__this__success_copy_key, __this__success_copy_value); - } + Map __this__success = new HashMap(other.success); this.success = __this__success; } if (other.isSetIre()) { @@ -12947,50 +15683,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(multiget_count_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - multiget_count_result typedOther = (multiget_count_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -13096,8 +15832,8 @@ public class Cassandra { struct.success = new HashMap(2*_map258.size); for (int _i259 = 0; _i259 < _map258.size; ++_i259) { - ByteBuffer _key260; // required - int _val261; // required + ByteBuffer _key260; + int _val261; _key260 = iprot.readBinary(); _val261 = iprot.readI32(); struct.success.put(_key260, _val261); @@ -13241,8 +15977,8 @@ public class Cassandra { struct.success = new HashMap(2*_map264.size); for (int _i265 = 0; _i265 < _map264.size; ++_i265) { - ByteBuffer _key266; // required - int _val267; // required + ByteBuffer _key266; + int _val267; _key266 = iprot.readBinary(); _val267 = iprot.readI32(); struct.success.put(_key266, _val267); @@ -13270,7 +16006,7 @@ public class Cassandra { } - public static class get_range_slices_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_range_slices_args 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("get_range_slices_args"); private static final org.apache.thrift.protocol.TField COLUMN_PARENT_FIELD_DESC = new org.apache.thrift.protocol.TField("column_parent", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -13686,50 +16422,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_range_slices_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_range_slices_args typedOther = (get_range_slices_args)other; - lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(typedOther.isSetColumn_parent()); + lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(other.isSetColumn_parent()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_parent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, typedOther.column_parent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, other.column_parent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(typedOther.isSetPredicate()); + lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(other.isSetPredicate()); if (lastComparison != 0) { return lastComparison; } if (isSetPredicate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, typedOther.predicate); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, other.predicate); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRange()).compareTo(typedOther.isSetRange()); + lastComparison = Boolean.valueOf(isSetRange()).compareTo(other.isSetRange()); if (lastComparison != 0) { return lastComparison; } if (isSetRange()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.range, typedOther.range); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.range, other.range); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -13961,7 +16697,7 @@ public class Cassandra { } - public static class get_range_slices_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_range_slices_result 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("get_range_slices_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -14085,7 +16821,7 @@ public class Cassandra { */ public get_range_slices_result(get_range_slices_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (KeySlice other_element : other.success) { __this__success.add(new KeySlice(other_element)); } @@ -14378,50 +17114,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_range_slices_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_range_slices_result typedOther = (get_range_slices_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -14527,7 +17263,7 @@ public class Cassandra { struct.success = new ArrayList(_list268.size); for (int _i269 = 0; _i269 < _list268.size; ++_i269) { - KeySlice _elem270; // required + KeySlice _elem270; _elem270 = new KeySlice(); _elem270.read(iprot); struct.success.add(_elem270); @@ -14669,7 +17405,7 @@ public class Cassandra { struct.success = new ArrayList(_list273.size); for (int _i274 = 0; _i274 < _list273.size; ++_i274) { - KeySlice _elem275; // required + KeySlice _elem275; _elem275 = new KeySlice(); _elem275.read(iprot); struct.success.add(_elem275); @@ -14697,7 +17433,7 @@ public class Cassandra { } - public static class get_paged_slice_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_paged_slice_args 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("get_paged_slice_args"); 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)1); @@ -15124,50 +17860,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_paged_slice_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_paged_slice_args typedOther = (get_paged_slice_args)other; - lastComparison = Boolean.valueOf(isSetColumn_family()).compareTo(typedOther.isSetColumn_family()); + lastComparison = Boolean.valueOf(isSetColumn_family()).compareTo(other.isSetColumn_family()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_family()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_family, typedOther.column_family); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_family, other.column_family); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRange()).compareTo(typedOther.isSetRange()); + lastComparison = Boolean.valueOf(isSetRange()).compareTo(other.isSetRange()); if (lastComparison != 0) { return lastComparison; } if (isSetRange()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.range, typedOther.range); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.range, other.range); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStart_column()).compareTo(typedOther.isSetStart_column()); + lastComparison = Boolean.valueOf(isSetStart_column()).compareTo(other.isSetStart_column()); if (lastComparison != 0) { return lastComparison; } if (isSetStart_column()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_column, typedOther.start_column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_column, other.start_column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -15389,7 +18125,7 @@ public class Cassandra { } - public static class get_paged_slice_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_paged_slice_result 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("get_paged_slice_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -15513,7 +18249,7 @@ public class Cassandra { */ public get_paged_slice_result(get_paged_slice_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (KeySlice other_element : other.success) { __this__success.add(new KeySlice(other_element)); } @@ -15806,50 +18542,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_paged_slice_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_paged_slice_result typedOther = (get_paged_slice_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -15955,7 +18691,7 @@ public class Cassandra { struct.success = new ArrayList(_list276.size); for (int _i277 = 0; _i277 < _list276.size; ++_i277) { - KeySlice _elem278; // required + KeySlice _elem278; _elem278 = new KeySlice(); _elem278.read(iprot); struct.success.add(_elem278); @@ -16097,7 +18833,7 @@ public class Cassandra { struct.success = new ArrayList(_list281.size); for (int _i282 = 0; _i282 < _list281.size; ++_i282) { - KeySlice _elem283; // required + KeySlice _elem283; _elem283 = new KeySlice(); _elem283.read(iprot); struct.success.add(_elem283); @@ -16125,7 +18861,7 @@ public class Cassandra { } - public static class get_indexed_slices_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_indexed_slices_args 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("get_indexed_slices_args"); private static final org.apache.thrift.protocol.TField COLUMN_PARENT_FIELD_DESC = new org.apache.thrift.protocol.TField("column_parent", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -16541,50 +19277,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_indexed_slices_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_indexed_slices_args typedOther = (get_indexed_slices_args)other; - lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(typedOther.isSetColumn_parent()); + lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(other.isSetColumn_parent()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_parent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, typedOther.column_parent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, other.column_parent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_clause()).compareTo(typedOther.isSetIndex_clause()); + lastComparison = Boolean.valueOf(isSetIndex_clause()).compareTo(other.isSetIndex_clause()); if (lastComparison != 0) { return lastComparison; } if (isSetIndex_clause()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_clause, typedOther.index_clause); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_clause, other.index_clause); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_predicate()).compareTo(typedOther.isSetColumn_predicate()); + lastComparison = Boolean.valueOf(isSetColumn_predicate()).compareTo(other.isSetColumn_predicate()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_predicate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_predicate, typedOther.column_predicate); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_predicate, other.column_predicate); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -16816,7 +19552,7 @@ public class Cassandra { } - public static class get_indexed_slices_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class get_indexed_slices_result 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("get_indexed_slices_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -16940,7 +19676,7 @@ public class Cassandra { */ public get_indexed_slices_result(get_indexed_slices_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (KeySlice other_element : other.success) { __this__success.add(new KeySlice(other_element)); } @@ -17233,50 +19969,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(get_indexed_slices_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_indexed_slices_result typedOther = (get_indexed_slices_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -17382,7 +20118,7 @@ public class Cassandra { struct.success = new ArrayList(_list284.size); for (int _i285 = 0; _i285 < _list284.size; ++_i285) { - KeySlice _elem286; // required + KeySlice _elem286; _elem286 = new KeySlice(); _elem286.read(iprot); struct.success.add(_elem286); @@ -17524,7 +20260,7 @@ public class Cassandra { struct.success = new ArrayList(_list289.size); for (int _i290 = 0; _i290 < _list289.size; ++_i290) { - KeySlice _elem291; // required + KeySlice _elem291; _elem291 = new KeySlice(); _elem291.read(iprot); struct.success.add(_elem291); @@ -17552,7 +20288,7 @@ public class Cassandra { } - public static class insert_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class insert_args 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("insert_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -17979,50 +20715,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(insert_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - insert_args typedOther = (insert_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(typedOther.isSetColumn_parent()); + lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(other.isSetColumn_parent()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_parent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, typedOther.column_parent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, other.column_parent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -18249,7 +20985,7 @@ public class Cassandra { } - public static class insert_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class insert_result 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("insert_result"); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -18582,40 +21318,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(insert_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - insert_result typedOther = (insert_result)other; - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -18826,7 +21562,7 @@ public class Cassandra { } - public static class add_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class add_args 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("add_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -19253,50 +21989,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(add_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - add_args typedOther = (add_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(typedOther.isSetColumn_parent()); + lastComparison = Boolean.valueOf(isSetColumn_parent()).compareTo(other.isSetColumn_parent()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_parent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, typedOther.column_parent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_parent, other.column_parent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); + lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -19523,7 +22259,7 @@ public class Cassandra { } - public static class add_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class add_result 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("add_result"); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -19856,40 +22592,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(add_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - add_result typedOther = (add_result)other; - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -20100,7 +22836,7 @@ public class Cassandra { } - public static class cas_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class cas_args 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("cas_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -20270,14 +23006,14 @@ public class Cassandra { this.column_family = other.column_family; } if (other.isSetExpected()) { - List __this__expected = new ArrayList(); + List __this__expected = new ArrayList(other.expected.size()); for (Column other_element : other.expected) { __this__expected.add(new Column(other_element)); } this.expected = __this__expected; } if (other.isSetUpdates()) { - List __this__updates = new ArrayList(); + List __this__updates = new ArrayList(other.updates.size()); for (Column other_element : other.updates) { __this__updates.add(new Column(other_element)); } @@ -20714,70 +23450,70 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(cas_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - cas_args typedOther = (cas_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_family()).compareTo(typedOther.isSetColumn_family()); + lastComparison = Boolean.valueOf(isSetColumn_family()).compareTo(other.isSetColumn_family()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_family()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_family, typedOther.column_family); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_family, other.column_family); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExpected()).compareTo(typedOther.isSetExpected()); + lastComparison = Boolean.valueOf(isSetExpected()).compareTo(other.isSetExpected()); if (lastComparison != 0) { return lastComparison; } if (isSetExpected()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expected, typedOther.expected); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expected, other.expected); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUpdates()).compareTo(typedOther.isSetUpdates()); + lastComparison = Boolean.valueOf(isSetUpdates()).compareTo(other.isSetUpdates()); if (lastComparison != 0) { return lastComparison; } if (isSetUpdates()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updates, typedOther.updates); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updates, other.updates); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSerial_consistency_level()).compareTo(typedOther.isSetSerial_consistency_level()); + lastComparison = Boolean.valueOf(isSetSerial_consistency_level()).compareTo(other.isSetSerial_consistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetSerial_consistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serial_consistency_level, typedOther.serial_consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serial_consistency_level, other.serial_consistency_level); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCommit_consistency_level()).compareTo(typedOther.isSetCommit_consistency_level()); + lastComparison = Boolean.valueOf(isSetCommit_consistency_level()).compareTo(other.isSetCommit_consistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetCommit_consistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commit_consistency_level, typedOther.commit_consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commit_consistency_level, other.commit_consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -20927,7 +23663,7 @@ public class Cassandra { struct.expected = new ArrayList(_list292.size); for (int _i293 = 0; _i293 < _list292.size; ++_i293) { - Column _elem294; // required + Column _elem294; _elem294 = new Column(); _elem294.read(iprot); struct.expected.add(_elem294); @@ -20946,7 +23682,7 @@ public class Cassandra { struct.updates = new ArrayList(_list295.size); for (int _i296 = 0; _i296 < _list295.size; ++_i296) { - Column _elem297; // required + Column _elem297; _elem297 = new Column(); _elem297.read(iprot); struct.updates.add(_elem297); @@ -21100,7 +23836,7 @@ public class Cassandra { struct.expected = new ArrayList(_list302.size); for (int _i303 = 0; _i303 < _list302.size; ++_i303) { - Column _elem304; // required + Column _elem304; _elem304 = new Column(); _elem304.read(iprot); struct.expected.add(_elem304); @@ -21114,7 +23850,7 @@ public class Cassandra { struct.updates = new ArrayList(_list305.size); for (int _i306 = 0; _i306 < _list305.size; ++_i306) { - Column _elem307; // required + Column _elem307; _elem307 = new Column(); _elem307.read(iprot); struct.updates.add(_elem307); @@ -21127,7 +23863,7 @@ public class Cassandra { } - public static class cas_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class cas_result 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("cas_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -21524,50 +24260,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(cas_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - cas_result typedOther = (cas_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -21814,7 +24550,7 @@ public class Cassandra { } - public static class remove_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class remove_args 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("remove_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -22243,50 +24979,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(remove_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - remove_args typedOther = (remove_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumn_path()).compareTo(typedOther.isSetColumn_path()); + lastComparison = Boolean.valueOf(isSetColumn_path()).compareTo(other.isSetColumn_path()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_path()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_path, typedOther.column_path); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_path, other.column_path); 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(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -22512,7 +25248,7 @@ public class Cassandra { } - public static class remove_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class remove_result 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("remove_result"); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -22845,40 +25581,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(remove_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - remove_result typedOther = (remove_result)other; - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -23089,7 +25825,7 @@ public class Cassandra { } - public static class remove_counter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class remove_counter_args 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("remove_counter_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -23452,40 +26188,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(remove_counter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - remove_counter_args typedOther = (remove_counter_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath()); + lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath()); if (lastComparison != 0) { return lastComparison; } if (isSetPath()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -23680,7 +26416,7 @@ public class Cassandra { } - public static class remove_counter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class remove_counter_result 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("remove_counter_result"); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -24013,40 +26749,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(remove_counter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - remove_counter_result typedOther = (remove_counter_result)other; - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -24257,7 +26993,7 @@ public class Cassandra { } - public static class batch_mutate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class batch_mutate_args 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("batch_mutate_args"); private static final org.apache.thrift.protocol.TField MUTATION_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("mutation_map", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -24377,7 +27113,7 @@ public class Cassandra { */ public batch_mutate_args(batch_mutate_args other) { if (other.isSetMutation_map()) { - Map>> __this__mutation_map = new HashMap>>(); + Map>> __this__mutation_map = new HashMap>>(other.mutation_map.size()); for (Map.Entry>> other_element : other.mutation_map.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -24386,7 +27122,7 @@ public class Cassandra { ByteBuffer __this__mutation_map_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); ; - Map> __this__mutation_map_copy_value = new HashMap>(); + Map> __this__mutation_map_copy_value = new HashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); @@ -24394,7 +27130,7 @@ public class Cassandra { String __this__mutation_map_copy_value_copy_key = other_element_value_element_key; - List __this__mutation_map_copy_value_copy_value = new ArrayList(); + List __this__mutation_map_copy_value_copy_value = new ArrayList(other_element_value_element_value.size()); for (Mutation other_element_value_element_value_element : other_element_value_element_value) { __this__mutation_map_copy_value_copy_value.add(new Mutation(other_element_value_element_value_element)); } @@ -24588,30 +27324,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(batch_mutate_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - batch_mutate_args typedOther = (batch_mutate_args)other; - lastComparison = Boolean.valueOf(isSetMutation_map()).compareTo(typedOther.isSetMutation_map()); + lastComparison = Boolean.valueOf(isSetMutation_map()).compareTo(other.isSetMutation_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMutation_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutation_map, typedOther.mutation_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutation_map, other.mutation_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -24707,23 +27443,23 @@ public class Cassandra { struct.mutation_map = new HashMap>>(2*_map308.size); for (int _i309 = 0; _i309 < _map308.size; ++_i309) { - ByteBuffer _key310; // required - Map> _val311; // required + ByteBuffer _key310; + Map> _val311; _key310 = iprot.readBinary(); { org.apache.thrift.protocol.TMap _map312 = iprot.readMapBegin(); _val311 = new HashMap>(2*_map312.size); for (int _i313 = 0; _i313 < _map312.size; ++_i313) { - String _key314; // required - List _val315; // required + String _key314; + List _val315; _key314 = iprot.readString(); { org.apache.thrift.protocol.TList _list316 = iprot.readListBegin(); _val315 = new ArrayList(_list316.size); for (int _i317 = 0; _i317 < _list316.size; ++_i317) { - Mutation _elem318; // required + Mutation _elem318; _elem318 = new Mutation(); _elem318.read(iprot); _val315.add(_elem318); @@ -24848,23 +27584,23 @@ public class Cassandra { struct.mutation_map = new HashMap>>(2*_map325.size); for (int _i326 = 0; _i326 < _map325.size; ++_i326) { - ByteBuffer _key327; // required - Map> _val328; // required + ByteBuffer _key327; + Map> _val328; _key327 = iprot.readBinary(); { org.apache.thrift.protocol.TMap _map329 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); _val328 = new HashMap>(2*_map329.size); for (int _i330 = 0; _i330 < _map329.size; ++_i330) { - String _key331; // required - List _val332; // required + String _key331; + List _val332; _key331 = iprot.readString(); { org.apache.thrift.protocol.TList _list333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val332 = new ArrayList(_list333.size); for (int _i334 = 0; _i334 < _list333.size; ++_i334) { - Mutation _elem335; // required + Mutation _elem335; _elem335 = new Mutation(); _elem335.read(iprot); _val332.add(_elem335); @@ -24884,7 +27620,7 @@ public class Cassandra { } - public static class batch_mutate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class batch_mutate_result 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("batch_mutate_result"); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -25217,40 +27953,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(batch_mutate_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - batch_mutate_result typedOther = (batch_mutate_result)other; - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -25461,7 +28197,7 @@ public class Cassandra { } - public static class atomic_batch_mutate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class atomic_batch_mutate_args 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("atomic_batch_mutate_args"); private static final org.apache.thrift.protocol.TField MUTATION_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("mutation_map", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -25581,7 +28317,7 @@ public class Cassandra { */ public atomic_batch_mutate_args(atomic_batch_mutate_args other) { if (other.isSetMutation_map()) { - Map>> __this__mutation_map = new HashMap>>(); + Map>> __this__mutation_map = new HashMap>>(other.mutation_map.size()); for (Map.Entry>> other_element : other.mutation_map.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); @@ -25590,7 +28326,7 @@ public class Cassandra { ByteBuffer __this__mutation_map_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); ; - Map> __this__mutation_map_copy_value = new HashMap>(); + Map> __this__mutation_map_copy_value = new HashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); @@ -25598,7 +28334,7 @@ public class Cassandra { String __this__mutation_map_copy_value_copy_key = other_element_value_element_key; - List __this__mutation_map_copy_value_copy_value = new ArrayList(); + List __this__mutation_map_copy_value_copy_value = new ArrayList(other_element_value_element_value.size()); for (Mutation other_element_value_element_value_element : other_element_value_element_value) { __this__mutation_map_copy_value_copy_value.add(new Mutation(other_element_value_element_value_element)); } @@ -25792,30 +28528,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(atomic_batch_mutate_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - atomic_batch_mutate_args typedOther = (atomic_batch_mutate_args)other; - lastComparison = Boolean.valueOf(isSetMutation_map()).compareTo(typedOther.isSetMutation_map()); + lastComparison = Boolean.valueOf(isSetMutation_map()).compareTo(other.isSetMutation_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMutation_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutation_map, typedOther.mutation_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutation_map, other.mutation_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(typedOther.isSetConsistency_level()); + lastComparison = Boolean.valueOf(isSetConsistency_level()).compareTo(other.isSetConsistency_level()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency_level()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency_level, other.consistency_level); if (lastComparison != 0) { return lastComparison; } @@ -25911,23 +28647,23 @@ public class Cassandra { struct.mutation_map = new HashMap>>(2*_map336.size); for (int _i337 = 0; _i337 < _map336.size; ++_i337) { - ByteBuffer _key338; // required - Map> _val339; // required + ByteBuffer _key338; + Map> _val339; _key338 = iprot.readBinary(); { org.apache.thrift.protocol.TMap _map340 = iprot.readMapBegin(); _val339 = new HashMap>(2*_map340.size); for (int _i341 = 0; _i341 < _map340.size; ++_i341) { - String _key342; // required - List _val343; // required + String _key342; + List _val343; _key342 = iprot.readString(); { org.apache.thrift.protocol.TList _list344 = iprot.readListBegin(); _val343 = new ArrayList(_list344.size); for (int _i345 = 0; _i345 < _list344.size; ++_i345) { - Mutation _elem346; // required + Mutation _elem346; _elem346 = new Mutation(); _elem346.read(iprot); _val343.add(_elem346); @@ -26052,23 +28788,23 @@ public class Cassandra { struct.mutation_map = new HashMap>>(2*_map353.size); for (int _i354 = 0; _i354 < _map353.size; ++_i354) { - ByteBuffer _key355; // required - Map> _val356; // required + ByteBuffer _key355; + Map> _val356; _key355 = iprot.readBinary(); { org.apache.thrift.protocol.TMap _map357 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); _val356 = new HashMap>(2*_map357.size); for (int _i358 = 0; _i358 < _map357.size; ++_i358) { - String _key359; // required - List _val360; // required + String _key359; + List _val360; _key359 = iprot.readString(); { org.apache.thrift.protocol.TList _list361 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val360 = new ArrayList(_list361.size); for (int _i362 = 0; _i362 < _list361.size; ++_i362) { - Mutation _elem363; // required + Mutation _elem363; _elem363 = new Mutation(); _elem363.read(iprot); _val360.add(_elem363); @@ -26088,7 +28824,7 @@ public class Cassandra { } - public static class atomic_batch_mutate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class atomic_batch_mutate_result 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("atomic_batch_mutate_result"); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -26421,40 +29157,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(atomic_batch_mutate_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - atomic_batch_mutate_result typedOther = (atomic_batch_mutate_result)other; - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -26665,7 +29401,7 @@ public class Cassandra { } - public static class truncate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class truncate_args 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("truncate_args"); private static final org.apache.thrift.protocol.TField CFNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("cfname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -26870,20 +29606,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(truncate_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - truncate_args typedOther = (truncate_args)other; - lastComparison = Boolean.valueOf(isSetCfname()).compareTo(typedOther.isSetCfname()); + lastComparison = Boolean.valueOf(isSetCfname()).compareTo(other.isSetCfname()); if (lastComparison != 0) { return lastComparison; } if (isSetCfname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cfname, typedOther.cfname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cfname, other.cfname); if (lastComparison != 0) { return lastComparison; } @@ -27019,7 +29755,7 @@ public class Cassandra { } - public static class truncate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class truncate_result 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("truncate_result"); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -27352,40 +30088,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(truncate_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - truncate_result typedOther = (truncate_result)other; - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } @@ -27596,7 +30332,7 @@ public class Cassandra { } - public static class describe_schema_versions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_schema_versions_args 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("describe_schema_versions_args"); @@ -27731,13 +30467,13 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_schema_versions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_schema_versions_args typedOther = (describe_schema_versions_args)other; return 0; } @@ -27844,7 +30580,7 @@ public class Cassandra { } - public static class describe_schema_versions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_schema_versions_result 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("describe_schema_versions_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); @@ -27952,7 +30688,7 @@ public class Cassandra { */ public describe_schema_versions_result(describe_schema_versions_result other) { if (other.isSetSuccess()) { - Map> __this__success = new HashMap>(); + Map> __this__success = new HashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); @@ -27960,10 +30696,7 @@ public class Cassandra { String __this__success_copy_key = other_element_key; - List __this__success_copy_value = new ArrayList(); - for (String other_element_value_element : other_element_value) { - __this__success_copy_value.add(other_element_value_element); - } + List __this__success_copy_value = new ArrayList(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } @@ -28142,30 +30875,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_schema_versions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_schema_versions_result typedOther = (describe_schema_versions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -28255,15 +30988,15 @@ public class Cassandra { struct.success = new HashMap>(2*_map364.size); for (int _i365 = 0; _i365 < _map364.size; ++_i365) { - String _key366; // required - List _val367; // required + String _key366; + List _val367; _key366 = iprot.readString(); { org.apache.thrift.protocol.TList _list368 = iprot.readListBegin(); _val367 = new ArrayList(_list368.size); for (int _i369 = 0; _i369 < _list368.size; ++_i369) { - String _elem370; // required + String _elem370; _elem370 = iprot.readString(); _val367.add(_elem370); } @@ -28383,15 +31116,15 @@ public class Cassandra { struct.success = new HashMap>(2*_map375.size); for (int _i376 = 0; _i376 < _map375.size; ++_i376) { - String _key377; // required - List _val378; // required + String _key377; + List _val378; _key377 = iprot.readString(); { org.apache.thrift.protocol.TList _list379 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); _val378 = new ArrayList(_list379.size); for (int _i380 = 0; _i380 < _list379.size; ++_i380) { - String _elem381; // required + String _elem381; _elem381 = iprot.readString(); _val378.add(_elem381); } @@ -28411,7 +31144,7 @@ public class Cassandra { } - public static class describe_keyspaces_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_keyspaces_args 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("describe_keyspaces_args"); @@ -28546,13 +31279,13 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_keyspaces_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_keyspaces_args typedOther = (describe_keyspaces_args)other; return 0; } @@ -28659,7 +31392,7 @@ public class Cassandra { } - public static class describe_keyspaces_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_keyspaces_result 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("describe_keyspaces_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -28765,7 +31498,7 @@ public class Cassandra { */ public describe_keyspaces_result(describe_keyspaces_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (KsDef other_element : other.success) { __this__success.add(new KsDef(other_element)); } @@ -28948,30 +31681,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_keyspaces_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_keyspaces_result typedOther = (describe_keyspaces_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -29061,7 +31794,7 @@ public class Cassandra { struct.success = new ArrayList(_list382.size); for (int _i383 = 0; _i383 < _list382.size; ++_i383) { - KsDef _elem384; // required + KsDef _elem384; _elem384 = new KsDef(); _elem384.read(iprot); struct.success.add(_elem384); @@ -29163,7 +31896,7 @@ public class Cassandra { struct.success = new ArrayList(_list387.size); for (int _i388 = 0; _i388 < _list387.size; ++_i388) { - KsDef _elem389; // required + KsDef _elem389; _elem389 = new KsDef(); _elem389.read(iprot); struct.success.add(_elem389); @@ -29181,7 +31914,7 @@ public class Cassandra { } - public static class describe_cluster_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_cluster_name_args 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("describe_cluster_name_args"); @@ -29316,13 +32049,13 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_cluster_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_cluster_name_args typedOther = (describe_cluster_name_args)other; return 0; } @@ -29429,7 +32162,7 @@ public class Cassandra { } - public static class describe_cluster_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_cluster_name_result 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("describe_cluster_name_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -29634,20 +32367,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_cluster_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_cluster_name_result typedOther = (describe_cluster_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -29790,7 +32523,7 @@ public class Cassandra { } - public static class describe_version_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_version_args 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("describe_version_args"); @@ -29925,13 +32658,13 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_version_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_version_args typedOther = (describe_version_args)other; return 0; } @@ -30038,7 +32771,7 @@ public class Cassandra { } - public static class describe_version_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_version_result 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("describe_version_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -30243,20 +32976,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_version_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_version_result typedOther = (describe_version_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -30399,7 +33132,7 @@ public class Cassandra { } - public static class describe_ring_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_ring_args 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("describe_ring_args"); 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); @@ -30604,20 +33337,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_ring_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_ring_args typedOther = (describe_ring_args)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; } @@ -30753,7 +33486,7 @@ public class Cassandra { } - public static class describe_ring_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_ring_result 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("describe_ring_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -30859,7 +33592,7 @@ public class Cassandra { */ public describe_ring_result(describe_ring_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (TokenRange other_element : other.success) { __this__success.add(new TokenRange(other_element)); } @@ -31042,30 +33775,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_ring_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_ring_result typedOther = (describe_ring_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -31155,7 +33888,7 @@ public class Cassandra { struct.success = new ArrayList(_list390.size); for (int _i391 = 0; _i391 < _list390.size; ++_i391) { - TokenRange _elem392; // required + TokenRange _elem392; _elem392 = new TokenRange(); _elem392.read(iprot); struct.success.add(_elem392); @@ -31257,7 +33990,7 @@ public class Cassandra { struct.success = new ArrayList(_list395.size); for (int _i396 = 0; _i396 < _list395.size; ++_i396) { - TokenRange _elem397; // required + TokenRange _elem397; _elem397 = new TokenRange(); _elem397.read(iprot); struct.success.add(_elem397); @@ -31275,7 +34008,7 @@ public class Cassandra { } - public static class describe_token_map_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_token_map_args 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("describe_token_map_args"); @@ -31410,13 +34143,13 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_token_map_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_token_map_args typedOther = (describe_token_map_args)other; return 0; } @@ -31523,7 +34256,7 @@ public class Cassandra { } - public static class describe_token_map_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_token_map_result 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("describe_token_map_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); @@ -31630,18 +34363,7 @@ public class Cassandra { */ public describe_token_map_result(describe_token_map_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(); - for (Map.Entry other_element : other.success.entrySet()) { - - String other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - String __this__success_copy_key = other_element_key; - - String __this__success_copy_value = other_element_value; - - __this__success.put(__this__success_copy_key, __this__success_copy_value); - } + Map __this__success = new HashMap(other.success); this.success = __this__success; } if (other.isSetIre()) { @@ -31817,30 +34539,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_token_map_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_token_map_result typedOther = (describe_token_map_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -31930,8 +34652,8 @@ public class Cassandra { struct.success = new HashMap(2*_map398.size); for (int _i399 = 0; _i399 < _map398.size; ++_i399) { - String _key400; // required - String _val401; // required + String _key400; + String _val401; _key400 = iprot.readString(); _val401 = iprot.readString(); struct.success.put(_key400, _val401); @@ -32035,8 +34757,8 @@ public class Cassandra { struct.success = new HashMap(2*_map404.size); for (int _i405 = 0; _i405 < _map404.size; ++_i405) { - String _key406; // required - String _val407; // required + String _key406; + String _val407; _key406 = iprot.readString(); _val407 = iprot.readString(); struct.success.put(_key406, _val407); @@ -32054,7 +34776,7 @@ public class Cassandra { } - public static class describe_partitioner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_partitioner_args 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("describe_partitioner_args"); @@ -32189,13 +34911,13 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_partitioner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_partitioner_args typedOther = (describe_partitioner_args)other; return 0; } @@ -32302,7 +35024,7 @@ public class Cassandra { } - public static class describe_partitioner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_partitioner_result 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("describe_partitioner_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -32507,20 +35229,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_partitioner_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_partitioner_result typedOther = (describe_partitioner_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -32663,7 +35385,7 @@ public class Cassandra { } - public static class describe_snitch_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_snitch_args 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("describe_snitch_args"); @@ -32798,13 +35520,13 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_snitch_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_snitch_args typedOther = (describe_snitch_args)other; return 0; } @@ -32911,7 +35633,7 @@ public class Cassandra { } - public static class describe_snitch_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_snitch_result 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("describe_snitch_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -33116,20 +35838,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_snitch_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_snitch_result typedOther = (describe_snitch_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -33272,7 +35994,7 @@ public class Cassandra { } - public static class describe_keyspace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_keyspace_args 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("describe_keyspace_args"); 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); @@ -33477,20 +36199,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_keyspace_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_keyspace_args typedOther = (describe_keyspace_args)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; } @@ -33626,7 +36348,7 @@ public class Cassandra { } - public static class describe_keyspace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_keyspace_result 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("describe_keyspace_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -33959,40 +36681,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_keyspace_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_keyspace_result typedOther = (describe_keyspace_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNfe()).compareTo(typedOther.isSetNfe()); + lastComparison = Boolean.valueOf(isSetNfe()).compareTo(other.isSetNfe()); if (lastComparison != 0) { return lastComparison; } if (isSetNfe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nfe, typedOther.nfe); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nfe, other.nfe); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -34206,7 +36928,7 @@ public class Cassandra { } - public static class describe_splits_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_splits_args 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("describe_splits_args"); private static final org.apache.thrift.protocol.TField CF_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("cfName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -34605,50 +37327,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_splits_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_splits_args typedOther = (describe_splits_args)other; - lastComparison = Boolean.valueOf(isSetCfName()).compareTo(typedOther.isSetCfName()); + lastComparison = Boolean.valueOf(isSetCfName()).compareTo(other.isSetCfName()); if (lastComparison != 0) { return lastComparison; } if (isSetCfName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cfName, typedOther.cfName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cfName, other.cfName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStart_token()).compareTo(typedOther.isSetStart_token()); + lastComparison = Boolean.valueOf(isSetStart_token()).compareTo(other.isSetStart_token()); if (lastComparison != 0) { return lastComparison; } if (isSetStart_token()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_token, typedOther.start_token); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_token, other.start_token); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnd_token()).compareTo(typedOther.isSetEnd_token()); + lastComparison = Boolean.valueOf(isSetEnd_token()).compareTo(other.isSetEnd_token()); if (lastComparison != 0) { return lastComparison; } if (isSetEnd_token()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.end_token, typedOther.end_token); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.end_token, other.end_token); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetKeys_per_split()).compareTo(typedOther.isSetKeys_per_split()); + lastComparison = Boolean.valueOf(isSetKeys_per_split()).compareTo(other.isSetKeys_per_split()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys_per_split()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys_per_split, typedOther.keys_per_split); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys_per_split, other.keys_per_split); if (lastComparison != 0) { return lastComparison; } @@ -34862,7 +37584,7 @@ public class Cassandra { } - public static class describe_splits_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_splits_result 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("describe_splits_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -34968,10 +37690,7 @@ public class Cassandra { */ public describe_splits_result(describe_splits_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (String other_element : other.success) { - __this__success.add(other_element); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } if (other.isSetIre()) { @@ -35151,30 +37870,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_splits_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_splits_result typedOther = (describe_splits_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -35264,7 +37983,7 @@ public class Cassandra { struct.success = new ArrayList(_list408.size); for (int _i409 = 0; _i409 < _list408.size; ++_i409) { - String _elem410; // required + String _elem410; _elem410 = iprot.readString(); struct.success.add(_elem410); } @@ -35365,7 +38084,7 @@ public class Cassandra { struct.success = new ArrayList(_list413.size); for (int _i414 = 0; _i414 < _list413.size; ++_i414) { - String _elem415; // required + String _elem415; _elem415 = iprot.readString(); struct.success.add(_elem415); } @@ -35382,7 +38101,7 @@ public class Cassandra { } - public static class trace_next_query_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class trace_next_query_args 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("trace_next_query_args"); @@ -35517,13 +38236,13 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(trace_next_query_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - trace_next_query_args typedOther = (trace_next_query_args)other; return 0; } @@ -35630,7 +38349,7 @@ public class Cassandra { } - public static class trace_next_query_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class trace_next_query_result 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("trace_next_query_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -35846,20 +38565,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(trace_next_query_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - trace_next_query_result typedOther = (trace_next_query_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -36002,7 +38721,7 @@ public class Cassandra { } - public static class describe_splits_ex_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_splits_ex_args 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("describe_splits_ex_args"); private static final org.apache.thrift.protocol.TField CF_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("cfName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -36401,50 +39120,50 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_splits_ex_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_splits_ex_args typedOther = (describe_splits_ex_args)other; - lastComparison = Boolean.valueOf(isSetCfName()).compareTo(typedOther.isSetCfName()); + lastComparison = Boolean.valueOf(isSetCfName()).compareTo(other.isSetCfName()); if (lastComparison != 0) { return lastComparison; } if (isSetCfName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cfName, typedOther.cfName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cfName, other.cfName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStart_token()).compareTo(typedOther.isSetStart_token()); + lastComparison = Boolean.valueOf(isSetStart_token()).compareTo(other.isSetStart_token()); if (lastComparison != 0) { return lastComparison; } if (isSetStart_token()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_token, typedOther.start_token); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_token, other.start_token); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnd_token()).compareTo(typedOther.isSetEnd_token()); + lastComparison = Boolean.valueOf(isSetEnd_token()).compareTo(other.isSetEnd_token()); if (lastComparison != 0) { return lastComparison; } if (isSetEnd_token()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.end_token, typedOther.end_token); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.end_token, other.end_token); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetKeys_per_split()).compareTo(typedOther.isSetKeys_per_split()); + lastComparison = Boolean.valueOf(isSetKeys_per_split()).compareTo(other.isSetKeys_per_split()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys_per_split()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys_per_split, typedOther.keys_per_split); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys_per_split, other.keys_per_split); if (lastComparison != 0) { return lastComparison; } @@ -36658,7 +39377,7 @@ public class Cassandra { } - public static class describe_splits_ex_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class describe_splits_ex_result 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("describe_splits_ex_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -36764,7 +39483,7 @@ public class Cassandra { */ public describe_splits_ex_result(describe_splits_ex_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); + List __this__success = new ArrayList(other.success.size()); for (CfSplit other_element : other.success) { __this__success.add(new CfSplit(other_element)); } @@ -36947,30 +39666,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(describe_splits_ex_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - describe_splits_ex_result typedOther = (describe_splits_ex_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -37060,7 +39779,7 @@ public class Cassandra { struct.success = new ArrayList(_list416.size); for (int _i417 = 0; _i417 < _list416.size; ++_i417) { - CfSplit _elem418; // required + CfSplit _elem418; _elem418 = new CfSplit(); _elem418.read(iprot); struct.success.add(_elem418); @@ -37162,7 +39881,7 @@ public class Cassandra { struct.success = new ArrayList(_list421.size); for (int _i422 = 0; _i422 < _list421.size; ++_i422) { - CfSplit _elem423; // required + CfSplit _elem423; _elem423 = new CfSplit(); _elem423.read(iprot); struct.success.add(_elem423); @@ -37180,7 +39899,7 @@ public class Cassandra { } - public static class system_add_column_family_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_add_column_family_args 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("system_add_column_family_args"); private static final org.apache.thrift.protocol.TField CF_DEF_FIELD_DESC = new org.apache.thrift.protocol.TField("cf_def", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -37385,20 +40104,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_add_column_family_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_add_column_family_args typedOther = (system_add_column_family_args)other; - lastComparison = Boolean.valueOf(isSetCf_def()).compareTo(typedOther.isSetCf_def()); + lastComparison = Boolean.valueOf(isSetCf_def()).compareTo(other.isSetCf_def()); if (lastComparison != 0) { return lastComparison; } if (isSetCf_def()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cf_def, typedOther.cf_def); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cf_def, other.cf_def); if (lastComparison != 0) { return lastComparison; } @@ -37539,7 +40258,7 @@ public class Cassandra { } - public static class system_add_column_family_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_add_column_family_result 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("system_add_column_family_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -37872,40 +40591,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_add_column_family_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_add_column_family_result typedOther = (system_add_column_family_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -38114,7 +40833,7 @@ public class Cassandra { } - public static class system_drop_column_family_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_drop_column_family_args 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("system_drop_column_family_args"); 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)1); @@ -38319,20 +41038,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_drop_column_family_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_drop_column_family_args typedOther = (system_drop_column_family_args)other; - lastComparison = Boolean.valueOf(isSetColumn_family()).compareTo(typedOther.isSetColumn_family()); + lastComparison = Boolean.valueOf(isSetColumn_family()).compareTo(other.isSetColumn_family()); if (lastComparison != 0) { return lastComparison; } if (isSetColumn_family()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_family, typedOther.column_family); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_family, other.column_family); if (lastComparison != 0) { return lastComparison; } @@ -38468,7 +41187,7 @@ public class Cassandra { } - public static class system_drop_column_family_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_drop_column_family_result 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("system_drop_column_family_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -38801,40 +41520,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_drop_column_family_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_drop_column_family_result typedOther = (system_drop_column_family_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -39043,7 +41762,7 @@ public class Cassandra { } - public static class system_add_keyspace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_add_keyspace_args 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("system_add_keyspace_args"); private static final org.apache.thrift.protocol.TField KS_DEF_FIELD_DESC = new org.apache.thrift.protocol.TField("ks_def", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -39248,20 +41967,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_add_keyspace_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_add_keyspace_args typedOther = (system_add_keyspace_args)other; - lastComparison = Boolean.valueOf(isSetKs_def()).compareTo(typedOther.isSetKs_def()); + lastComparison = Boolean.valueOf(isSetKs_def()).compareTo(other.isSetKs_def()); if (lastComparison != 0) { return lastComparison; } if (isSetKs_def()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ks_def, typedOther.ks_def); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ks_def, other.ks_def); if (lastComparison != 0) { return lastComparison; } @@ -39402,7 +42121,7 @@ public class Cassandra { } - public static class system_add_keyspace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_add_keyspace_result 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("system_add_keyspace_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -39735,40 +42454,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_add_keyspace_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_add_keyspace_result typedOther = (system_add_keyspace_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -39977,7 +42696,7 @@ public class Cassandra { } - public static class system_drop_keyspace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_drop_keyspace_args 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("system_drop_keyspace_args"); 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); @@ -40182,20 +42901,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_drop_keyspace_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_drop_keyspace_args typedOther = (system_drop_keyspace_args)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; } @@ -40331,7 +43050,7 @@ public class Cassandra { } - public static class system_drop_keyspace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_drop_keyspace_result 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("system_drop_keyspace_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -40664,40 +43383,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_drop_keyspace_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_drop_keyspace_result typedOther = (system_drop_keyspace_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -40906,7 +43625,7 @@ public class Cassandra { } - public static class system_update_keyspace_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_update_keyspace_args 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("system_update_keyspace_args"); private static final org.apache.thrift.protocol.TField KS_DEF_FIELD_DESC = new org.apache.thrift.protocol.TField("ks_def", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -41111,20 +43830,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_update_keyspace_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_update_keyspace_args typedOther = (system_update_keyspace_args)other; - lastComparison = Boolean.valueOf(isSetKs_def()).compareTo(typedOther.isSetKs_def()); + lastComparison = Boolean.valueOf(isSetKs_def()).compareTo(other.isSetKs_def()); if (lastComparison != 0) { return lastComparison; } if (isSetKs_def()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ks_def, typedOther.ks_def); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ks_def, other.ks_def); if (lastComparison != 0) { return lastComparison; } @@ -41265,7 +43984,7 @@ public class Cassandra { } - public static class system_update_keyspace_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_update_keyspace_result 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("system_update_keyspace_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -41598,40 +44317,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_update_keyspace_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_update_keyspace_result typedOther = (system_update_keyspace_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -41840,7 +44559,7 @@ public class Cassandra { } - public static class system_update_column_family_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_update_column_family_args 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("system_update_column_family_args"); private static final org.apache.thrift.protocol.TField CF_DEF_FIELD_DESC = new org.apache.thrift.protocol.TField("cf_def", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -42045,20 +44764,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_update_column_family_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_update_column_family_args typedOther = (system_update_column_family_args)other; - lastComparison = Boolean.valueOf(isSetCf_def()).compareTo(typedOther.isSetCf_def()); + lastComparison = Boolean.valueOf(isSetCf_def()).compareTo(other.isSetCf_def()); if (lastComparison != 0) { return lastComparison; } if (isSetCf_def()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cf_def, typedOther.cf_def); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cf_def, other.cf_def); if (lastComparison != 0) { return lastComparison; } @@ -42199,7 +44918,7 @@ public class Cassandra { } - public static class system_update_column_family_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class system_update_column_family_result 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("system_update_column_family_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -42532,40 +45251,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(system_update_column_family_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - system_update_column_family_result typedOther = (system_update_column_family_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -42774,7 +45493,7 @@ public class Cassandra { } - public static class execute_cql_query_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class execute_cql_query_args 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("execute_cql_query_args"); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -43070,30 +45789,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(execute_cql_query_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - execute_cql_query_args typedOther = (execute_cql_query_args)other; - lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery()); + lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetQuery()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompression()).compareTo(typedOther.isSetCompression()); + lastComparison = Boolean.valueOf(isSetCompression()).compareTo(other.isSetCompression()); if (lastComparison != 0) { return lastComparison; } if (isSetCompression()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, typedOther.compression); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, other.compression); if (lastComparison != 0) { return lastComparison; } @@ -43256,7 +45975,7 @@ public class Cassandra { } - public static class execute_cql_query_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class execute_cql_query_result 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("execute_cql_query_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -43717,60 +46436,60 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(execute_cql_query_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - execute_cql_query_result typedOther = (execute_cql_query_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -44050,7 +46769,7 @@ public class Cassandra { } - public static class execute_cql3_query_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class execute_cql3_query_args 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("execute_cql3_query_args"); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -44426,40 +47145,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(execute_cql3_query_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - execute_cql3_query_args typedOther = (execute_cql3_query_args)other; - lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery()); + lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetQuery()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompression()).compareTo(typedOther.isSetCompression()); + lastComparison = Boolean.valueOf(isSetCompression()).compareTo(other.isSetCompression()); if (lastComparison != 0) { return lastComparison; } if (isSetCompression()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, typedOther.compression); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, other.compression); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency()).compareTo(typedOther.isSetConsistency()); + lastComparison = Boolean.valueOf(isSetConsistency()).compareTo(other.isSetConsistency()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency, typedOther.consistency); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency, other.consistency); if (lastComparison != 0) { return lastComparison; } @@ -44649,7 +47368,7 @@ public class Cassandra { } - public static class execute_cql3_query_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class execute_cql3_query_result 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("execute_cql3_query_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -45110,60 +47829,60 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(execute_cql3_query_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - execute_cql3_query_result typedOther = (execute_cql3_query_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -45443,7 +48162,7 @@ public class Cassandra { } - public static class prepare_cql_query_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class prepare_cql_query_args 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("prepare_cql_query_args"); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -45739,30 +48458,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(prepare_cql_query_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - prepare_cql_query_args typedOther = (prepare_cql_query_args)other; - lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery()); + lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetQuery()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompression()).compareTo(typedOther.isSetCompression()); + lastComparison = Boolean.valueOf(isSetCompression()).compareTo(other.isSetCompression()); if (lastComparison != 0) { return lastComparison; } if (isSetCompression()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, typedOther.compression); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, other.compression); if (lastComparison != 0) { return lastComparison; } @@ -45925,7 +48644,7 @@ public class Cassandra { } - public static class prepare_cql_query_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class prepare_cql_query_result 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("prepare_cql_query_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -46194,30 +48913,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(prepare_cql_query_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - prepare_cql_query_result typedOther = (prepare_cql_query_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -46398,7 +49117,7 @@ public class Cassandra { } - public static class prepare_cql3_query_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class prepare_cql3_query_args 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("prepare_cql3_query_args"); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -46694,30 +49413,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(prepare_cql3_query_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - prepare_cql3_query_args typedOther = (prepare_cql3_query_args)other; - lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery()); + lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetQuery()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompression()).compareTo(typedOther.isSetCompression()); + lastComparison = Boolean.valueOf(isSetCompression()).compareTo(other.isSetCompression()); if (lastComparison != 0) { return lastComparison; } if (isSetCompression()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, typedOther.compression); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compression, other.compression); if (lastComparison != 0) { return lastComparison; } @@ -46880,7 +49599,7 @@ public class Cassandra { } - public static class prepare_cql3_query_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class prepare_cql3_query_result 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("prepare_cql3_query_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -47149,30 +49868,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(prepare_cql3_query_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - prepare_cql3_query_result typedOther = (prepare_cql3_query_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } @@ -47353,7 +50072,7 @@ public class Cassandra { } - public static class execute_prepared_cql_query_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class execute_prepared_cql_query_args 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("execute_prepared_cql_query_args"); private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I32, (short)1); @@ -47464,12 +50183,7 @@ public class Cassandra { __isset_bitfield = other.__isset_bitfield; this.itemId = other.itemId; if (other.isSetValues()) { - List __this__values = new ArrayList(); - for (ByteBuffer other_element : other.values) { - ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element); -; - __this__values.add(temp_binary_element); - } + List __this__values = new ArrayList(other.values); this.values = __this__values; } } @@ -47646,30 +50360,30 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(execute_prepared_cql_query_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - execute_prepared_cql_query_args typedOther = (execute_prepared_cql_query_args)other; - lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId()); + lastComparison = Boolean.valueOf(isSetItemId()).compareTo(other.isSetItemId()); if (lastComparison != 0) { return lastComparison; } if (isSetItemId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, other.itemId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } @@ -47769,7 +50483,7 @@ public class Cassandra { struct.values = new ArrayList(_list424.size); for (int _i425 = 0; _i425 < _list424.size; ++_i425) { - ByteBuffer _elem426; // required + ByteBuffer _elem426; _elem426 = iprot.readBinary(); struct.values.add(_elem426); } @@ -47850,7 +50564,7 @@ public class Cassandra { struct.values = new ArrayList(_list429.size); for (int _i430 = 0; _i430 < _list429.size; ++_i430) { - ByteBuffer _elem431; // required + ByteBuffer _elem431; _elem431 = iprot.readBinary(); struct.values.add(_elem431); } @@ -47861,7 +50575,7 @@ public class Cassandra { } - public static class execute_prepared_cql_query_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class execute_prepared_cql_query_result 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("execute_prepared_cql_query_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -48322,60 +51036,60 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(execute_prepared_cql_query_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - execute_prepared_cql_query_result typedOther = (execute_prepared_cql_query_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -48655,7 +51369,7 @@ public class Cassandra { } - public static class execute_prepared_cql3_query_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class execute_prepared_cql3_query_args 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("execute_prepared_cql3_query_args"); private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I32, (short)1); @@ -48783,12 +51497,7 @@ public class Cassandra { __isset_bitfield = other.__isset_bitfield; this.itemId = other.itemId; if (other.isSetValues()) { - List __this__values = new ArrayList(); - for (ByteBuffer other_element : other.values) { - ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element); -; - __this__values.add(temp_binary_element); - } + List __this__values = new ArrayList(other.values); this.values = __this__values; } if (other.isSetConsistency()) { @@ -49028,40 +51737,40 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(execute_prepared_cql3_query_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - execute_prepared_cql3_query_args typedOther = (execute_prepared_cql3_query_args)other; - lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId()); + lastComparison = Boolean.valueOf(isSetItemId()).compareTo(other.isSetItemId()); if (lastComparison != 0) { return lastComparison; } if (isSetItemId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, other.itemId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConsistency()).compareTo(typedOther.isSetConsistency()); + lastComparison = Boolean.valueOf(isSetConsistency()).compareTo(other.isSetConsistency()); if (lastComparison != 0) { return lastComparison; } if (isSetConsistency()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency, typedOther.consistency); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.consistency, other.consistency); if (lastComparison != 0) { return lastComparison; } @@ -49172,7 +51881,7 @@ public class Cassandra { struct.values = new ArrayList(_list432.size); for (int _i433 = 0; _i433 < _list432.size; ++_i433) { - ByteBuffer _elem434; // required + ByteBuffer _elem434; _elem434 = iprot.readBinary(); struct.values.add(_elem434); } @@ -49267,7 +51976,7 @@ public class Cassandra { struct.values = new ArrayList(_list437.size); for (int _i438 = 0; _i438 < _list437.size; ++_i438) { - ByteBuffer _elem439; // required + ByteBuffer _elem439; _elem439 = iprot.readBinary(); struct.values.add(_elem439); } @@ -49280,7 +51989,7 @@ public class Cassandra { } - public static class execute_prepared_cql3_query_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class execute_prepared_cql3_query_result 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("execute_prepared_cql3_query_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -49741,60 +52450,60 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(execute_prepared_cql3_query_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - execute_prepared_cql3_query_result typedOther = (execute_prepared_cql3_query_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUe()).compareTo(typedOther.isSetUe()); + lastComparison = Boolean.valueOf(isSetUe()).compareTo(other.isSetUe()); if (lastComparison != 0) { return lastComparison; } if (isSetUe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, typedOther.ue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ue, other.ue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTe()).compareTo(typedOther.isSetTe()); + lastComparison = Boolean.valueOf(isSetTe()).compareTo(other.isSetTe()); if (lastComparison != 0) { return lastComparison; } if (isSetTe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, typedOther.te); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.te, other.te); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSde()).compareTo(typedOther.isSetSde()); + lastComparison = Boolean.valueOf(isSetSde()).compareTo(other.isSetSde()); if (lastComparison != 0) { return lastComparison; } if (isSetSde()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, typedOther.sde); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sde, other.sde); if (lastComparison != 0) { return lastComparison; } @@ -50074,7 +52783,7 @@ public class Cassandra { } - public static class set_cql_version_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class set_cql_version_args 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("set_cql_version_args"); private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -50279,20 +52988,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(set_cql_version_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - set_cql_version_args typedOther = (set_cql_version_args)other; - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(typedOther.isSetVersion()); + lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); if (lastComparison != 0) { return lastComparison; } if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, typedOther.version); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); if (lastComparison != 0) { return lastComparison; } @@ -50428,7 +53137,7 @@ public class Cassandra { } - public static class set_cql_version_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + public static class set_cql_version_result 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("set_cql_version_result"); private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -50633,20 +53342,20 @@ public class Cassandra { return builder.toHashCode(); } + @Override public int compareTo(set_cql_version_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - set_cql_version_result typedOther = (set_cql_version_result)other; - lastComparison = Boolean.valueOf(isSetIre()).compareTo(typedOther.isSetIre()); + lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); if (lastComparison != 0) { return lastComparison; } if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, typedOther.ire); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); if (lastComparison != 0) { return lastComparison; } 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 7cd42f2996..0bdb5000ee 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); 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 b975e2120d..f765b87bd8 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; } 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 35ec3b7f08..951c967fd4 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); 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 8831e3848b..2de9d0e5ad 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); 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 e37d200c24..e2dcfa3d88 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); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlPreparedResult.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlPreparedResult.java index 3c03d1f17f..b720a2d31d 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlPreparedResult.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlPreparedResult.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 CqlPreparedResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class CqlPreparedResult 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("CqlPreparedResult"); private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I32, (short)1); @@ -182,17 +184,11 @@ public class CqlPreparedResult implements org.apache.thrift.TBase __this__variable_types = new ArrayList(); - for (String other_element : other.variable_types) { - __this__variable_types.add(other_element); - } + List __this__variable_types = new ArrayList(other.variable_types); this.variable_types = __this__variable_types; } if (other.isSetVariable_names()) { - List __this__variable_names = new ArrayList(); - for (String other_element : other.variable_names) { - __this__variable_names.add(other_element); - } + List __this__variable_names = new ArrayList(other.variable_names); this.variable_names = __this__variable_names; } } @@ -488,50 +484,50 @@ public class CqlPreparedResult implements org.apache.thrift.TBase(_list200.size); for (int _i201 = 0; _i201 < _list200.size; ++_i201) { - String _elem202; // required + String _elem202; _elem202 = iprot.readString(); struct.variable_types.add(_elem202); } @@ -671,7 +667,7 @@ public class CqlPreparedResult implements org.apache.thrift.TBase(_list203.size); for (int _i204 = 0; _i204 < _list203.size; ++_i204) { - String _elem205; // required + String _elem205; _elem205 = iprot.readString(); struct.variable_names.add(_elem205); } @@ -798,7 +794,7 @@ public class CqlPreparedResult implements org.apache.thrift.TBase(_list210.size); for (int _i211 = 0; _i211 < _list210.size; ++_i211) { - String _elem212; // required + String _elem212; _elem212 = iprot.readString(); struct.variable_types.add(_elem212); } @@ -811,7 +807,7 @@ public class CqlPreparedResult implements org.apache.thrift.TBase(_list213.size); for (int _i214 = 0; _i214 < _list213.size; ++_i214) { - String _elem215; // required + String _elem215; _elem215 = iprot.readString(); struct.variable_names.add(_elem215); } diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlResult.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlResult.java index 86bca202e4..1cdbe07034 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlResult.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlResult.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 CqlResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class CqlResult 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("CqlResult"); private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)1); @@ -185,7 +187,7 @@ public class CqlResult implements org.apache.thrift.TBase __this__rows = new ArrayList(); + List __this__rows = new ArrayList(other.rows.size()); for (CqlRow other_element : other.rows) { __this__rows.add(new CqlRow(other_element)); } @@ -481,50 +483,50 @@ public class CqlResult implements org.apache.thrift.TBase(_list192.size); for (int _i193 = 0; _i193 < _list192.size; ++_i193) { - CqlRow _elem194; // required + CqlRow _elem194; _elem194 = new CqlRow(); _elem194.read(iprot); struct.rows.add(_elem194); @@ -781,7 +783,7 @@ public class CqlResult implements org.apache.thrift.TBase(_list197.size); for (int _i198 = 0; _i198 < _list197.size; ++_i198) { - CqlRow _elem199; // required + CqlRow _elem199; _elem199 = new CqlRow(); _elem199.read(iprot); struct.rows.add(_elem199); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlResultType.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlResultType.java index 524d67bbc7..2928f68a61 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlResultType.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlResultType.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 diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlRow.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlRow.java index fd781ef619..bc0cf77ae5 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlRow.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/CqlRow.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; /** * Row returned from a CQL query */ -public class CqlRow implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class CqlRow 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("CqlRow"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -165,7 +167,7 @@ public class CqlRow implements org.apache.thrift.TBase, ; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (Column other_element : other.columns) { __this__columns.add(new Column(other_element)); } @@ -355,30 +357,30 @@ public class CqlRow implements org.apache.thrift.TBase, return builder.toHashCode(); } + @Override public int compareTo(CqlRow other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - CqlRow typedOther = (CqlRow)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) { return lastComparison; } @@ -482,7 +484,7 @@ public class CqlRow implements org.apache.thrift.TBase, struct.columns = new ArrayList(_list164.size); for (int _i165 = 0; _i165 < _list164.size; ++_i165) { - Column _elem166; // required + Column _elem166; _elem166 = new Column(); _elem166.read(iprot); struct.columns.add(_elem166); @@ -563,7 +565,7 @@ public class CqlRow implements org.apache.thrift.TBase, struct.columns = new ArrayList(_list169.size); for (int _i170 = 0; _i170 < _list169.size; ++_i170) { - Column _elem171; // required + Column _elem171; _elem171 = new Column(); _elem171.read(iprot); struct.columns.add(_elem171); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/Deletion.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/Deletion.java index c98aab6f63..c98e449045 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/Deletion.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/Deletion.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; /** * Note that the timestamp is only optional in case of counter deletion. */ -public class Deletion implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class Deletion 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("Deletion"); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)1); @@ -390,40 +392,40 @@ public class Deletion implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class EndpointDetails 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("EndpointDetails"); private static final org.apache.thrift.protocol.TField HOST_FIELD_DESC = new org.apache.thrift.protocol.TField("host", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -384,40 +386,40 @@ public class EndpointDetails implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class IndexClause 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("IndexClause"); private static final org.apache.thrift.protocol.TField EXPRESSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("expressions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -176,7 +178,7 @@ public class IndexClause implements org.apache.thrift.TBase __this__expressions = new ArrayList(); + List __this__expressions = new ArrayList(other.expressions.size()); for (IndexExpression other_element : other.expressions) { __this__expressions.add(new IndexExpression(other_element)); } @@ -423,40 +425,40 @@ public class IndexClause implements org.apache.thrift.TBase(_list24.size); for (int _i25 = 0; _i25 < _list24.size; ++_i25) { - IndexExpression _elem26; // required + IndexExpression _elem26; _elem26 = new IndexExpression(); _elem26.read(iprot); struct.expressions.add(_elem26); @@ -661,7 +663,7 @@ public class IndexClause implements org.apache.thrift.TBase(_list29.size); for (int _i30 = 0; _i30 < _list29.size; ++_i30) { - IndexExpression _elem31; // required + IndexExpression _elem31; _elem31 = new IndexExpression(); _elem31.read(iprot); struct.expressions.add(_elem31); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/IndexExpression.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/IndexExpression.java index 0622fd4a29..5062f2f13b 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/IndexExpression.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/IndexExpression.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 IndexExpression implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class IndexExpression 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("IndexExpression"); private static final org.apache.thrift.protocol.TField COLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("column_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -423,40 +425,40 @@ public class IndexExpression implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class InvalidRequestException extends TException 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("InvalidRequestException"); private static final org.apache.thrift.protocol.TField WHY_FIELD_DESC = new org.apache.thrift.protocol.TField("why", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -261,20 +263,20 @@ public class InvalidRequestException extends TException implements org.apache.th return builder.toHashCode(); } + @Override public int compareTo(InvalidRequestException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - InvalidRequestException typedOther = (InvalidRequestException)other; - lastComparison = Boolean.valueOf(isSetWhy()).compareTo(typedOther.isSetWhy()); + lastComparison = Boolean.valueOf(isSetWhy()).compareTo(other.isSetWhy()); if (lastComparison != 0) { return lastComparison; } if (isSetWhy()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.why, typedOther.why); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.why, other.why); if (lastComparison != 0) { return lastComparison; } diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/KeyCount.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/KeyCount.java index 54c7656f20..cbb5e51159 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/KeyCount.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/KeyCount.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 KeyCount implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class KeyCount 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("KeyCount"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -334,30 +336,30 @@ public class KeyCount implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class KeyRange 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("KeyRange"); private static final org.apache.thrift.protocol.TField START_KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("start_key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -213,7 +215,7 @@ public class KeyRange implements org.apache.thrift.TBase __this__row_filter = new ArrayList(); + List __this__row_filter = new ArrayList(other.row_filter.size()); for (IndexExpression other_element : other.row_filter) { __this__row_filter.add(new IndexExpression(other_element)); } @@ -622,70 +624,70 @@ public class KeyRange implements org.apache.thrift.TBase(_list32.size); for (int _i33 = 0; _i33 < _list32.size; ++_i33) { - IndexExpression _elem34; // required + IndexExpression _elem34; _elem34 = new IndexExpression(); _elem34.read(iprot); struct.row_filter.add(_elem34); @@ -1017,7 +1019,7 @@ public class KeyRange implements org.apache.thrift.TBase(_list37.size); for (int _i38 = 0; _i38 < _list37.size; ++_i38) { - IndexExpression _elem39; // required + IndexExpression _elem39; _elem39 = new IndexExpression(); _elem39.read(iprot); struct.row_filter.add(_elem39); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/KeySlice.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/KeySlice.java index e7de670979..df4beb1703 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/KeySlice.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/KeySlice.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; @@ -59,7 +61,7 @@ import org.slf4j.LoggerFactory; * @param columns. List of data represented by the key. Typically, the list is pared down to only the columns specified by * a SlicePredicate. */ -public class KeySlice implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class KeySlice 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("KeySlice"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -169,7 +171,7 @@ public class KeySlice implements org.apache.thrift.TBase __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (ColumnOrSuperColumn other_element : other.columns) { __this__columns.add(new ColumnOrSuperColumn(other_element)); } @@ -359,30 +361,30 @@ public class KeySlice implements org.apache.thrift.TBase(_list40.size); for (int _i41 = 0; _i41 < _list40.size; ++_i41) { - ColumnOrSuperColumn _elem42; // required + ColumnOrSuperColumn _elem42; _elem42 = new ColumnOrSuperColumn(); _elem42.read(iprot); struct.columns.add(_elem42); @@ -567,7 +569,7 @@ public class KeySlice implements org.apache.thrift.TBase(_list45.size); for (int _i46 = 0; _i46 < _list45.size; ++_i46) { - ColumnOrSuperColumn _elem47; // required + ColumnOrSuperColumn _elem47; _elem47 = new ColumnOrSuperColumn(); _elem47.read(iprot); struct.columns.add(_elem47); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/KsDef.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/KsDef.java index dbc4d13afe..cd2a9380bd 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/KsDef.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/KsDef.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 KsDef implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class KsDef 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("KsDef"); 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); @@ -209,23 +211,12 @@ public class KsDef implements org.apache.thrift.TBase, jav this.strategy_class = other.strategy_class; } if (other.isSetStrategy_options()) { - Map __this__strategy_options = new HashMap(); - for (Map.Entry other_element : other.strategy_options.entrySet()) { - - String other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - String __this__strategy_options_copy_key = other_element_key; - - String __this__strategy_options_copy_value = other_element_value; - - __this__strategy_options.put(__this__strategy_options_copy_key, __this__strategy_options_copy_value); - } + Map __this__strategy_options = new HashMap(other.strategy_options); this.strategy_options = __this__strategy_options; } this.replication_factor = other.replication_factor; if (other.isSetCf_defs()) { - List __this__cf_defs = new ArrayList(); + List __this__cf_defs = new ArrayList(other.cf_defs.size()); for (CfDef other_element : other.cf_defs) { __this__cf_defs.add(new CfDef(other_element)); } @@ -631,70 +622,70 @@ public class KsDef implements org.apache.thrift.TBase, jav return builder.toHashCode(); } + @Override public int compareTo(KsDef other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - KsDef typedOther = (KsDef)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(isSetStrategy_class()).compareTo(typedOther.isSetStrategy_class()); + lastComparison = Boolean.valueOf(isSetStrategy_class()).compareTo(other.isSetStrategy_class()); if (lastComparison != 0) { return lastComparison; } if (isSetStrategy_class()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.strategy_class, typedOther.strategy_class); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.strategy_class, other.strategy_class); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStrategy_options()).compareTo(typedOther.isSetStrategy_options()); + lastComparison = Boolean.valueOf(isSetStrategy_options()).compareTo(other.isSetStrategy_options()); if (lastComparison != 0) { return lastComparison; } if (isSetStrategy_options()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.strategy_options, typedOther.strategy_options); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.strategy_options, other.strategy_options); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReplication_factor()).compareTo(typedOther.isSetReplication_factor()); + lastComparison = Boolean.valueOf(isSetReplication_factor()).compareTo(other.isSetReplication_factor()); if (lastComparison != 0) { return lastComparison; } if (isSetReplication_factor()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replication_factor, typedOther.replication_factor); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replication_factor, other.replication_factor); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCf_defs()).compareTo(typedOther.isSetCf_defs()); + lastComparison = Boolean.valueOf(isSetCf_defs()).compareTo(other.isSetCf_defs()); if (lastComparison != 0) { return lastComparison; } if (isSetCf_defs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cf_defs, typedOther.cf_defs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cf_defs, other.cf_defs); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDurable_writes()).compareTo(typedOther.isSetDurable_writes()); + lastComparison = Boolean.valueOf(isSetDurable_writes()).compareTo(other.isSetDurable_writes()); if (lastComparison != 0) { return lastComparison; } if (isSetDurable_writes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durable_writes, typedOther.durable_writes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durable_writes, other.durable_writes); if (lastComparison != 0) { return lastComparison; } @@ -841,8 +832,8 @@ public class KsDef implements org.apache.thrift.TBase, jav struct.strategy_options = new HashMap(2*_map146.size); for (int _i147 = 0; _i147 < _map146.size; ++_i147) { - String _key148; // required - String _val149; // required + String _key148; + String _val149; _key148 = iprot.readString(); _val149 = iprot.readString(); struct.strategy_options.put(_key148, _val149); @@ -869,7 +860,7 @@ public class KsDef implements org.apache.thrift.TBase, jav struct.cf_defs = new ArrayList(_list150.size); for (int _i151 = 0; _i151 < _list150.size; ++_i151) { - CfDef _elem152; // required + CfDef _elem152; _elem152 = new CfDef(); _elem152.read(iprot); struct.cf_defs.add(_elem152); @@ -1018,7 +1009,7 @@ public class KsDef implements org.apache.thrift.TBase, jav struct.cf_defs = new ArrayList(_list157.size); for (int _i158 = 0; _i158 < _list157.size; ++_i158) { - CfDef _elem159; // required + CfDef _elem159; _elem159 = new CfDef(); _elem159.read(iprot); struct.cf_defs.add(_elem159); @@ -1032,8 +1023,8 @@ public class KsDef implements org.apache.thrift.TBase, jav struct.strategy_options = new HashMap(2*_map160.size); for (int _i161 = 0; _i161 < _map160.size; ++_i161) { - String _key162; // required - String _val163; // required + String _key162; + String _val163; _key162 = iprot.readString(); _val163 = iprot.readString(); struct.strategy_options.put(_key162, _val163); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/Mutation.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/Mutation.java index 0076e11645..981d5a4148 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/Mutation.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/Mutation.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; @@ -57,7 +59,7 @@ import org.slf4j.LoggerFactory; * @param column_or_supercolumn. An insert to a column or supercolumn (possibly counter column or supercolumn) * @param deletion. A deletion of a column or supercolumn */ -public class Mutation implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class Mutation 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("Mutation"); private static final org.apache.thrift.protocol.TField COLUMN_OR_SUPERCOLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column_or_supercolumn", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -318,30 +320,30 @@ public class Mutation implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class NotFoundException extends TException 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("NotFoundException"); @@ -190,13 +192,13 @@ public class NotFoundException extends TException implements org.apache.thrift.T return builder.toHashCode(); } + @Override public int compareTo(NotFoundException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - NotFoundException typedOther = (NotFoundException)other; return 0; } diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/SchemaDisagreementException.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/SchemaDisagreementException.java index 2f498a6859..003b822512 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/SchemaDisagreementException.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/SchemaDisagreementException.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; @@ -58,7 +60,7 @@ import org.slf4j.LoggerFactory; * * schemas are not in agreement across all nodes */ -public class SchemaDisagreementException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class SchemaDisagreementException extends TException 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("SchemaDisagreementException"); @@ -193,13 +195,13 @@ public class SchemaDisagreementException extends TException implements org.apach return builder.toHashCode(); } + @Override public int compareTo(SchemaDisagreementException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - SchemaDisagreementException typedOther = (SchemaDisagreementException)other; return 0; } diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/SlicePredicate.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/SlicePredicate.java index 0624e93e7f..9d46680ad7 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/SlicePredicate.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/SlicePredicate.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; @@ -64,7 +66,7 @@ import org.slf4j.LoggerFactory; * and 'Jim' you can pass those column names as a list to fetch all three at once. * @param slice_range. A SliceRange describing how to range, order, and/or limit the slice. */ -public class SlicePredicate implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class SlicePredicate 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("SlicePredicate"); private static final org.apache.thrift.protocol.TField COLUMN_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("column_names", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -162,12 +164,7 @@ public class SlicePredicate implements org.apache.thrift.TBase __this__column_names = new ArrayList(); - for (ByteBuffer other_element : other.column_names) { - ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element); -; - __this__column_names.add(temp_binary_element); - } + List __this__column_names = new ArrayList(other.column_names); this.column_names = __this__column_names; } if (other.isSetSlice_range()) { @@ -347,30 +344,30 @@ public class SlicePredicate implements org.apache.thrift.TBase(_list16.size); for (int _i17 = 0; _i17 < _list16.size; ++_i17) { - ByteBuffer _elem18; // required + ByteBuffer _elem18; _elem18 = iprot.readBinary(); struct.column_names.add(_elem18); } @@ -572,7 +569,7 @@ public class SlicePredicate implements org.apache.thrift.TBase(_list21.size); for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - ByteBuffer _elem23; // required + ByteBuffer _elem23; _elem23 = iprot.readBinary(); struct.column_names.add(_elem23); } diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/SliceRange.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/SliceRange.java index 543265cb3f..4b96c86c90 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/SliceRange.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/SliceRange.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; @@ -68,7 +70,7 @@ import org.slf4j.LoggerFactory; * be better served by iterating through slices by passing the last value of one call in as the 'start' * of the next instead of increasing 'count' arbitrarily large. */ -public class SliceRange implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class SliceRange 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("SliceRange"); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -493,50 +495,50 @@ public class SliceRange implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class SuperColumn 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("SuperColumn"); 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); @@ -168,7 +170,7 @@ public class SuperColumn implements org.apache.thrift.TBase __this__columns = new ArrayList(); + List __this__columns = new ArrayList(other.columns.size()); for (Column other_element : other.columns) { __this__columns.add(new Column(other_element)); } @@ -358,30 +360,30 @@ public class SuperColumn implements org.apache.thrift.TBase(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - Column _elem2; // required + Column _elem2; _elem2 = new Column(); _elem2.read(iprot); struct.columns.add(_elem2); @@ -566,7 +568,7 @@ public class SuperColumn implements org.apache.thrift.TBase(_list5.size); for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - Column _elem7; // required + Column _elem7; _elem7 = new Column(); _elem7.read(iprot); struct.columns.add(_elem7); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/TimedOutException.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/TimedOutException.java index 24662a7bd4..2dafe85fbb 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/TimedOutException.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/TimedOutException.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; /** * RPC timeout was exceeded. either a node failed mid-operation, or load was too high, or the requested op was too large. */ -public class TimedOutException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class TimedOutException extends TException 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("TimedOutException"); private static final org.apache.thrift.protocol.TField ACKNOWLEDGED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("acknowledged_by", org.apache.thrift.protocol.TType.I32, (short)1); @@ -433,40 +435,40 @@ public class TimedOutException extends TException implements org.apache.thrift.T return builder.toHashCode(); } + @Override public int compareTo(TimedOutException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - TimedOutException typedOther = (TimedOutException)other; - lastComparison = Boolean.valueOf(isSetAcknowledged_by()).compareTo(typedOther.isSetAcknowledged_by()); + lastComparison = Boolean.valueOf(isSetAcknowledged_by()).compareTo(other.isSetAcknowledged_by()); if (lastComparison != 0) { return lastComparison; } if (isSetAcknowledged_by()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acknowledged_by, typedOther.acknowledged_by); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acknowledged_by, other.acknowledged_by); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAcknowledged_by_batchlog()).compareTo(typedOther.isSetAcknowledged_by_batchlog()); + lastComparison = Boolean.valueOf(isSetAcknowledged_by_batchlog()).compareTo(other.isSetAcknowledged_by_batchlog()); if (lastComparison != 0) { return lastComparison; } if (isSetAcknowledged_by_batchlog()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acknowledged_by_batchlog, typedOther.acknowledged_by_batchlog); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acknowledged_by_batchlog, other.acknowledged_by_batchlog); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPaxos_in_progress()).compareTo(typedOther.isSetPaxos_in_progress()); + lastComparison = Boolean.valueOf(isSetPaxos_in_progress()).compareTo(other.isSetPaxos_in_progress()); if (lastComparison != 0) { return lastComparison; } if (isSetPaxos_in_progress()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paxos_in_progress, typedOther.paxos_in_progress); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paxos_in_progress, other.paxos_in_progress); if (lastComparison != 0) { return lastComparison; } diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/TokenRange.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/TokenRange.java index 273d7e00e3..37d0f77ca2 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/TokenRange.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/TokenRange.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,21 +27,32 @@ 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; 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 org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * A TokenRange describes part of the Cassandra ring, it is a mapping from a range to @@ -51,7 +62,7 @@ import java.util.BitSet; * @param endpoints The endpoints responsible for the range (listed by their configured listen_address) * @param rpc_endpoints The endpoints responsible for the range (listed by their configured rpc_address) */ -public class TokenRange implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class TokenRange 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("TokenRange"); 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); @@ -189,21 +200,15 @@ public class TokenRange implements org.apache.thrift.TBase __this__endpoints = new ArrayList(); - for (String other_element : other.endpoints) { - __this__endpoints.add(other_element); - } + List __this__endpoints = new ArrayList(other.endpoints); this.endpoints = __this__endpoints; } if (other.isSetRpc_endpoints()) { - List __this__rpc_endpoints = new ArrayList(); - for (String other_element : other.rpc_endpoints) { - __this__rpc_endpoints.add(other_element); - } + List __this__rpc_endpoints = new ArrayList(other.rpc_endpoints); this.rpc_endpoints = __this__rpc_endpoints; } if (other.isSetEndpoint_details()) { - List __this__endpoint_details = new ArrayList(); + List __this__endpoint_details = new ArrayList(other.endpoint_details.size()); for (EndpointDetails other_element : other.endpoint_details) { __this__endpoint_details.add(new EndpointDetails(other_element)); } @@ -569,60 +574,60 @@ public class TokenRange implements org.apache.thrift.TBase(_list56.size); for (int _i57 = 0; _i57 < _list56.size; ++_i57) { - String _elem58; // required + String _elem58; _elem58 = iprot.readString(); struct.endpoints.add(_elem58); } @@ -783,7 +788,7 @@ public class TokenRange implements org.apache.thrift.TBase(_list59.size); for (int _i60 = 0; _i60 < _list59.size; ++_i60) { - String _elem61; // required + String _elem61; _elem61 = iprot.readString(); struct.rpc_endpoints.add(_elem61); } @@ -801,7 +806,7 @@ public class TokenRange implements org.apache.thrift.TBase(_list62.size); for (int _i63 = 0; _i63 < _list62.size; ++_i63) { - EndpointDetails _elem64; // required + EndpointDetails _elem64; _elem64 = new EndpointDetails(); _elem64.read(iprot); struct.endpoint_details.add(_elem64); @@ -944,7 +949,7 @@ public class TokenRange implements org.apache.thrift.TBase(_list71.size); for (int _i72 = 0; _i72 < _list71.size; ++_i72) { - String _elem73; // required + String _elem73; _elem73 = iprot.readString(); struct.endpoints.add(_elem73); } @@ -957,7 +962,7 @@ public class TokenRange implements org.apache.thrift.TBase(_list74.size); for (int _i75 = 0; _i75 < _list74.size; ++_i75) { - String _elem76; // required + String _elem76; _elem76 = iprot.readString(); struct.rpc_endpoints.add(_elem76); } @@ -970,7 +975,7 @@ public class TokenRange implements org.apache.thrift.TBase(_list77.size); for (int _i78 = 0; _i78 < _list77.size; ++_i78) { - EndpointDetails _elem79; // required + EndpointDetails _elem79; _elem79 = new EndpointDetails(); _elem79.read(iprot); struct.endpoint_details.add(_elem79); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/TriggerDef.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/TriggerDef.java index 0d31d1b725..32b0ac5e47 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/TriggerDef.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/TriggerDef.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; @@ -57,7 +59,7 @@ import org.slf4j.LoggerFactory; * `options` should include at least 'class' param. * Other options are not supported yet. */ -public class TriggerDef implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class TriggerDef 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("TriggerDef"); 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); @@ -167,18 +169,7 @@ public class TriggerDef implements org.apache.thrift.TBase __this__options = new HashMap(); - for (Map.Entry other_element : other.options.entrySet()) { - - String other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - String __this__options_copy_key = other_element_key; - - String __this__options_copy_value = other_element_value; - - __this__options.put(__this__options_copy_key, __this__options_copy_value); - } + Map __this__options = new HashMap(other.options); this.options = __this__options; } } @@ -351,30 +342,30 @@ public class TriggerDef implements org.apache.thrift.TBase(2*_map100.size); for (int _i101 = 0; _i101 < _map100.size; ++_i101) { - String _key102; // required - String _val103; // required + String _key102; + String _val103; _key102 = iprot.readString(); _val103 = iprot.readString(); struct.options.put(_key102, _val103); @@ -562,8 +553,8 @@ public class TriggerDef implements org.apache.thrift.TBase(2*_map106.size); for (int _i107 = 0; _i107 < _map106.size; ++_i107) { - String _key108; // required - String _val109; // required + String _key108; + String _val109; _key108 = iprot.readString(); _val109 = iprot.readString(); struct.options.put(_key108, _val109); diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/UnavailableException.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/UnavailableException.java index 14b13d2c57..23bfeeda0b 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/UnavailableException.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/UnavailableException.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,24 +27,37 @@ 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; 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 org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Not all the replicas required could be created and/or read. */ -public class UnavailableException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { +public class UnavailableException extends TException 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("UnavailableException"); @@ -179,13 +192,13 @@ public class UnavailableException extends TException implements org.apache.thrif return builder.toHashCode(); } + @Override public int compareTo(UnavailableException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - UnavailableException typedOther = (UnavailableException)other; return 0; } diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/cassandraConstants.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/cassandraConstants.java index 7508d7c5b0..c28519a6d9 100644 --- a/interface/thrift/gen-java/org/apache/cassandra/thrift/cassandraConstants.java +++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/cassandraConstants.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; diff --git a/lib/commons-lang-2.6.jar b/lib/commons-lang-2.6.jar deleted file mode 100644 index 98467d3a65..0000000000 Binary files a/lib/commons-lang-2.6.jar and /dev/null differ diff --git a/lib/commons-lang3-3.1.jar b/lib/commons-lang3-3.1.jar new file mode 100644 index 0000000000..a85e539b17 Binary files /dev/null and b/lib/commons-lang3-3.1.jar differ diff --git a/lib/libthrift-0.9.0.jar b/lib/libthrift-0.9.0.jar deleted file mode 100644 index 6c2f9de8c2..0000000000 Binary files a/lib/libthrift-0.9.0.jar and /dev/null differ diff --git a/lib/libthrift-0.9.1.jar b/lib/libthrift-0.9.1.jar new file mode 100644 index 0000000000..827ed001fd Binary files /dev/null and b/lib/libthrift-0.9.1.jar differ diff --git a/lib/licenses/libthrift-0.9.txt b/lib/licenses/commons-lang-3.1.txt similarity index 100% rename from lib/licenses/libthrift-0.9.txt rename to lib/licenses/commons-lang-3.1.txt diff --git a/lib/licenses/libthrift-0.9.1.txt b/lib/licenses/libthrift-0.9.1.txt new file mode 100644 index 0000000000..d645695673 --- /dev/null +++ b/lib/licenses/libthrift-0.9.1.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/lib/thrift-python-internal-only-0.7.0.zip b/lib/thrift-python-internal-only-0.7.0.zip deleted file mode 100644 index 53934bb47f..0000000000 Binary files a/lib/thrift-python-internal-only-0.7.0.zip and /dev/null differ diff --git a/lib/thrift-python-internal-only-0.9.1.zip b/lib/thrift-python-internal-only-0.9.1.zip new file mode 100644 index 0000000000..7949ea695c Binary files /dev/null and b/lib/thrift-python-internal-only-0.9.1.zip differ diff --git a/src/java/org/apache/cassandra/auth/Auth.java b/src/java/org/apache/cassandra/auth/Auth.java index 6d8c30750c..5385d72510 100644 --- a/src/java/org/apache/cassandra/auth/Auth.java +++ b/src/java/org/apache/cassandra/auth/Auth.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/auth/CassandraAuthorizer.java b/src/java/org/apache/cassandra/auth/CassandraAuthorizer.java index dae81987f9..3304f8e371 100644 --- a/src/java/org/apache/cassandra/auth/CassandraAuthorizer.java +++ b/src/java/org/apache/cassandra/auth/CassandraAuthorizer.java @@ -21,7 +21,7 @@ import java.util.*; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/auth/DataResource.java b/src/java/org/apache/cassandra/auth/DataResource.java index 9c6fd31355..35812e50f3 100644 --- a/src/java/org/apache/cassandra/auth/DataResource.java +++ b/src/java/org/apache/cassandra/auth/DataResource.java @@ -18,7 +18,7 @@ package org.apache.cassandra.auth; import com.google.common.base.Objects; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.cassandra.config.Schema; diff --git a/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java b/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java index 089114270f..12cfb0686e 100644 --- a/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java +++ b/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java @@ -26,7 +26,7 @@ import java.util.concurrent.TimeUnit; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/cli/CliClient.java b/src/java/org/apache/cassandra/cli/CliClient.java index 402465d627..cf6c9d5c25 100644 --- a/src/java/org/apache/cassandra/cli/CliClient.java +++ b/src/java/org/apache/cassandra/cli/CliClient.java @@ -33,7 +33,7 @@ import com.google.common.collect.Collections2; import com.google.common.collect.Iterables; import org.apache.cassandra.serializers.MarshalException; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.antlr.runtime.tree.Tree; import org.apache.cassandra.auth.IAuthenticator; diff --git a/src/java/org/apache/cassandra/cli/CliUtils.java b/src/java/org/apache/cassandra/cli/CliUtils.java index 218cbbd30e..d0c8e37655 100644 --- a/src/java/org/apache/cassandra/cli/CliUtils.java +++ b/src/java/org/apache/cassandra/cli/CliUtils.java @@ -24,7 +24,7 @@ import java.util.Set; import org.apache.cassandra.thrift.CfDef; import org.apache.cassandra.thrift.IndexOperator; import org.apache.cassandra.thrift.KsDef; -import org.apache.commons.lang.StringEscapeUtils; +import org.apache.commons.lang3.StringEscapeUtils; public class CliUtils { diff --git a/src/java/org/apache/cassandra/config/CFMetaData.java b/src/java/org/apache/cassandra/config/CFMetaData.java index 430d26d453..e91250504a 100644 --- a/src/java/org/apache/cassandra/config/CFMetaData.java +++ b/src/java/org/apache/cassandra/config/CFMetaData.java @@ -29,11 +29,11 @@ import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Objects; import com.google.common.collect.MapDifference; import com.google.common.collect.Maps; -import org.apache.commons.lang.ArrayUtils; -import org.apache.commons.lang.StringUtils; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; +import org.apache.commons.lang3.ArrayUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/config/KSMetaData.java b/src/java/org/apache/cassandra/config/KSMetaData.java index 3cfa04bd17..198df8de1b 100644 --- a/src/java/org/apache/cassandra/config/KSMetaData.java +++ b/src/java/org/apache/cassandra/config/KSMetaData.java @@ -20,8 +20,8 @@ package org.apache.cassandra.config; import java.util.*; import com.google.common.collect.ImmutableMap; -import org.apache.commons.lang.ObjectUtils; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.ObjectUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.cassandra.cql3.QueryProcessor; import org.apache.cassandra.cql3.UntypedResultSet; diff --git a/src/java/org/apache/cassandra/cql/CFPropDefs.java b/src/java/org/apache/cassandra/cql/CFPropDefs.java index b3b2df45ca..a7d314719e 100644 --- a/src/java/org/apache/cassandra/cql/CFPropDefs.java +++ b/src/java/org/apache/cassandra/cql/CFPropDefs.java @@ -34,7 +34,7 @@ import org.apache.cassandra.db.marshal.AbstractType; import org.apache.cassandra.db.marshal.TypeParser; import org.apache.cassandra.exceptions.InvalidRequestException; import org.apache.cassandra.exceptions.SyntaxException; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; public class CFPropDefs { private static final Logger logger = LoggerFactory.getLogger(CFPropDefs.class); diff --git a/src/java/org/apache/cassandra/cql3/statements/CreateTableStatement.java b/src/java/org/apache/cassandra/cql3/statements/CreateTableStatement.java index a220366ccc..d3b8bde360 100644 --- a/src/java/org/apache/cassandra/cql3/statements/CreateTableStatement.java +++ b/src/java/org/apache/cassandra/cql3/statements/CreateTableStatement.java @@ -21,7 +21,7 @@ import java.nio.ByteBuffer; import java.util.*; import org.apache.cassandra.exceptions.*; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import com.google.common.collect.HashMultiset; import com.google.common.collect.Multiset; diff --git a/src/java/org/apache/cassandra/db/ColumnFamily.java b/src/java/org/apache/cassandra/db/ColumnFamily.java index 3bbf533820..4031ebcef9 100644 --- a/src/java/org/apache/cassandra/db/ColumnFamily.java +++ b/src/java/org/apache/cassandra/db/ColumnFamily.java @@ -31,7 +31,7 @@ import java.util.UUID; import com.google.common.base.Function; import com.google.common.base.Functions; import com.google.common.collect.ImmutableMap; -import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.cassandra.cache.IRowCacheEntry; import org.apache.cassandra.config.CFMetaData; diff --git a/src/java/org/apache/cassandra/db/Directories.java b/src/java/org/apache/cassandra/db/Directories.java index 5a0ac226b3..52f9699a12 100644 --- a/src/java/org/apache/cassandra/db/Directories.java +++ b/src/java/org/apache/cassandra/db/Directories.java @@ -29,7 +29,7 @@ import com.google.common.collect.ImmutableMap; import com.google.common.primitives.Longs; import com.google.common.util.concurrent.Uninterruptibles; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/db/RangeSliceReply.java b/src/java/org/apache/cassandra/db/RangeSliceReply.java index 0d41453e0c..10667a02c8 100644 --- a/src/java/org/apache/cassandra/db/RangeSliceReply.java +++ b/src/java/org/apache/cassandra/db/RangeSliceReply.java @@ -24,7 +24,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.cassandra.io.IVersionedSerializer; import org.apache.cassandra.io.util.FastByteArrayInputStream; diff --git a/src/java/org/apache/cassandra/db/RowMutation.java b/src/java/org/apache/cassandra/db/RowMutation.java index fd9e723238..e9d177bc65 100644 --- a/src/java/org/apache/cassandra/db/RowMutation.java +++ b/src/java/org/apache/cassandra/db/RowMutation.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.nio.ByteBuffer; import java.util.*; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.cassandra.config.CFMetaData; import org.apache.cassandra.config.Schema; diff --git a/src/java/org/apache/cassandra/db/SystemKeyspace.java b/src/java/org/apache/cassandra/db/SystemKeyspace.java index 5dd505f67c..7759114489 100644 --- a/src/java/org/apache/cassandra/db/SystemKeyspace.java +++ b/src/java/org/apache/cassandra/db/SystemKeyspace.java @@ -29,7 +29,7 @@ import com.google.common.collect.Iterables; import com.google.common.collect.SetMultimap; import com.google.common.collect.Sets; import org.apache.cassandra.transport.Server; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLog.java b/src/java/org/apache/cassandra/db/commitlog/CommitLog.java index 78b43d30a5..0e9a3f11be 100644 --- a/src/java/org/apache/cassandra/db/commitlog/CommitLog.java +++ b/src/java/org/apache/cassandra/db/commitlog/CommitLog.java @@ -25,7 +25,7 @@ import java.util.concurrent.Future; import javax.management.MBeanServer; import javax.management.ObjectName; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java b/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java index adf16c4903..8d6b3e2734 100644 --- a/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java +++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java @@ -28,7 +28,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.zip.Checksum; import com.google.common.collect.Ordering; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/db/compaction/CompactionTask.java b/src/java/org/apache/cassandra/db/compaction/CompactionTask.java index c27a020eb5..c9889cc872 100644 --- a/src/java/org/apache/cassandra/db/compaction/CompactionTask.java +++ b/src/java/org/apache/cassandra/db/compaction/CompactionTask.java @@ -24,7 +24,7 @@ import java.util.concurrent.TimeUnit; import com.google.common.base.Throwables; import com.google.common.collect.Sets; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/db/filter/NamesQueryFilter.java b/src/java/org/apache/cassandra/db/filter/NamesQueryFilter.java index 4ee2b868fc..f65bf3a10c 100644 --- a/src/java/org/apache/cassandra/db/filter/NamesQueryFilter.java +++ b/src/java/org/apache/cassandra/db/filter/NamesQueryFilter.java @@ -26,7 +26,7 @@ import java.util.Iterator; import java.util.SortedSet; import java.util.TreeSet; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import com.google.common.collect.AbstractIterator; import org.apache.cassandra.db.*; diff --git a/src/java/org/apache/cassandra/db/index/SecondaryIndex.java b/src/java/org/apache/cassandra/db/index/SecondaryIndex.java index c71225278a..3b4a6ec0d9 100644 --- a/src/java/org/apache/cassandra/db/index/SecondaryIndex.java +++ b/src/java/org/apache/cassandra/db/index/SecondaryIndex.java @@ -21,7 +21,7 @@ import java.nio.ByteBuffer; import java.util.*; import java.util.concurrent.*; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/db/index/SecondaryIndexManager.java b/src/java/org/apache/cassandra/db/index/SecondaryIndexManager.java index 0286c6a7ca..67ab3e3ed2 100644 --- a/src/java/org/apache/cassandra/db/index/SecondaryIndexManager.java +++ b/src/java/org/apache/cassandra/db/index/SecondaryIndexManager.java @@ -21,7 +21,7 @@ import java.nio.ByteBuffer; import java.util.*; import java.util.concurrent.*; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/java/org/apache/cassandra/db/marshal/DateType.java b/src/java/org/apache/cassandra/db/marshal/DateType.java index d3740e003b..04dea6f12c 100644 --- a/src/java/org/apache/cassandra/db/marshal/DateType.java +++ b/src/java/org/apache/cassandra/db/marshal/DateType.java @@ -30,7 +30,7 @@ import org.apache.cassandra.serializers.TypeSerializer; import org.apache.cassandra.serializers.TimestampSerializer; import org.apache.cassandra.serializers.MarshalException; import org.apache.cassandra.utils.ByteBufferUtil; -import org.apache.commons.lang.time.DateUtils; +import org.apache.commons.lang3.time.DateUtils; public class DateType extends AbstractType { diff --git a/src/java/org/apache/cassandra/db/marshal/LocalByPartionerType.java b/src/java/org/apache/cassandra/db/marshal/LocalByPartionerType.java index 2703489d84..a686b90b98 100644 --- a/src/java/org/apache/cassandra/db/marshal/LocalByPartionerType.java +++ b/src/java/org/apache/cassandra/db/marshal/LocalByPartionerType.java @@ -21,7 +21,6 @@ import java.nio.ByteBuffer; import org.apache.cassandra.serializers.TypeSerializer; import org.apache.cassandra.serializers.MarshalException; -import org.apache.commons.lang.NotImplementedException; import org.apache.cassandra.db.RowPosition; import org.apache.cassandra.dht.IPartitioner; @@ -58,7 +57,7 @@ public class LocalByPartionerType extends AbstractType