diff --git a/build.xml b/build.xml
index c69d5fefdc..a1e9f58928 100644
--- a/build.xml
+++ b/build.xml
@@ -74,8 +74,8 @@
-
@@ -99,7 +99,7 @@
-
-
+
Building Grammar ${build.src.java}/org/apache/cassandra/cli/Cli.g ....
-
+
@@ -254,21 +254,21 @@
-
+
-
+
-
+
@@ -277,7 +277,7 @@
-
+
@@ -290,7 +290,7 @@
@@ -309,7 +309,7 @@
-
+
@@ -326,20 +326,20 @@
-
+
-
+
-
+
@@ -356,9 +356,9 @@
-
+
-
+
@@ -392,7 +392,7 @@
-
+
-
+
@@ -459,7 +459,7 @@
-
+
@@ -470,12 +470,12 @@
-
+
-
+
-
+
@@ -483,9 +483,9 @@
-
+
-
+
@@ -528,7 +528,7 @@
-
+
diff --git a/interface/cassandra.thrift b/interface/cassandra.thrift
index 372354c436..4f555d28c1 100644
--- a/interface/cassandra.thrift
+++ b/interface/cassandra.thrift
@@ -373,7 +373,7 @@ service Cassandra {
*/
ColumnOrSuperColumn get(1:required binary key,
2:required ColumnPath column_path,
- 3:required ConsistencyLevel consistency_level=ONE)
+ 3:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:NotFoundException nfe, 3:UnavailableException ue, 4:TimedOutException te),
/**
@@ -383,7 +383,7 @@ service Cassandra {
list get_slice(1:required binary key,
2:required ColumnParent column_parent,
3:required SlicePredicate predicate,
- 4:required ConsistencyLevel consistency_level=ONE)
+ 4:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),
/**
@@ -393,7 +393,7 @@ service Cassandra {
i32 get_count(1:required binary key,
2:required ColumnParent column_parent,
3:required SlicePredicate predicate,
- 4:required ConsistencyLevel consistency_level=ONE)
+ 4:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),
/**
@@ -402,7 +402,7 @@ service Cassandra {
map> multiget_slice(1:required list keys,
2:required ColumnParent column_parent,
3:required SlicePredicate predicate,
- 4:required ConsistencyLevel consistency_level=ONE)
+ 4:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),
/**
@@ -411,7 +411,7 @@ service Cassandra {
map multiget_count(1:required list keys,
2:required ColumnParent column_parent,
3:required SlicePredicate predicate,
- 4:required ConsistencyLevel consistency_level=ONE)
+ 4:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),
/**
@@ -420,14 +420,14 @@ service Cassandra {
list get_range_slices(1:required ColumnParent column_parent,
2:required SlicePredicate predicate,
3:required KeyRange range,
- 4:required ConsistencyLevel consistency_level=ONE)
+ 4:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),
/** Returns the subset of columns specified in SlicePredicate for the rows matching the IndexClause */
list get_indexed_slices(1:required ColumnParent column_parent,
2:required IndexClause index_clause,
3:required SlicePredicate column_predicate,
- 4:required ConsistencyLevel consistency_level=ONE)
+ 4:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),
# modification methods
@@ -438,7 +438,7 @@ service Cassandra {
void insert(1:required binary key,
2:required ColumnParent column_parent,
3:required Column column,
- 4:required ConsistencyLevel consistency_level=ONE)
+ 4:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),
/**
@@ -449,7 +449,7 @@ service Cassandra {
void remove(1:required binary key,
2:required ColumnPath column_path,
3:required i64 timestamp,
- 4:ConsistencyLevel consistency_level=ONE)
+ 4:ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),
/**
@@ -458,7 +458,7 @@ service Cassandra {
mutation_map maps key to column family to a list of Mutation objects to take place at that scope.
**/
void batch_mutate(1:required map>> mutation_map,
- 2:required ConsistencyLevel consistency_level=ONE)
+ 2:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE)
throws (1:InvalidRequestException ire, 2:UnavailableException ue, 3:TimedOutException te),
/**
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 3af79e5968..a1bdb1c328 100644
--- a/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationException.java
+++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/AuthenticationException.java
@@ -37,6 +37,7 @@ 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;
@@ -149,9 +150,9 @@ public class AuthenticationException extends Exception implements TBase get_slice(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public List get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
/**
* returns the number of columns matching predicate for a particular key,
@@ -85,7 +86,7 @@ public class Cassandra {
* @param predicate
* @param consistency_level
*/
- public int get_count(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public int get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
/**
* Performs a get_slice for column_parent and predicate for the given keys in parallel.
@@ -95,7 +96,7 @@ public class Cassandra {
* @param predicate
* @param consistency_level
*/
- public Map> multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public Map> multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
/**
* Perform a get_count in parallel on the given list keys. The return value maps keys to the count found.
@@ -105,7 +106,7 @@ public class Cassandra {
* @param predicate
* @param consistency_level
*/
- public Map multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public Map multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
/**
* returns a subset of columns for a contiguous range of keys.
@@ -135,7 +136,7 @@ public class Cassandra {
* @param column
* @param consistency_level
*/
- public void insert(byte[] key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
/**
* Remove data from the row specified by key at the granularity specified by column_path, and the given timestamp. Note
@@ -147,7 +148,7 @@ public class Cassandra {
* @param timestamp
* @param consistency_level
*/
- public void remove(byte[] key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
/**
* Mutate many columns or super columns for many row keys. See also: Mutation.
@@ -158,7 +159,7 @@ public class Cassandra {
* @param mutation_map
* @param consistency_level
*/
- public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
/**
* Truncate will mark and entire column family as deleted.
@@ -289,25 +290,25 @@ public class Cassandra {
public void set_keyspace(String keyspace, AsyncMethodCallback resultHandler) throws TException;
- public void get(byte[] key, ColumnPath column_path, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
+ public void get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
- public void get_slice(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
+ public void get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
- public void get_count(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
+ public void get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
- public void multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
+ public void multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
- public void multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
+ public void multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
public void get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
public void get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
- public void insert(byte[] key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
+ public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
- public void remove(byte[] key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
+ public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
- public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
+ public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException;
public void truncate(String cfname, AsyncMethodCallback resultHandler) throws TException;
@@ -455,13 +456,13 @@ public class Cassandra {
return;
}
- public ColumnOrSuperColumn get(byte[] key, ColumnPath column_path, ConsistencyLevel consistency_level) throws InvalidRequestException, NotFoundException, UnavailableException, TimedOutException, TException
+ public ColumnOrSuperColumn get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level) throws InvalidRequestException, NotFoundException, UnavailableException, TimedOutException, TException
{
send_get(key, column_path, consistency_level);
return recv_get();
}
- public void send_get(byte[] key, ColumnPath column_path, ConsistencyLevel consistency_level) throws TException
+ public void send_get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level) throws TException
{
oprot_.writeMessageBegin(new TMessage("get", TMessageType.CALL, ++seqid_));
get_args args = new get_args();
@@ -505,13 +506,13 @@ public class Cassandra {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result");
}
- public List get_slice(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public List get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
{
send_get_slice(key, column_parent, predicate, consistency_level);
return recv_get_slice();
}
- public void send_get_slice(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
+ public void send_get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
{
oprot_.writeMessageBegin(new TMessage("get_slice", TMessageType.CALL, ++seqid_));
get_slice_args args = new get_slice_args();
@@ -553,13 +554,13 @@ public class Cassandra {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_slice failed: unknown result");
}
- public int get_count(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public int get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
{
send_get_count(key, column_parent, predicate, consistency_level);
return recv_get_count();
}
- public void send_get_count(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
+ public void send_get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
{
oprot_.writeMessageBegin(new TMessage("get_count", TMessageType.CALL, ++seqid_));
get_count_args args = new get_count_args();
@@ -601,13 +602,13 @@ public class Cassandra {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_count failed: unknown result");
}
- public Map> multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public Map> multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
{
send_multiget_slice(keys, column_parent, predicate, consistency_level);
return recv_multiget_slice();
}
- public void send_multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
+ public void send_multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
{
oprot_.writeMessageBegin(new TMessage("multiget_slice", TMessageType.CALL, ++seqid_));
multiget_slice_args args = new multiget_slice_args();
@@ -620,7 +621,7 @@ public class Cassandra {
oprot_.getTransport().flush();
}
- public Map> recv_multiget_slice() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public Map> recv_multiget_slice() throws InvalidRequestException, UnavailableException, TimedOutException, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -649,13 +650,13 @@ public class Cassandra {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "multiget_slice failed: unknown result");
}
- public Map multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public Map multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
{
send_multiget_count(keys, column_parent, predicate, consistency_level);
return recv_multiget_count();
}
- public void send_multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
+ public void send_multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
{
oprot_.writeMessageBegin(new TMessage("multiget_count", TMessageType.CALL, ++seqid_));
multiget_count_args args = new multiget_count_args();
@@ -668,7 +669,7 @@ public class Cassandra {
oprot_.getTransport().flush();
}
- public Map recv_multiget_count() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public Map recv_multiget_count() throws InvalidRequestException, UnavailableException, TimedOutException, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -793,13 +794,13 @@ public class Cassandra {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_indexed_slices failed: unknown result");
}
- public void insert(byte[] key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
{
send_insert(key, column_parent, column, consistency_level);
recv_insert();
}
- public void send_insert(byte[] key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level) throws TException
+ public void send_insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level) throws TException
{
oprot_.writeMessageBegin(new TMessage("insert", TMessageType.CALL, ++seqid_));
insert_args args = new insert_args();
@@ -838,13 +839,13 @@ public class Cassandra {
return;
}
- public void remove(byte[] key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
{
send_remove(key, column_path, timestamp, consistency_level);
recv_remove();
}
- public void send_remove(byte[] key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level) throws TException
+ public void send_remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level) throws TException
{
oprot_.writeMessageBegin(new TMessage("remove", TMessageType.CALL, ++seqid_));
remove_args args = new remove_args();
@@ -883,13 +884,13 @@ public class Cassandra {
return;
}
- public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
{
send_batch_mutate(mutation_map, consistency_level);
recv_batch_mutate();
}
- public void send_batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level) throws TException
+ public void send_batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level) throws TException
{
oprot_.writeMessageBegin(new TMessage("batch_mutate", TMessageType.CALL, ++seqid_));
batch_mutate_args args = new batch_mutate_args();
@@ -1615,17 +1616,17 @@ public class Cassandra {
}
}
- public void get(byte[] key, ColumnPath column_path, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
+ public void get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
checkReady();
get_call method_call = new get_call(key, column_path, consistency_level, resultHandler, this, protocolFactory, transport);
manager.call(method_call);
}
public static class get_call extends TAsyncMethodCall {
- private byte[] key;
+ private ByteBuffer key;
private ColumnPath column_path;
private ConsistencyLevel consistency_level;
- public get_call(byte[] key, ColumnPath column_path, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
+ public get_call(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
super(client, protocolFactory, transport, resultHandler, false);
this.key = key;
this.column_path = column_path;
@@ -1652,18 +1653,18 @@ public class Cassandra {
}
}
- public void get_slice(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
+ public void get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
checkReady();
get_slice_call method_call = new get_slice_call(key, column_parent, predicate, consistency_level, resultHandler, this, protocolFactory, transport);
manager.call(method_call);
}
public static class get_slice_call extends TAsyncMethodCall {
- private byte[] key;
+ private ByteBuffer key;
private ColumnParent column_parent;
private SlicePredicate predicate;
private ConsistencyLevel consistency_level;
- public get_slice_call(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
+ public get_slice_call(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
super(client, protocolFactory, transport, resultHandler, false);
this.key = key;
this.column_parent = column_parent;
@@ -1692,18 +1693,18 @@ public class Cassandra {
}
}
- public void get_count(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
+ public void get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
checkReady();
get_count_call method_call = new get_count_call(key, column_parent, predicate, consistency_level, resultHandler, this, protocolFactory, transport);
manager.call(method_call);
}
public static class get_count_call extends TAsyncMethodCall {
- private byte[] key;
+ private ByteBuffer key;
private ColumnParent column_parent;
private SlicePredicate predicate;
private ConsistencyLevel consistency_level;
- public get_count_call(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
+ public get_count_call(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
super(client, protocolFactory, transport, resultHandler, false);
this.key = key;
this.column_parent = column_parent;
@@ -1732,18 +1733,18 @@ public class Cassandra {
}
}
- public void multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
+ public void multiget_slice(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
checkReady();
multiget_slice_call method_call = new multiget_slice_call(keys, column_parent, predicate, consistency_level, resultHandler, this, protocolFactory, transport);
manager.call(method_call);
}
public static class multiget_slice_call extends TAsyncMethodCall {
- private List keys;
+ private List keys;
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, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
+ public multiget_slice_call(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
super(client, protocolFactory, transport, resultHandler, false);
this.keys = keys;
this.column_parent = column_parent;
@@ -1762,7 +1763,7 @@ public class Cassandra {
prot.writeMessageEnd();
}
- public Map> getResult() throws InvalidRequestException, UnavailableException, TimedOutException, TException {
+ public Map> getResult() throws InvalidRequestException, UnavailableException, TimedOutException, TException {
if (getState() != State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
@@ -1772,18 +1773,18 @@ public class Cassandra {
}
}
- public void multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
+ public void multiget_count(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
checkReady();
multiget_count_call method_call = new multiget_count_call(keys, column_parent, predicate, consistency_level, resultHandler, this, protocolFactory, transport);
manager.call(method_call);
}
public static class multiget_count_call extends TAsyncMethodCall {
- private List keys;
+ private List keys;
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, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
+ public multiget_count_call(List keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
super(client, protocolFactory, transport, resultHandler, false);
this.keys = keys;
this.column_parent = column_parent;
@@ -1802,7 +1803,7 @@ public class Cassandra {
prot.writeMessageEnd();
}
- public Map getResult() throws InvalidRequestException, UnavailableException, TimedOutException, TException {
+ public Map getResult() throws InvalidRequestException, UnavailableException, TimedOutException, TException {
if (getState() != State.RESPONSE_READ) {
throw new IllegalStateException("Method call not finished!");
}
@@ -1892,18 +1893,18 @@ public class Cassandra {
}
}
- public void insert(byte[] key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
+ public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
checkReady();
insert_call method_call = new insert_call(key, column_parent, column, consistency_level, resultHandler, this, protocolFactory, transport);
manager.call(method_call);
}
public static class insert_call extends TAsyncMethodCall {
- private byte[] key;
+ private ByteBuffer key;
private ColumnParent column_parent;
private Column column;
private ConsistencyLevel consistency_level;
- public insert_call(byte[] key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
+ public insert_call(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
super(client, protocolFactory, transport, resultHandler, false);
this.key = key;
this.column_parent = column_parent;
@@ -1932,18 +1933,18 @@ public class Cassandra {
}
}
- public void remove(byte[] key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
+ public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
checkReady();
remove_call method_call = new remove_call(key, column_path, timestamp, consistency_level, resultHandler, this, protocolFactory, transport);
manager.call(method_call);
}
public static class remove_call extends TAsyncMethodCall {
- private byte[] key;
+ private ByteBuffer key;
private ColumnPath column_path;
private long timestamp;
private ConsistencyLevel consistency_level;
- public remove_call(byte[] key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
+ public remove_call(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
super(client, protocolFactory, transport, resultHandler, false);
this.key = key;
this.column_path = column_path;
@@ -1972,16 +1973,16 @@ public class Cassandra {
}
}
- public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
+ public void batch_mutate(Map>> mutation_map, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler) throws TException {
checkReady();
batch_mutate_call method_call = new batch_mutate_call(mutation_map, consistency_level, resultHandler, this, protocolFactory, transport);
manager.call(method_call);
}
public static class batch_mutate_call extends TAsyncMethodCall {
- private Map>> mutation_map;
+ private Map>> mutation_map;
private ConsistencyLevel consistency_level;
- public batch_mutate_call(Map>> mutation_map, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
+ public batch_mutate_call(Map>> mutation_map, ConsistencyLevel consistency_level, AsyncMethodCallback resultHandler, TAsyncClient client, TProtocolFactory protocolFactory, TNonblockingTransport transport) throws TException {
super(client, protocolFactory, transport, resultHandler, false);
this.mutation_map = mutation_map;
this.consistency_level = consistency_level;
@@ -3709,9 +3710,9 @@ public class Cassandra {
return new login_args(this);
}
- @Deprecated
- public login_args clone() {
- return new login_args(this);
+ @Override
+ public void clear() {
+ this.auth_request = null;
}
public AuthenticationRequest getAuth_request() {
@@ -3751,10 +3752,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_REQUEST:
@@ -3764,12 +3761,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case AUTH_REQUEST:
return isSetAuth_request();
@@ -3777,10 +3774,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -3830,7 +3823,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetAuth_request()) { lastComparison = TBaseHelper.compareTo(this.auth_request, typedOther.auth_request);
+ if (isSetAuth_request()) {
+ lastComparison = TBaseHelper.compareTo(this.auth_request, typedOther.auth_request);
if (lastComparison != 0) {
return lastComparison;
}
@@ -3838,6 +3832,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4016,9 +4014,10 @@ public class Cassandra {
return new login_result(this);
}
- @Deprecated
- public login_result clone() {
- return new login_result(this);
+ @Override
+ public void clear() {
+ this.authnx = null;
+ this.authzx = null;
}
public AuthenticationException getAuthnx() {
@@ -4090,10 +4089,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case AUTHNX:
@@ -4106,12 +4101,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case AUTHNX:
return isSetAuthnx();
@@ -4121,10 +4116,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -4188,7 +4179,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetAuthnx()) { lastComparison = TBaseHelper.compareTo(this.authnx, typedOther.authnx);
+ if (isSetAuthnx()) {
+ lastComparison = TBaseHelper.compareTo(this.authnx, typedOther.authnx);
if (lastComparison != 0) {
return lastComparison;
}
@@ -4197,7 +4189,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetAuthzx()) { lastComparison = TBaseHelper.compareTo(this.authzx, typedOther.authzx);
+ if (isSetAuthzx()) {
+ lastComparison = TBaseHelper.compareTo(this.authzx, typedOther.authzx);
if (lastComparison != 0) {
return lastComparison;
}
@@ -4205,6 +4198,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4387,9 +4384,9 @@ public class Cassandra {
return new set_keyspace_args(this);
}
- @Deprecated
- public set_keyspace_args clone() {
- return new set_keyspace_args(this);
+ @Override
+ public void clear() {
+ this.keyspace = null;
}
public String getKeyspace() {
@@ -4429,10 +4426,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEYSPACE:
@@ -4442,12 +4435,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEYSPACE:
return isSetKeyspace();
@@ -4455,10 +4448,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -4508,7 +4497,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKeyspace()) { lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
+ if (isSetKeyspace()) {
+ lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
if (lastComparison != 0) {
return lastComparison;
}
@@ -4516,6 +4506,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4681,9 +4675,9 @@ public class Cassandra {
return new set_keyspace_result(this);
}
- @Deprecated
- public set_keyspace_result clone() {
- return new set_keyspace_result(this);
+ @Override
+ public void clear() {
+ this.ire = null;
}
public InvalidRequestException getIre() {
@@ -4723,10 +4717,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case IRE:
@@ -4736,12 +4726,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case IRE:
return isSetIre();
@@ -4749,10 +4739,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -4802,7 +4788,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -4810,6 +4797,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4880,7 +4871,7 @@ public class Cassandra {
private static final TField COLUMN_PATH_FIELD_DESC = new TField("column_path", TType.STRUCT, (short)2);
private static final TField CONSISTENCY_LEVEL_FIELD_DESC = new TField("consistency_level", TType.I32, (short)3);
- public byte[] key;
+ public ByteBuffer key;
public ColumnPath column_path;
/**
*
@@ -4977,7 +4968,7 @@ public class Cassandra {
}
public get_args(
- byte[] key,
+ ByteBuffer key,
ColumnPath column_path,
ConsistencyLevel consistency_level)
{
@@ -4992,8 +4983,8 @@ public class Cassandra {
*/
public get_args(get_args other) {
if (other.isSetKey()) {
- this.key = new byte[other.key.length];
- System.arraycopy(other.key, 0, key, 0, other.key.length);
+ this.key = TBaseHelper.copyBinary(other.key);
+;
}
if (other.isSetColumn_path()) {
this.column_path = new ColumnPath(other.column_path);
@@ -5007,16 +4998,29 @@ public class Cassandra {
return new get_args(this);
}
- @Deprecated
- public get_args clone() {
- return new get_args(this);
+ @Override
+ public void clear() {
+ this.key = null;
+ this.column_path = null;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public byte[] getKey() {
- return this.key;
+ setKey(TBaseHelper.rightSize(key));
+ return key.array();
+ }
+
+ public ByteBuffer BufferForKey() {
+ return key;
}
public get_args setKey(byte[] key) {
+ setKey(ByteBuffer.wrap(key));
+ return this;
+ }
+
+ public get_args setKey(ByteBuffer key) {
this.key = key;
return this;
}
@@ -5098,7 +5102,7 @@ public class Cassandra {
if (value == null) {
unsetKey();
} else {
- setKey((byte[])value);
+ setKey((ByteBuffer)value);
}
break;
@@ -5121,10 +5125,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEY:
@@ -5140,12 +5140,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEY:
return isSetKey();
@@ -5157,10 +5157,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -5179,7 +5175,7 @@ public class Cassandra {
if (this_present_key || that_present_key) {
if (!(this_present_key && that_present_key))
return false;
- if (!java.util.Arrays.equals(this.key, that.key))
+ if (!this.key.equals(that.key))
return false;
}
@@ -5238,7 +5234,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
+ if (isSetKey()) {
+ lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
if (lastComparison != 0) {
return lastComparison;
}
@@ -5247,7 +5244,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_path()) { lastComparison = TBaseHelper.compareTo(this.column_path, typedOther.column_path);
+ if (isSetColumn_path()) {
+ lastComparison = TBaseHelper.compareTo(this.column_path, typedOther.column_path);
if (lastComparison != 0) {
return lastComparison;
}
@@ -5256,7 +5254,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -5264,6 +5263,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5339,12 +5342,7 @@ public class Cassandra {
if (this.key == null) {
sb.append("null");
} else {
- int __key_size = Math.min(this.key.length, 128);
- for (int i = 0; i < __key_size; i++) {
- if (i != 0) sb.append(" ");
- sb.append(Integer.toHexString(this.key[i]).length() > 1 ? Integer.toHexString(this.key[i]).substring(Integer.toHexString(this.key[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.key[i]).toUpperCase());
- }
- if (this.key.length > 128) sb.append(" ...");
+ TBaseHelper.toString(this.key, sb);
}
first = false;
if (!first) sb.append(", ");
@@ -5529,9 +5527,13 @@ public class Cassandra {
return new get_result(this);
}
- @Deprecated
- public get_result clone() {
- return new get_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
+ this.nfe = null;
+ this.ue = null;
+ this.te = null;
}
public ColumnOrSuperColumn getSuccess() {
@@ -5699,10 +5701,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -5724,12 +5722,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -5745,10 +5743,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -5854,7 +5848,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -5863,7 +5858,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -5872,7 +5868,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetNfe()) { lastComparison = TBaseHelper.compareTo(this.nfe, typedOther.nfe);
+ if (isSetNfe()) {
+ lastComparison = TBaseHelper.compareTo(this.nfe, typedOther.nfe);
if (lastComparison != 0) {
return lastComparison;
}
@@ -5881,7 +5878,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -5890,7 +5888,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -5898,6 +5897,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6049,7 +6052,7 @@ public class Cassandra {
private static final TField PREDICATE_FIELD_DESC = new TField("predicate", TType.STRUCT, (short)3);
private static final TField CONSISTENCY_LEVEL_FIELD_DESC = new TField("consistency_level", TType.I32, (short)4);
- public byte[] key;
+ public ByteBuffer key;
public ColumnParent column_parent;
public SlicePredicate predicate;
/**
@@ -6152,7 +6155,7 @@ public class Cassandra {
}
public get_slice_args(
- byte[] key,
+ ByteBuffer key,
ColumnParent column_parent,
SlicePredicate predicate,
ConsistencyLevel consistency_level)
@@ -6169,8 +6172,8 @@ public class Cassandra {
*/
public get_slice_args(get_slice_args other) {
if (other.isSetKey()) {
- this.key = new byte[other.key.length];
- System.arraycopy(other.key, 0, key, 0, other.key.length);
+ this.key = TBaseHelper.copyBinary(other.key);
+;
}
if (other.isSetColumn_parent()) {
this.column_parent = new ColumnParent(other.column_parent);
@@ -6187,16 +6190,30 @@ public class Cassandra {
return new get_slice_args(this);
}
- @Deprecated
- public get_slice_args clone() {
- return new get_slice_args(this);
+ @Override
+ public void clear() {
+ this.key = null;
+ this.column_parent = null;
+ this.predicate = null;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public byte[] getKey() {
- return this.key;
+ setKey(TBaseHelper.rightSize(key));
+ return key.array();
+ }
+
+ public ByteBuffer BufferForKey() {
+ return key;
}
public get_slice_args setKey(byte[] key) {
+ setKey(ByteBuffer.wrap(key));
+ return this;
+ }
+
+ public get_slice_args setKey(ByteBuffer key) {
this.key = key;
return this;
}
@@ -6302,7 +6319,7 @@ public class Cassandra {
if (value == null) {
unsetKey();
} else {
- setKey((byte[])value);
+ setKey((ByteBuffer)value);
}
break;
@@ -6333,10 +6350,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEY:
@@ -6355,12 +6368,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEY:
return isSetKey();
@@ -6374,10 +6387,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -6396,7 +6405,7 @@ public class Cassandra {
if (this_present_key || that_present_key) {
if (!(this_present_key && that_present_key))
return false;
- if (!java.util.Arrays.equals(this.key, that.key))
+ if (!this.key.equals(that.key))
return false;
}
@@ -6469,7 +6478,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
+ if (isSetKey()) {
+ lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
if (lastComparison != 0) {
return lastComparison;
}
@@ -6478,7 +6488,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_parent()) { lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
+ if (isSetColumn_parent()) {
+ lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
if (lastComparison != 0) {
return lastComparison;
}
@@ -6487,7 +6498,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetPredicate()) { lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
+ if (isSetPredicate()) {
+ lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
if (lastComparison != 0) {
return lastComparison;
}
@@ -6496,7 +6508,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -6504,6 +6517,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6592,12 +6609,7 @@ public class Cassandra {
if (this.key == null) {
sb.append("null");
} else {
- int __key_size = Math.min(this.key.length, 128);
- for (int i = 0; i < __key_size; i++) {
- if (i != 0) sb.append(" ");
- sb.append(Integer.toHexString(this.key[i]).length() > 1 ? Integer.toHexString(this.key[i]).substring(Integer.toHexString(this.key[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.key[i]).toUpperCase());
- }
- if (this.key.length > 128) sb.append(" ...");
+ TBaseHelper.toString(this.key, sb);
}
first = false;
if (!first) sb.append(", ");
@@ -6786,9 +6798,12 @@ public class Cassandra {
return new get_slice_result(this);
}
- @Deprecated
- public get_slice_result clone() {
- return new get_slice_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
+ this.ue = null;
+ this.te = null;
}
public int getSuccessSize() {
@@ -6939,10 +6954,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -6961,12 +6972,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -6980,10 +6991,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -7075,7 +7082,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -7084,7 +7092,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -7093,7 +7102,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -7102,7 +7112,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -7110,6 +7121,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -7258,7 +7273,7 @@ public class Cassandra {
private static final TField PREDICATE_FIELD_DESC = new TField("predicate", TType.STRUCT, (short)3);
private static final TField CONSISTENCY_LEVEL_FIELD_DESC = new TField("consistency_level", TType.I32, (short)4);
- public byte[] key;
+ public ByteBuffer key;
public ColumnParent column_parent;
public SlicePredicate predicate;
/**
@@ -7361,7 +7376,7 @@ public class Cassandra {
}
public get_count_args(
- byte[] key,
+ ByteBuffer key,
ColumnParent column_parent,
SlicePredicate predicate,
ConsistencyLevel consistency_level)
@@ -7378,8 +7393,8 @@ public class Cassandra {
*/
public get_count_args(get_count_args other) {
if (other.isSetKey()) {
- this.key = new byte[other.key.length];
- System.arraycopy(other.key, 0, key, 0, other.key.length);
+ this.key = TBaseHelper.copyBinary(other.key);
+;
}
if (other.isSetColumn_parent()) {
this.column_parent = new ColumnParent(other.column_parent);
@@ -7396,16 +7411,30 @@ public class Cassandra {
return new get_count_args(this);
}
- @Deprecated
- public get_count_args clone() {
- return new get_count_args(this);
+ @Override
+ public void clear() {
+ this.key = null;
+ this.column_parent = null;
+ this.predicate = null;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public byte[] getKey() {
- return this.key;
+ setKey(TBaseHelper.rightSize(key));
+ return key.array();
+ }
+
+ public ByteBuffer BufferForKey() {
+ return key;
}
public get_count_args setKey(byte[] key) {
+ setKey(ByteBuffer.wrap(key));
+ return this;
+ }
+
+ public get_count_args setKey(ByteBuffer key) {
this.key = key;
return this;
}
@@ -7511,7 +7540,7 @@ public class Cassandra {
if (value == null) {
unsetKey();
} else {
- setKey((byte[])value);
+ setKey((ByteBuffer)value);
}
break;
@@ -7542,10 +7571,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEY:
@@ -7564,12 +7589,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEY:
return isSetKey();
@@ -7583,10 +7608,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -7605,7 +7626,7 @@ public class Cassandra {
if (this_present_key || that_present_key) {
if (!(this_present_key && that_present_key))
return false;
- if (!java.util.Arrays.equals(this.key, that.key))
+ if (!this.key.equals(that.key))
return false;
}
@@ -7678,7 +7699,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
+ if (isSetKey()) {
+ lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
if (lastComparison != 0) {
return lastComparison;
}
@@ -7687,7 +7709,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_parent()) { lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
+ if (isSetColumn_parent()) {
+ lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
if (lastComparison != 0) {
return lastComparison;
}
@@ -7696,7 +7719,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetPredicate()) { lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
+ if (isSetPredicate()) {
+ lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
if (lastComparison != 0) {
return lastComparison;
}
@@ -7705,7 +7729,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -7713,6 +7738,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -7801,12 +7830,7 @@ public class Cassandra {
if (this.key == null) {
sb.append("null");
} else {
- int __key_size = Math.min(this.key.length, 128);
- for (int i = 0; i < __key_size; i++) {
- if (i != 0) sb.append(" ");
- sb.append(Integer.toHexString(this.key[i]).length() > 1 ? Integer.toHexString(this.key[i]).substring(Integer.toHexString(this.key[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.key[i]).toUpperCase());
- }
- if (this.key.length > 128) sb.append(" ...");
+ TBaseHelper.toString(this.key, sb);
}
first = false;
if (!first) sb.append(", ");
@@ -7993,9 +8017,13 @@ public class Cassandra {
return new get_count_result(this);
}
- @Deprecated
- public get_count_result clone() {
- return new get_count_result(this);
+ @Override
+ public void clear() {
+ setSuccessIsSet(false);
+ this.success = 0;
+ this.ire = null;
+ this.ue = null;
+ this.te = null;
}
public int getSuccess() {
@@ -8130,10 +8158,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -8152,12 +8176,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -8171,10 +8195,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -8266,7 +8286,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -8275,7 +8296,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -8284,7 +8306,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -8293,7 +8316,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -8301,6 +8325,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -8428,7 +8456,7 @@ public class Cassandra {
private static final TField PREDICATE_FIELD_DESC = new TField("predicate", TType.STRUCT, (short)3);
private static final TField CONSISTENCY_LEVEL_FIELD_DESC = new TField("consistency_level", TType.I32, (short)4);
- public List keys;
+ public List keys;
public ColumnParent column_parent;
public SlicePredicate predicate;
/**
@@ -8532,7 +8560,7 @@ public class Cassandra {
}
public multiget_slice_args(
- List keys,
+ List keys,
ColumnParent column_parent,
SlicePredicate predicate,
ConsistencyLevel consistency_level)
@@ -8549,10 +8577,10 @@ public class Cassandra {
*/
public multiget_slice_args(multiget_slice_args other) {
if (other.isSetKeys()) {
- List __this__keys = new ArrayList();
- for (byte[] other_element : other.keys) {
- byte[] temp_binary_element = new byte[other_element.length];
- System.arraycopy(other_element, 0, temp_binary_element, 0, other_element.length);
+ List __this__keys = new ArrayList();
+ for (ByteBuffer other_element : other.keys) {
+ ByteBuffer temp_binary_element = TBaseHelper.copyBinary(other_element);
+;
__this__keys.add(temp_binary_element);
}
this.keys = __this__keys;
@@ -8572,31 +8600,35 @@ public class Cassandra {
return new multiget_slice_args(this);
}
- @Deprecated
- public multiget_slice_args clone() {
- return new multiget_slice_args(this);
+ @Override
+ public void clear() {
+ this.keys = null;
+ this.column_parent = null;
+ this.predicate = null;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public int getKeysSize() {
return (this.keys == null) ? 0 : this.keys.size();
}
- public java.util.Iterator getKeysIterator() {
+ public java.util.Iterator getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
- public void addToKeys(byte[] elem) {
+ public void addToKeys(ByteBuffer elem) {
if (this.keys == null) {
- this.keys = new ArrayList();
+ this.keys = new ArrayList();
}
this.keys.add(elem);
}
- public List getKeys() {
+ public List getKeys() {
return this.keys;
}
- public multiget_slice_args setKeys(List keys) {
+ public multiget_slice_args setKeys(List keys) {
this.keys = keys;
return this;
}
@@ -8702,7 +8734,7 @@ public class Cassandra {
if (value == null) {
unsetKeys();
} else {
- setKeys((List)value);
+ setKeys((List)value);
}
break;
@@ -8733,10 +8765,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEYS:
@@ -8755,12 +8783,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEYS:
return isSetKeys();
@@ -8774,10 +8802,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -8869,7 +8893,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKeys()) { lastComparison = TBaseHelper.compareTo(this.keys, typedOther.keys);
+ if (isSetKeys()) {
+ lastComparison = TBaseHelper.compareTo(this.keys, typedOther.keys);
if (lastComparison != 0) {
return lastComparison;
}
@@ -8878,7 +8903,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_parent()) { lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
+ if (isSetColumn_parent()) {
+ lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
if (lastComparison != 0) {
return lastComparison;
}
@@ -8887,7 +8913,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetPredicate()) { lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
+ if (isSetPredicate()) {
+ lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
if (lastComparison != 0) {
return lastComparison;
}
@@ -8896,7 +8923,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -8904,6 +8932,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -8918,10 +8950,10 @@ public class Cassandra {
if (field.type == TType.LIST) {
{
TList _list42 = iprot.readListBegin();
- this.keys = new ArrayList(_list42.size);
+ this.keys = new ArrayList(_list42.size);
for (int _i43 = 0; _i43 < _list42.size; ++_i43)
{
- byte[] _elem44;
+ ByteBuffer _elem44;
_elem44 = iprot.readBinary();
this.keys.add(_elem44);
}
@@ -8973,7 +9005,7 @@ public class Cassandra {
oprot.writeFieldBegin(KEYS_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRING, this.keys.size()));
- for (byte[] _iter45 : this.keys)
+ for (ByteBuffer _iter45 : this.keys)
{
oprot.writeBinary(_iter45);
}
@@ -9066,7 +9098,7 @@ public class Cassandra {
private static final TField UE_FIELD_DESC = new TField("ue", TType.STRUCT, (short)2);
private static final TField TE_FIELD_DESC = new TField("te", TType.STRUCT, (short)3);
- public Map> success;
+ public Map> success;
public InvalidRequestException ire;
public UnavailableException ue;
public TimedOutException te;
@@ -9162,7 +9194,7 @@ public class Cassandra {
}
public multiget_slice_result(
- Map> success,
+ Map> success,
InvalidRequestException ire,
UnavailableException ue,
TimedOutException te)
@@ -9179,14 +9211,14 @@ public class Cassandra {
*/
public multiget_slice_result(multiget_slice_result other) {
if (other.isSetSuccess()) {
- Map> __this__success = new HashMap>();
- for (Map.Entry> other_element : other.success.entrySet()) {
+ Map> __this__success = new HashMap>();
+ for (Map.Entry> other_element : other.success.entrySet()) {
- byte[] other_element_key = other_element.getKey();
+ ByteBuffer other_element_key = other_element.getKey();
List other_element_value = other_element.getValue();
- byte[] __this__success_copy_key = new byte[other_element_key.length];
- System.arraycopy(other_element_key, 0, __this__success_copy_key, 0, other_element_key.length);
+ ByteBuffer __this__success_copy_key = TBaseHelper.copyBinary(other_element_key);
+;
List __this__success_copy_value = new ArrayList();
for (ColumnOrSuperColumn other_element_value_element : other_element_value) {
@@ -9212,27 +9244,30 @@ public class Cassandra {
return new multiget_slice_result(this);
}
- @Deprecated
- public multiget_slice_result clone() {
- return new multiget_slice_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
+ this.ue = null;
+ this.te = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
- public void putToSuccess(byte[] key, List val) {
+ public void putToSuccess(ByteBuffer key, List val) {
if (this.success == null) {
- this.success = new HashMap>();
+ this.success = new HashMap>();
}
this.success.put(key, val);
}
- public Map> getSuccess() {
+ public Map> getSuccess() {
return this.success;
}
- public multiget_slice_result setSuccess(Map> success) {
+ public multiget_slice_result setSuccess(Map> success) {
this.success = success;
return this;
}
@@ -9330,7 +9365,7 @@ public class Cassandra {
if (value == null) {
unsetSuccess();
} else {
- setSuccess((Map>)value);
+ setSuccess((Map>)value);
}
break;
@@ -9361,10 +9396,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -9383,12 +9414,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -9402,10 +9433,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -9497,7 +9524,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -9506,7 +9534,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -9515,7 +9544,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -9524,7 +9554,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -9532,6 +9563,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -9546,10 +9581,10 @@ public class Cassandra {
if (field.type == TType.MAP) {
{
TMap _map46 = iprot.readMapBegin();
- this.success = new HashMap>(2*_map46.size);
+ this.success = new HashMap>(2*_map46.size);
for (int _i47 = 0; _i47 < _map46.size; ++_i47)
{
- byte[] _key48;
+ ByteBuffer _key48;
List _val49;
_key48 = iprot.readBinary();
{
@@ -9614,7 +9649,7 @@ public class Cassandra {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeMapBegin(new TMap(TType.STRING, TType.LIST, this.success.size()));
- for (Map.Entry> _iter53 : this.success.entrySet())
+ for (Map.Entry> _iter53 : this.success.entrySet())
{
oprot.writeBinary(_iter53.getKey());
{
@@ -9700,7 +9735,7 @@ public class Cassandra {
private static final TField PREDICATE_FIELD_DESC = new TField("predicate", TType.STRUCT, (short)3);
private static final TField CONSISTENCY_LEVEL_FIELD_DESC = new TField("consistency_level", TType.I32, (short)4);
- public List keys;
+ public List keys;
public ColumnParent column_parent;
public SlicePredicate predicate;
/**
@@ -9804,7 +9839,7 @@ public class Cassandra {
}
public multiget_count_args(
- List keys,
+ List keys,
ColumnParent column_parent,
SlicePredicate predicate,
ConsistencyLevel consistency_level)
@@ -9821,10 +9856,10 @@ public class Cassandra {
*/
public multiget_count_args(multiget_count_args other) {
if (other.isSetKeys()) {
- List __this__keys = new ArrayList();
- for (byte[] other_element : other.keys) {
- byte[] temp_binary_element = new byte[other_element.length];
- System.arraycopy(other_element, 0, temp_binary_element, 0, other_element.length);
+ List __this__keys = new ArrayList();
+ for (ByteBuffer other_element : other.keys) {
+ ByteBuffer temp_binary_element = TBaseHelper.copyBinary(other_element);
+;
__this__keys.add(temp_binary_element);
}
this.keys = __this__keys;
@@ -9844,31 +9879,35 @@ public class Cassandra {
return new multiget_count_args(this);
}
- @Deprecated
- public multiget_count_args clone() {
- return new multiget_count_args(this);
+ @Override
+ public void clear() {
+ this.keys = null;
+ this.column_parent = null;
+ this.predicate = null;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public int getKeysSize() {
return (this.keys == null) ? 0 : this.keys.size();
}
- public java.util.Iterator getKeysIterator() {
+ public java.util.Iterator getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
- public void addToKeys(byte[] elem) {
+ public void addToKeys(ByteBuffer elem) {
if (this.keys == null) {
- this.keys = new ArrayList();
+ this.keys = new ArrayList();
}
this.keys.add(elem);
}
- public List getKeys() {
+ public List getKeys() {
return this.keys;
}
- public multiget_count_args setKeys(List keys) {
+ public multiget_count_args setKeys(List keys) {
this.keys = keys;
return this;
}
@@ -9974,7 +10013,7 @@ public class Cassandra {
if (value == null) {
unsetKeys();
} else {
- setKeys((List)value);
+ setKeys((List)value);
}
break;
@@ -10005,10 +10044,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEYS:
@@ -10027,12 +10062,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEYS:
return isSetKeys();
@@ -10046,10 +10081,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -10141,7 +10172,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKeys()) { lastComparison = TBaseHelper.compareTo(this.keys, typedOther.keys);
+ if (isSetKeys()) {
+ lastComparison = TBaseHelper.compareTo(this.keys, typedOther.keys);
if (lastComparison != 0) {
return lastComparison;
}
@@ -10150,7 +10182,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_parent()) { lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
+ if (isSetColumn_parent()) {
+ lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
if (lastComparison != 0) {
return lastComparison;
}
@@ -10159,7 +10192,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetPredicate()) { lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
+ if (isSetPredicate()) {
+ lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
if (lastComparison != 0) {
return lastComparison;
}
@@ -10168,7 +10202,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -10176,6 +10211,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -10190,10 +10229,10 @@ public class Cassandra {
if (field.type == TType.LIST) {
{
TList _list55 = iprot.readListBegin();
- this.keys = new ArrayList(_list55.size);
+ this.keys = new ArrayList(_list55.size);
for (int _i56 = 0; _i56 < _list55.size; ++_i56)
{
- byte[] _elem57;
+ ByteBuffer _elem57;
_elem57 = iprot.readBinary();
this.keys.add(_elem57);
}
@@ -10245,7 +10284,7 @@ public class Cassandra {
oprot.writeFieldBegin(KEYS_FIELD_DESC);
{
oprot.writeListBegin(new TList(TType.STRING, this.keys.size()));
- for (byte[] _iter58 : this.keys)
+ for (ByteBuffer _iter58 : this.keys)
{
oprot.writeBinary(_iter58);
}
@@ -10338,7 +10377,7 @@ public class Cassandra {
private static final TField UE_FIELD_DESC = new TField("ue", TType.STRUCT, (short)2);
private static final TField TE_FIELD_DESC = new TField("te", TType.STRUCT, (short)3);
- public Map success;
+ public Map success;
public InvalidRequestException ire;
public UnavailableException ue;
public TimedOutException te;
@@ -10433,7 +10472,7 @@ public class Cassandra {
}
public multiget_count_result(
- Map success,
+ Map success,
InvalidRequestException ire,
UnavailableException ue,
TimedOutException te)
@@ -10450,14 +10489,14 @@ 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()) {
+ Map __this__success = new HashMap();
+ for (Map.Entry other_element : other.success.entrySet()) {
- byte[] other_element_key = other_element.getKey();
+ ByteBuffer other_element_key = other_element.getKey();
Integer other_element_value = other_element.getValue();
- byte[] __this__success_copy_key = new byte[other_element_key.length];
- System.arraycopy(other_element_key, 0, __this__success_copy_key, 0, other_element_key.length);
+ ByteBuffer __this__success_copy_key = TBaseHelper.copyBinary(other_element_key);
+;
Integer __this__success_copy_value = other_element_value;
@@ -10480,27 +10519,30 @@ public class Cassandra {
return new multiget_count_result(this);
}
- @Deprecated
- public multiget_count_result clone() {
- return new multiget_count_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
+ this.ue = null;
+ this.te = null;
}
public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
- public void putToSuccess(byte[] key, int val) {
+ public void putToSuccess(ByteBuffer key, int val) {
if (this.success == null) {
- this.success = new HashMap();
+ this.success = new HashMap();
}
this.success.put(key, val);
}
- public Map getSuccess() {
+ public Map getSuccess() {
return this.success;
}
- public multiget_count_result setSuccess(Map success) {
+ public multiget_count_result setSuccess(Map success) {
this.success = success;
return this;
}
@@ -10598,7 +10640,7 @@ public class Cassandra {
if (value == null) {
unsetSuccess();
} else {
- setSuccess((Map)value);
+ setSuccess((Map)value);
}
break;
@@ -10629,10 +10671,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -10651,12 +10689,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -10670,10 +10708,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -10765,7 +10799,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -10774,7 +10809,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -10783,7 +10819,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -10792,7 +10829,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -10800,6 +10838,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -10814,10 +10856,10 @@ public class Cassandra {
if (field.type == TType.MAP) {
{
TMap _map59 = iprot.readMapBegin();
- this.success = new HashMap(2*_map59.size);
+ this.success = new HashMap(2*_map59.size);
for (int _i60 = 0; _i60 < _map59.size; ++_i60)
{
- byte[] _key61;
+ ByteBuffer _key61;
int _val62;
_key61 = iprot.readBinary();
_val62 = iprot.readI32();
@@ -10871,7 +10913,7 @@ public class Cassandra {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeMapBegin(new TMap(TType.STRING, TType.I32, this.success.size()));
- for (Map.Entry _iter63 : this.success.entrySet())
+ for (Map.Entry _iter63 : this.success.entrySet())
{
oprot.writeBinary(_iter63.getKey());
oprot.writeI32(_iter63.getValue());
@@ -11087,9 +11129,13 @@ public class Cassandra {
return new get_range_slices_args(this);
}
- @Deprecated
- public get_range_slices_args clone() {
- return new get_range_slices_args(this);
+ @Override
+ public void clear() {
+ this.column_parent = null;
+ this.predicate = null;
+ this.range = null;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public ColumnParent getColumn_parent() {
@@ -11233,10 +11279,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case COLUMN_PARENT:
@@ -11255,12 +11297,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case COLUMN_PARENT:
return isSetColumn_parent();
@@ -11274,10 +11316,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -11369,7 +11407,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_parent()) { lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
+ if (isSetColumn_parent()) {
+ lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11378,7 +11417,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetPredicate()) { lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
+ if (isSetPredicate()) {
+ lastComparison = TBaseHelper.compareTo(this.predicate, typedOther.predicate);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11387,7 +11427,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetRange()) { lastComparison = TBaseHelper.compareTo(this.range, typedOther.range);
+ if (isSetRange()) {
+ lastComparison = TBaseHelper.compareTo(this.range, typedOther.range);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11396,7 +11437,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11404,6 +11446,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -11682,9 +11728,12 @@ public class Cassandra {
return new get_range_slices_result(this);
}
- @Deprecated
- public get_range_slices_result clone() {
- return new get_range_slices_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
+ this.ue = null;
+ this.te = null;
}
public int getSuccessSize() {
@@ -11835,10 +11884,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -11857,12 +11902,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -11876,10 +11921,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -11971,7 +12012,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11980,7 +12022,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11989,7 +12032,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11998,7 +12042,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -12006,6 +12051,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -12291,9 +12340,13 @@ public class Cassandra {
return new get_indexed_slices_args(this);
}
- @Deprecated
- public get_indexed_slices_args clone() {
- return new get_indexed_slices_args(this);
+ @Override
+ public void clear() {
+ this.column_parent = null;
+ this.index_clause = null;
+ this.column_predicate = null;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public ColumnParent getColumn_parent() {
@@ -12437,10 +12490,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case COLUMN_PARENT:
@@ -12459,12 +12508,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case COLUMN_PARENT:
return isSetColumn_parent();
@@ -12478,10 +12527,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -12573,7 +12618,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_parent()) { lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
+ if (isSetColumn_parent()) {
+ lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
if (lastComparison != 0) {
return lastComparison;
}
@@ -12582,7 +12628,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIndex_clause()) { lastComparison = TBaseHelper.compareTo(this.index_clause, typedOther.index_clause);
+ if (isSetIndex_clause()) {
+ lastComparison = TBaseHelper.compareTo(this.index_clause, typedOther.index_clause);
if (lastComparison != 0) {
return lastComparison;
}
@@ -12591,7 +12638,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_predicate()) { lastComparison = TBaseHelper.compareTo(this.column_predicate, typedOther.column_predicate);
+ if (isSetColumn_predicate()) {
+ lastComparison = TBaseHelper.compareTo(this.column_predicate, typedOther.column_predicate);
if (lastComparison != 0) {
return lastComparison;
}
@@ -12600,7 +12648,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -12608,6 +12657,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -12886,9 +12939,12 @@ public class Cassandra {
return new get_indexed_slices_result(this);
}
- @Deprecated
- public get_indexed_slices_result clone() {
- return new get_indexed_slices_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
+ this.ue = null;
+ this.te = null;
}
public int getSuccessSize() {
@@ -13039,10 +13095,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -13061,12 +13113,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -13080,10 +13132,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -13175,7 +13223,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -13184,7 +13233,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -13193,7 +13243,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -13202,7 +13253,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -13210,6 +13262,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -13358,7 +13414,7 @@ public class Cassandra {
private static final TField COLUMN_FIELD_DESC = new TField("column", TType.STRUCT, (short)3);
private static final TField CONSISTENCY_LEVEL_FIELD_DESC = new TField("consistency_level", TType.I32, (short)4);
- public byte[] key;
+ public ByteBuffer key;
public ColumnParent column_parent;
public Column column;
/**
@@ -13461,7 +13517,7 @@ public class Cassandra {
}
public insert_args(
- byte[] key,
+ ByteBuffer key,
ColumnParent column_parent,
Column column,
ConsistencyLevel consistency_level)
@@ -13478,8 +13534,8 @@ public class Cassandra {
*/
public insert_args(insert_args other) {
if (other.isSetKey()) {
- this.key = new byte[other.key.length];
- System.arraycopy(other.key, 0, key, 0, other.key.length);
+ this.key = TBaseHelper.copyBinary(other.key);
+;
}
if (other.isSetColumn_parent()) {
this.column_parent = new ColumnParent(other.column_parent);
@@ -13496,16 +13552,30 @@ public class Cassandra {
return new insert_args(this);
}
- @Deprecated
- public insert_args clone() {
- return new insert_args(this);
+ @Override
+ public void clear() {
+ this.key = null;
+ this.column_parent = null;
+ this.column = null;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public byte[] getKey() {
- return this.key;
+ setKey(TBaseHelper.rightSize(key));
+ return key.array();
+ }
+
+ public ByteBuffer BufferForKey() {
+ return key;
}
public insert_args setKey(byte[] key) {
+ setKey(ByteBuffer.wrap(key));
+ return this;
+ }
+
+ public insert_args setKey(ByteBuffer key) {
this.key = key;
return this;
}
@@ -13611,7 +13681,7 @@ public class Cassandra {
if (value == null) {
unsetKey();
} else {
- setKey((byte[])value);
+ setKey((ByteBuffer)value);
}
break;
@@ -13642,10 +13712,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEY:
@@ -13664,12 +13730,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEY:
return isSetKey();
@@ -13683,10 +13749,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -13705,7 +13767,7 @@ public class Cassandra {
if (this_present_key || that_present_key) {
if (!(this_present_key && that_present_key))
return false;
- if (!java.util.Arrays.equals(this.key, that.key))
+ if (!this.key.equals(that.key))
return false;
}
@@ -13778,7 +13840,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
+ if (isSetKey()) {
+ lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
if (lastComparison != 0) {
return lastComparison;
}
@@ -13787,7 +13850,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_parent()) { lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
+ if (isSetColumn_parent()) {
+ lastComparison = TBaseHelper.compareTo(this.column_parent, typedOther.column_parent);
if (lastComparison != 0) {
return lastComparison;
}
@@ -13796,7 +13860,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn()) { lastComparison = TBaseHelper.compareTo(this.column, typedOther.column);
+ if (isSetColumn()) {
+ lastComparison = TBaseHelper.compareTo(this.column, typedOther.column);
if (lastComparison != 0) {
return lastComparison;
}
@@ -13805,7 +13870,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -13813,6 +13879,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -13901,12 +13971,7 @@ public class Cassandra {
if (this.key == null) {
sb.append("null");
} else {
- int __key_size = Math.min(this.key.length, 128);
- for (int i = 0; i < __key_size; i++) {
- if (i != 0) sb.append(" ");
- sb.append(Integer.toHexString(this.key[i]).length() > 1 ? Integer.toHexString(this.key[i]).substring(Integer.toHexString(this.key[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.key[i]).toUpperCase());
- }
- if (this.key.length > 128) sb.append(" ...");
+ TBaseHelper.toString(this.key, sb);
}
first = false;
if (!first) sb.append(", ");
@@ -14078,9 +14143,11 @@ public class Cassandra {
return new insert_result(this);
}
- @Deprecated
- public insert_result clone() {
- return new insert_result(this);
+ @Override
+ public void clear() {
+ this.ire = null;
+ this.ue = null;
+ this.te = null;
}
public InvalidRequestException getIre() {
@@ -14184,10 +14251,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case IRE:
@@ -14203,12 +14266,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case IRE:
return isSetIre();
@@ -14220,10 +14283,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -14301,7 +14360,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -14310,7 +14370,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -14319,7 +14380,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -14327,6 +14389,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -14438,7 +14504,7 @@ public class Cassandra {
private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)3);
private static final TField CONSISTENCY_LEVEL_FIELD_DESC = new TField("consistency_level", TType.I32, (short)4);
- public byte[] key;
+ public ByteBuffer key;
public ColumnPath column_path;
public long timestamp;
/**
@@ -14543,7 +14609,7 @@ public class Cassandra {
}
public remove_args(
- byte[] key,
+ ByteBuffer key,
ColumnPath column_path,
long timestamp,
ConsistencyLevel consistency_level)
@@ -14563,8 +14629,8 @@ public class Cassandra {
__isset_bit_vector.clear();
__isset_bit_vector.or(other.__isset_bit_vector);
if (other.isSetKey()) {
- this.key = new byte[other.key.length];
- System.arraycopy(other.key, 0, key, 0, other.key.length);
+ this.key = TBaseHelper.copyBinary(other.key);
+;
}
if (other.isSetColumn_path()) {
this.column_path = new ColumnPath(other.column_path);
@@ -14579,16 +14645,31 @@ public class Cassandra {
return new remove_args(this);
}
- @Deprecated
- public remove_args clone() {
- return new remove_args(this);
+ @Override
+ public void clear() {
+ this.key = null;
+ this.column_path = null;
+ setTimestampIsSet(false);
+ this.timestamp = 0;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public byte[] getKey() {
- return this.key;
+ setKey(TBaseHelper.rightSize(key));
+ return key.array();
+ }
+
+ public ByteBuffer BufferForKey() {
+ return key;
}
public remove_args setKey(byte[] key) {
+ setKey(ByteBuffer.wrap(key));
+ return this;
+ }
+
+ public remove_args setKey(ByteBuffer key) {
this.key = key;
return this;
}
@@ -14693,7 +14774,7 @@ public class Cassandra {
if (value == null) {
unsetKey();
} else {
- setKey((byte[])value);
+ setKey((ByteBuffer)value);
}
break;
@@ -14724,10 +14805,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEY:
@@ -14746,12 +14823,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEY:
return isSetKey();
@@ -14765,10 +14842,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -14787,7 +14860,7 @@ public class Cassandra {
if (this_present_key || that_present_key) {
if (!(this_present_key && that_present_key))
return false;
- if (!java.util.Arrays.equals(this.key, that.key))
+ if (!this.key.equals(that.key))
return false;
}
@@ -14860,7 +14933,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKey()) { lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
+ if (isSetKey()) {
+ lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
if (lastComparison != 0) {
return lastComparison;
}
@@ -14869,7 +14943,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_path()) { lastComparison = TBaseHelper.compareTo(this.column_path, typedOther.column_path);
+ if (isSetColumn_path()) {
+ lastComparison = TBaseHelper.compareTo(this.column_path, typedOther.column_path);
if (lastComparison != 0) {
return lastComparison;
}
@@ -14878,7 +14953,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTimestamp()) { lastComparison = TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
+ if (isSetTimestamp()) {
+ lastComparison = TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
if (lastComparison != 0) {
return lastComparison;
}
@@ -14887,7 +14963,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -14895,6 +14972,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -14984,12 +15065,7 @@ public class Cassandra {
if (this.key == null) {
sb.append("null");
} else {
- int __key_size = Math.min(this.key.length, 128);
- for (int i = 0; i < __key_size; i++) {
- if (i != 0) sb.append(" ");
- sb.append(Integer.toHexString(this.key[i]).length() > 1 ? Integer.toHexString(this.key[i]).substring(Integer.toHexString(this.key[i]).length() - 2).toUpperCase() : "0" + Integer.toHexString(this.key[i]).toUpperCase());
- }
- if (this.key.length > 128) sb.append(" ...");
+ TBaseHelper.toString(this.key, sb);
}
first = false;
if (!first) sb.append(", ");
@@ -15152,9 +15228,11 @@ public class Cassandra {
return new remove_result(this);
}
- @Deprecated
- public remove_result clone() {
- return new remove_result(this);
+ @Override
+ public void clear() {
+ this.ire = null;
+ this.ue = null;
+ this.te = null;
}
public InvalidRequestException getIre() {
@@ -15258,10 +15336,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case IRE:
@@ -15277,12 +15351,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case IRE:
return isSetIre();
@@ -15294,10 +15368,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -15375,7 +15445,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -15384,7 +15455,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -15393,7 +15465,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -15401,6 +15474,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -15510,7 +15587,7 @@ public class Cassandra {
private static final TField MUTATION_MAP_FIELD_DESC = new TField("mutation_map", TType.MAP, (short)1);
private static final TField CONSISTENCY_LEVEL_FIELD_DESC = new TField("consistency_level", TType.I32, (short)2);
- public Map>> mutation_map;
+ public Map>> mutation_map;
/**
*
* @see ConsistencyLevel
@@ -15606,7 +15683,7 @@ public class Cassandra {
}
public batch_mutate_args(
- Map>> mutation_map,
+ Map>> mutation_map,
ConsistencyLevel consistency_level)
{
this();
@@ -15619,14 +15696,14 @@ public class Cassandra {
*/
public batch_mutate_args(batch_mutate_args other) {
if (other.isSetMutation_map()) {
- Map>> __this__mutation_map = new HashMap>>();
- for (Map.Entry>> other_element : other.mutation_map.entrySet()) {
+ Map>> __this__mutation_map = new HashMap>>();
+ for (Map.Entry>> other_element : other.mutation_map.entrySet()) {
- byte[] other_element_key = other_element.getKey();
+ ByteBuffer other_element_key = other_element.getKey();
Map> other_element_value = other_element.getValue();
- byte[] __this__mutation_map_copy_key = new byte[other_element_key.length];
- System.arraycopy(other_element_key, 0, __this__mutation_map_copy_key, 0, other_element_key.length);
+ ByteBuffer __this__mutation_map_copy_key = TBaseHelper.copyBinary(other_element_key);
+;
Map> __this__mutation_map_copy_value = new HashMap>();
for (Map.Entry> other_element_value_element : other_element_value.entrySet()) {
@@ -15657,27 +15734,29 @@ public class Cassandra {
return new batch_mutate_args(this);
}
- @Deprecated
- public batch_mutate_args clone() {
- return new batch_mutate_args(this);
+ @Override
+ public void clear() {
+ this.mutation_map = null;
+ this.consistency_level = ConsistencyLevel.ONE;
+
}
public int getMutation_mapSize() {
return (this.mutation_map == null) ? 0 : this.mutation_map.size();
}
- public void putToMutation_map(byte[] key, Map> val) {
+ public void putToMutation_map(ByteBuffer key, Map> val) {
if (this.mutation_map == null) {
- this.mutation_map = new HashMap>>();
+ this.mutation_map = new HashMap>>();
}
this.mutation_map.put(key, val);
}
- public Map>> getMutation_map() {
+ public Map>> getMutation_map() {
return this.mutation_map;
}
- public batch_mutate_args setMutation_map(Map>> mutation_map) {
+ public batch_mutate_args setMutation_map(Map>> mutation_map) {
this.mutation_map = mutation_map;
return this;
}
@@ -15735,7 +15814,7 @@ public class Cassandra {
if (value == null) {
unsetMutation_map();
} else {
- setMutation_map((Map>>)value);
+ setMutation_map((Map>>)value);
}
break;
@@ -15750,10 +15829,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case MUTATION_MAP:
@@ -15766,12 +15841,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case MUTATION_MAP:
return isSetMutation_map();
@@ -15781,10 +15856,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -15848,7 +15919,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetMutation_map()) { lastComparison = TBaseHelper.compareTo(this.mutation_map, typedOther.mutation_map);
+ if (isSetMutation_map()) {
+ lastComparison = TBaseHelper.compareTo(this.mutation_map, typedOther.mutation_map);
if (lastComparison != 0) {
return lastComparison;
}
@@ -15857,7 +15929,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetConsistency_level()) { lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
+ if (isSetConsistency_level()) {
+ lastComparison = TBaseHelper.compareTo(this.consistency_level, typedOther.consistency_level);
if (lastComparison != 0) {
return lastComparison;
}
@@ -15865,6 +15938,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -15879,10 +15956,10 @@ public class Cassandra {
if (field.type == TType.MAP) {
{
TMap _map72 = iprot.readMapBegin();
- this.mutation_map = new HashMap>>(2*_map72.size);
+ this.mutation_map = new HashMap>>(2*_map72.size);
for (int _i73 = 0; _i73 < _map72.size; ++_i73)
{
- byte[] _key74;
+ ByteBuffer _key74;
Map> _val75;
_key74 = iprot.readBinary();
{
@@ -15943,7 +16020,7 @@ public class Cassandra {
oprot.writeFieldBegin(MUTATION_MAP_FIELD_DESC);
{
oprot.writeMapBegin(new TMap(TType.STRING, TType.MAP, this.mutation_map.size()));
- for (Map.Entry>> _iter83 : this.mutation_map.entrySet())
+ for (Map.Entry>> _iter83 : this.mutation_map.entrySet())
{
oprot.writeBinary(_iter83.getKey());
{
@@ -16135,9 +16212,11 @@ public class Cassandra {
return new batch_mutate_result(this);
}
- @Deprecated
- public batch_mutate_result clone() {
- return new batch_mutate_result(this);
+ @Override
+ public void clear() {
+ this.ire = null;
+ this.ue = null;
+ this.te = null;
}
public InvalidRequestException getIre() {
@@ -16241,10 +16320,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case IRE:
@@ -16260,12 +16335,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case IRE:
return isSetIre();
@@ -16277,10 +16352,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -16358,7 +16429,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -16367,7 +16439,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -16376,7 +16449,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTe()) { lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
+ if (isSetTe()) {
+ lastComparison = TBaseHelper.compareTo(this.te, typedOther.te);
if (lastComparison != 0) {
return lastComparison;
}
@@ -16384,6 +16458,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -16586,9 +16664,9 @@ public class Cassandra {
return new truncate_args(this);
}
- @Deprecated
- public truncate_args clone() {
- return new truncate_args(this);
+ @Override
+ public void clear() {
+ this.cfname = null;
}
public String getCfname() {
@@ -16628,10 +16706,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case CFNAME:
@@ -16641,12 +16715,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case CFNAME:
return isSetCfname();
@@ -16654,10 +16728,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -16707,7 +16777,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetCfname()) { lastComparison = TBaseHelper.compareTo(this.cfname, typedOther.cfname);
+ if (isSetCfname()) {
+ lastComparison = TBaseHelper.compareTo(this.cfname, typedOther.cfname);
if (lastComparison != 0) {
return lastComparison;
}
@@ -16715,6 +16786,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -16892,9 +16967,10 @@ public class Cassandra {
return new truncate_result(this);
}
- @Deprecated
- public truncate_result clone() {
- return new truncate_result(this);
+ @Override
+ public void clear() {
+ this.ire = null;
+ this.ue = null;
}
public InvalidRequestException getIre() {
@@ -16966,10 +17042,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case IRE:
@@ -16982,12 +17054,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case IRE:
return isSetIre();
@@ -16997,10 +17069,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -17064,7 +17132,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -17073,7 +17142,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetUe()) { lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
+ if (isSetUe()) {
+ lastComparison = TBaseHelper.compareTo(this.ue, typedOther.ue);
if (lastComparison != 0) {
return lastComparison;
}
@@ -17081,6 +17151,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -17244,9 +17318,8 @@ public class Cassandra {
return new describe_schema_versions_args(this);
}
- @Deprecated
- public describe_schema_versions_args clone() {
- return new describe_schema_versions_args(this);
+ @Override
+ public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
@@ -17254,31 +17327,23 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
}
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -17313,6 +17378,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -17486,9 +17555,10 @@ public class Cassandra {
return new describe_schema_versions_result(this);
}
- @Deprecated
- public describe_schema_versions_result clone() {
- return new describe_schema_versions_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
}
public int getSuccessSize() {
@@ -17571,10 +17641,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -17587,12 +17653,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -17602,10 +17668,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -17669,7 +17731,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -17678,7 +17741,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -17686,6 +17750,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -17885,9 +17953,8 @@ public class Cassandra {
return new describe_keyspaces_args(this);
}
- @Deprecated
- public describe_keyspaces_args clone() {
- return new describe_keyspaces_args(this);
+ @Override
+ public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
@@ -17895,31 +17962,23 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
}
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -17954,6 +18013,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -18114,9 +18177,10 @@ public class Cassandra {
return new describe_keyspaces_result(this);
}
- @Deprecated
- public describe_keyspaces_result clone() {
- return new describe_keyspaces_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
}
public int getSuccessSize() {
@@ -18203,10 +18267,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -18219,12 +18279,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -18234,10 +18294,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -18301,7 +18357,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -18310,7 +18367,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -18318,6 +18376,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -18498,9 +18560,8 @@ public class Cassandra {
return new describe_cluster_name_args(this);
}
- @Deprecated
- public describe_cluster_name_args clone() {
- return new describe_cluster_name_args(this);
+ @Override
+ public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
@@ -18508,31 +18569,23 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
}
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -18567,6 +18620,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -18710,9 +18767,9 @@ public class Cassandra {
return new describe_cluster_name_result(this);
}
- @Deprecated
- public describe_cluster_name_result clone() {
- return new describe_cluster_name_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
}
public String getSuccess() {
@@ -18752,10 +18809,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -18765,12 +18818,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -18778,10 +18831,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -18831,7 +18880,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -18839,6 +18889,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -18981,9 +19035,8 @@ public class Cassandra {
return new describe_version_args(this);
}
- @Deprecated
- public describe_version_args clone() {
- return new describe_version_args(this);
+ @Override
+ public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
@@ -18991,31 +19044,23 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
}
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -19050,6 +19095,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -19193,9 +19242,9 @@ public class Cassandra {
return new describe_version_result(this);
}
- @Deprecated
- public describe_version_result clone() {
- return new describe_version_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
}
public String getSuccess() {
@@ -19235,10 +19284,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -19248,12 +19293,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -19261,10 +19306,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -19314,7 +19355,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -19322,6 +19364,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -19483,9 +19529,9 @@ public class Cassandra {
return new describe_ring_args(this);
}
- @Deprecated
- public describe_ring_args clone() {
- return new describe_ring_args(this);
+ @Override
+ public void clear() {
+ this.keyspace = null;
}
public String getKeyspace() {
@@ -19525,10 +19571,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEYSPACE:
@@ -19538,12 +19580,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEYSPACE:
return isSetKeyspace();
@@ -19551,10 +19593,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -19604,7 +19642,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKeyspace()) { lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
+ if (isSetKeyspace()) {
+ lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
if (lastComparison != 0) {
return lastComparison;
}
@@ -19612,6 +19651,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -19794,9 +19837,10 @@ public class Cassandra {
return new describe_ring_result(this);
}
- @Deprecated
- public describe_ring_result clone() {
- return new describe_ring_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
}
public int getSuccessSize() {
@@ -19883,10 +19927,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -19899,12 +19939,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -19914,10 +19954,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -19981,7 +20017,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -19990,7 +20027,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -19998,6 +20036,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -20178,9 +20220,8 @@ public class Cassandra {
return new describe_partitioner_args(this);
}
- @Deprecated
- public describe_partitioner_args clone() {
- return new describe_partitioner_args(this);
+ @Override
+ public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
@@ -20188,31 +20229,23 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
}
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -20247,6 +20280,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -20390,9 +20427,9 @@ public class Cassandra {
return new describe_partitioner_result(this);
}
- @Deprecated
- public describe_partitioner_result clone() {
- return new describe_partitioner_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
}
public String getSuccess() {
@@ -20432,10 +20469,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -20445,12 +20478,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -20458,10 +20491,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -20511,7 +20540,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -20519,6 +20549,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -20661,9 +20695,8 @@ public class Cassandra {
return new describe_snitch_args(this);
}
- @Deprecated
- public describe_snitch_args clone() {
- return new describe_snitch_args(this);
+ @Override
+ public void clear() {
}
public void setFieldValue(_Fields field, Object value) {
@@ -20671,31 +20704,23 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
}
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
}
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -20730,6 +20755,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -20873,9 +20902,9 @@ public class Cassandra {
return new describe_snitch_result(this);
}
- @Deprecated
- public describe_snitch_result clone() {
- return new describe_snitch_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
}
public String getSuccess() {
@@ -20915,10 +20944,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -20928,12 +20953,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -20941,10 +20966,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -20994,7 +21015,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -21002,6 +21024,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -21163,9 +21189,9 @@ public class Cassandra {
return new describe_keyspace_args(this);
}
- @Deprecated
- public describe_keyspace_args clone() {
- return new describe_keyspace_args(this);
+ @Override
+ public void clear() {
+ this.keyspace = null;
}
public String getKeyspace() {
@@ -21205,10 +21231,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEYSPACE:
@@ -21218,12 +21240,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEYSPACE:
return isSetKeyspace();
@@ -21231,10 +21253,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -21284,7 +21302,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKeyspace()) { lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
+ if (isSetKeyspace()) {
+ lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
if (lastComparison != 0) {
return lastComparison;
}
@@ -21292,6 +21311,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -21481,9 +21504,11 @@ public class Cassandra {
return new describe_keyspace_result(this);
}
- @Deprecated
- public describe_keyspace_result clone() {
- return new describe_keyspace_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.nfe = null;
+ this.ire = null;
}
public KsDef getSuccess() {
@@ -21587,10 +21612,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -21606,12 +21627,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -21623,10 +21644,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -21704,7 +21721,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -21713,7 +21731,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetNfe()) { lastComparison = TBaseHelper.compareTo(this.nfe, typedOther.nfe);
+ if (isSetNfe()) {
+ lastComparison = TBaseHelper.compareTo(this.nfe, typedOther.nfe);
if (lastComparison != 0) {
return lastComparison;
}
@@ -21722,7 +21741,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -21730,6 +21750,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -21971,9 +21995,13 @@ public class Cassandra {
return new describe_splits_args(this);
}
- @Deprecated
- public describe_splits_args clone() {
- return new describe_splits_args(this);
+ @Override
+ public void clear() {
+ this.cfName = null;
+ this.start_token = null;
+ this.end_token = null;
+ setKeys_per_splitIsSet(false);
+ this.keys_per_split = 0;
}
public String getCfName() {
@@ -22108,10 +22136,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case CF_NAME:
@@ -22130,12 +22154,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case CF_NAME:
return isSetCfName();
@@ -22149,10 +22173,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -22244,7 +22264,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetCfName()) { lastComparison = TBaseHelper.compareTo(this.cfName, typedOther.cfName);
+ if (isSetCfName()) {
+ lastComparison = TBaseHelper.compareTo(this.cfName, typedOther.cfName);
if (lastComparison != 0) {
return lastComparison;
}
@@ -22253,7 +22274,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetStart_token()) { lastComparison = TBaseHelper.compareTo(this.start_token, typedOther.start_token);
+ if (isSetStart_token()) {
+ lastComparison = TBaseHelper.compareTo(this.start_token, typedOther.start_token);
if (lastComparison != 0) {
return lastComparison;
}
@@ -22262,7 +22284,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetEnd_token()) { lastComparison = TBaseHelper.compareTo(this.end_token, typedOther.end_token);
+ if (isSetEnd_token()) {
+ lastComparison = TBaseHelper.compareTo(this.end_token, typedOther.end_token);
if (lastComparison != 0) {
return lastComparison;
}
@@ -22271,7 +22294,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKeys_per_split()) { lastComparison = TBaseHelper.compareTo(this.keys_per_split, typedOther.keys_per_split);
+ if (isSetKeys_per_split()) {
+ lastComparison = TBaseHelper.compareTo(this.keys_per_split, typedOther.keys_per_split);
if (lastComparison != 0) {
return lastComparison;
}
@@ -22279,6 +22303,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -22514,9 +22542,9 @@ public class Cassandra {
return new describe_splits_result(this);
}
- @Deprecated
- public describe_splits_result clone() {
- return new describe_splits_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
}
public int getSuccessSize() {
@@ -22571,10 +22599,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -22584,12 +22608,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -22597,10 +22621,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -22650,7 +22670,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -22658,6 +22679,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -22836,9 +22861,9 @@ public class Cassandra {
return new system_add_column_family_args(this);
}
- @Deprecated
- public system_add_column_family_args clone() {
- return new system_add_column_family_args(this);
+ @Override
+ public void clear() {
+ this.cf_def = null;
}
public CfDef getCf_def() {
@@ -22878,10 +22903,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case CF_DEF:
@@ -22891,12 +22912,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case CF_DEF:
return isSetCf_def();
@@ -22904,10 +22925,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -22957,7 +22974,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetCf_def()) { lastComparison = TBaseHelper.compareTo(this.cf_def, typedOther.cf_def);
+ if (isSetCf_def()) {
+ lastComparison = TBaseHelper.compareTo(this.cf_def, typedOther.cf_def);
if (lastComparison != 0) {
return lastComparison;
}
@@ -22965,6 +22983,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -23143,9 +23165,10 @@ public class Cassandra {
return new system_add_column_family_result(this);
}
- @Deprecated
- public system_add_column_family_result clone() {
- return new system_add_column_family_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
}
public String getSuccess() {
@@ -23217,10 +23240,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -23233,12 +23252,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -23248,10 +23267,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -23315,7 +23330,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -23324,7 +23340,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -23332,6 +23349,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -23513,9 +23534,9 @@ public class Cassandra {
return new system_drop_column_family_args(this);
}
- @Deprecated
- public system_drop_column_family_args clone() {
- return new system_drop_column_family_args(this);
+ @Override
+ public void clear() {
+ this.column_family = null;
}
public String getColumn_family() {
@@ -23555,10 +23576,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case COLUMN_FAMILY:
@@ -23568,12 +23585,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case COLUMN_FAMILY:
return isSetColumn_family();
@@ -23581,10 +23598,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -23634,7 +23647,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_family()) { lastComparison = TBaseHelper.compareTo(this.column_family, typedOther.column_family);
+ if (isSetColumn_family()) {
+ lastComparison = TBaseHelper.compareTo(this.column_family, typedOther.column_family);
if (lastComparison != 0) {
return lastComparison;
}
@@ -23642,6 +23656,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -23819,9 +23837,10 @@ public class Cassandra {
return new system_drop_column_family_result(this);
}
- @Deprecated
- public system_drop_column_family_result clone() {
- return new system_drop_column_family_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
}
public String getSuccess() {
@@ -23893,10 +23912,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -23909,12 +23924,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -23924,10 +23939,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -23991,7 +24002,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -24000,7 +24012,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -24008,6 +24021,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -24189,9 +24206,9 @@ public class Cassandra {
return new system_add_keyspace_args(this);
}
- @Deprecated
- public system_add_keyspace_args clone() {
- return new system_add_keyspace_args(this);
+ @Override
+ public void clear() {
+ this.ks_def = null;
}
public KsDef getKs_def() {
@@ -24231,10 +24248,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KS_DEF:
@@ -24244,12 +24257,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KS_DEF:
return isSetKs_def();
@@ -24257,10 +24270,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -24310,7 +24319,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKs_def()) { lastComparison = TBaseHelper.compareTo(this.ks_def, typedOther.ks_def);
+ if (isSetKs_def()) {
+ lastComparison = TBaseHelper.compareTo(this.ks_def, typedOther.ks_def);
if (lastComparison != 0) {
return lastComparison;
}
@@ -24318,6 +24328,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -24496,9 +24510,10 @@ public class Cassandra {
return new system_add_keyspace_result(this);
}
- @Deprecated
- public system_add_keyspace_result clone() {
- return new system_add_keyspace_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
}
public String getSuccess() {
@@ -24570,10 +24585,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -24586,12 +24597,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -24601,10 +24612,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -24668,7 +24675,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -24677,7 +24685,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -24685,6 +24694,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -24866,9 +24879,9 @@ public class Cassandra {
return new system_drop_keyspace_args(this);
}
- @Deprecated
- public system_drop_keyspace_args clone() {
- return new system_drop_keyspace_args(this);
+ @Override
+ public void clear() {
+ this.keyspace = null;
}
public String getKeyspace() {
@@ -24908,10 +24921,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEYSPACE:
@@ -24921,12 +24930,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEYSPACE:
return isSetKeyspace();
@@ -24934,10 +24943,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -24987,7 +24992,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKeyspace()) { lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
+ if (isSetKeyspace()) {
+ lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
if (lastComparison != 0) {
return lastComparison;
}
@@ -24995,6 +25001,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -25172,9 +25182,10 @@ public class Cassandra {
return new system_drop_keyspace_result(this);
}
- @Deprecated
- public system_drop_keyspace_result clone() {
- return new system_drop_keyspace_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
}
public String getSuccess() {
@@ -25246,10 +25257,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -25262,12 +25269,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -25277,10 +25284,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -25344,7 +25347,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -25353,7 +25357,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -25361,6 +25366,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -25542,9 +25551,9 @@ public class Cassandra {
return new system_update_keyspace_args(this);
}
- @Deprecated
- public system_update_keyspace_args clone() {
- return new system_update_keyspace_args(this);
+ @Override
+ public void clear() {
+ this.ks_def = null;
}
public KsDef getKs_def() {
@@ -25584,10 +25593,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KS_DEF:
@@ -25597,12 +25602,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KS_DEF:
return isSetKs_def();
@@ -25610,10 +25615,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -25663,7 +25664,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKs_def()) { lastComparison = TBaseHelper.compareTo(this.ks_def, typedOther.ks_def);
+ if (isSetKs_def()) {
+ lastComparison = TBaseHelper.compareTo(this.ks_def, typedOther.ks_def);
if (lastComparison != 0) {
return lastComparison;
}
@@ -25671,6 +25673,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -25849,9 +25855,10 @@ public class Cassandra {
return new system_update_keyspace_result(this);
}
- @Deprecated
- public system_update_keyspace_result clone() {
- return new system_update_keyspace_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
}
public String getSuccess() {
@@ -25923,10 +25930,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -25939,12 +25942,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -25954,10 +25957,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -26021,7 +26020,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -26030,7 +26030,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -26038,6 +26039,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -26219,9 +26224,9 @@ public class Cassandra {
return new system_update_column_family_args(this);
}
- @Deprecated
- public system_update_column_family_args clone() {
- return new system_update_column_family_args(this);
+ @Override
+ public void clear() {
+ this.cf_def = null;
}
public CfDef getCf_def() {
@@ -26261,10 +26266,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case CF_DEF:
@@ -26274,12 +26275,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case CF_DEF:
return isSetCf_def();
@@ -26287,10 +26288,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -26340,7 +26337,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetCf_def()) { lastComparison = TBaseHelper.compareTo(this.cf_def, typedOther.cf_def);
+ if (isSetCf_def()) {
+ lastComparison = TBaseHelper.compareTo(this.cf_def, typedOther.cf_def);
if (lastComparison != 0) {
return lastComparison;
}
@@ -26348,6 +26346,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -26526,9 +26528,10 @@ public class Cassandra {
return new system_update_column_family_result(this);
}
- @Deprecated
- public system_update_column_family_result clone() {
- return new system_update_column_family_result(this);
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
}
public String getSuccess() {
@@ -26600,10 +26603,6 @@ public class Cassandra {
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
@@ -26616,12 +26615,12 @@ public class Cassandra {
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case SUCCESS:
return isSetSuccess();
@@ -26631,10 +26630,6 @@ public class Cassandra {
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -26698,7 +26693,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetSuccess()) { lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
+ if (isSetSuccess()) {
+ lastComparison = TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
@@ -26707,7 +26703,8 @@ public class Cassandra {
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetIre()) { lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
+ if (isSetIre()) {
+ lastComparison = TBaseHelper.compareTo(this.ire, typedOther.ire);
if (lastComparison != 0) {
return lastComparison;
}
@@ -26715,6 +26712,10 @@ public class Cassandra {
return 0;
}
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
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 8fc525eb4c..26a114ee33 100644
--- a/interface/thrift/gen-java/org/apache/cassandra/thrift/CfDef.java
+++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/CfDef.java
@@ -37,6 +37,7 @@ 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;
@@ -355,9 +356,44 @@ public class CfDef implements TBase, java.io.Serializable,
return new CfDef(this);
}
- @Deprecated
- public CfDef clone() {
- return new CfDef(this);
+ @Override
+ public void clear() {
+ this.keyspace = null;
+ this.name = null;
+ this.column_type = "Standard";
+
+ this.comparator_type = "BytesType";
+
+ this.subcomparator_type = null;
+ this.comment = null;
+ this.row_cache_size = (double)0;
+
+ this.preload_row_cache = false;
+
+ this.key_cache_size = (double)200000;
+
+ this.read_repair_chance = 1;
+
+ this.column_metadata = null;
+ setGc_grace_secondsIsSet(false);
+ this.gc_grace_seconds = 0;
+ this.default_validation_class = null;
+ setIdIsSet(false);
+ this.id = 0;
+ setMin_compaction_thresholdIsSet(false);
+ this.min_compaction_threshold = 0;
+ setMax_compaction_thresholdIsSet(false);
+ this.max_compaction_threshold = 0;
+ setRow_cache_save_period_in_secondsIsSet(false);
+ this.row_cache_save_period_in_seconds = 0;
+ setKey_cache_save_period_in_secondsIsSet(false);
+ this.key_cache_save_period_in_seconds = 0;
+ setMemtable_flush_after_minsIsSet(false);
+ this.memtable_flush_after_mins = 0;
+ setMemtable_throughput_in_mbIsSet(false);
+ this.memtable_throughput_in_mb = 0;
+ setMemtable_operations_in_millionsIsSet(false);
+ this.memtable_operations_in_millions = 0.0;
}
public String getKeyspace() {
@@ -1039,10 +1075,6 @@ public class CfDef implements TBase, java.io.Serializable,
}
}
- public void setFieldValue(int fieldID, Object value) {
- setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
- }
-
public Object getFieldValue(_Fields field) {
switch (field) {
case KEYSPACE:
@@ -1112,12 +1144,12 @@ public class CfDef implements TBase, java.io.Serializable,
throw new IllegalStateException();
}
- public Object getFieldValue(int fieldId) {
- return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
- }
-
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
switch (field) {
case KEYSPACE:
return isSetKeyspace();
@@ -1165,10 +1197,6 @@ public class CfDef implements TBase, java.io.Serializable,
throw new IllegalStateException();
}
- public boolean isSet(int fieldID) {
- return isSet(_Fields.findByThriftIdOrThrow(fieldID));
- }
-
@Override
public boolean equals(Object that) {
if (that == null)
@@ -1498,7 +1526,8 @@ public class CfDef implements TBase, java.io.Serializable,
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetKeyspace()) { lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
+ if (isSetKeyspace()) {
+ lastComparison = TBaseHelper.compareTo(this.keyspace, typedOther.keyspace);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1507,7 +1536,8 @@ public class CfDef implements TBase, java.io.Serializable,
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetName()) { lastComparison = TBaseHelper.compareTo(this.name, typedOther.name);
+ if (isSetName()) {
+ lastComparison = TBaseHelper.compareTo(this.name, typedOther.name);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1516,7 +1546,8 @@ public class CfDef implements TBase, java.io.Serializable,
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn_type()) { lastComparison = TBaseHelper.compareTo(this.column_type, typedOther.column_type);
+ if (isSetColumn_type()) {
+ lastComparison = TBaseHelper.compareTo(this.column_type, typedOther.column_type);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1525,7 +1556,8 @@ public class CfDef implements TBase, java.io.Serializable,
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetComparator_type()) { lastComparison = TBaseHelper.compareTo(this.comparator_type, typedOther.comparator_type);
+ if (isSetComparator_type()) {
+ lastComparison = TBaseHelper.compareTo(this.comparator_type, typedOther.comparator_type);
if (lastComparison != 0) {
return lastComparison;
}
@@ -1534,7 +1566,8 @@ public class CfDef implements TBase