mirror of https://github.com/sipwise/kamailio.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11062 lines
323 KiB
11062 lines
323 KiB
/**
|
|
* Autogenerated by Thrift
|
|
*
|
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
*/
|
|
#include "Cassandra.h"
|
|
|
|
namespace org { namespace apache { namespace cassandra {
|
|
|
|
uint32_t Cassandra_login_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_auth_request = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->auth_request.read(iprot);
|
|
isset_auth_request = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_auth_request)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_login_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_login_args");
|
|
xfer += oprot->writeFieldBegin("auth_request", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->auth_request.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_login_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_login_pargs");
|
|
xfer += oprot->writeFieldBegin("auth_request", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += (*(this->auth_request)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_login_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->authnx.read(iprot);
|
|
this->__isset.authnx = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->authzx.read(iprot);
|
|
this->__isset.authzx = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_login_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_login_result");
|
|
|
|
if (this->__isset.authnx) {
|
|
xfer += oprot->writeFieldBegin("authnx", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->authnx.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.authzx) {
|
|
xfer += oprot->writeFieldBegin("authzx", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->authzx.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_login_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->authnx.read(iprot);
|
|
this->__isset.authnx = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->authzx.read(iprot);
|
|
this->__isset.authzx = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_set_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_keyspace = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->keyspace);
|
|
isset_keyspace = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_keyspace)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_set_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_set_keyspace_args");
|
|
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString(this->keyspace);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_set_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_set_keyspace_pargs");
|
|
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString((*(this->keyspace)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_set_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_set_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_set_keyspace_result");
|
|
|
|
if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_set_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_key = false;
|
|
bool isset_column_path = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readBinary(this->key);
|
|
isset_key = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_path.read(iprot);
|
|
isset_column_path = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast131;
|
|
xfer += iprot->readI32(ecast131);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast131;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_key)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column_path)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_args");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary(this->key);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->column_path.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_pargs");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary((*(this->key)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->column_path)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->success.read(iprot);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->nfe.read(iprot);
|
|
this->__isset.nfe = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_get_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
|
|
xfer += this->success.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.nfe) {
|
|
xfer += oprot->writeFieldBegin("nfe", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->nfe.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 4);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += (*(this->success)).read(iprot);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->nfe.read(iprot);
|
|
this->__isset.nfe = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_slice_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_key = false;
|
|
bool isset_column_parent = false;
|
|
bool isset_predicate = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readBinary(this->key);
|
|
isset_key = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_parent.read(iprot);
|
|
isset_column_parent = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->predicate.read(iprot);
|
|
isset_predicate = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast132;
|
|
xfer += iprot->readI32(ecast132);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast132;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_key)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column_parent)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_predicate)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_slice_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_slice_args");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary(this->key);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->column_parent.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->predicate.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_slice_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_slice_pargs");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary((*(this->key)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->column_parent)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += (*(this->predicate)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_slice_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
this->success.clear();
|
|
uint32_t _size133;
|
|
::apache::thrift::protocol::TType _etype136;
|
|
iprot->readListBegin(_etype136, _size133);
|
|
this->success.resize(_size133);
|
|
uint32_t _i137;
|
|
for (_i137 = 0; _i137 < _size133; ++_i137)
|
|
{
|
|
xfer += this->success[_i137].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_slice_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_get_slice_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
|
|
std::vector<ColumnOrSuperColumn> ::const_iterator _iter138;
|
|
for (_iter138 = this->success.begin(); _iter138 != this->success.end(); ++_iter138)
|
|
{
|
|
xfer += (*_iter138).write(oprot);
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_slice_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
(*(this->success)).clear();
|
|
uint32_t _size139;
|
|
::apache::thrift::protocol::TType _etype142;
|
|
iprot->readListBegin(_etype142, _size139);
|
|
(*(this->success)).resize(_size139);
|
|
uint32_t _i143;
|
|
for (_i143 = 0; _i143 < _size139; ++_i143)
|
|
{
|
|
xfer += (*(this->success))[_i143].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_count_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_key = false;
|
|
bool isset_column_parent = false;
|
|
bool isset_predicate = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readBinary(this->key);
|
|
isset_key = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_parent.read(iprot);
|
|
isset_column_parent = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->predicate.read(iprot);
|
|
isset_predicate = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast144;
|
|
xfer += iprot->readI32(ecast144);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast144;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_key)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column_parent)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_predicate)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_count_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_count_args");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary(this->key);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->column_parent.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->predicate.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_count_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_count_pargs");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary((*(this->key)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->column_parent)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += (*(this->predicate)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_count_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
xfer += iprot->readI32(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_count_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_get_count_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I32, 0);
|
|
xfer += oprot->writeI32(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_count_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
xfer += iprot->readI32((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_slice_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_keys = false;
|
|
bool isset_column_parent = false;
|
|
bool isset_predicate = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
this->keys.clear();
|
|
uint32_t _size145;
|
|
::apache::thrift::protocol::TType _etype148;
|
|
iprot->readListBegin(_etype148, _size145);
|
|
this->keys.resize(_size145);
|
|
uint32_t _i149;
|
|
for (_i149 = 0; _i149 < _size145; ++_i149)
|
|
{
|
|
xfer += iprot->readBinary(this->keys[_i149]);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
isset_keys = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_parent.read(iprot);
|
|
isset_column_parent = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->predicate.read(iprot);
|
|
isset_predicate = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast150;
|
|
xfer += iprot->readI32(ecast150);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast150;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_keys)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column_parent)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_predicate)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_slice_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_multiget_slice_args");
|
|
xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->keys.size());
|
|
std::vector<std::string> ::const_iterator _iter151;
|
|
for (_iter151 = this->keys.begin(); _iter151 != this->keys.end(); ++_iter151)
|
|
{
|
|
xfer += oprot->writeBinary((*_iter151));
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->column_parent.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->predicate.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_slice_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_multiget_slice_pargs");
|
|
xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->keys)).size());
|
|
std::vector<std::string> ::const_iterator _iter152;
|
|
for (_iter152 = (*(this->keys)).begin(); _iter152 != (*(this->keys)).end(); ++_iter152)
|
|
{
|
|
xfer += oprot->writeBinary((*_iter152));
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->column_parent)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += (*(this->predicate)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_slice_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_MAP) {
|
|
{
|
|
this->success.clear();
|
|
uint32_t _size153;
|
|
::apache::thrift::protocol::TType _ktype154;
|
|
::apache::thrift::protocol::TType _vtype155;
|
|
iprot->readMapBegin(_ktype154, _vtype155, _size153);
|
|
uint32_t _i157;
|
|
for (_i157 = 0; _i157 < _size153; ++_i157)
|
|
{
|
|
std::string _key158;
|
|
xfer += iprot->readBinary(_key158);
|
|
std::vector<ColumnOrSuperColumn> & _val159 = this->success[_key158];
|
|
{
|
|
_val159.clear();
|
|
uint32_t _size160;
|
|
::apache::thrift::protocol::TType _etype163;
|
|
iprot->readListBegin(_etype163, _size160);
|
|
_val159.resize(_size160);
|
|
uint32_t _i164;
|
|
for (_i164 = 0; _i164 < _size160; ++_i164)
|
|
{
|
|
xfer += _val159[_i164].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
}
|
|
iprot->readMapEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_slice_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_multiget_slice_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
|
|
{
|
|
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, this->success.size());
|
|
std::map<std::string, std::vector<ColumnOrSuperColumn> > ::const_iterator _iter165;
|
|
for (_iter165 = this->success.begin(); _iter165 != this->success.end(); ++_iter165)
|
|
{
|
|
xfer += oprot->writeBinary(_iter165->first);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, _iter165->second.size());
|
|
std::vector<ColumnOrSuperColumn> ::const_iterator _iter166;
|
|
for (_iter166 = _iter165->second.begin(); _iter166 != _iter165->second.end(); ++_iter166)
|
|
{
|
|
xfer += (*_iter166).write(oprot);
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
}
|
|
xfer += oprot->writeMapEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_slice_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_MAP) {
|
|
{
|
|
(*(this->success)).clear();
|
|
uint32_t _size167;
|
|
::apache::thrift::protocol::TType _ktype168;
|
|
::apache::thrift::protocol::TType _vtype169;
|
|
iprot->readMapBegin(_ktype168, _vtype169, _size167);
|
|
uint32_t _i171;
|
|
for (_i171 = 0; _i171 < _size167; ++_i171)
|
|
{
|
|
std::string _key172;
|
|
xfer += iprot->readBinary(_key172);
|
|
std::vector<ColumnOrSuperColumn> & _val173 = (*(this->success))[_key172];
|
|
{
|
|
_val173.clear();
|
|
uint32_t _size174;
|
|
::apache::thrift::protocol::TType _etype177;
|
|
iprot->readListBegin(_etype177, _size174);
|
|
_val173.resize(_size174);
|
|
uint32_t _i178;
|
|
for (_i178 = 0; _i178 < _size174; ++_i178)
|
|
{
|
|
xfer += _val173[_i178].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
}
|
|
iprot->readMapEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_count_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_keys = false;
|
|
bool isset_column_parent = false;
|
|
bool isset_predicate = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
this->keys.clear();
|
|
uint32_t _size179;
|
|
::apache::thrift::protocol::TType _etype182;
|
|
iprot->readListBegin(_etype182, _size179);
|
|
this->keys.resize(_size179);
|
|
uint32_t _i183;
|
|
for (_i183 = 0; _i183 < _size179; ++_i183)
|
|
{
|
|
xfer += iprot->readBinary(this->keys[_i183]);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
isset_keys = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_parent.read(iprot);
|
|
isset_column_parent = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->predicate.read(iprot);
|
|
isset_predicate = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast184;
|
|
xfer += iprot->readI32(ecast184);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast184;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_keys)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column_parent)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_predicate)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_count_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_multiget_count_args");
|
|
xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->keys.size());
|
|
std::vector<std::string> ::const_iterator _iter185;
|
|
for (_iter185 = this->keys.begin(); _iter185 != this->keys.end(); ++_iter185)
|
|
{
|
|
xfer += oprot->writeBinary((*_iter185));
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->column_parent.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->predicate.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_count_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_multiget_count_pargs");
|
|
xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->keys)).size());
|
|
std::vector<std::string> ::const_iterator _iter186;
|
|
for (_iter186 = (*(this->keys)).begin(); _iter186 != (*(this->keys)).end(); ++_iter186)
|
|
{
|
|
xfer += oprot->writeBinary((*_iter186));
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->column_parent)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += (*(this->predicate)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_count_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_MAP) {
|
|
{
|
|
this->success.clear();
|
|
uint32_t _size187;
|
|
::apache::thrift::protocol::TType _ktype188;
|
|
::apache::thrift::protocol::TType _vtype189;
|
|
iprot->readMapBegin(_ktype188, _vtype189, _size187);
|
|
uint32_t _i191;
|
|
for (_i191 = 0; _i191 < _size187; ++_i191)
|
|
{
|
|
std::string _key192;
|
|
xfer += iprot->readBinary(_key192);
|
|
int32_t& _val193 = this->success[_key192];
|
|
xfer += iprot->readI32(_val193);
|
|
}
|
|
iprot->readMapEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_count_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_multiget_count_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
|
|
{
|
|
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, this->success.size());
|
|
std::map<std::string, int32_t> ::const_iterator _iter194;
|
|
for (_iter194 = this->success.begin(); _iter194 != this->success.end(); ++_iter194)
|
|
{
|
|
xfer += oprot->writeBinary(_iter194->first);
|
|
xfer += oprot->writeI32(_iter194->second);
|
|
}
|
|
xfer += oprot->writeMapEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_multiget_count_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_MAP) {
|
|
{
|
|
(*(this->success)).clear();
|
|
uint32_t _size195;
|
|
::apache::thrift::protocol::TType _ktype196;
|
|
::apache::thrift::protocol::TType _vtype197;
|
|
iprot->readMapBegin(_ktype196, _vtype197, _size195);
|
|
uint32_t _i199;
|
|
for (_i199 = 0; _i199 < _size195; ++_i199)
|
|
{
|
|
std::string _key200;
|
|
xfer += iprot->readBinary(_key200);
|
|
int32_t& _val201 = (*(this->success))[_key200];
|
|
xfer += iprot->readI32(_val201);
|
|
}
|
|
iprot->readMapEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_range_slices_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_column_parent = false;
|
|
bool isset_predicate = false;
|
|
bool isset_range = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_parent.read(iprot);
|
|
isset_column_parent = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->predicate.read(iprot);
|
|
isset_predicate = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->range.read(iprot);
|
|
isset_range = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast202;
|
|
xfer += iprot->readI32(ecast202);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast202;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_column_parent)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_predicate)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_range)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_range_slices_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_range_slices_args");
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->column_parent.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->predicate.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->range.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_range_slices_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_range_slices_pargs");
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += (*(this->column_parent)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->predicate)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += (*(this->range)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_range_slices_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
this->success.clear();
|
|
uint32_t _size203;
|
|
::apache::thrift::protocol::TType _etype206;
|
|
iprot->readListBegin(_etype206, _size203);
|
|
this->success.resize(_size203);
|
|
uint32_t _i207;
|
|
for (_i207 = 0; _i207 < _size203; ++_i207)
|
|
{
|
|
xfer += this->success[_i207].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_range_slices_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_get_range_slices_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
|
|
std::vector<KeySlice> ::const_iterator _iter208;
|
|
for (_iter208 = this->success.begin(); _iter208 != this->success.end(); ++_iter208)
|
|
{
|
|
xfer += (*_iter208).write(oprot);
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_range_slices_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
(*(this->success)).clear();
|
|
uint32_t _size209;
|
|
::apache::thrift::protocol::TType _etype212;
|
|
iprot->readListBegin(_etype212, _size209);
|
|
(*(this->success)).resize(_size209);
|
|
uint32_t _i213;
|
|
for (_i213 = 0; _i213 < _size209; ++_i213)
|
|
{
|
|
xfer += (*(this->success))[_i213].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_indexed_slices_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_column_parent = false;
|
|
bool isset_index_clause = false;
|
|
bool isset_column_predicate = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_parent.read(iprot);
|
|
isset_column_parent = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->index_clause.read(iprot);
|
|
isset_index_clause = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_predicate.read(iprot);
|
|
isset_column_predicate = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast214;
|
|
xfer += iprot->readI32(ecast214);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast214;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_column_parent)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_index_clause)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column_predicate)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_indexed_slices_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_indexed_slices_args");
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->column_parent.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("index_clause", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->index_clause.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->column_predicate.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_indexed_slices_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_get_indexed_slices_pargs");
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += (*(this->column_parent)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("index_clause", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->index_clause)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_predicate", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += (*(this->column_predicate)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_indexed_slices_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
this->success.clear();
|
|
uint32_t _size215;
|
|
::apache::thrift::protocol::TType _etype218;
|
|
iprot->readListBegin(_etype218, _size215);
|
|
this->success.resize(_size215);
|
|
uint32_t _i219;
|
|
for (_i219 = 0; _i219 < _size215; ++_i219)
|
|
{
|
|
xfer += this->success[_i219].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_indexed_slices_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_get_indexed_slices_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
|
|
std::vector<KeySlice> ::const_iterator _iter220;
|
|
for (_iter220 = this->success.begin(); _iter220 != this->success.end(); ++_iter220)
|
|
{
|
|
xfer += (*_iter220).write(oprot);
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_get_indexed_slices_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
(*(this->success)).clear();
|
|
uint32_t _size221;
|
|
::apache::thrift::protocol::TType _etype224;
|
|
iprot->readListBegin(_etype224, _size221);
|
|
(*(this->success)).resize(_size221);
|
|
uint32_t _i225;
|
|
for (_i225 = 0; _i225 < _size221; ++_i225)
|
|
{
|
|
xfer += (*(this->success))[_i225].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_insert_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_key = false;
|
|
bool isset_column_parent = false;
|
|
bool isset_column = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readBinary(this->key);
|
|
isset_key = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_parent.read(iprot);
|
|
isset_column_parent = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column.read(iprot);
|
|
isset_column = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast226;
|
|
xfer += iprot->readI32(ecast226);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast226;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_key)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column_parent)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_insert_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_insert_args");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary(this->key);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->column_parent.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->column.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_insert_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_insert_pargs");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary((*(this->key)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->column_parent)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += (*(this->column)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_insert_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_insert_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_insert_result");
|
|
|
|
if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_insert_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_add_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_key = false;
|
|
bool isset_column_parent = false;
|
|
bool isset_column = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readBinary(this->key);
|
|
isset_key = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_parent.read(iprot);
|
|
isset_column_parent = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column.read(iprot);
|
|
isset_column = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast227;
|
|
xfer += iprot->readI32(ecast227);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast227;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_key)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column_parent)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_add_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_add_args");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary(this->key);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->column_parent.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->column.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_add_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_add_pargs");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary((*(this->key)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->column_parent)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += (*(this->column)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_add_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_add_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_add_result");
|
|
|
|
if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_add_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_key = false;
|
|
bool isset_column_path = false;
|
|
bool isset_timestamp = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readBinary(this->key);
|
|
isset_key = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->column_path.read(iprot);
|
|
isset_column_path = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_I64) {
|
|
xfer += iprot->readI64(this->timestamp);
|
|
isset_timestamp = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast228;
|
|
xfer += iprot->readI32(ecast228);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast228;
|
|
this->__isset.consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_key)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_column_path)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_timestamp)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_remove_args");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary(this->key);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->column_path.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 3);
|
|
xfer += oprot->writeI64(this->timestamp);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_remove_pargs");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary((*(this->key)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->column_path)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 3);
|
|
xfer += oprot->writeI64((*(this->timestamp)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_remove_result");
|
|
|
|
if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_counter_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_key = false;
|
|
bool isset_path = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readBinary(this->key);
|
|
isset_key = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->path.read(iprot);
|
|
isset_path = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast229;
|
|
xfer += iprot->readI32(ecast229);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast229;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_key)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_path)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_counter_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_remove_counter_args");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary(this->key);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("path", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->path.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_counter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_remove_counter_pargs");
|
|
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary((*(this->key)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("path", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += (*(this->path)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_counter_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_counter_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_remove_counter_result");
|
|
|
|
if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_remove_counter_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_batch_mutate_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_mutation_map = false;
|
|
bool isset_consistency_level = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_MAP) {
|
|
{
|
|
this->mutation_map.clear();
|
|
uint32_t _size230;
|
|
::apache::thrift::protocol::TType _ktype231;
|
|
::apache::thrift::protocol::TType _vtype232;
|
|
iprot->readMapBegin(_ktype231, _vtype232, _size230);
|
|
uint32_t _i234;
|
|
for (_i234 = 0; _i234 < _size230; ++_i234)
|
|
{
|
|
std::string _key235;
|
|
xfer += iprot->readBinary(_key235);
|
|
std::map<std::string, std::vector<Mutation> > & _val236 = this->mutation_map[_key235];
|
|
{
|
|
_val236.clear();
|
|
uint32_t _size237;
|
|
::apache::thrift::protocol::TType _ktype238;
|
|
::apache::thrift::protocol::TType _vtype239;
|
|
iprot->readMapBegin(_ktype238, _vtype239, _size237);
|
|
uint32_t _i241;
|
|
for (_i241 = 0; _i241 < _size237; ++_i241)
|
|
{
|
|
std::string _key242;
|
|
xfer += iprot->readString(_key242);
|
|
std::vector<Mutation> & _val243 = _val236[_key242];
|
|
{
|
|
_val243.clear();
|
|
uint32_t _size244;
|
|
::apache::thrift::protocol::TType _etype247;
|
|
iprot->readListBegin(_etype247, _size244);
|
|
_val243.resize(_size244);
|
|
uint32_t _i248;
|
|
for (_i248 = 0; _i248 < _size244; ++_i248)
|
|
{
|
|
xfer += _val243[_i248].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
}
|
|
iprot->readMapEnd();
|
|
}
|
|
}
|
|
iprot->readMapEnd();
|
|
}
|
|
isset_mutation_map = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast249;
|
|
xfer += iprot->readI32(ecast249);
|
|
this->consistency_level = (ConsistencyLevel::type)ecast249;
|
|
isset_consistency_level = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_mutation_map)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_consistency_level)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_batch_mutate_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_batch_mutate_args");
|
|
xfer += oprot->writeFieldBegin("mutation_map", ::apache::thrift::protocol::T_MAP, 1);
|
|
{
|
|
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, this->mutation_map.size());
|
|
std::map<std::string, std::map<std::string, std::vector<Mutation> > > ::const_iterator _iter250;
|
|
for (_iter250 = this->mutation_map.begin(); _iter250 != this->mutation_map.end(); ++_iter250)
|
|
{
|
|
xfer += oprot->writeBinary(_iter250->first);
|
|
{
|
|
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, _iter250->second.size());
|
|
std::map<std::string, std::vector<Mutation> > ::const_iterator _iter251;
|
|
for (_iter251 = _iter250->second.begin(); _iter251 != _iter250->second.end(); ++_iter251)
|
|
{
|
|
xfer += oprot->writeString(_iter251->first);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, _iter251->second.size());
|
|
std::vector<Mutation> ::const_iterator _iter252;
|
|
for (_iter252 = _iter251->second.begin(); _iter252 != _iter251->second.end(); ++_iter252)
|
|
{
|
|
xfer += (*_iter252).write(oprot);
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
}
|
|
xfer += oprot->writeMapEnd();
|
|
}
|
|
}
|
|
xfer += oprot->writeMapEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 2);
|
|
xfer += oprot->writeI32((int32_t)this->consistency_level);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_batch_mutate_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_batch_mutate_pargs");
|
|
xfer += oprot->writeFieldBegin("mutation_map", ::apache::thrift::protocol::T_MAP, 1);
|
|
{
|
|
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, (*(this->mutation_map)).size());
|
|
std::map<std::string, std::map<std::string, std::vector<Mutation> > > ::const_iterator _iter253;
|
|
for (_iter253 = (*(this->mutation_map)).begin(); _iter253 != (*(this->mutation_map)).end(); ++_iter253)
|
|
{
|
|
xfer += oprot->writeBinary(_iter253->first);
|
|
{
|
|
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, _iter253->second.size());
|
|
std::map<std::string, std::vector<Mutation> > ::const_iterator _iter254;
|
|
for (_iter254 = _iter253->second.begin(); _iter254 != _iter253->second.end(); ++_iter254)
|
|
{
|
|
xfer += oprot->writeString(_iter254->first);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, _iter254->second.size());
|
|
std::vector<Mutation> ::const_iterator _iter255;
|
|
for (_iter255 = _iter254->second.begin(); _iter255 != _iter254->second.end(); ++_iter255)
|
|
{
|
|
xfer += (*_iter255).write(oprot);
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
}
|
|
xfer += oprot->writeMapEnd();
|
|
}
|
|
}
|
|
xfer += oprot->writeMapEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 2);
|
|
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_batch_mutate_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_batch_mutate_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_batch_mutate_result");
|
|
|
|
if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_batch_mutate_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_truncate_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_cfname = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->cfname);
|
|
isset_cfname = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_cfname)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_truncate_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_truncate_args");
|
|
xfer += oprot->writeFieldBegin("cfname", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString(this->cfname);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_truncate_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_truncate_pargs");
|
|
xfer += oprot->writeFieldBegin("cfname", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString((*(this->cfname)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_truncate_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_truncate_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_truncate_result");
|
|
|
|
if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_truncate_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_schema_versions_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_schema_versions_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_schema_versions_args");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_schema_versions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_schema_versions_pargs");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_schema_versions_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_MAP) {
|
|
{
|
|
this->success.clear();
|
|
uint32_t _size256;
|
|
::apache::thrift::protocol::TType _ktype257;
|
|
::apache::thrift::protocol::TType _vtype258;
|
|
iprot->readMapBegin(_ktype257, _vtype258, _size256);
|
|
uint32_t _i260;
|
|
for (_i260 = 0; _i260 < _size256; ++_i260)
|
|
{
|
|
std::string _key261;
|
|
xfer += iprot->readString(_key261);
|
|
std::vector<std::string> & _val262 = this->success[_key261];
|
|
{
|
|
_val262.clear();
|
|
uint32_t _size263;
|
|
::apache::thrift::protocol::TType _etype266;
|
|
iprot->readListBegin(_etype266, _size263);
|
|
_val262.resize(_size263);
|
|
uint32_t _i267;
|
|
for (_i267 = 0; _i267 < _size263; ++_i267)
|
|
{
|
|
xfer += iprot->readString(_val262[_i267]);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
}
|
|
iprot->readMapEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_schema_versions_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_schema_versions_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
|
|
{
|
|
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, this->success.size());
|
|
std::map<std::string, std::vector<std::string> > ::const_iterator _iter268;
|
|
for (_iter268 = this->success.begin(); _iter268 != this->success.end(); ++_iter268)
|
|
{
|
|
xfer += oprot->writeString(_iter268->first);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, _iter268->second.size());
|
|
std::vector<std::string> ::const_iterator _iter269;
|
|
for (_iter269 = _iter268->second.begin(); _iter269 != _iter268->second.end(); ++_iter269)
|
|
{
|
|
xfer += oprot->writeString((*_iter269));
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
}
|
|
xfer += oprot->writeMapEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_schema_versions_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_MAP) {
|
|
{
|
|
(*(this->success)).clear();
|
|
uint32_t _size270;
|
|
::apache::thrift::protocol::TType _ktype271;
|
|
::apache::thrift::protocol::TType _vtype272;
|
|
iprot->readMapBegin(_ktype271, _vtype272, _size270);
|
|
uint32_t _i274;
|
|
for (_i274 = 0; _i274 < _size270; ++_i274)
|
|
{
|
|
std::string _key275;
|
|
xfer += iprot->readString(_key275);
|
|
std::vector<std::string> & _val276 = (*(this->success))[_key275];
|
|
{
|
|
_val276.clear();
|
|
uint32_t _size277;
|
|
::apache::thrift::protocol::TType _etype280;
|
|
iprot->readListBegin(_etype280, _size277);
|
|
_val276.resize(_size277);
|
|
uint32_t _i281;
|
|
for (_i281 = 0; _i281 < _size277; ++_i281)
|
|
{
|
|
xfer += iprot->readString(_val276[_i281]);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
}
|
|
iprot->readMapEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspaces_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspaces_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_keyspaces_args");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspaces_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_keyspaces_pargs");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspaces_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
this->success.clear();
|
|
uint32_t _size282;
|
|
::apache::thrift::protocol::TType _etype285;
|
|
iprot->readListBegin(_etype285, _size282);
|
|
this->success.resize(_size282);
|
|
uint32_t _i286;
|
|
for (_i286 = 0; _i286 < _size282; ++_i286)
|
|
{
|
|
xfer += this->success[_i286].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspaces_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_keyspaces_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
|
|
std::vector<KsDef> ::const_iterator _iter287;
|
|
for (_iter287 = this->success.begin(); _iter287 != this->success.end(); ++_iter287)
|
|
{
|
|
xfer += (*_iter287).write(oprot);
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspaces_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
(*(this->success)).clear();
|
|
uint32_t _size288;
|
|
::apache::thrift::protocol::TType _etype291;
|
|
iprot->readListBegin(_etype291, _size288);
|
|
(*(this->success)).resize(_size288);
|
|
uint32_t _i292;
|
|
for (_i292 = 0; _i292 < _size288; ++_i292)
|
|
{
|
|
xfer += (*(this->success))[_i292].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_cluster_name_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_cluster_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_cluster_name_args");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_cluster_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_cluster_name_pargs");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_cluster_name_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_cluster_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_cluster_name_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_cluster_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_version_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_version_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_version_args");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_version_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_version_pargs");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_version_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_version_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_version_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_version_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_ring_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_keyspace = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->keyspace);
|
|
isset_keyspace = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_keyspace)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_ring_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_ring_args");
|
|
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString(this->keyspace);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_ring_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_ring_pargs");
|
|
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString((*(this->keyspace)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_ring_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
this->success.clear();
|
|
uint32_t _size293;
|
|
::apache::thrift::protocol::TType _etype296;
|
|
iprot->readListBegin(_etype296, _size293);
|
|
this->success.resize(_size293);
|
|
uint32_t _i297;
|
|
for (_i297 = 0; _i297 < _size293; ++_i297)
|
|
{
|
|
xfer += this->success[_i297].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_ring_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_ring_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
|
|
std::vector<TokenRange> ::const_iterator _iter298;
|
|
for (_iter298 = this->success.begin(); _iter298 != this->success.end(); ++_iter298)
|
|
{
|
|
xfer += (*_iter298).write(oprot);
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_ring_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
(*(this->success)).clear();
|
|
uint32_t _size299;
|
|
::apache::thrift::protocol::TType _etype302;
|
|
iprot->readListBegin(_etype302, _size299);
|
|
(*(this->success)).resize(_size299);
|
|
uint32_t _i303;
|
|
for (_i303 = 0; _i303 < _size299; ++_i303)
|
|
{
|
|
xfer += (*(this->success))[_i303].read(iprot);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_partitioner_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_partitioner_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_partitioner_args");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_partitioner_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_partitioner_pargs");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_partitioner_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_partitioner_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_partitioner_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_partitioner_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_snitch_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_snitch_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_snitch_args");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_snitch_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_snitch_pargs");
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_snitch_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_snitch_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_snitch_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_snitch_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_keyspace = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->keyspace);
|
|
isset_keyspace = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_keyspace)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_keyspace_args");
|
|
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString(this->keyspace);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_keyspace_pargs");
|
|
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString((*(this->keyspace)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->success.read(iprot);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->nfe.read(iprot);
|
|
this->__isset.nfe = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_keyspace_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
|
|
xfer += this->success.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.nfe) {
|
|
xfer += oprot->writeFieldBegin("nfe", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->nfe.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += (*(this->success)).read(iprot);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->nfe.read(iprot);
|
|
this->__isset.nfe = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_splits_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_cfName = false;
|
|
bool isset_start_token = false;
|
|
bool isset_end_token = false;
|
|
bool isset_keys_per_split = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->cfName);
|
|
isset_cfName = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->start_token);
|
|
isset_start_token = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->end_token);
|
|
isset_end_token = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
xfer += iprot->readI32(this->keys_per_split);
|
|
isset_keys_per_split = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_cfName)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_start_token)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_end_token)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_keys_per_split)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_splits_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_splits_args");
|
|
xfer += oprot->writeFieldBegin("cfName", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString(this->cfName);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("start_token", ::apache::thrift::protocol::T_STRING, 2);
|
|
xfer += oprot->writeString(this->start_token);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("end_token", ::apache::thrift::protocol::T_STRING, 3);
|
|
xfer += oprot->writeString(this->end_token);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("keys_per_split", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32(this->keys_per_split);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_splits_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_splits_pargs");
|
|
xfer += oprot->writeFieldBegin("cfName", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString((*(this->cfName)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("start_token", ::apache::thrift::protocol::T_STRING, 2);
|
|
xfer += oprot->writeString((*(this->start_token)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("end_token", ::apache::thrift::protocol::T_STRING, 3);
|
|
xfer += oprot->writeString((*(this->end_token)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("keys_per_split", ::apache::thrift::protocol::T_I32, 4);
|
|
xfer += oprot->writeI32((*(this->keys_per_split)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_splits_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
this->success.clear();
|
|
uint32_t _size304;
|
|
::apache::thrift::protocol::TType _etype307;
|
|
iprot->readListBegin(_etype307, _size304);
|
|
this->success.resize(_size304);
|
|
uint32_t _i308;
|
|
for (_i308 = 0; _i308 < _size304; ++_i308)
|
|
{
|
|
xfer += iprot->readString(this->success[_i308]);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_splits_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_describe_splits_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
|
|
{
|
|
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
|
|
std::vector<std::string> ::const_iterator _iter309;
|
|
for (_iter309 = this->success.begin(); _iter309 != this->success.end(); ++_iter309)
|
|
{
|
|
xfer += oprot->writeString((*_iter309));
|
|
}
|
|
xfer += oprot->writeListEnd();
|
|
}
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_describe_splits_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_LIST) {
|
|
{
|
|
(*(this->success)).clear();
|
|
uint32_t _size310;
|
|
::apache::thrift::protocol::TType _etype313;
|
|
iprot->readListBegin(_etype313, _size310);
|
|
(*(this->success)).resize(_size310);
|
|
uint32_t _i314;
|
|
for (_i314 = 0; _i314 < _size310; ++_i314)
|
|
{
|
|
xfer += iprot->readString((*(this->success))[_i314]);
|
|
}
|
|
iprot->readListEnd();
|
|
}
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_column_family_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_cf_def = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->cf_def.read(iprot);
|
|
isset_cf_def = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_cf_def)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_column_family_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_add_column_family_args");
|
|
xfer += oprot->writeFieldBegin("cf_def", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->cf_def.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_column_family_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_add_column_family_pargs");
|
|
xfer += oprot->writeFieldBegin("cf_def", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += (*(this->cf_def)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_column_family_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_column_family_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_system_add_column_family_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.sde) {
|
|
xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->sde.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_column_family_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_column_family_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_column_family = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->column_family);
|
|
isset_column_family = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_column_family)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_column_family_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_drop_column_family_args");
|
|
xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString(this->column_family);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_column_family_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_drop_column_family_pargs");
|
|
xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString((*(this->column_family)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_column_family_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_column_family_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_system_drop_column_family_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.sde) {
|
|
xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->sde.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_column_family_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_ks_def = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ks_def.read(iprot);
|
|
isset_ks_def = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_ks_def)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_add_keyspace_args");
|
|
xfer += oprot->writeFieldBegin("ks_def", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ks_def.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_add_keyspace_pargs");
|
|
xfer += oprot->writeFieldBegin("ks_def", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += (*(this->ks_def)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_system_add_keyspace_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.sde) {
|
|
xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->sde.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_add_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_keyspace = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->keyspace);
|
|
isset_keyspace = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_keyspace)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_drop_keyspace_args");
|
|
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString(this->keyspace);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_drop_keyspace_pargs");
|
|
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeString((*(this->keyspace)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_system_drop_keyspace_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.sde) {
|
|
xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->sde.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_drop_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_ks_def = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ks_def.read(iprot);
|
|
isset_ks_def = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_ks_def)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_update_keyspace_args");
|
|
xfer += oprot->writeFieldBegin("ks_def", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ks_def.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_update_keyspace_pargs");
|
|
xfer += oprot->writeFieldBegin("ks_def", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += (*(this->ks_def)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_system_update_keyspace_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.sde) {
|
|
xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->sde.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_column_family_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_cf_def = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->cf_def.read(iprot);
|
|
isset_cf_def = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_cf_def)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_column_family_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_update_column_family_args");
|
|
xfer += oprot->writeFieldBegin("cf_def", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->cf_def.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_column_family_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_system_update_column_family_pargs");
|
|
xfer += oprot->writeFieldBegin("cf_def", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += (*(this->cf_def)).write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_column_family_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString(this->success);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_column_family_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_system_update_column_family_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
|
|
xfer += oprot->writeString(this->success);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.sde) {
|
|
xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->sde.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_system_update_column_family_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readString((*(this->success)));
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_execute_cql_query_args::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
bool isset_query = false;
|
|
bool isset_compression = false;
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRING) {
|
|
xfer += iprot->readBinary(this->query);
|
|
isset_query = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_I32) {
|
|
int32_t ecast315;
|
|
xfer += iprot->readI32(ecast315);
|
|
this->compression = (Compression::type)ecast315;
|
|
isset_compression = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
if (!isset_query)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
if (!isset_compression)
|
|
throw TProtocolException(TProtocolException::INVALID_DATA);
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_execute_cql_query_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_execute_cql_query_args");
|
|
xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary(this->query);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("compression", ::apache::thrift::protocol::T_I32, 2);
|
|
xfer += oprot->writeI32((int32_t)this->compression);
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_execute_cql_query_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
uint32_t xfer = 0;
|
|
xfer += oprot->writeStructBegin("Cassandra_execute_cql_query_pargs");
|
|
xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1);
|
|
xfer += oprot->writeBinary((*(this->query)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldBegin("compression", ::apache::thrift::protocol::T_I32, 2);
|
|
xfer += oprot->writeI32((int32_t)(*(this->compression)));
|
|
xfer += oprot->writeFieldEnd();
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_execute_cql_query_result::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->success.read(iprot);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_execute_cql_query_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
|
|
|
|
uint32_t xfer = 0;
|
|
|
|
xfer += oprot->writeStructBegin("Cassandra_execute_cql_query_result");
|
|
|
|
if (this->__isset.success) {
|
|
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
|
|
xfer += this->success.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ire) {
|
|
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
|
|
xfer += this->ire.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.ue) {
|
|
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
|
|
xfer += this->ue.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.te) {
|
|
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
|
|
xfer += this->te.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
} else if (this->__isset.sde) {
|
|
xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 4);
|
|
xfer += this->sde.write(oprot);
|
|
xfer += oprot->writeFieldEnd();
|
|
}
|
|
xfer += oprot->writeFieldStop();
|
|
xfer += oprot->writeStructEnd();
|
|
return xfer;
|
|
}
|
|
|
|
uint32_t Cassandra_execute_cql_query_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
|
|
|
|
uint32_t xfer = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TType ftype;
|
|
int16_t fid;
|
|
|
|
xfer += iprot->readStructBegin(fname);
|
|
|
|
using ::apache::thrift::protocol::TProtocolException;
|
|
|
|
|
|
while (true)
|
|
{
|
|
xfer += iprot->readFieldBegin(fname, ftype, fid);
|
|
if (ftype == ::apache::thrift::protocol::T_STOP) {
|
|
break;
|
|
}
|
|
switch (fid)
|
|
{
|
|
case 0:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += (*(this->success)).read(iprot);
|
|
this->__isset.success = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ire.read(iprot);
|
|
this->__isset.ire = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->ue.read(iprot);
|
|
this->__isset.ue = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->te.read(iprot);
|
|
this->__isset.te = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
|
|
xfer += this->sde.read(iprot);
|
|
this->__isset.sde = true;
|
|
} else {
|
|
xfer += iprot->skip(ftype);
|
|
}
|
|
break;
|
|
default:
|
|
xfer += iprot->skip(ftype);
|
|
break;
|
|
}
|
|
xfer += iprot->readFieldEnd();
|
|
}
|
|
|
|
xfer += iprot->readStructEnd();
|
|
|
|
return xfer;
|
|
}
|
|
|
|
void CassandraClient::login(const AuthenticationRequest& auth_request)
|
|
{
|
|
send_login(auth_request);
|
|
recv_login();
|
|
}
|
|
|
|
void CassandraClient::send_login(const AuthenticationRequest& auth_request)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("login", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_login_pargs args;
|
|
args.auth_request = &auth_request;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_login()
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("login") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_login_presult result;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.authnx) {
|
|
throw result.authnx;
|
|
}
|
|
if (result.__isset.authzx) {
|
|
throw result.authzx;
|
|
}
|
|
return;
|
|
}
|
|
|
|
void CassandraClient::set_keyspace(const std::string& keyspace)
|
|
{
|
|
send_set_keyspace(keyspace);
|
|
recv_set_keyspace();
|
|
}
|
|
|
|
void CassandraClient::send_set_keyspace(const std::string& keyspace)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("set_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_set_keyspace_pargs args;
|
|
args.keyspace = &keyspace;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_set_keyspace()
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("set_keyspace") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_set_keyspace_presult result;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
return;
|
|
}
|
|
|
|
void CassandraClient::get(ColumnOrSuperColumn& _return, const std::string& key, const ColumnPath& column_path, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_get(key, column_path, consistency_level);
|
|
recv_get(_return);
|
|
}
|
|
|
|
void CassandraClient::send_get(const std::string& key, const ColumnPath& column_path, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("get", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_get_pargs args;
|
|
args.key = &key;
|
|
args.column_path = &column_path;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_get(ColumnOrSuperColumn& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("get") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_get_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.nfe) {
|
|
throw result.nfe;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::get_slice(std::vector<ColumnOrSuperColumn> & _return, const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_get_slice(key, column_parent, predicate, consistency_level);
|
|
recv_get_slice(_return);
|
|
}
|
|
|
|
void CassandraClient::send_get_slice(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("get_slice", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_get_slice_pargs args;
|
|
args.key = &key;
|
|
args.column_parent = &column_parent;
|
|
args.predicate = &predicate;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_get_slice(std::vector<ColumnOrSuperColumn> & _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("get_slice") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_get_slice_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_slice failed: unknown result");
|
|
}
|
|
|
|
int32_t CassandraClient::get_count(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_get_count(key, column_parent, predicate, consistency_level);
|
|
return recv_get_count();
|
|
}
|
|
|
|
void CassandraClient::send_get_count(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("get_count", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_get_count_pargs args;
|
|
args.key = &key;
|
|
args.column_parent = &column_parent;
|
|
args.predicate = &predicate;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
int32_t CassandraClient::recv_get_count()
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("get_count") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
int32_t _return;
|
|
Cassandra_get_count_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
return _return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_count failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::multiget_slice(std::map<std::string, std::vector<ColumnOrSuperColumn> > & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_multiget_slice(keys, column_parent, predicate, consistency_level);
|
|
recv_multiget_slice(_return);
|
|
}
|
|
|
|
void CassandraClient::send_multiget_slice(const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("multiget_slice", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_multiget_slice_pargs args;
|
|
args.keys = &keys;
|
|
args.column_parent = &column_parent;
|
|
args.predicate = &predicate;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_multiget_slice(std::map<std::string, std::vector<ColumnOrSuperColumn> > & _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("multiget_slice") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_multiget_slice_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "multiget_slice failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::multiget_count(std::map<std::string, int32_t> & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_multiget_count(keys, column_parent, predicate, consistency_level);
|
|
recv_multiget_count(_return);
|
|
}
|
|
|
|
void CassandraClient::send_multiget_count(const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("multiget_count", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_multiget_count_pargs args;
|
|
args.keys = &keys;
|
|
args.column_parent = &column_parent;
|
|
args.predicate = &predicate;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_multiget_count(std::map<std::string, int32_t> & _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("multiget_count") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_multiget_count_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "multiget_count failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::get_range_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const SlicePredicate& predicate, const KeyRange& range, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_get_range_slices(column_parent, predicate, range, consistency_level);
|
|
recv_get_range_slices(_return);
|
|
}
|
|
|
|
void CassandraClient::send_get_range_slices(const ColumnParent& column_parent, const SlicePredicate& predicate, const KeyRange& range, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("get_range_slices", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_get_range_slices_pargs args;
|
|
args.column_parent = &column_parent;
|
|
args.predicate = &predicate;
|
|
args.range = ⦥
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_get_range_slices(std::vector<KeySlice> & _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("get_range_slices") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_get_range_slices_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_range_slices failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::get_indexed_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const IndexClause& index_clause, const SlicePredicate& column_predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level);
|
|
recv_get_indexed_slices(_return);
|
|
}
|
|
|
|
void CassandraClient::send_get_indexed_slices(const ColumnParent& column_parent, const IndexClause& index_clause, const SlicePredicate& column_predicate, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("get_indexed_slices", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_get_indexed_slices_pargs args;
|
|
args.column_parent = &column_parent;
|
|
args.index_clause = &index_clause;
|
|
args.column_predicate = &column_predicate;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_get_indexed_slices(std::vector<KeySlice> & _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("get_indexed_slices") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_get_indexed_slices_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_indexed_slices failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::insert(const std::string& key, const ColumnParent& column_parent, const Column& column, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_insert(key, column_parent, column, consistency_level);
|
|
recv_insert();
|
|
}
|
|
|
|
void CassandraClient::send_insert(const std::string& key, const ColumnParent& column_parent, const Column& column, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("insert", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_insert_pargs args;
|
|
args.key = &key;
|
|
args.column_parent = &column_parent;
|
|
args.column = &column;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_insert()
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("insert") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_insert_presult result;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
return;
|
|
}
|
|
|
|
void CassandraClient::add(const std::string& key, const ColumnParent& column_parent, const CounterColumn& column, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_add(key, column_parent, column, consistency_level);
|
|
recv_add();
|
|
}
|
|
|
|
void CassandraClient::send_add(const std::string& key, const ColumnParent& column_parent, const CounterColumn& column, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("add", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_add_pargs args;
|
|
args.key = &key;
|
|
args.column_parent = &column_parent;
|
|
args.column = &column;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_add()
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("add") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_add_presult result;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
return;
|
|
}
|
|
|
|
void CassandraClient::remove(const std::string& key, const ColumnPath& column_path, const int64_t timestamp, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_remove(key, column_path, timestamp, consistency_level);
|
|
recv_remove();
|
|
}
|
|
|
|
void CassandraClient::send_remove(const std::string& key, const ColumnPath& column_path, const int64_t timestamp, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("remove", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_remove_pargs args;
|
|
args.key = &key;
|
|
args.column_path = &column_path;
|
|
args.timestamp = ×tamp;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_remove()
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("remove") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_remove_presult result;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
return;
|
|
}
|
|
|
|
void CassandraClient::remove_counter(const std::string& key, const ColumnPath& path, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_remove_counter(key, path, consistency_level);
|
|
recv_remove_counter();
|
|
}
|
|
|
|
void CassandraClient::send_remove_counter(const std::string& key, const ColumnPath& path, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("remove_counter", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_remove_counter_pargs args;
|
|
args.key = &key;
|
|
args.path = &path;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_remove_counter()
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("remove_counter") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_remove_counter_presult result;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
return;
|
|
}
|
|
|
|
void CassandraClient::batch_mutate(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & mutation_map, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
send_batch_mutate(mutation_map, consistency_level);
|
|
recv_batch_mutate();
|
|
}
|
|
|
|
void CassandraClient::send_batch_mutate(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & mutation_map, const ConsistencyLevel::type consistency_level)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("batch_mutate", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_batch_mutate_pargs args;
|
|
args.mutation_map = &mutation_map;
|
|
args.consistency_level = &consistency_level;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_batch_mutate()
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("batch_mutate") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_batch_mutate_presult result;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
return;
|
|
}
|
|
|
|
void CassandraClient::truncate(const std::string& cfname)
|
|
{
|
|
send_truncate(cfname);
|
|
recv_truncate();
|
|
}
|
|
|
|
void CassandraClient::send_truncate(const std::string& cfname)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("truncate", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_truncate_pargs args;
|
|
args.cfname = &cfname;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_truncate()
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("truncate") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_truncate_presult result;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
return;
|
|
}
|
|
|
|
void CassandraClient::describe_schema_versions(std::map<std::string, std::vector<std::string> > & _return)
|
|
{
|
|
send_describe_schema_versions();
|
|
recv_describe_schema_versions(_return);
|
|
}
|
|
|
|
void CassandraClient::send_describe_schema_versions()
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("describe_schema_versions", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_describe_schema_versions_pargs args;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_describe_schema_versions(std::map<std::string, std::vector<std::string> > & _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("describe_schema_versions") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_describe_schema_versions_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_schema_versions failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::describe_keyspaces(std::vector<KsDef> & _return)
|
|
{
|
|
send_describe_keyspaces();
|
|
recv_describe_keyspaces(_return);
|
|
}
|
|
|
|
void CassandraClient::send_describe_keyspaces()
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("describe_keyspaces", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_describe_keyspaces_pargs args;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_describe_keyspaces(std::vector<KsDef> & _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("describe_keyspaces") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_describe_keyspaces_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_keyspaces failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::describe_cluster_name(std::string& _return)
|
|
{
|
|
send_describe_cluster_name();
|
|
recv_describe_cluster_name(_return);
|
|
}
|
|
|
|
void CassandraClient::send_describe_cluster_name()
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("describe_cluster_name", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_describe_cluster_name_pargs args;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_describe_cluster_name(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("describe_cluster_name") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_describe_cluster_name_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_cluster_name failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::describe_version(std::string& _return)
|
|
{
|
|
send_describe_version();
|
|
recv_describe_version(_return);
|
|
}
|
|
|
|
void CassandraClient::send_describe_version()
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("describe_version", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_describe_version_pargs args;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_describe_version(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("describe_version") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_describe_version_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_version failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::describe_ring(std::vector<TokenRange> & _return, const std::string& keyspace)
|
|
{
|
|
send_describe_ring(keyspace);
|
|
recv_describe_ring(_return);
|
|
}
|
|
|
|
void CassandraClient::send_describe_ring(const std::string& keyspace)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("describe_ring", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_describe_ring_pargs args;
|
|
args.keyspace = &keyspace;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_describe_ring(std::vector<TokenRange> & _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("describe_ring") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_describe_ring_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_ring failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::describe_partitioner(std::string& _return)
|
|
{
|
|
send_describe_partitioner();
|
|
recv_describe_partitioner(_return);
|
|
}
|
|
|
|
void CassandraClient::send_describe_partitioner()
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("describe_partitioner", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_describe_partitioner_pargs args;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_describe_partitioner(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("describe_partitioner") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_describe_partitioner_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_partitioner failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::describe_snitch(std::string& _return)
|
|
{
|
|
send_describe_snitch();
|
|
recv_describe_snitch(_return);
|
|
}
|
|
|
|
void CassandraClient::send_describe_snitch()
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("describe_snitch", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_describe_snitch_pargs args;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_describe_snitch(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("describe_snitch") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_describe_snitch_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_snitch failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::describe_keyspace(KsDef& _return, const std::string& keyspace)
|
|
{
|
|
send_describe_keyspace(keyspace);
|
|
recv_describe_keyspace(_return);
|
|
}
|
|
|
|
void CassandraClient::send_describe_keyspace(const std::string& keyspace)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("describe_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_describe_keyspace_pargs args;
|
|
args.keyspace = &keyspace;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_describe_keyspace(KsDef& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("describe_keyspace") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_describe_keyspace_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.nfe) {
|
|
throw result.nfe;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_keyspace failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::describe_splits(std::vector<std::string> & _return, const std::string& cfName, const std::string& start_token, const std::string& end_token, const int32_t keys_per_split)
|
|
{
|
|
send_describe_splits(cfName, start_token, end_token, keys_per_split);
|
|
recv_describe_splits(_return);
|
|
}
|
|
|
|
void CassandraClient::send_describe_splits(const std::string& cfName, const std::string& start_token, const std::string& end_token, const int32_t keys_per_split)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("describe_splits", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_describe_splits_pargs args;
|
|
args.cfName = &cfName;
|
|
args.start_token = &start_token;
|
|
args.end_token = &end_token;
|
|
args.keys_per_split = &keys_per_split;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_describe_splits(std::vector<std::string> & _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("describe_splits") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_describe_splits_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_splits failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::system_add_column_family(std::string& _return, const CfDef& cf_def)
|
|
{
|
|
send_system_add_column_family(cf_def);
|
|
recv_system_add_column_family(_return);
|
|
}
|
|
|
|
void CassandraClient::send_system_add_column_family(const CfDef& cf_def)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("system_add_column_family", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_system_add_column_family_pargs args;
|
|
args.cf_def = &cf_def;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_system_add_column_family(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("system_add_column_family") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_system_add_column_family_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.sde) {
|
|
throw result.sde;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_add_column_family failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::system_drop_column_family(std::string& _return, const std::string& column_family)
|
|
{
|
|
send_system_drop_column_family(column_family);
|
|
recv_system_drop_column_family(_return);
|
|
}
|
|
|
|
void CassandraClient::send_system_drop_column_family(const std::string& column_family)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("system_drop_column_family", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_system_drop_column_family_pargs args;
|
|
args.column_family = &column_family;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_system_drop_column_family(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("system_drop_column_family") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_system_drop_column_family_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.sde) {
|
|
throw result.sde;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_drop_column_family failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::system_add_keyspace(std::string& _return, const KsDef& ks_def)
|
|
{
|
|
send_system_add_keyspace(ks_def);
|
|
recv_system_add_keyspace(_return);
|
|
}
|
|
|
|
void CassandraClient::send_system_add_keyspace(const KsDef& ks_def)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("system_add_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_system_add_keyspace_pargs args;
|
|
args.ks_def = &ks_def;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_system_add_keyspace(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("system_add_keyspace") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_system_add_keyspace_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.sde) {
|
|
throw result.sde;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_add_keyspace failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::system_drop_keyspace(std::string& _return, const std::string& keyspace)
|
|
{
|
|
send_system_drop_keyspace(keyspace);
|
|
recv_system_drop_keyspace(_return);
|
|
}
|
|
|
|
void CassandraClient::send_system_drop_keyspace(const std::string& keyspace)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("system_drop_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_system_drop_keyspace_pargs args;
|
|
args.keyspace = &keyspace;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_system_drop_keyspace(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("system_drop_keyspace") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_system_drop_keyspace_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.sde) {
|
|
throw result.sde;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_drop_keyspace failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::system_update_keyspace(std::string& _return, const KsDef& ks_def)
|
|
{
|
|
send_system_update_keyspace(ks_def);
|
|
recv_system_update_keyspace(_return);
|
|
}
|
|
|
|
void CassandraClient::send_system_update_keyspace(const KsDef& ks_def)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("system_update_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_system_update_keyspace_pargs args;
|
|
args.ks_def = &ks_def;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_system_update_keyspace(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("system_update_keyspace") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_system_update_keyspace_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.sde) {
|
|
throw result.sde;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_update_keyspace failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::system_update_column_family(std::string& _return, const CfDef& cf_def)
|
|
{
|
|
send_system_update_column_family(cf_def);
|
|
recv_system_update_column_family(_return);
|
|
}
|
|
|
|
void CassandraClient::send_system_update_column_family(const CfDef& cf_def)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("system_update_column_family", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_system_update_column_family_pargs args;
|
|
args.cf_def = &cf_def;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_system_update_column_family(std::string& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("system_update_column_family") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_system_update_column_family_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.sde) {
|
|
throw result.sde;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_update_column_family failed: unknown result");
|
|
}
|
|
|
|
void CassandraClient::execute_cql_query(CqlResult& _return, const std::string& query, const Compression::type compression)
|
|
{
|
|
send_execute_cql_query(query, compression);
|
|
recv_execute_cql_query(_return);
|
|
}
|
|
|
|
void CassandraClient::send_execute_cql_query(const std::string& query, const Compression::type compression)
|
|
{
|
|
int32_t cseqid = 0;
|
|
oprot_->writeMessageBegin("execute_cql_query", ::apache::thrift::protocol::T_CALL, cseqid);
|
|
|
|
Cassandra_execute_cql_query_pargs args;
|
|
args.query = &query;
|
|
args.compression = &compression;
|
|
args.write(oprot_);
|
|
|
|
oprot_->writeMessageEnd();
|
|
oprot_->getTransport()->writeEnd();
|
|
oprot_->getTransport()->flush();
|
|
}
|
|
|
|
void CassandraClient::recv_execute_cql_query(CqlResult& _return)
|
|
{
|
|
|
|
int32_t rseqid = 0;
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
|
|
iprot_->readMessageBegin(fname, mtype, rseqid);
|
|
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
|
|
::apache::thrift::TApplicationException x;
|
|
x.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
throw x;
|
|
}
|
|
if (mtype != ::apache::thrift::protocol::T_REPLY) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
if (fname.compare("execute_cql_query") != 0) {
|
|
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
}
|
|
Cassandra_execute_cql_query_presult result;
|
|
result.success = &_return;
|
|
result.read(iprot_);
|
|
iprot_->readMessageEnd();
|
|
iprot_->getTransport()->readEnd();
|
|
|
|
if (result.__isset.success) {
|
|
// _return pointer has now been filled
|
|
return;
|
|
}
|
|
if (result.__isset.ire) {
|
|
throw result.ire;
|
|
}
|
|
if (result.__isset.ue) {
|
|
throw result.ue;
|
|
}
|
|
if (result.__isset.te) {
|
|
throw result.te;
|
|
}
|
|
if (result.__isset.sde) {
|
|
throw result.sde;
|
|
}
|
|
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "execute_cql_query failed: unknown result");
|
|
}
|
|
|
|
bool CassandraProcessor::process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot, void* callContext) {
|
|
|
|
::apache::thrift::protocol::TProtocol* iprot = piprot.get();
|
|
::apache::thrift::protocol::TProtocol* oprot = poprot.get();
|
|
std::string fname;
|
|
::apache::thrift::protocol::TMessageType mtype;
|
|
int32_t seqid;
|
|
|
|
iprot->readMessageBegin(fname, mtype, seqid);
|
|
|
|
if (mtype != ::apache::thrift::protocol::T_CALL && mtype != ::apache::thrift::protocol::T_ONEWAY) {
|
|
iprot->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot->readMessageEnd();
|
|
iprot->getTransport()->readEnd();
|
|
::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
|
|
oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return true;
|
|
}
|
|
|
|
return process_fn(iprot, oprot, fname, seqid, callContext);
|
|
}
|
|
|
|
bool CassandraProcessor::process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid, void* callContext) {
|
|
std::map<std::string, void (CassandraProcessor::*)(int32_t, ::apache::thrift::protocol::TProtocol*, ::apache::thrift::protocol::TProtocol*, void*)>::iterator pfn;
|
|
pfn = processMap_.find(fname);
|
|
if (pfn == processMap_.end()) {
|
|
iprot->skip(::apache::thrift::protocol::T_STRUCT);
|
|
iprot->readMessageEnd();
|
|
iprot->getTransport()->readEnd();
|
|
::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::UNKNOWN_METHOD, "Invalid method name: '"+fname+"'");
|
|
oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return true;
|
|
}
|
|
(this->*(pfn->second))(seqid, iprot, oprot, callContext);
|
|
return true;
|
|
}
|
|
|
|
void CassandraProcessor::process_login(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.login", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.login");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.login");
|
|
}
|
|
|
|
Cassandra_login_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.login", bytes);
|
|
}
|
|
|
|
Cassandra_login_result result;
|
|
try {
|
|
iface_->login(args.auth_request);
|
|
} catch (AuthenticationException &authnx) {
|
|
result.authnx = authnx;
|
|
result.__isset.authnx = true;
|
|
} catch (AuthorizationException &authzx) {
|
|
result.authzx = authzx;
|
|
result.__isset.authzx = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.login");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("login", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.login");
|
|
}
|
|
|
|
oprot->writeMessageBegin("login", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.login", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_set_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.set_keyspace", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.set_keyspace");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.set_keyspace");
|
|
}
|
|
|
|
Cassandra_set_keyspace_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.set_keyspace", bytes);
|
|
}
|
|
|
|
Cassandra_set_keyspace_result result;
|
|
try {
|
|
iface_->set_keyspace(args.keyspace);
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.set_keyspace");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("set_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.set_keyspace");
|
|
}
|
|
|
|
oprot->writeMessageBegin("set_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.set_keyspace", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_get(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.get", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.get");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.get");
|
|
}
|
|
|
|
Cassandra_get_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.get", bytes);
|
|
}
|
|
|
|
Cassandra_get_result result;
|
|
try {
|
|
iface_->get(result.success, args.key, args.column_path, args.consistency_level);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (NotFoundException &nfe) {
|
|
result.nfe = nfe;
|
|
result.__isset.nfe = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.get");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("get", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.get");
|
|
}
|
|
|
|
oprot->writeMessageBegin("get", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.get", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_get_slice(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.get_slice", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.get_slice");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.get_slice");
|
|
}
|
|
|
|
Cassandra_get_slice_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.get_slice", bytes);
|
|
}
|
|
|
|
Cassandra_get_slice_result result;
|
|
try {
|
|
iface_->get_slice(result.success, args.key, args.column_parent, args.predicate, args.consistency_level);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.get_slice");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("get_slice", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.get_slice");
|
|
}
|
|
|
|
oprot->writeMessageBegin("get_slice", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.get_slice", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_get_count(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.get_count", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.get_count");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.get_count");
|
|
}
|
|
|
|
Cassandra_get_count_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.get_count", bytes);
|
|
}
|
|
|
|
Cassandra_get_count_result result;
|
|
try {
|
|
result.success = iface_->get_count(args.key, args.column_parent, args.predicate, args.consistency_level);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.get_count");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("get_count", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.get_count");
|
|
}
|
|
|
|
oprot->writeMessageBegin("get_count", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.get_count", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_multiget_slice(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.multiget_slice", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.multiget_slice");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.multiget_slice");
|
|
}
|
|
|
|
Cassandra_multiget_slice_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.multiget_slice", bytes);
|
|
}
|
|
|
|
Cassandra_multiget_slice_result result;
|
|
try {
|
|
iface_->multiget_slice(result.success, args.keys, args.column_parent, args.predicate, args.consistency_level);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.multiget_slice");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("multiget_slice", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.multiget_slice");
|
|
}
|
|
|
|
oprot->writeMessageBegin("multiget_slice", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.multiget_slice", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_multiget_count(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.multiget_count", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.multiget_count");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.multiget_count");
|
|
}
|
|
|
|
Cassandra_multiget_count_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.multiget_count", bytes);
|
|
}
|
|
|
|
Cassandra_multiget_count_result result;
|
|
try {
|
|
iface_->multiget_count(result.success, args.keys, args.column_parent, args.predicate, args.consistency_level);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.multiget_count");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("multiget_count", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.multiget_count");
|
|
}
|
|
|
|
oprot->writeMessageBegin("multiget_count", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.multiget_count", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_get_range_slices(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.get_range_slices", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.get_range_slices");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.get_range_slices");
|
|
}
|
|
|
|
Cassandra_get_range_slices_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.get_range_slices", bytes);
|
|
}
|
|
|
|
Cassandra_get_range_slices_result result;
|
|
try {
|
|
iface_->get_range_slices(result.success, args.column_parent, args.predicate, args.range, args.consistency_level);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.get_range_slices");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("get_range_slices", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.get_range_slices");
|
|
}
|
|
|
|
oprot->writeMessageBegin("get_range_slices", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.get_range_slices", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_get_indexed_slices(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.get_indexed_slices", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.get_indexed_slices");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.get_indexed_slices");
|
|
}
|
|
|
|
Cassandra_get_indexed_slices_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.get_indexed_slices", bytes);
|
|
}
|
|
|
|
Cassandra_get_indexed_slices_result result;
|
|
try {
|
|
iface_->get_indexed_slices(result.success, args.column_parent, args.index_clause, args.column_predicate, args.consistency_level);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.get_indexed_slices");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("get_indexed_slices", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.get_indexed_slices");
|
|
}
|
|
|
|
oprot->writeMessageBegin("get_indexed_slices", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.get_indexed_slices", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_insert(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.insert", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.insert");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.insert");
|
|
}
|
|
|
|
Cassandra_insert_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.insert", bytes);
|
|
}
|
|
|
|
Cassandra_insert_result result;
|
|
try {
|
|
iface_->insert(args.key, args.column_parent, args.column, args.consistency_level);
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.insert");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("insert", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.insert");
|
|
}
|
|
|
|
oprot->writeMessageBegin("insert", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.insert", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_add(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.add", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.add");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.add");
|
|
}
|
|
|
|
Cassandra_add_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.add", bytes);
|
|
}
|
|
|
|
Cassandra_add_result result;
|
|
try {
|
|
iface_->add(args.key, args.column_parent, args.column, args.consistency_level);
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.add");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("add", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.add");
|
|
}
|
|
|
|
oprot->writeMessageBegin("add", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.add", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_remove(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.remove", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.remove");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.remove");
|
|
}
|
|
|
|
Cassandra_remove_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.remove", bytes);
|
|
}
|
|
|
|
Cassandra_remove_result result;
|
|
try {
|
|
iface_->remove(args.key, args.column_path, args.timestamp, args.consistency_level);
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.remove");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("remove", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.remove");
|
|
}
|
|
|
|
oprot->writeMessageBegin("remove", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.remove", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_remove_counter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.remove_counter", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.remove_counter");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.remove_counter");
|
|
}
|
|
|
|
Cassandra_remove_counter_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.remove_counter", bytes);
|
|
}
|
|
|
|
Cassandra_remove_counter_result result;
|
|
try {
|
|
iface_->remove_counter(args.key, args.path, args.consistency_level);
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.remove_counter");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("remove_counter", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.remove_counter");
|
|
}
|
|
|
|
oprot->writeMessageBegin("remove_counter", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.remove_counter", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_batch_mutate(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.batch_mutate", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.batch_mutate");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.batch_mutate");
|
|
}
|
|
|
|
Cassandra_batch_mutate_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.batch_mutate", bytes);
|
|
}
|
|
|
|
Cassandra_batch_mutate_result result;
|
|
try {
|
|
iface_->batch_mutate(args.mutation_map, args.consistency_level);
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.batch_mutate");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("batch_mutate", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.batch_mutate");
|
|
}
|
|
|
|
oprot->writeMessageBegin("batch_mutate", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.batch_mutate", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_truncate(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.truncate", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.truncate");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.truncate");
|
|
}
|
|
|
|
Cassandra_truncate_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.truncate", bytes);
|
|
}
|
|
|
|
Cassandra_truncate_result result;
|
|
try {
|
|
iface_->truncate(args.cfname);
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.truncate");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("truncate", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.truncate");
|
|
}
|
|
|
|
oprot->writeMessageBegin("truncate", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.truncate", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_describe_schema_versions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.describe_schema_versions", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.describe_schema_versions");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.describe_schema_versions");
|
|
}
|
|
|
|
Cassandra_describe_schema_versions_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.describe_schema_versions", bytes);
|
|
}
|
|
|
|
Cassandra_describe_schema_versions_result result;
|
|
try {
|
|
iface_->describe_schema_versions(result.success);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.describe_schema_versions");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("describe_schema_versions", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.describe_schema_versions");
|
|
}
|
|
|
|
oprot->writeMessageBegin("describe_schema_versions", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.describe_schema_versions", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_describe_keyspaces(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.describe_keyspaces", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.describe_keyspaces");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.describe_keyspaces");
|
|
}
|
|
|
|
Cassandra_describe_keyspaces_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.describe_keyspaces", bytes);
|
|
}
|
|
|
|
Cassandra_describe_keyspaces_result result;
|
|
try {
|
|
iface_->describe_keyspaces(result.success);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.describe_keyspaces");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("describe_keyspaces", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.describe_keyspaces");
|
|
}
|
|
|
|
oprot->writeMessageBegin("describe_keyspaces", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.describe_keyspaces", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_describe_cluster_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.describe_cluster_name", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.describe_cluster_name");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.describe_cluster_name");
|
|
}
|
|
|
|
Cassandra_describe_cluster_name_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.describe_cluster_name", bytes);
|
|
}
|
|
|
|
Cassandra_describe_cluster_name_result result;
|
|
try {
|
|
iface_->describe_cluster_name(result.success);
|
|
result.__isset.success = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.describe_cluster_name");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("describe_cluster_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.describe_cluster_name");
|
|
}
|
|
|
|
oprot->writeMessageBegin("describe_cluster_name", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.describe_cluster_name", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_describe_version(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.describe_version", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.describe_version");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.describe_version");
|
|
}
|
|
|
|
Cassandra_describe_version_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.describe_version", bytes);
|
|
}
|
|
|
|
Cassandra_describe_version_result result;
|
|
try {
|
|
iface_->describe_version(result.success);
|
|
result.__isset.success = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.describe_version");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("describe_version", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.describe_version");
|
|
}
|
|
|
|
oprot->writeMessageBegin("describe_version", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.describe_version", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_describe_ring(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.describe_ring", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.describe_ring");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.describe_ring");
|
|
}
|
|
|
|
Cassandra_describe_ring_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.describe_ring", bytes);
|
|
}
|
|
|
|
Cassandra_describe_ring_result result;
|
|
try {
|
|
iface_->describe_ring(result.success, args.keyspace);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.describe_ring");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("describe_ring", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.describe_ring");
|
|
}
|
|
|
|
oprot->writeMessageBegin("describe_ring", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.describe_ring", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_describe_partitioner(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.describe_partitioner", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.describe_partitioner");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.describe_partitioner");
|
|
}
|
|
|
|
Cassandra_describe_partitioner_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.describe_partitioner", bytes);
|
|
}
|
|
|
|
Cassandra_describe_partitioner_result result;
|
|
try {
|
|
iface_->describe_partitioner(result.success);
|
|
result.__isset.success = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.describe_partitioner");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("describe_partitioner", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.describe_partitioner");
|
|
}
|
|
|
|
oprot->writeMessageBegin("describe_partitioner", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.describe_partitioner", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_describe_snitch(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.describe_snitch", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.describe_snitch");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.describe_snitch");
|
|
}
|
|
|
|
Cassandra_describe_snitch_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.describe_snitch", bytes);
|
|
}
|
|
|
|
Cassandra_describe_snitch_result result;
|
|
try {
|
|
iface_->describe_snitch(result.success);
|
|
result.__isset.success = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.describe_snitch");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("describe_snitch", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.describe_snitch");
|
|
}
|
|
|
|
oprot->writeMessageBegin("describe_snitch", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.describe_snitch", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_describe_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.describe_keyspace", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.describe_keyspace");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.describe_keyspace");
|
|
}
|
|
|
|
Cassandra_describe_keyspace_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.describe_keyspace", bytes);
|
|
}
|
|
|
|
Cassandra_describe_keyspace_result result;
|
|
try {
|
|
iface_->describe_keyspace(result.success, args.keyspace);
|
|
result.__isset.success = true;
|
|
} catch (NotFoundException &nfe) {
|
|
result.nfe = nfe;
|
|
result.__isset.nfe = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.describe_keyspace");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("describe_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.describe_keyspace");
|
|
}
|
|
|
|
oprot->writeMessageBegin("describe_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.describe_keyspace", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_describe_splits(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.describe_splits", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.describe_splits");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.describe_splits");
|
|
}
|
|
|
|
Cassandra_describe_splits_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.describe_splits", bytes);
|
|
}
|
|
|
|
Cassandra_describe_splits_result result;
|
|
try {
|
|
iface_->describe_splits(result.success, args.cfName, args.start_token, args.end_token, args.keys_per_split);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.describe_splits");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("describe_splits", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.describe_splits");
|
|
}
|
|
|
|
oprot->writeMessageBegin("describe_splits", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.describe_splits", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_system_add_column_family(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.system_add_column_family", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.system_add_column_family");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.system_add_column_family");
|
|
}
|
|
|
|
Cassandra_system_add_column_family_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.system_add_column_family", bytes);
|
|
}
|
|
|
|
Cassandra_system_add_column_family_result result;
|
|
try {
|
|
iface_->system_add_column_family(result.success, args.cf_def);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (SchemaDisagreementException &sde) {
|
|
result.sde = sde;
|
|
result.__isset.sde = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.system_add_column_family");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("system_add_column_family", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.system_add_column_family");
|
|
}
|
|
|
|
oprot->writeMessageBegin("system_add_column_family", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.system_add_column_family", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_system_drop_column_family(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.system_drop_column_family", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.system_drop_column_family");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.system_drop_column_family");
|
|
}
|
|
|
|
Cassandra_system_drop_column_family_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.system_drop_column_family", bytes);
|
|
}
|
|
|
|
Cassandra_system_drop_column_family_result result;
|
|
try {
|
|
iface_->system_drop_column_family(result.success, args.column_family);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (SchemaDisagreementException &sde) {
|
|
result.sde = sde;
|
|
result.__isset.sde = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.system_drop_column_family");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("system_drop_column_family", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.system_drop_column_family");
|
|
}
|
|
|
|
oprot->writeMessageBegin("system_drop_column_family", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.system_drop_column_family", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_system_add_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.system_add_keyspace", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.system_add_keyspace");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.system_add_keyspace");
|
|
}
|
|
|
|
Cassandra_system_add_keyspace_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.system_add_keyspace", bytes);
|
|
}
|
|
|
|
Cassandra_system_add_keyspace_result result;
|
|
try {
|
|
iface_->system_add_keyspace(result.success, args.ks_def);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (SchemaDisagreementException &sde) {
|
|
result.sde = sde;
|
|
result.__isset.sde = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.system_add_keyspace");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("system_add_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.system_add_keyspace");
|
|
}
|
|
|
|
oprot->writeMessageBegin("system_add_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.system_add_keyspace", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_system_drop_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.system_drop_keyspace", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.system_drop_keyspace");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.system_drop_keyspace");
|
|
}
|
|
|
|
Cassandra_system_drop_keyspace_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.system_drop_keyspace", bytes);
|
|
}
|
|
|
|
Cassandra_system_drop_keyspace_result result;
|
|
try {
|
|
iface_->system_drop_keyspace(result.success, args.keyspace);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (SchemaDisagreementException &sde) {
|
|
result.sde = sde;
|
|
result.__isset.sde = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.system_drop_keyspace");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("system_drop_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.system_drop_keyspace");
|
|
}
|
|
|
|
oprot->writeMessageBegin("system_drop_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.system_drop_keyspace", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_system_update_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.system_update_keyspace", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.system_update_keyspace");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.system_update_keyspace");
|
|
}
|
|
|
|
Cassandra_system_update_keyspace_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.system_update_keyspace", bytes);
|
|
}
|
|
|
|
Cassandra_system_update_keyspace_result result;
|
|
try {
|
|
iface_->system_update_keyspace(result.success, args.ks_def);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (SchemaDisagreementException &sde) {
|
|
result.sde = sde;
|
|
result.__isset.sde = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.system_update_keyspace");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("system_update_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.system_update_keyspace");
|
|
}
|
|
|
|
oprot->writeMessageBegin("system_update_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.system_update_keyspace", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_system_update_column_family(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.system_update_column_family", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.system_update_column_family");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.system_update_column_family");
|
|
}
|
|
|
|
Cassandra_system_update_column_family_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.system_update_column_family", bytes);
|
|
}
|
|
|
|
Cassandra_system_update_column_family_result result;
|
|
try {
|
|
iface_->system_update_column_family(result.success, args.cf_def);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (SchemaDisagreementException &sde) {
|
|
result.sde = sde;
|
|
result.__isset.sde = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.system_update_column_family");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("system_update_column_family", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.system_update_column_family");
|
|
}
|
|
|
|
oprot->writeMessageBegin("system_update_column_family", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.system_update_column_family", bytes);
|
|
}
|
|
}
|
|
|
|
void CassandraProcessor::process_execute_cql_query(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
|
|
{
|
|
void* ctx = NULL;
|
|
if (eventHandler_.get() != NULL) {
|
|
ctx = eventHandler_->getContext("Cassandra.execute_cql_query", callContext);
|
|
}
|
|
::apache::thrift::TProcessorContextFreer freer(eventHandler_.get(), ctx, "Cassandra.execute_cql_query");
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preRead(ctx, "Cassandra.execute_cql_query");
|
|
}
|
|
|
|
Cassandra_execute_cql_query_args args;
|
|
args.read(iprot);
|
|
iprot->readMessageEnd();
|
|
uint32_t bytes = iprot->getTransport()->readEnd();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postRead(ctx, "Cassandra.execute_cql_query", bytes);
|
|
}
|
|
|
|
Cassandra_execute_cql_query_result result;
|
|
try {
|
|
iface_->execute_cql_query(result.success, args.query, args.compression);
|
|
result.__isset.success = true;
|
|
} catch (InvalidRequestException &ire) {
|
|
result.ire = ire;
|
|
result.__isset.ire = true;
|
|
} catch (UnavailableException &ue) {
|
|
result.ue = ue;
|
|
result.__isset.ue = true;
|
|
} catch (TimedOutException &te) {
|
|
result.te = te;
|
|
result.__isset.te = true;
|
|
} catch (SchemaDisagreementException &sde) {
|
|
result.sde = sde;
|
|
result.__isset.sde = true;
|
|
} catch (const std::exception& e) {
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->handlerError(ctx, "Cassandra.execute_cql_query");
|
|
}
|
|
|
|
::apache::thrift::TApplicationException x(e.what());
|
|
oprot->writeMessageBegin("execute_cql_query", ::apache::thrift::protocol::T_EXCEPTION, seqid);
|
|
x.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
return;
|
|
}
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->preWrite(ctx, "Cassandra.execute_cql_query");
|
|
}
|
|
|
|
oprot->writeMessageBegin("execute_cql_query", ::apache::thrift::protocol::T_REPLY, seqid);
|
|
result.write(oprot);
|
|
oprot->writeMessageEnd();
|
|
bytes = oprot->getTransport()->writeEnd();
|
|
oprot->getTransport()->flush();
|
|
|
|
if (eventHandler_.get() != NULL) {
|
|
eventHandler_->postWrite(ctx, "Cassandra.execute_cql_query", bytes);
|
|
}
|
|
}
|
|
|
|
}}} // namespace
|
|
|