You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ee...@apache.org on 2012/01/18 17:55:27 UTC
[2/2] fix merge error; recompile Cassandra.java with thrift 0.7.0
http://git-wip-us.apache.org/repos/asf/cassandra/blob/bce44ff3/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java
----------------------------------------------------------------------
diff --git a/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java b/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java
index c0821a9..7def434 100644
--- a/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java
+++ b/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java
@@ -1,9 +1,30 @@
/**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package org.apache.cassandra.thrift;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
@@ -21,19 +42,13 @@ import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
-
public class Cassandra {
public interface Iface {
- public void login(AuthenticationRequest auth_request) throws AuthenticationException, AuthorizationException, TException;
+ public void login(AuthenticationRequest auth_request) throws AuthenticationException, AuthorizationException, org.apache.thrift.TException;
- public void set_keyspace(String keyspace) throws InvalidRequestException, TException;
+ public void set_keyspace(String keyspace) throws InvalidRequestException, org.apache.thrift.TException;
/**
* Get the Column or SuperColumn at the given column_path. If no value is present, NotFoundException is thrown. (This is
@@ -43,7 +58,7 @@ public class Cassandra {
* @param column_path
* @param consistency_level
*/
- public ColumnOrSuperColumn get(ByteBuffer 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, org.apache.thrift.TException;
/**
* Get the group of columns contained by column_parent (either a ColumnFamily name or a ColumnFamily/SuperColumn name
@@ -54,7 +69,7 @@ public class Cassandra {
* @param predicate
* @param consistency_level
*/
- public List<ColumnOrSuperColumn> get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public List<ColumnOrSuperColumn> get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException;
/**
* returns the number of columns matching <code>predicate</code> for a particular <code>key</code>,
@@ -65,7 +80,7 @@ public class Cassandra {
* @param predicate
* @param consistency_level
*/
- public int get_count(ByteBuffer 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, org.apache.thrift.TException;
/**
* Performs a get_slice for column_parent and predicate for the given keys in parallel.
@@ -75,7 +90,7 @@ public class Cassandra {
* @param predicate
* @param consistency_level
*/
- public Map<ByteBuffer,List<ColumnOrSuperColumn>> multiget_slice(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public Map<ByteBuffer,List<ColumnOrSuperColumn>> multiget_slice(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException;
/**
* Perform a get_count in parallel on the given list<binary> keys. The return value maps keys to the count found.
@@ -85,7 +100,7 @@ public class Cassandra {
* @param predicate
* @param consistency_level
*/
- public Map<ByteBuffer,Integer> multiget_count(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public Map<ByteBuffer,Integer> multiget_count(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException;
/**
* returns a subset of columns for a contiguous range of keys.
@@ -95,7 +110,7 @@ public class Cassandra {
* @param range
* @param consistency_level
*/
- public List<KeySlice> get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public List<KeySlice> get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException;
/**
* Returns the subset of columns specified in SlicePredicate for the rows matching the IndexClause
@@ -106,7 +121,7 @@ public class Cassandra {
* @param column_predicate
* @param consistency_level
*/
- public List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException;
/**
* Insert a Column at the given column_parent.column_family and optional column_parent.super_column.
@@ -116,7 +131,7 @@ public class Cassandra {
* @param column
* @param consistency_level
*/
- public void insert(ByteBuffer 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, org.apache.thrift.TException;
/**
* Increment or decrement a counter.
@@ -126,7 +141,7 @@ public class Cassandra {
* @param column
* @param consistency_level
*/
- public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException;
/**
* Remove data from the row specified by key at the granularity specified by column_path, and the given timestamp. Note
@@ -138,7 +153,7 @@ public class Cassandra {
* @param timestamp
* @param consistency_level
*/
- public void remove(ByteBuffer 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, org.apache.thrift.TException;
/**
* Remove a counter at the specified location.
@@ -149,7 +164,7 @@ public class Cassandra {
* @param path
* @param consistency_level
*/
- public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException;
/**
* Mutate many columns or super columns for many row keys. See also: Mutation.
@@ -160,7 +175,7 @@ public class Cassandra {
* @param mutation_map
* @param consistency_level
*/
- public void batch_mutate(Map<ByteBuffer,Map<String,List<Mutation>>> mutation_map, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public void batch_mutate(Map<ByteBuffer,Map<String,List<Mutation>>> mutation_map, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException;
/**
* Truncate will mark and entire column family as deleted.
@@ -172,29 +187,29 @@ public class Cassandra {
*
* @param cfname
*/
- public void truncate(String cfname) throws InvalidRequestException, UnavailableException, TimedOutException, TException;
+ public void truncate(String cfname) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException;
/**
* for each schema version present in the cluster, returns a list of nodes at that version.
* hosts that do not respond will be under the key DatabaseDescriptor.INITIAL_VERSION.
* the cluster is all on the same version if the size of the map is 1.
*/
- public Map<String,List<String>> describe_schema_versions() throws InvalidRequestException, TException;
+ public Map<String,List<String>> describe_schema_versions() throws InvalidRequestException, org.apache.thrift.TException;
/**
* list the defined keyspaces in this cluster
*/
- public List<KsDef> describe_keyspaces() throws InvalidRequestException, TException;
+ public List<KsDef> describe_keyspaces() throws InvalidRequestException, org.apache.thrift.TException;
/**
* get the cluster name
*/
- public String describe_cluster_name() throws TException;
+ public String describe_cluster_name() throws org.apache.thrift.TException;
/**
* get the thrift api version
*/
- public String describe_version() throws TException;
+ public String describe_version() throws org.apache.thrift.TException;
/**
* get the token ring: a map of ranges to host addresses,
@@ -208,24 +223,24 @@ public class Cassandra {
*
* @param keyspace
*/
- public List<TokenRange> describe_ring(String keyspace) throws InvalidRequestException, TException;
+ public List<TokenRange> describe_ring(String keyspace) throws InvalidRequestException, org.apache.thrift.TException;
/**
* returns the partitioner used by this cluster
*/
- public String describe_partitioner() throws TException;
+ public String describe_partitioner() throws org.apache.thrift.TException;
/**
* returns the snitch used by this cluster
*/
- public String describe_snitch() throws TException;
+ public String describe_snitch() throws org.apache.thrift.TException;
/**
* describe specified keyspace
*
* @param keyspace
*/
- public KsDef describe_keyspace(String keyspace) throws NotFoundException, InvalidRequestException, TException;
+ public KsDef describe_keyspace(String keyspace) throws NotFoundException, InvalidRequestException, org.apache.thrift.TException;
/**
* experimental API for hadoop/parallel query support.
@@ -239,49 +254,49 @@ public class Cassandra {
* @param end_token
* @param keys_per_split
*/
- public List<String> describe_splits(String cfName, String start_token, String end_token, int keys_per_split) throws InvalidRequestException, TException;
+ public List<String> describe_splits(String cfName, String start_token, String end_token, int keys_per_split) throws InvalidRequestException, org.apache.thrift.TException;
/**
* adds a column family. returns the new schema id.
*
* @param cf_def
*/
- public String system_add_column_family(CfDef cf_def) throws InvalidRequestException, SchemaDisagreementException, TException;
+ public String system_add_column_family(CfDef cf_def) throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException;
/**
* drops a column family. returns the new schema id.
*
* @param column_family
*/
- public String system_drop_column_family(String column_family) throws InvalidRequestException, SchemaDisagreementException, TException;
+ public String system_drop_column_family(String column_family) throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException;
/**
* adds a keyspace and any column families that are part of it. returns the new schema id.
*
* @param ks_def
*/
- public String system_add_keyspace(KsDef ks_def) throws InvalidRequestException, SchemaDisagreementException, TException;
+ public String system_add_keyspace(KsDef ks_def) throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException;
/**
* drops a keyspace and any column families that are part of it. returns the new schema id.
*
* @param keyspace
*/
- public String system_drop_keyspace(String keyspace) throws InvalidRequestException, SchemaDisagreementException, TException;
+ public String system_drop_keyspace(String keyspace) throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException;
/**
* updates properties of a keyspace. returns the new schema id.
*
* @param ks_def
*/
- public String system_update_keyspace(KsDef ks_def) throws InvalidRequestException, SchemaDisagreementException, TException;
+ public String system_update_keyspace(KsDef ks_def) throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException;
/**
* updates properties of a column family. returns the new schema id.
*
* @param cf_def
*/
- public String system_update_column_family(CfDef cf_def) throws InvalidRequestException, SchemaDisagreementException, TException;
+ public String system_update_column_family(CfDef cf_def) throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException;
/**
* Executes a CQL (Cassandra Query Language) statement and returns a
@@ -290,7 +305,7 @@ public class Cassandra {
* @param query
* @param compression
*/
- public CqlResult execute_cql_query(ByteBuffer query, Compression compression) throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, TException;
+ public CqlResult execute_cql_query(ByteBuffer query, Compression compression) throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, org.apache.thrift.TException;
/**
* Prepare a CQL (Cassandra Query Language) statement by compiling and returning
@@ -301,7 +316,7 @@ public class Cassandra {
* @param query
* @param compression
*/
- public CqlPreparedResult prepare_cql_query(ByteBuffer query, Compression compression) throws InvalidRequestException, TException;
+ public CqlPreparedResult prepare_cql_query(ByteBuffer query, Compression compression) throws InvalidRequestException, org.apache.thrift.TException;
/**
* Executes a prepared CQL (Cassandra Query Language) statement by passing an id token and a list of variables
@@ -310,147 +325,117 @@ public class Cassandra {
* @param itemId
* @param values
*/
- public CqlResult execute_prepared_cql_query(int itemId, List<ByteBuffer> values) throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, TException;
+ public CqlResult execute_prepared_cql_query(int itemId, List<ByteBuffer> values) throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, org.apache.thrift.TException;
}
public interface AsyncIface {
- public void login(AuthenticationRequest auth_request, AsyncMethodCallback<AsyncClient.login_call> resultHandler) throws TException;
+ public void login(AuthenticationRequest auth_request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.login_call> resultHandler) throws org.apache.thrift.TException;
- public void set_keyspace(String keyspace, AsyncMethodCallback<AsyncClient.set_keyspace_call> resultHandler) throws TException;
+ public void set_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.set_keyspace_call> resultHandler) throws org.apache.thrift.TException;
- public void get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.get_call> resultHandler) throws TException;
+ public void get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_call> resultHandler) throws org.apache.thrift.TException;
- public void get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.get_slice_call> resultHandler) throws TException;
+ public void get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_slice_call> resultHandler) throws org.apache.thrift.TException;
- public void get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.get_count_call> resultHandler) throws TException;
+ public void get_count(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_count_call> resultHandler) throws org.apache.thrift.TException;
- public void multiget_slice(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.multiget_slice_call> resultHandler) throws TException;
+ public void multiget_slice(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.multiget_slice_call> resultHandler) throws org.apache.thrift.TException;
- public void multiget_count(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.multiget_count_call> resultHandler) throws TException;
+ public void multiget_count(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.multiget_count_call> resultHandler) throws org.apache.thrift.TException;
- public void get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.get_range_slices_call> resultHandler) throws TException;
+ public void get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_range_slices_call> resultHandler) throws org.apache.thrift.TException;
- public void get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.get_indexed_slices_call> resultHandler) throws TException;
+ public void get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_indexed_slices_call> resultHandler) throws org.apache.thrift.TException;
- public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.insert_call> resultHandler) throws TException;
+ public void insert(ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insert_call> resultHandler) throws org.apache.thrift.TException;
- public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.add_call> resultHandler) throws TException;
+ public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.add_call> resultHandler) throws org.apache.thrift.TException;
- public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.remove_call> resultHandler) throws TException;
+ public void remove(ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.remove_call> resultHandler) throws org.apache.thrift.TException;
- public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.remove_counter_call> resultHandler) throws TException;
+ public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.remove_counter_call> resultHandler) throws org.apache.thrift.TException;
- public void batch_mutate(Map<ByteBuffer,Map<String,List<Mutation>>> mutation_map, ConsistencyLevel consistency_level, AsyncMethodCallback<AsyncClient.batch_mutate_call> resultHandler) throws TException;
+ public void batch_mutate(Map<ByteBuffer,Map<String,List<Mutation>>> mutation_map, ConsistencyLevel consistency_level, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.batch_mutate_call> resultHandler) throws org.apache.thrift.TException;
- public void truncate(String cfname, AsyncMethodCallback<AsyncClient.truncate_call> resultHandler) throws TException;
+ public void truncate(String cfname, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.truncate_call> resultHandler) throws org.apache.thrift.TException;
- public void describe_schema_versions(AsyncMethodCallback<AsyncClient.describe_schema_versions_call> resultHandler) throws TException;
+ public void describe_schema_versions(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.describe_schema_versions_call> resultHandler) throws org.apache.thrift.TException;
- public void describe_keyspaces(AsyncMethodCallback<AsyncClient.describe_keyspaces_call> resultHandler) throws TException;
+ public void describe_keyspaces(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.describe_keyspaces_call> resultHandler) throws org.apache.thrift.TException;
- public void describe_cluster_name(AsyncMethodCallback<AsyncClient.describe_cluster_name_call> resultHandler) throws TException;
+ public void describe_cluster_name(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.describe_cluster_name_call> resultHandler) throws org.apache.thrift.TException;
- public void describe_version(AsyncMethodCallback<AsyncClient.describe_version_call> resultHandler) throws TException;
+ public void describe_version(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.describe_version_call> resultHandler) throws org.apache.thrift.TException;
- public void describe_ring(String keyspace, AsyncMethodCallback<AsyncClient.describe_ring_call> resultHandler) throws TException;
+ public void describe_ring(String keyspace, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.describe_ring_call> resultHandler) throws org.apache.thrift.TException;
- public void describe_partitioner(AsyncMethodCallback<AsyncClient.describe_partitioner_call> resultHandler) throws TException;
+ public void describe_partitioner(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.describe_partitioner_call> resultHandler) throws org.apache.thrift.TException;
- public void describe_snitch(AsyncMethodCallback<AsyncClient.describe_snitch_call> resultHandler) throws TException;
+ public void describe_snitch(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.describe_snitch_call> resultHandler) throws org.apache.thrift.TException;
- public void describe_keyspace(String keyspace, AsyncMethodCallback<AsyncClient.describe_keyspace_call> resultHandler) throws TException;
+ public void describe_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.describe_keyspace_call> resultHandler) throws org.apache.thrift.TException;
- public void describe_splits(String cfName, String start_token, String end_token, int keys_per_split, AsyncMethodCallback<AsyncClient.describe_splits_call> resultHandler) throws TException;
+ public void describe_splits(String cfName, String start_token, String end_token, int keys_per_split, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.describe_splits_call> resultHandler) throws org.apache.thrift.TException;
- public void system_add_column_family(CfDef cf_def, AsyncMethodCallback<AsyncClient.system_add_column_family_call> resultHandler) throws TException;
+ public void system_add_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.system_add_column_family_call> resultHandler) throws org.apache.thrift.TException;
- public void system_drop_column_family(String column_family, AsyncMethodCallback<AsyncClient.system_drop_column_family_call> resultHandler) throws TException;
+ public void system_drop_column_family(String column_family, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.system_drop_column_family_call> resultHandler) throws org.apache.thrift.TException;
- public void system_add_keyspace(KsDef ks_def, AsyncMethodCallback<AsyncClient.system_add_keyspace_call> resultHandler) throws TException;
+ public void system_add_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.system_add_keyspace_call> resultHandler) throws org.apache.thrift.TException;
- public void system_drop_keyspace(String keyspace, AsyncMethodCallback<AsyncClient.system_drop_keyspace_call> resultHandler) throws TException;
+ public void system_drop_keyspace(String keyspace, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.system_drop_keyspace_call> resultHandler) throws org.apache.thrift.TException;
- public void system_update_keyspace(KsDef ks_def, AsyncMethodCallback<AsyncClient.system_update_keyspace_call> resultHandler) throws TException;
+ public void system_update_keyspace(KsDef ks_def, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.system_update_keyspace_call> resultHandler) throws org.apache.thrift.TException;
- public void system_update_column_family(CfDef cf_def, AsyncMethodCallback<AsyncClient.system_update_column_family_call> resultHandler) throws TException;
+ public void system_update_column_family(CfDef cf_def, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.system_update_column_family_call> resultHandler) throws org.apache.thrift.TException;
- public void execute_cql_query(ByteBuffer query, Compression compression, AsyncMethodCallback<AsyncClient.execute_cql_query_call> resultHandler) throws TException;
+ public void execute_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.execute_cql_query_call> resultHandler) throws org.apache.thrift.TException;
- public void prepare_cql_query(ByteBuffer query, Compression compression, AsyncMethodCallback<AsyncClient.prepare_cql_query_call> resultHandler) throws TException;
+ public void prepare_cql_query(ByteBuffer query, Compression compression, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.prepare_cql_query_call> resultHandler) throws org.apache.thrift.TException;
- public void execute_prepared_cql_query(int itemId, List<ByteBuffer> values, AsyncMethodCallback<AsyncClient.execute_prepared_cql_query_call> resultHandler) throws TException;
+ public void execute_prepared_cql_query(int itemId, List<ByteBuffer> values, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.execute_prepared_cql_query_call> resultHandler) throws org.apache.thrift.TException;
}
- public static class Client implements TServiceClient, Iface {
- public static class Factory implements TServiceClientFactory<Client> {
+ public static class Client extends org.apache.thrift.TServiceClient implements Iface {
+ public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
public Factory() {}
- public Client getClient(TProtocol prot) {
+ public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
- public Client getClient(TProtocol iprot, TProtocol oprot) {
+ public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
- public Client(TProtocol prot)
- {
- this(prot, prot);
- }
-
- public Client(TProtocol iprot, TProtocol oprot)
- {
- iprot_ = iprot;
- oprot_ = oprot;
- }
-
- protected TProtocol iprot_;
- protected TProtocol oprot_;
-
- protected int seqid_;
-
- public TProtocol getInputProtocol()
+ public Client(org.apache.thrift.protocol.TProtocol prot)
{
- return this.iprot_;
+ super(prot, prot);
}
- public TProtocol getOutputProtocol()
- {
- return this.oprot_;
+ public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
+ super(iprot, oprot);
}
- public void login(AuthenticationRequest auth_request) throws AuthenticationException, AuthorizationException, TException
+ public void login(AuthenticationRequest auth_request) throws AuthenticationException, AuthorizationException, org.apache.thrift.TException
{
send_login(auth_request);
recv_login();
}
- public void send_login(AuthenticationRequest auth_request) throws TException
+ public void send_login(AuthenticationRequest auth_request) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("login", TMessageType.CALL, ++seqid_));
login_args args = new login_args();
args.setAuth_request(auth_request);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("login", args);
}
- public void recv_login() throws AuthenticationException, AuthorizationException, TException
+ public void recv_login() throws AuthenticationException, AuthorizationException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "login failed: out of sequence response");
- }
login_result result = new login_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "login");
if (result.authnx != null) {
throw result.authnx;
}
@@ -460,74 +445,48 @@ public class Cassandra {
return;
}
- public void set_keyspace(String keyspace) throws InvalidRequestException, TException
+ public void set_keyspace(String keyspace) throws InvalidRequestException, org.apache.thrift.TException
{
send_set_keyspace(keyspace);
recv_set_keyspace();
}
- public void send_set_keyspace(String keyspace) throws TException
+ public void send_set_keyspace(String keyspace) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("set_keyspace", TMessageType.CALL, ++seqid_));
set_keyspace_args args = new set_keyspace_args();
args.setKeyspace(keyspace);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("set_keyspace", args);
}
- public void recv_set_keyspace() throws InvalidRequestException, TException
+ public void recv_set_keyspace() throws InvalidRequestException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "set_keyspace failed: out of sequence response");
- }
set_keyspace_result result = new set_keyspace_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "set_keyspace");
if (result.ire != null) {
throw result.ire;
}
return;
}
- public ColumnOrSuperColumn get(ByteBuffer 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, org.apache.thrift.TException
{
send_get(key, column_path, consistency_level);
return recv_get();
}
- public void send_get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level) throws TException
+ public void send_get(ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("get", TMessageType.CALL, ++seqid_));
get_args args = new get_args();
args.setKey(key);
args.setColumn_path(column_path);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("get", args);
}
- public ColumnOrSuperColumn recv_get() throws InvalidRequestException, NotFoundException, UnavailableException, TimedOutException, TException
+ public ColumnOrSuperColumn recv_get() throws InvalidRequestException, NotFoundException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get failed: out of sequence response");
- }
get_result result = new get_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "get");
if (result.isSetSuccess()) {
return result.success;
}
@@ -543,42 +502,29 @@ public class Cassandra {
if (result.te != null) {
throw result.te;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get failed: unknown result");
}
- public List<ColumnOrSuperColumn> get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public List<ColumnOrSuperColumn> get_slice(ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
send_get_slice(key, column_parent, predicate, consistency_level);
return recv_get_slice();
}
- public void send_get_slice(ByteBuffer 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 org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("get_slice", TMessageType.CALL, ++seqid_));
get_slice_args args = new get_slice_args();
args.setKey(key);
args.setColumn_parent(column_parent);
args.setPredicate(predicate);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("get_slice", args);
}
- public List<ColumnOrSuperColumn> recv_get_slice() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public List<ColumnOrSuperColumn> recv_get_slice() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_slice failed: out of sequence response");
- }
get_slice_result result = new get_slice_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "get_slice");
if (result.isSetSuccess()) {
return result.success;
}
@@ -591,42 +537,29 @@ public class Cassandra {
if (result.te != null) {
throw result.te;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_slice failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_slice failed: unknown result");
}
- public int get_count(ByteBuffer 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, org.apache.thrift.TException
{
send_get_count(key, column_parent, predicate, consistency_level);
return recv_get_count();
}
- public void send_get_count(ByteBuffer 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 org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("get_count", TMessageType.CALL, ++seqid_));
get_count_args args = new get_count_args();
args.setKey(key);
args.setColumn_parent(column_parent);
args.setPredicate(predicate);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("get_count", args);
}
- public int recv_get_count() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public int recv_get_count() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_count failed: out of sequence response");
- }
get_count_result result = new get_count_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "get_count");
if (result.isSetSuccess()) {
return result.success;
}
@@ -639,42 +572,29 @@ public class Cassandra {
if (result.te != null) {
throw result.te;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_count failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_count failed: unknown result");
}
- public Map<ByteBuffer,List<ColumnOrSuperColumn>> multiget_slice(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public Map<ByteBuffer,List<ColumnOrSuperColumn>> multiget_slice(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
send_multiget_slice(keys, column_parent, predicate, consistency_level);
return recv_multiget_slice();
}
- public void send_multiget_slice(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
+ public void send_multiget_slice(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("multiget_slice", TMessageType.CALL, ++seqid_));
multiget_slice_args args = new multiget_slice_args();
args.setKeys(keys);
args.setColumn_parent(column_parent);
args.setPredicate(predicate);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("multiget_slice", args);
}
- public Map<ByteBuffer,List<ColumnOrSuperColumn>> recv_multiget_slice() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public Map<ByteBuffer,List<ColumnOrSuperColumn>> recv_multiget_slice() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "multiget_slice failed: out of sequence response");
- }
multiget_slice_result result = new multiget_slice_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "multiget_slice");
if (result.isSetSuccess()) {
return result.success;
}
@@ -687,42 +607,29 @@ public class Cassandra {
if (result.te != null) {
throw result.te;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "multiget_slice failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "multiget_slice failed: unknown result");
}
- public Map<ByteBuffer,Integer> multiget_count(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public Map<ByteBuffer,Integer> multiget_count(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
send_multiget_count(keys, column_parent, predicate, consistency_level);
return recv_multiget_count();
}
- public void send_multiget_count(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws TException
+ public void send_multiget_count(List<ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("multiget_count", TMessageType.CALL, ++seqid_));
multiget_count_args args = new multiget_count_args();
args.setKeys(keys);
args.setColumn_parent(column_parent);
args.setPredicate(predicate);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("multiget_count", args);
}
- public Map<ByteBuffer,Integer> recv_multiget_count() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public Map<ByteBuffer,Integer> recv_multiget_count() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "multiget_count failed: out of sequence response");
- }
multiget_count_result result = new multiget_count_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "multiget_count");
if (result.isSetSuccess()) {
return result.success;
}
@@ -735,42 +642,29 @@ public class Cassandra {
if (result.te != null) {
throw result.te;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "multiget_count failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "multiget_count failed: unknown result");
}
- public List<KeySlice> get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public List<KeySlice> get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
send_get_range_slices(column_parent, predicate, range, consistency_level);
return recv_get_range_slices();
}
- public void send_get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level) throws TException
+ public void send_get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("get_range_slices", TMessageType.CALL, ++seqid_));
get_range_slices_args args = new get_range_slices_args();
args.setColumn_parent(column_parent);
args.setPredicate(predicate);
args.setRange(range);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("get_range_slices", args);
}
- public List<KeySlice> recv_get_range_slices() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public List<KeySlice> recv_get_range_slices() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_range_slices failed: out of sequence response");
- }
get_range_slices_result result = new get_range_slices_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "get_range_slices");
if (result.isSetSuccess()) {
return result.success;
}
@@ -783,42 +677,29 @@ public class Cassandra {
if (result.te != null) {
throw result.te;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_range_slices failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_range_slices failed: unknown result");
}
- public List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
send_get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level);
return recv_get_indexed_slices();
}
- public void send_get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws TException
+ public void send_get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("get_indexed_slices", TMessageType.CALL, ++seqid_));
get_indexed_slices_args args = new get_indexed_slices_args();
args.setColumn_parent(column_parent);
args.setIndex_clause(index_clause);
args.setColumn_predicate(column_predicate);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("get_indexed_slices", args);
}
- public List<KeySlice> recv_get_indexed_slices() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public List<KeySlice> recv_get_indexed_slices() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_indexed_slices failed: out of sequence response");
- }
get_indexed_slices_result result = new get_indexed_slices_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "get_indexed_slices");
if (result.isSetSuccess()) {
return result.success;
}
@@ -831,42 +712,29 @@ public class Cassandra {
if (result.te != null) {
throw result.te;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_indexed_slices failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_indexed_slices failed: unknown result");
}
- public void insert(ByteBuffer 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, org.apache.thrift.TException
{
send_insert(key, column_parent, column, consistency_level);
recv_insert();
}
- public void send_insert(ByteBuffer 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 org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("insert", TMessageType.CALL, ++seqid_));
insert_args args = new insert_args();
args.setKey(key);
args.setColumn_parent(column_parent);
args.setColumn(column);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("insert", args);
}
- public void recv_insert() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void recv_insert() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "insert failed: out of sequence response");
- }
insert_result result = new insert_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "insert");
if (result.ire != null) {
throw result.ire;
}
@@ -879,39 +747,26 @@ public class Cassandra {
return;
}
- public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
send_add(key, column_parent, column, consistency_level);
recv_add();
}
- public void send_add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level) throws TException
+ public void send_add(ByteBuffer key, ColumnParent column_parent, CounterColumn column, ConsistencyLevel consistency_level) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("add", TMessageType.CALL, ++seqid_));
add_args args = new add_args();
args.setKey(key);
args.setColumn_parent(column_parent);
args.setColumn(column);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("add", args);
}
- public void recv_add() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void recv_add() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "add failed: out of sequence response");
- }
add_result result = new add_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "add");
if (result.ire != null) {
throw result.ire;
}
@@ -924,39 +779,26 @@ public class Cassandra {
return;
}
- public void remove(ByteBuffer 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, org.apache.thrift.TException
{
send_remove(key, column_path, timestamp, consistency_level);
recv_remove();
}
- public void send_remove(ByteBuffer 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 org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("remove", TMessageType.CALL, ++seqid_));
remove_args args = new remove_args();
args.setKey(key);
args.setColumn_path(column_path);
args.setTimestamp(timestamp);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("remove", args);
}
- public void recv_remove() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void recv_remove() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "remove failed: out of sequence response");
- }
remove_result result = new remove_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "remove");
if (result.ire != null) {
throw result.ire;
}
@@ -969,38 +811,25 @@ public class Cassandra {
return;
}
- public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
send_remove_counter(key, path, consistency_level);
recv_remove_counter();
}
- public void send_remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level) throws TException
+ public void send_remove_counter(ByteBuffer key, ColumnPath path, ConsistencyLevel consistency_level) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("remove_counter", TMessageType.CALL, ++seqid_));
remove_counter_args args = new remove_counter_args();
args.setKey(key);
args.setPath(path);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("remove_counter", args);
}
- public void recv_remove_counter() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void recv_remove_counter() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "remove_counter failed: out of sequence response");
- }
remove_counter_result result = new remove_counter_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "remove_counter");
if (result.ire != null) {
throw result.ire;
}
@@ -1013,37 +842,24 @@ public class Cassandra {
return;
}
- public void batch_mutate(Map<ByteBuffer,Map<String,List<Mutation>>> mutation_map, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void batch_mutate(Map<ByteBuffer,Map<String,List<Mutation>>> mutation_map, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
send_batch_mutate(mutation_map, consistency_level);
recv_batch_mutate();
}
- public void send_batch_mutate(Map<ByteBuffer,Map<String,List<Mutation>>> mutation_map, ConsistencyLevel consistency_level) throws TException
+ public void send_batch_mutate(Map<ByteBuffer,Map<String,List<Mutation>>> mutation_map, ConsistencyLevel consistency_level) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("batch_mutate", TMessageType.CALL, ++seqid_));
batch_mutate_args args = new batch_mutate_args();
args.setMutation_map(mutation_map);
args.setConsistency_level(consistency_level);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("batch_mutate", args);
}
- public void recv_batch_mutate() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void recv_batch_mutate() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "batch_mutate failed: out of sequence response");
- }
batch_mutate_result result = new batch_mutate_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "batch_mutate");
if (result.ire != null) {
throw result.ire;
}
@@ -1056,36 +872,23 @@ public class Cassandra {
return;
}
- public void truncate(String cfname) throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void truncate(String cfname) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
send_truncate(cfname);
recv_truncate();
}
- public void send_truncate(String cfname) throws TException
+ public void send_truncate(String cfname) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("truncate", TMessageType.CALL, ++seqid_));
truncate_args args = new truncate_args();
args.setCfname(cfname);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("truncate", args);
}
- public void recv_truncate() throws InvalidRequestException, UnavailableException, TimedOutException, TException
+ public void recv_truncate() throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "truncate failed: out of sequence response");
- }
truncate_result result = new truncate_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "truncate");
if (result.ire != null) {
throw result.ire;
}
@@ -1098,291 +901,187 @@ public class Cassandra {
return;
}
- public Map<String,List<String>> describe_schema_versions() throws InvalidRequestException, TException
+ public Map<String,List<String>> describe_schema_versions() throws InvalidRequestException, org.apache.thrift.TException
{
send_describe_schema_versions();
return recv_describe_schema_versions();
}
- public void send_describe_schema_versions() throws TException
+ public void send_describe_schema_versions() throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("describe_schema_versions", TMessageType.CALL, ++seqid_));
describe_schema_versions_args args = new describe_schema_versions_args();
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("describe_schema_versions", args);
}
- public Map<String,List<String>> recv_describe_schema_versions() throws InvalidRequestException, TException
+ public Map<String,List<String>> recv_describe_schema_versions() throws InvalidRequestException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "describe_schema_versions failed: out of sequence response");
- }
describe_schema_versions_result result = new describe_schema_versions_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "describe_schema_versions");
if (result.isSetSuccess()) {
return result.success;
}
if (result.ire != null) {
throw result.ire;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "describe_schema_versions failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe_schema_versions failed: unknown result");
}
- public List<KsDef> describe_keyspaces() throws InvalidRequestException, TException
+ public List<KsDef> describe_keyspaces() throws InvalidRequestException, org.apache.thrift.TException
{
send_describe_keyspaces();
return recv_describe_keyspaces();
}
- public void send_describe_keyspaces() throws TException
+ public void send_describe_keyspaces() throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("describe_keyspaces", TMessageType.CALL, ++seqid_));
describe_keyspaces_args args = new describe_keyspaces_args();
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("describe_keyspaces", args);
}
- public List<KsDef> recv_describe_keyspaces() throws InvalidRequestException, TException
+ public List<KsDef> recv_describe_keyspaces() throws InvalidRequestException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "describe_keyspaces failed: out of sequence response");
- }
describe_keyspaces_result result = new describe_keyspaces_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "describe_keyspaces");
if (result.isSetSuccess()) {
return result.success;
}
if (result.ire != null) {
throw result.ire;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "describe_keyspaces failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe_keyspaces failed: unknown result");
}
- public String describe_cluster_name() throws TException
+ public String describe_cluster_name() throws org.apache.thrift.TException
{
send_describe_cluster_name();
return recv_describe_cluster_name();
}
- public void send_describe_cluster_name() throws TException
+ public void send_describe_cluster_name() throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("describe_cluster_name", TMessageType.CALL, ++seqid_));
describe_cluster_name_args args = new describe_cluster_name_args();
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("describe_cluster_name", args);
}
- public String recv_describe_cluster_name() throws TException
+ public String recv_describe_cluster_name() throws org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "describe_cluster_name failed: out of sequence response");
- }
describe_cluster_name_result result = new describe_cluster_name_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "describe_cluster_name");
if (result.isSetSuccess()) {
return result.success;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "describe_cluster_name failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe_cluster_name failed: unknown result");
}
- public String describe_version() throws TException
+ public String describe_version() throws org.apache.thrift.TException
{
send_describe_version();
return recv_describe_version();
}
- public void send_describe_version() throws TException
+ public void send_describe_version() throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("describe_version", TMessageType.CALL, ++seqid_));
describe_version_args args = new describe_version_args();
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("describe_version", args);
}
- public String recv_describe_version() throws TException
+ public String recv_describe_version() throws org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "describe_version failed: out of sequence response");
- }
describe_version_result result = new describe_version_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "describe_version");
if (result.isSetSuccess()) {
return result.success;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "describe_version failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe_version failed: unknown result");
}
- public List<TokenRange> describe_ring(String keyspace) throws InvalidRequestException, TException
+ public List<TokenRange> describe_ring(String keyspace) throws InvalidRequestException, org.apache.thrift.TException
{
send_describe_ring(keyspace);
return recv_describe_ring();
}
- public void send_describe_ring(String keyspace) throws TException
+ public void send_describe_ring(String keyspace) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("describe_ring", TMessageType.CALL, ++seqid_));
describe_ring_args args = new describe_ring_args();
args.setKeyspace(keyspace);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("describe_ring", args);
}
- public List<TokenRange> recv_describe_ring() throws InvalidRequestException, TException
+ public List<TokenRange> recv_describe_ring() throws InvalidRequestException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "describe_ring failed: out of sequence response");
- }
describe_ring_result result = new describe_ring_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "describe_ring");
if (result.isSetSuccess()) {
return result.success;
}
if (result.ire != null) {
throw result.ire;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "describe_ring failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe_ring failed: unknown result");
}
- public String describe_partitioner() throws TException
+ public String describe_partitioner() throws org.apache.thrift.TException
{
send_describe_partitioner();
return recv_describe_partitioner();
}
- public void send_describe_partitioner() throws TException
+ public void send_describe_partitioner() throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("describe_partitioner", TMessageType.CALL, ++seqid_));
describe_partitioner_args args = new describe_partitioner_args();
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("describe_partitioner", args);
}
- public String recv_describe_partitioner() throws TException
+ public String recv_describe_partitioner() throws org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "describe_partitioner failed: out of sequence response");
- }
describe_partitioner_result result = new describe_partitioner_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "describe_partitioner");
if (result.isSetSuccess()) {
return result.success;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "describe_partitioner failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe_partitioner failed: unknown result");
}
- public String describe_snitch() throws TException
+ public String describe_snitch() throws org.apache.thrift.TException
{
send_describe_snitch();
return recv_describe_snitch();
}
- public void send_describe_snitch() throws TException
+ public void send_describe_snitch() throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("describe_snitch", TMessageType.CALL, ++seqid_));
describe_snitch_args args = new describe_snitch_args();
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("describe_snitch", args);
}
- public String recv_describe_snitch() throws TException
+ public String recv_describe_snitch() throws org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "describe_snitch failed: out of sequence response");
- }
describe_snitch_result result = new describe_snitch_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "describe_snitch");
if (result.isSetSuccess()) {
return result.success;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "describe_snitch failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe_snitch failed: unknown result");
}
- public KsDef describe_keyspace(String keyspace) throws NotFoundException, InvalidRequestException, TException
+ public KsDef describe_keyspace(String keyspace) throws NotFoundException, InvalidRequestException, org.apache.thrift.TException
{
send_describe_keyspace(keyspace);
return recv_describe_keyspace();
}
- public void send_describe_keyspace(String keyspace) throws TException
+ public void send_describe_keyspace(String keyspace) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("describe_keyspace", TMessageType.CALL, ++seqid_));
describe_keyspace_args args = new describe_keyspace_args();
args.setKeyspace(keyspace);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("describe_keyspace", args);
}
- public KsDef recv_describe_keyspace() throws NotFoundException, InvalidRequestException, TException
+ public KsDef recv_describe_keyspace() throws NotFoundException, InvalidRequestException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "describe_keyspace failed: out of sequence response");
- }
describe_keyspace_result result = new describe_keyspace_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "describe_keyspace");
if (result.isSetSuccess()) {
return result.success;
}
@@ -1392,81 +1091,55 @@ public class Cassandra {
if (result.ire != null) {
throw result.ire;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "describe_keyspace failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe_keyspace failed: unknown result");
}
- public List<String> describe_splits(String cfName, String start_token, String end_token, int keys_per_split) throws InvalidRequestException, TException
+ public List<String> describe_splits(String cfName, String start_token, String end_token, int keys_per_split) throws InvalidRequestException, org.apache.thrift.TException
{
send_describe_splits(cfName, start_token, end_token, keys_per_split);
return recv_describe_splits();
}
- public void send_describe_splits(String cfName, String start_token, String end_token, int keys_per_split) throws TException
+ public void send_describe_splits(String cfName, String start_token, String end_token, int keys_per_split) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("describe_splits", TMessageType.CALL, ++seqid_));
describe_splits_args args = new describe_splits_args();
args.setCfName(cfName);
args.setStart_token(start_token);
args.setEnd_token(end_token);
args.setKeys_per_split(keys_per_split);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("describe_splits", args);
}
- public List<String> recv_describe_splits() throws InvalidRequestException, TException
+ public List<String> recv_describe_splits() throws InvalidRequestException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "describe_splits failed: out of sequence response");
- }
describe_splits_result result = new describe_splits_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "describe_splits");
if (result.isSetSuccess()) {
return result.success;
}
if (result.ire != null) {
throw result.ire;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "describe_splits failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe_splits failed: unknown result");
}
- public String system_add_column_family(CfDef cf_def) throws InvalidRequestException, SchemaDisagreementException, TException
+ public String system_add_column_family(CfDef cf_def) throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException
{
send_system_add_column_family(cf_def);
return recv_system_add_column_family();
}
- public void send_system_add_column_family(CfDef cf_def) throws TException
+ public void send_system_add_column_family(CfDef cf_def) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("system_add_column_family", TMessageType.CALL, ++seqid_));
system_add_column_family_args args = new system_add_column_family_args();
args.setCf_def(cf_def);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("system_add_column_family", args);
}
- public String recv_system_add_column_family() throws InvalidRequestException, SchemaDisagreementException, TException
+ public String recv_system_add_column_family() throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- if (msg.seqid != seqid_) {
- throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "system_add_column_family failed: out of sequence response");
- }
system_add_column_family_result result = new system_add_column_family_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
+ receiveBase(result, "system_add_column_family");
if (result.isSetSuccess()) {
return result.success;
}
@@ -1476,39 +1149,26 @@ public class Cassandra {
if (result.sde != null) {
throw result.sde;
}
- throw new TApplicationException(TApplicationException.MISSING_RESULT, "system_add_column_family failed: unknown result");
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "system_add_column_family failed: unknown result");
}
- public String system_drop_column_family(String column_family) throws InvalidRequestException, SchemaDisagreementException, TException
+ public String system_drop_column_family(String column_family) throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException
{
send_system_drop_column_family(column_family);
return recv_system_drop_column_family();
}
- public void send_system_drop_column_family(String column_family) throws TException
+ public void send_system_drop_column_family(String column_family) throws org.apache.thrift.TException
{
- oprot_.writeMessageBegin(new TMessage("system_drop_column_family", TMessageType.CALL, ++seqid_));
system_drop_column_family_args args = new system_drop_column_family_args();
args.setColumn_family(column_family);
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
+ sendBase("system_drop_column_family", args);
}
- public String recv_system_drop_column_family() throws InvalidRequestException, SchemaDisagreementException, TException
+ public String recv_system_drop_column_family() throws InvalidRequestException, SchemaDisagreementException, org.apache.thrift.TException
{
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
-
<TRUNCATED>