http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp ---------------------------------------------------------------------- diff --git a/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp new file mode 100644 index 0000000..000589d --- /dev/null +++ b/service-rpc/src/gen/thrift/gen-cpp/TCLIService_types.cpp @@ -0,0 +1,9527 @@ +/** + * Autogenerated by Thrift Compiler (0.9.2) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +#include "TCLIService_types.h" + +#include <algorithm> +#include <ostream> + +#include <thrift/TToString.h> + +namespace apache { namespace hive { namespace service { namespace rpc { namespace thrift { + +int _kTProtocolVersionValues[] = { + TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V1, + TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V2, + TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V3, + TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V4, + TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V5, + TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V6, + TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V7, + TProtocolVersion::HIVE_CLI_SERVICE_PROTOCOL_V8 +}; +const char* _kTProtocolVersionNames[] = { + "HIVE_CLI_SERVICE_PROTOCOL_V1", + "HIVE_CLI_SERVICE_PROTOCOL_V2", + "HIVE_CLI_SERVICE_PROTOCOL_V3", + "HIVE_CLI_SERVICE_PROTOCOL_V4", + "HIVE_CLI_SERVICE_PROTOCOL_V5", + "HIVE_CLI_SERVICE_PROTOCOL_V6", + "HIVE_CLI_SERVICE_PROTOCOL_V7", + "HIVE_CLI_SERVICE_PROTOCOL_V8" +}; +const std::map<int, const char*> _TProtocolVersion_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(8, _kTProtocolVersionValues, _kTProtocolVersionNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kTTypeIdValues[] = { + TTypeId::BOOLEAN_TYPE, + TTypeId::TINYINT_TYPE, + TTypeId::SMALLINT_TYPE, + TTypeId::INT_TYPE, + TTypeId::BIGINT_TYPE, + TTypeId::FLOAT_TYPE, + TTypeId::DOUBLE_TYPE, + TTypeId::STRING_TYPE, + TTypeId::TIMESTAMP_TYPE, + TTypeId::BINARY_TYPE, + TTypeId::ARRAY_TYPE, + TTypeId::MAP_TYPE, + TTypeId::STRUCT_TYPE, + TTypeId::UNION_TYPE, + TTypeId::USER_DEFINED_TYPE, + TTypeId::DECIMAL_TYPE, + TTypeId::NULL_TYPE, + TTypeId::DATE_TYPE, + TTypeId::VARCHAR_TYPE, + TTypeId::CHAR_TYPE, + TTypeId::INTERVAL_YEAR_MONTH_TYPE, + TTypeId::INTERVAL_DAY_TIME_TYPE +}; +const char* _kTTypeIdNames[] = { + "BOOLEAN_TYPE", + "TINYINT_TYPE", + "SMALLINT_TYPE", + "INT_TYPE", + "BIGINT_TYPE", + "FLOAT_TYPE", + "DOUBLE_TYPE", + "STRING_TYPE", + "TIMESTAMP_TYPE", + "BINARY_TYPE", + "ARRAY_TYPE", + "MAP_TYPE", + "STRUCT_TYPE", + "UNION_TYPE", + "USER_DEFINED_TYPE", + "DECIMAL_TYPE", + "NULL_TYPE", + "DATE_TYPE", + "VARCHAR_TYPE", + "CHAR_TYPE", + "INTERVAL_YEAR_MONTH_TYPE", + "INTERVAL_DAY_TIME_TYPE" +}; +const std::map<int, const char*> _TTypeId_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(22, _kTTypeIdValues, _kTTypeIdNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kTStatusCodeValues[] = { + TStatusCode::SUCCESS_STATUS, + TStatusCode::SUCCESS_WITH_INFO_STATUS, + TStatusCode::STILL_EXECUTING_STATUS, + TStatusCode::ERROR_STATUS, + TStatusCode::INVALID_HANDLE_STATUS +}; +const char* _kTStatusCodeNames[] = { + "SUCCESS_STATUS", + "SUCCESS_WITH_INFO_STATUS", + "STILL_EXECUTING_STATUS", + "ERROR_STATUS", + "INVALID_HANDLE_STATUS" +}; +const std::map<int, const char*> _TStatusCode_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(5, _kTStatusCodeValues, _kTStatusCodeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kTOperationStateValues[] = { + TOperationState::INITIALIZED_STATE, + TOperationState::RUNNING_STATE, + TOperationState::FINISHED_STATE, + TOperationState::CANCELED_STATE, + TOperationState::CLOSED_STATE, + TOperationState::ERROR_STATE, + TOperationState::UKNOWN_STATE, + TOperationState::PENDING_STATE +}; +const char* _kTOperationStateNames[] = { + "INITIALIZED_STATE", + "RUNNING_STATE", + "FINISHED_STATE", + "CANCELED_STATE", + "CLOSED_STATE", + "ERROR_STATE", + "UKNOWN_STATE", + "PENDING_STATE" +}; +const std::map<int, const char*> _TOperationState_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(8, _kTOperationStateValues, _kTOperationStateNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kTOperationTypeValues[] = { + TOperationType::EXECUTE_STATEMENT, + TOperationType::GET_TYPE_INFO, + TOperationType::GET_CATALOGS, + TOperationType::GET_SCHEMAS, + TOperationType::GET_TABLES, + TOperationType::GET_TABLE_TYPES, + TOperationType::GET_COLUMNS, + TOperationType::GET_FUNCTIONS, + TOperationType::UNKNOWN +}; +const char* _kTOperationTypeNames[] = { + "EXECUTE_STATEMENT", + "GET_TYPE_INFO", + "GET_CATALOGS", + "GET_SCHEMAS", + "GET_TABLES", + "GET_TABLE_TYPES", + "GET_COLUMNS", + "GET_FUNCTIONS", + "UNKNOWN" +}; +const std::map<int, const char*> _TOperationType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(9, _kTOperationTypeValues, _kTOperationTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kTGetInfoTypeValues[] = { + TGetInfoType::CLI_MAX_DRIVER_CONNECTIONS, + TGetInfoType::CLI_MAX_CONCURRENT_ACTIVITIES, + TGetInfoType::CLI_DATA_SOURCE_NAME, + TGetInfoType::CLI_FETCH_DIRECTION, + TGetInfoType::CLI_SERVER_NAME, + TGetInfoType::CLI_SEARCH_PATTERN_ESCAPE, + TGetInfoType::CLI_DBMS_NAME, + TGetInfoType::CLI_DBMS_VER, + TGetInfoType::CLI_ACCESSIBLE_TABLES, + TGetInfoType::CLI_ACCESSIBLE_PROCEDURES, + TGetInfoType::CLI_CURSOR_COMMIT_BEHAVIOR, + TGetInfoType::CLI_DATA_SOURCE_READ_ONLY, + TGetInfoType::CLI_DEFAULT_TXN_ISOLATION, + TGetInfoType::CLI_IDENTIFIER_CASE, + TGetInfoType::CLI_IDENTIFIER_QUOTE_CHAR, + TGetInfoType::CLI_MAX_COLUMN_NAME_LEN, + TGetInfoType::CLI_MAX_CURSOR_NAME_LEN, + TGetInfoType::CLI_MAX_SCHEMA_NAME_LEN, + TGetInfoType::CLI_MAX_CATALOG_NAME_LEN, + TGetInfoType::CLI_MAX_TABLE_NAME_LEN, + TGetInfoType::CLI_SCROLL_CONCURRENCY, + TGetInfoType::CLI_TXN_CAPABLE, + TGetInfoType::CLI_USER_NAME, + TGetInfoType::CLI_TXN_ISOLATION_OPTION, + TGetInfoType::CLI_INTEGRITY, + TGetInfoType::CLI_GETDATA_EXTENSIONS, + TGetInfoType::CLI_NULL_COLLATION, + TGetInfoType::CLI_ALTER_TABLE, + TGetInfoType::CLI_ORDER_BY_COLUMNS_IN_SELECT, + TGetInfoType::CLI_SPECIAL_CHARACTERS, + TGetInfoType::CLI_MAX_COLUMNS_IN_GROUP_BY, + TGetInfoType::CLI_MAX_COLUMNS_IN_INDEX, + TGetInfoType::CLI_MAX_COLUMNS_IN_ORDER_BY, + TGetInfoType::CLI_MAX_COLUMNS_IN_SELECT, + TGetInfoType::CLI_MAX_COLUMNS_IN_TABLE, + TGetInfoType::CLI_MAX_INDEX_SIZE, + TGetInfoType::CLI_MAX_ROW_SIZE, + TGetInfoType::CLI_MAX_STATEMENT_LEN, + TGetInfoType::CLI_MAX_TABLES_IN_SELECT, + TGetInfoType::CLI_MAX_USER_NAME_LEN, + TGetInfoType::CLI_OJ_CAPABILITIES, + TGetInfoType::CLI_XOPEN_CLI_YEAR, + TGetInfoType::CLI_CURSOR_SENSITIVITY, + TGetInfoType::CLI_DESCRIBE_PARAMETER, + TGetInfoType::CLI_CATALOG_NAME, + TGetInfoType::CLI_COLLATION_SEQ, + TGetInfoType::CLI_MAX_IDENTIFIER_LEN +}; +const char* _kTGetInfoTypeNames[] = { + "CLI_MAX_DRIVER_CONNECTIONS", + "CLI_MAX_CONCURRENT_ACTIVITIES", + "CLI_DATA_SOURCE_NAME", + "CLI_FETCH_DIRECTION", + "CLI_SERVER_NAME", + "CLI_SEARCH_PATTERN_ESCAPE", + "CLI_DBMS_NAME", + "CLI_DBMS_VER", + "CLI_ACCESSIBLE_TABLES", + "CLI_ACCESSIBLE_PROCEDURES", + "CLI_CURSOR_COMMIT_BEHAVIOR", + "CLI_DATA_SOURCE_READ_ONLY", + "CLI_DEFAULT_TXN_ISOLATION", + "CLI_IDENTIFIER_CASE", + "CLI_IDENTIFIER_QUOTE_CHAR", + "CLI_MAX_COLUMN_NAME_LEN", + "CLI_MAX_CURSOR_NAME_LEN", + "CLI_MAX_SCHEMA_NAME_LEN", + "CLI_MAX_CATALOG_NAME_LEN", + "CLI_MAX_TABLE_NAME_LEN", + "CLI_SCROLL_CONCURRENCY", + "CLI_TXN_CAPABLE", + "CLI_USER_NAME", + "CLI_TXN_ISOLATION_OPTION", + "CLI_INTEGRITY", + "CLI_GETDATA_EXTENSIONS", + "CLI_NULL_COLLATION", + "CLI_ALTER_TABLE", + "CLI_ORDER_BY_COLUMNS_IN_SELECT", + "CLI_SPECIAL_CHARACTERS", + "CLI_MAX_COLUMNS_IN_GROUP_BY", + "CLI_MAX_COLUMNS_IN_INDEX", + "CLI_MAX_COLUMNS_IN_ORDER_BY", + "CLI_MAX_COLUMNS_IN_SELECT", + "CLI_MAX_COLUMNS_IN_TABLE", + "CLI_MAX_INDEX_SIZE", + "CLI_MAX_ROW_SIZE", + "CLI_MAX_STATEMENT_LEN", + "CLI_MAX_TABLES_IN_SELECT", + "CLI_MAX_USER_NAME_LEN", + "CLI_OJ_CAPABILITIES", + "CLI_XOPEN_CLI_YEAR", + "CLI_CURSOR_SENSITIVITY", + "CLI_DESCRIBE_PARAMETER", + "CLI_CATALOG_NAME", + "CLI_COLLATION_SEQ", + "CLI_MAX_IDENTIFIER_LEN" +}; +const std::map<int, const char*> _TGetInfoType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(47, _kTGetInfoTypeValues, _kTGetInfoTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + +int _kTFetchOrientationValues[] = { + TFetchOrientation::FETCH_NEXT, + TFetchOrientation::FETCH_PRIOR, + TFetchOrientation::FETCH_RELATIVE, + TFetchOrientation::FETCH_ABSOLUTE, + TFetchOrientation::FETCH_FIRST, + TFetchOrientation::FETCH_LAST +}; +const char* _kTFetchOrientationNames[] = { + "FETCH_NEXT", + "FETCH_PRIOR", + "FETCH_RELATIVE", + "FETCH_ABSOLUTE", + "FETCH_FIRST", + "FETCH_LAST" +}; +const std::map<int, const char*> _TFetchOrientation_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _kTFetchOrientationValues, _kTFetchOrientationNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + + +TTypeQualifierValue::~TTypeQualifierValue() throw() { +} + + +void TTypeQualifierValue::__set_i32Value(const int32_t val) { + this->i32Value = val; +__isset.i32Value = true; +} + +void TTypeQualifierValue::__set_stringValue(const std::string& val) { + this->stringValue = val; +__isset.stringValue = true; +} + +const char* TTypeQualifierValue::ascii_fingerprint = "A7801670116150C65ACA43E6F679BA79"; +const uint8_t TTypeQualifierValue::binary_fingerprint[16] = {0xA7,0x80,0x16,0x70,0x11,0x61,0x50,0xC6,0x5A,0xCA,0x43,0xE6,0xF6,0x79,0xBA,0x79}; + +uint32_t TTypeQualifierValue::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_I32) { + xfer += iprot->readI32(this->i32Value); + this->__isset.i32Value = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->stringValue); + this->__isset.stringValue = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TTypeQualifierValue::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TTypeQualifierValue"); + + if (this->__isset.i32Value) { + xfer += oprot->writeFieldBegin("i32Value", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->i32Value); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.stringValue) { + xfer += oprot->writeFieldBegin("stringValue", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->stringValue); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TTypeQualifierValue &a, TTypeQualifierValue &b) { + using ::std::swap; + swap(a.i32Value, b.i32Value); + swap(a.stringValue, b.stringValue); + swap(a.__isset, b.__isset); +} + +TTypeQualifierValue::TTypeQualifierValue(const TTypeQualifierValue& other0) { + i32Value = other0.i32Value; + stringValue = other0.stringValue; + __isset = other0.__isset; +} +TTypeQualifierValue& TTypeQualifierValue::operator=(const TTypeQualifierValue& other1) { + i32Value = other1.i32Value; + stringValue = other1.stringValue; + __isset = other1.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TTypeQualifierValue& obj) { + using apache::thrift::to_string; + out << "TTypeQualifierValue("; + out << "i32Value="; (obj.__isset.i32Value ? (out << to_string(obj.i32Value)) : (out << "<null>")); + out << ", " << "stringValue="; (obj.__isset.stringValue ? (out << to_string(obj.stringValue)) : (out << "<null>")); + out << ")"; + return out; +} + + +TTypeQualifiers::~TTypeQualifiers() throw() { +} + + +void TTypeQualifiers::__set_qualifiers(const std::map<std::string, TTypeQualifierValue> & val) { + this->qualifiers = val; +} + +const char* TTypeQualifiers::ascii_fingerprint = "6C72981CFA989214285648FA8C196C47"; +const uint8_t TTypeQualifiers::binary_fingerprint[16] = {0x6C,0x72,0x98,0x1C,0xFA,0x98,0x92,0x14,0x28,0x56,0x48,0xFA,0x8C,0x19,0x6C,0x47}; + +uint32_t TTypeQualifiers::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_qualifiers = 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->qualifiers.clear(); + uint32_t _size2; + ::apache::thrift::protocol::TType _ktype3; + ::apache::thrift::protocol::TType _vtype4; + xfer += iprot->readMapBegin(_ktype3, _vtype4, _size2); + uint32_t _i6; + for (_i6 = 0; _i6 < _size2; ++_i6) + { + std::string _key7; + xfer += iprot->readString(_key7); + TTypeQualifierValue& _val8 = this->qualifiers[_key7]; + xfer += _val8.read(iprot); + } + xfer += iprot->readMapEnd(); + } + isset_qualifiers = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_qualifiers) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TTypeQualifiers::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TTypeQualifiers"); + + xfer += oprot->writeFieldBegin("qualifiers", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->qualifiers.size())); + std::map<std::string, TTypeQualifierValue> ::const_iterator _iter9; + for (_iter9 = this->qualifiers.begin(); _iter9 != this->qualifiers.end(); ++_iter9) + { + xfer += oprot->writeString(_iter9->first); + xfer += _iter9->second.write(oprot); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TTypeQualifiers &a, TTypeQualifiers &b) { + using ::std::swap; + swap(a.qualifiers, b.qualifiers); +} + +TTypeQualifiers::TTypeQualifiers(const TTypeQualifiers& other10) { + qualifiers = other10.qualifiers; +} +TTypeQualifiers& TTypeQualifiers::operator=(const TTypeQualifiers& other11) { + qualifiers = other11.qualifiers; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TTypeQualifiers& obj) { + using apache::thrift::to_string; + out << "TTypeQualifiers("; + out << "qualifiers=" << to_string(obj.qualifiers); + out << ")"; + return out; +} + + +TPrimitiveTypeEntry::~TPrimitiveTypeEntry() throw() { +} + + +void TPrimitiveTypeEntry::__set_type(const TTypeId::type val) { + this->type = val; +} + +void TPrimitiveTypeEntry::__set_typeQualifiers(const TTypeQualifiers& val) { + this->typeQualifiers = val; +__isset.typeQualifiers = true; +} + +const char* TPrimitiveTypeEntry::ascii_fingerprint = "755674F6A5C8EB47868686AE386FBC1C"; +const uint8_t TPrimitiveTypeEntry::binary_fingerprint[16] = {0x75,0x56,0x74,0xF6,0xA5,0xC8,0xEB,0x47,0x86,0x86,0x86,0xAE,0x38,0x6F,0xBC,0x1C}; + +uint32_t TPrimitiveTypeEntry::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_type = 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_I32) { + int32_t ecast12; + xfer += iprot->readI32(ecast12); + this->type = (TTypeId::type)ecast12; + isset_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->typeQualifiers.read(iprot); + this->__isset.typeQualifiers = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_type) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TPrimitiveTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TPrimitiveTypeEntry"); + + xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->type); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.typeQualifiers) { + xfer += oprot->writeFieldBegin("typeQualifiers", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->typeQualifiers.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b) { + using ::std::swap; + swap(a.type, b.type); + swap(a.typeQualifiers, b.typeQualifiers); + swap(a.__isset, b.__isset); +} + +TPrimitiveTypeEntry::TPrimitiveTypeEntry(const TPrimitiveTypeEntry& other13) { + type = other13.type; + typeQualifiers = other13.typeQualifiers; + __isset = other13.__isset; +} +TPrimitiveTypeEntry& TPrimitiveTypeEntry::operator=(const TPrimitiveTypeEntry& other14) { + type = other14.type; + typeQualifiers = other14.typeQualifiers; + __isset = other14.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TPrimitiveTypeEntry& obj) { + using apache::thrift::to_string; + out << "TPrimitiveTypeEntry("; + out << "type=" << to_string(obj.type); + out << ", " << "typeQualifiers="; (obj.__isset.typeQualifiers ? (out << to_string(obj.typeQualifiers)) : (out << "<null>")); + out << ")"; + return out; +} + + +TArrayTypeEntry::~TArrayTypeEntry() throw() { +} + + +void TArrayTypeEntry::__set_objectTypePtr(const TTypeEntryPtr val) { + this->objectTypePtr = val; +} + +const char* TArrayTypeEntry::ascii_fingerprint = "E86CACEB22240450EDCBEFC3A83970E4"; +const uint8_t TArrayTypeEntry::binary_fingerprint[16] = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; + +uint32_t TArrayTypeEntry::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_objectTypePtr = 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_I32) { + xfer += iprot->readI32(this->objectTypePtr); + isset_objectTypePtr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_objectTypePtr) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TArrayTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TArrayTypeEntry"); + + xfer += oprot->writeFieldBegin("objectTypePtr", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->objectTypePtr); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TArrayTypeEntry &a, TArrayTypeEntry &b) { + using ::std::swap; + swap(a.objectTypePtr, b.objectTypePtr); +} + +TArrayTypeEntry::TArrayTypeEntry(const TArrayTypeEntry& other15) { + objectTypePtr = other15.objectTypePtr; +} +TArrayTypeEntry& TArrayTypeEntry::operator=(const TArrayTypeEntry& other16) { + objectTypePtr = other16.objectTypePtr; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TArrayTypeEntry& obj) { + using apache::thrift::to_string; + out << "TArrayTypeEntry("; + out << "objectTypePtr=" << to_string(obj.objectTypePtr); + out << ")"; + return out; +} + + +TMapTypeEntry::~TMapTypeEntry() throw() { +} + + +void TMapTypeEntry::__set_keyTypePtr(const TTypeEntryPtr val) { + this->keyTypePtr = val; +} + +void TMapTypeEntry::__set_valueTypePtr(const TTypeEntryPtr val) { + this->valueTypePtr = val; +} + +const char* TMapTypeEntry::ascii_fingerprint = "989D1F1AE8D148D5E2119FFEC4BBBEE3"; +const uint8_t TMapTypeEntry::binary_fingerprint[16] = {0x98,0x9D,0x1F,0x1A,0xE8,0xD1,0x48,0xD5,0xE2,0x11,0x9F,0xFE,0xC4,0xBB,0xBE,0xE3}; + +uint32_t TMapTypeEntry::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_keyTypePtr = false; + bool isset_valueTypePtr = 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_I32) { + xfer += iprot->readI32(this->keyTypePtr); + isset_keyTypePtr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->valueTypePtr); + isset_valueTypePtr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_keyTypePtr) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_valueTypePtr) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TMapTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TMapTypeEntry"); + + xfer += oprot->writeFieldBegin("keyTypePtr", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->keyTypePtr); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("valueTypePtr", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32(this->valueTypePtr); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TMapTypeEntry &a, TMapTypeEntry &b) { + using ::std::swap; + swap(a.keyTypePtr, b.keyTypePtr); + swap(a.valueTypePtr, b.valueTypePtr); +} + +TMapTypeEntry::TMapTypeEntry(const TMapTypeEntry& other17) { + keyTypePtr = other17.keyTypePtr; + valueTypePtr = other17.valueTypePtr; +} +TMapTypeEntry& TMapTypeEntry::operator=(const TMapTypeEntry& other18) { + keyTypePtr = other18.keyTypePtr; + valueTypePtr = other18.valueTypePtr; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TMapTypeEntry& obj) { + using apache::thrift::to_string; + out << "TMapTypeEntry("; + out << "keyTypePtr=" << to_string(obj.keyTypePtr); + out << ", " << "valueTypePtr=" << to_string(obj.valueTypePtr); + out << ")"; + return out; +} + + +TStructTypeEntry::~TStructTypeEntry() throw() { +} + + +void TStructTypeEntry::__set_nameToTypePtr(const std::map<std::string, TTypeEntryPtr> & val) { + this->nameToTypePtr = val; +} + +const char* TStructTypeEntry::ascii_fingerprint = "91F548CA159B4AB4291F5741AC161402"; +const uint8_t TStructTypeEntry::binary_fingerprint[16] = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; + +uint32_t TStructTypeEntry::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_nameToTypePtr = 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->nameToTypePtr.clear(); + uint32_t _size19; + ::apache::thrift::protocol::TType _ktype20; + ::apache::thrift::protocol::TType _vtype21; + xfer += iprot->readMapBegin(_ktype20, _vtype21, _size19); + uint32_t _i23; + for (_i23 = 0; _i23 < _size19; ++_i23) + { + std::string _key24; + xfer += iprot->readString(_key24); + TTypeEntryPtr& _val25 = this->nameToTypePtr[_key24]; + xfer += iprot->readI32(_val25); + } + xfer += iprot->readMapEnd(); + } + isset_nameToTypePtr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_nameToTypePtr) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TStructTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TStructTypeEntry"); + + xfer += oprot->writeFieldBegin("nameToTypePtr", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast<uint32_t>(this->nameToTypePtr.size())); + std::map<std::string, TTypeEntryPtr> ::const_iterator _iter26; + for (_iter26 = this->nameToTypePtr.begin(); _iter26 != this->nameToTypePtr.end(); ++_iter26) + { + xfer += oprot->writeString(_iter26->first); + xfer += oprot->writeI32(_iter26->second); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TStructTypeEntry &a, TStructTypeEntry &b) { + using ::std::swap; + swap(a.nameToTypePtr, b.nameToTypePtr); +} + +TStructTypeEntry::TStructTypeEntry(const TStructTypeEntry& other27) { + nameToTypePtr = other27.nameToTypePtr; +} +TStructTypeEntry& TStructTypeEntry::operator=(const TStructTypeEntry& other28) { + nameToTypePtr = other28.nameToTypePtr; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TStructTypeEntry& obj) { + using apache::thrift::to_string; + out << "TStructTypeEntry("; + out << "nameToTypePtr=" << to_string(obj.nameToTypePtr); + out << ")"; + return out; +} + + +TUnionTypeEntry::~TUnionTypeEntry() throw() { +} + + +void TUnionTypeEntry::__set_nameToTypePtr(const std::map<std::string, TTypeEntryPtr> & val) { + this->nameToTypePtr = val; +} + +const char* TUnionTypeEntry::ascii_fingerprint = "91F548CA159B4AB4291F5741AC161402"; +const uint8_t TUnionTypeEntry::binary_fingerprint[16] = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; + +uint32_t TUnionTypeEntry::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_nameToTypePtr = 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->nameToTypePtr.clear(); + uint32_t _size29; + ::apache::thrift::protocol::TType _ktype30; + ::apache::thrift::protocol::TType _vtype31; + xfer += iprot->readMapBegin(_ktype30, _vtype31, _size29); + uint32_t _i33; + for (_i33 = 0; _i33 < _size29; ++_i33) + { + std::string _key34; + xfer += iprot->readString(_key34); + TTypeEntryPtr& _val35 = this->nameToTypePtr[_key34]; + xfer += iprot->readI32(_val35); + } + xfer += iprot->readMapEnd(); + } + isset_nameToTypePtr = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_nameToTypePtr) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TUnionTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TUnionTypeEntry"); + + xfer += oprot->writeFieldBegin("nameToTypePtr", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast<uint32_t>(this->nameToTypePtr.size())); + std::map<std::string, TTypeEntryPtr> ::const_iterator _iter36; + for (_iter36 = this->nameToTypePtr.begin(); _iter36 != this->nameToTypePtr.end(); ++_iter36) + { + xfer += oprot->writeString(_iter36->first); + xfer += oprot->writeI32(_iter36->second); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TUnionTypeEntry &a, TUnionTypeEntry &b) { + using ::std::swap; + swap(a.nameToTypePtr, b.nameToTypePtr); +} + +TUnionTypeEntry::TUnionTypeEntry(const TUnionTypeEntry& other37) { + nameToTypePtr = other37.nameToTypePtr; +} +TUnionTypeEntry& TUnionTypeEntry::operator=(const TUnionTypeEntry& other38) { + nameToTypePtr = other38.nameToTypePtr; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TUnionTypeEntry& obj) { + using apache::thrift::to_string; + out << "TUnionTypeEntry("; + out << "nameToTypePtr=" << to_string(obj.nameToTypePtr); + out << ")"; + return out; +} + + +TUserDefinedTypeEntry::~TUserDefinedTypeEntry() throw() { +} + + +void TUserDefinedTypeEntry::__set_typeClassName(const std::string& val) { + this->typeClassName = val; +} + +const char* TUserDefinedTypeEntry::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t TUserDefinedTypeEntry::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + +uint32_t TUserDefinedTypeEntry::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_typeClassName = 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->typeClassName); + isset_typeClassName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_typeClassName) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TUserDefinedTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TUserDefinedTypeEntry"); + + xfer += oprot->writeFieldBegin("typeClassName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->typeClassName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b) { + using ::std::swap; + swap(a.typeClassName, b.typeClassName); +} + +TUserDefinedTypeEntry::TUserDefinedTypeEntry(const TUserDefinedTypeEntry& other39) { + typeClassName = other39.typeClassName; +} +TUserDefinedTypeEntry& TUserDefinedTypeEntry::operator=(const TUserDefinedTypeEntry& other40) { + typeClassName = other40.typeClassName; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TUserDefinedTypeEntry& obj) { + using apache::thrift::to_string; + out << "TUserDefinedTypeEntry("; + out << "typeClassName=" << to_string(obj.typeClassName); + out << ")"; + return out; +} + + +TTypeEntry::~TTypeEntry() throw() { +} + + +void TTypeEntry::__set_primitiveEntry(const TPrimitiveTypeEntry& val) { + this->primitiveEntry = val; +} + +void TTypeEntry::__set_arrayEntry(const TArrayTypeEntry& val) { + this->arrayEntry = val; +} + +void TTypeEntry::__set_mapEntry(const TMapTypeEntry& val) { + this->mapEntry = val; +} + +void TTypeEntry::__set_structEntry(const TStructTypeEntry& val) { + this->structEntry = val; +} + +void TTypeEntry::__set_unionEntry(const TUnionTypeEntry& val) { + this->unionEntry = val; +} + +void TTypeEntry::__set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val) { + this->userDefinedTypeEntry = val; +} + +const char* TTypeEntry::ascii_fingerprint = "2FE56D9097E325DAA7E933738C6D325F"; +const uint8_t TTypeEntry::binary_fingerprint[16] = {0x2F,0xE5,0x6D,0x90,0x97,0xE3,0x25,0xDA,0xA7,0xE9,0x33,0x73,0x8C,0x6D,0x32,0x5F}; + +uint32_t TTypeEntry::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->primitiveEntry.read(iprot); + this->__isset.primitiveEntry = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->arrayEntry.read(iprot); + this->__isset.arrayEntry = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->mapEntry.read(iprot); + this->__isset.mapEntry = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->structEntry.read(iprot); + this->__isset.structEntry = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->unionEntry.read(iprot); + this->__isset.unionEntry = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->userDefinedTypeEntry.read(iprot); + this->__isset.userDefinedTypeEntry = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TTypeEntry"); + + xfer += oprot->writeFieldBegin("primitiveEntry", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->primitiveEntry.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("arrayEntry", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->arrayEntry.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("mapEntry", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->mapEntry.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("structEntry", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->structEntry.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("unionEntry", ::apache::thrift::protocol::T_STRUCT, 5); + xfer += this->unionEntry.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userDefinedTypeEntry", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->userDefinedTypeEntry.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TTypeEntry &a, TTypeEntry &b) { + using ::std::swap; + swap(a.primitiveEntry, b.primitiveEntry); + swap(a.arrayEntry, b.arrayEntry); + swap(a.mapEntry, b.mapEntry); + swap(a.structEntry, b.structEntry); + swap(a.unionEntry, b.unionEntry); + swap(a.userDefinedTypeEntry, b.userDefinedTypeEntry); + swap(a.__isset, b.__isset); +} + +TTypeEntry::TTypeEntry(const TTypeEntry& other41) { + primitiveEntry = other41.primitiveEntry; + arrayEntry = other41.arrayEntry; + mapEntry = other41.mapEntry; + structEntry = other41.structEntry; + unionEntry = other41.unionEntry; + userDefinedTypeEntry = other41.userDefinedTypeEntry; + __isset = other41.__isset; +} +TTypeEntry& TTypeEntry::operator=(const TTypeEntry& other42) { + primitiveEntry = other42.primitiveEntry; + arrayEntry = other42.arrayEntry; + mapEntry = other42.mapEntry; + structEntry = other42.structEntry; + unionEntry = other42.unionEntry; + userDefinedTypeEntry = other42.userDefinedTypeEntry; + __isset = other42.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TTypeEntry& obj) { + using apache::thrift::to_string; + out << "TTypeEntry("; + out << "primitiveEntry=" << to_string(obj.primitiveEntry); + out << ", " << "arrayEntry=" << to_string(obj.arrayEntry); + out << ", " << "mapEntry=" << to_string(obj.mapEntry); + out << ", " << "structEntry=" << to_string(obj.structEntry); + out << ", " << "unionEntry=" << to_string(obj.unionEntry); + out << ", " << "userDefinedTypeEntry=" << to_string(obj.userDefinedTypeEntry); + out << ")"; + return out; +} + + +TTypeDesc::~TTypeDesc() throw() { +} + + +void TTypeDesc::__set_types(const std::vector<TTypeEntry> & val) { + this->types = val; +} + +const char* TTypeDesc::ascii_fingerprint = "90B3C5A0B73419A84E85E0E48C452AA5"; +const uint8_t TTypeDesc::binary_fingerprint[16] = {0x90,0xB3,0xC5,0xA0,0xB7,0x34,0x19,0xA8,0x4E,0x85,0xE0,0xE4,0x8C,0x45,0x2A,0xA5}; + +uint32_t TTypeDesc::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_types = 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->types.clear(); + uint32_t _size43; + ::apache::thrift::protocol::TType _etype46; + xfer += iprot->readListBegin(_etype46, _size43); + this->types.resize(_size43); + uint32_t _i47; + for (_i47 = 0; _i47 < _size43; ++_i47) + { + xfer += this->types[_i47].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_types = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_types) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TTypeDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TTypeDesc"); + + xfer += oprot->writeFieldBegin("types", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->types.size())); + std::vector<TTypeEntry> ::const_iterator _iter48; + for (_iter48 = this->types.begin(); _iter48 != this->types.end(); ++_iter48) + { + xfer += (*_iter48).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TTypeDesc &a, TTypeDesc &b) { + using ::std::swap; + swap(a.types, b.types); +} + +TTypeDesc::TTypeDesc(const TTypeDesc& other49) { + types = other49.types; +} +TTypeDesc& TTypeDesc::operator=(const TTypeDesc& other50) { + types = other50.types; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TTypeDesc& obj) { + using apache::thrift::to_string; + out << "TTypeDesc("; + out << "types=" << to_string(obj.types); + out << ")"; + return out; +} + + +TColumnDesc::~TColumnDesc() throw() { +} + + +void TColumnDesc::__set_columnName(const std::string& val) { + this->columnName = val; +} + +void TColumnDesc::__set_typeDesc(const TTypeDesc& val) { + this->typeDesc = val; +} + +void TColumnDesc::__set_position(const int32_t val) { + this->position = val; +} + +void TColumnDesc::__set_comment(const std::string& val) { + this->comment = val; +__isset.comment = true; +} + +const char* TColumnDesc::ascii_fingerprint = "EABED9009D5FCABFCA65612069F2A849"; +const uint8_t TColumnDesc::binary_fingerprint[16] = {0xEA,0xBE,0xD9,0x00,0x9D,0x5F,0xCA,0xBF,0xCA,0x65,0x61,0x20,0x69,0xF2,0xA8,0x49}; + +uint32_t TColumnDesc::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_columnName = false; + bool isset_typeDesc = false; + bool isset_position = 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->columnName); + isset_columnName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->typeDesc.read(iprot); + isset_typeDesc = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->position); + isset_position = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->comment); + this->__isset.comment = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_columnName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_typeDesc) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_position) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TColumnDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TColumnDesc"); + + xfer += oprot->writeFieldBegin("columnName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->columnName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("typeDesc", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->typeDesc.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("position", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->position); + xfer += oprot->writeFieldEnd(); + + if (this->__isset.comment) { + xfer += oprot->writeFieldBegin("comment", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->comment); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TColumnDesc &a, TColumnDesc &b) { + using ::std::swap; + swap(a.columnName, b.columnName); + swap(a.typeDesc, b.typeDesc); + swap(a.position, b.position); + swap(a.comment, b.comment); + swap(a.__isset, b.__isset); +} + +TColumnDesc::TColumnDesc(const TColumnDesc& other51) { + columnName = other51.columnName; + typeDesc = other51.typeDesc; + position = other51.position; + comment = other51.comment; + __isset = other51.__isset; +} +TColumnDesc& TColumnDesc::operator=(const TColumnDesc& other52) { + columnName = other52.columnName; + typeDesc = other52.typeDesc; + position = other52.position; + comment = other52.comment; + __isset = other52.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TColumnDesc& obj) { + using apache::thrift::to_string; + out << "TColumnDesc("; + out << "columnName=" << to_string(obj.columnName); + out << ", " << "typeDesc=" << to_string(obj.typeDesc); + out << ", " << "position=" << to_string(obj.position); + out << ", " << "comment="; (obj.__isset.comment ? (out << to_string(obj.comment)) : (out << "<null>")); + out << ")"; + return out; +} + + +TTableSchema::~TTableSchema() throw() { +} + + +void TTableSchema::__set_columns(const std::vector<TColumnDesc> & val) { + this->columns = val; +} + +const char* TTableSchema::ascii_fingerprint = "7A1811E49313E5977107FC667B20E39D"; +const uint8_t TTableSchema::binary_fingerprint[16] = {0x7A,0x18,0x11,0xE4,0x93,0x13,0xE5,0x97,0x71,0x07,0xFC,0x66,0x7B,0x20,0xE3,0x9D}; + +uint32_t TTableSchema::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_columns = 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->columns.clear(); + uint32_t _size53; + ::apache::thrift::protocol::TType _etype56; + xfer += iprot->readListBegin(_etype56, _size53); + this->columns.resize(_size53); + uint32_t _i57; + for (_i57 = 0; _i57 < _size53; ++_i57) + { + xfer += this->columns[_i57].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_columns = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_columns) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TTableSchema::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TTableSchema"); + + xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->columns.size())); + std::vector<TColumnDesc> ::const_iterator _iter58; + for (_iter58 = this->columns.begin(); _iter58 != this->columns.end(); ++_iter58) + { + xfer += (*_iter58).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TTableSchema &a, TTableSchema &b) { + using ::std::swap; + swap(a.columns, b.columns); +} + +TTableSchema::TTableSchema(const TTableSchema& other59) { + columns = other59.columns; +} +TTableSchema& TTableSchema::operator=(const TTableSchema& other60) { + columns = other60.columns; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TTableSchema& obj) { + using apache::thrift::to_string; + out << "TTableSchema("; + out << "columns=" << to_string(obj.columns); + out << ")"; + return out; +} + + +TBoolValue::~TBoolValue() throw() { +} + + +void TBoolValue::__set_value(const bool val) { + this->value = val; +__isset.value = true; +} + +const char* TBoolValue::ascii_fingerprint = "BF054652DEF86253C2BEE7D947F167DD"; +const uint8_t TBoolValue::binary_fingerprint[16] = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; + +uint32_t TBoolValue::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_BOOL) { + xfer += iprot->readBool(this->value); + this->__isset.value = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TBoolValue::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TBoolValue"); + + if (this->__isset.value) { + xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_BOOL, 1); + xfer += oprot->writeBool(this->value); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TBoolValue &a, TBoolValue &b) { + using ::std::swap; + swap(a.value, b.value); + swap(a.__isset, b.__isset); +} + +TBoolValue::TBoolValue(const TBoolValue& other61) { + value = other61.value; + __isset = other61.__isset; +} +TBoolValue& TBoolValue::operator=(const TBoolValue& other62) { + value = other62.value; + __isset = other62.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TBoolValue& obj) { + using apache::thrift::to_string; + out << "TBoolValue("; + out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "<null>")); + out << ")"; + return out; +} + + +TByteValue::~TByteValue() throw() { +} + + +void TByteValue::__set_value(const int8_t val) { + this->value = val; +__isset.value = true; +} + +const char* TByteValue::ascii_fingerprint = "9C15298ACB5D04AEA9B52D5DDE6F9208"; +const uint8_t TByteValue::binary_fingerprint[16] = {0x9C,0x15,0x29,0x8A,0xCB,0x5D,0x04,0xAE,0xA9,0xB5,0x2D,0x5D,0xDE,0x6F,0x92,0x08}; + +uint32_t TByteValue::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_BYTE) { + xfer += iprot->readByte(this->value); + this->__isset.value = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TByteValue::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TByteValue"); + + if (this->__isset.value) { + xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_BYTE, 1); + xfer += oprot->writeByte(this->value); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TByteValue &a, TByteValue &b) { + using ::std::swap; + swap(a.value, b.value); + swap(a.__isset, b.__isset); +} + +TByteValue::TByteValue(const TByteValue& other63) { + value = other63.value; + __isset = other63.__isset; +} +TByteValue& TByteValue::operator=(const TByteValue& other64) { + value = other64.value; + __isset = other64.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TByteValue& obj) { + using apache::thrift::to_string; + out << "TByteValue("; + out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "<null>")); + out << ")"; + return out; +} + + +TI16Value::~TI16Value() throw() { +} + + +void TI16Value::__set_value(const int16_t val) { + this->value = val; +__isset.value = true; +} + +const char* TI16Value::ascii_fingerprint = "5DAC9C51C7E1106BF936FC71860BE9D5"; +const uint8_t TI16Value::binary_fingerprint[16] = {0x5D,0xAC,0x9C,0x51,0xC7,0xE1,0x10,0x6B,0xF9,0x36,0xFC,0x71,0x86,0x0B,0xE9,0xD5}; + +uint32_t TI16Value::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_I16) { + xfer += iprot->readI16(this->value); + this->__isset.value = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TI16Value::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TI16Value"); + + if (this->__isset.value) { + xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_I16, 1); + xfer += oprot->writeI16(this->value); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TI16Value &a, TI16Value &b) { + using ::std::swap; + swap(a.value, b.value); + swap(a.__isset, b.__isset); +} + +TI16Value::TI16Value(const TI16Value& other65) { + value = other65.value; + __isset = other65.__isset; +} +TI16Value& TI16Value::operator=(const TI16Value& other66) { + value = other66.value; + __isset = other66.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TI16Value& obj) { + using apache::thrift::to_string; + out << "TI16Value("; + out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "<null>")); + out << ")"; + return out; +} + + +TI32Value::~TI32Value() throw() { +} + + +void TI32Value::__set_value(const int32_t val) { + this->value = val; +__isset.value = true; +} + +const char* TI32Value::ascii_fingerprint = "E7A96B151330359E84C0A3AC91BCBACD"; +const uint8_t TI32Value::binary_fingerprint[16] = {0xE7,0xA9,0x6B,0x15,0x13,0x30,0x35,0x9E,0x84,0xC0,0xA3,0xAC,0x91,0xBC,0xBA,0xCD}; + +uint32_t TI32Value::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_I32) { + xfer += iprot->readI32(this->value); + this->__isset.value = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TI32Value::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TI32Value"); + + if (this->__isset.value) { + xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32(this->value); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TI32Value &a, TI32Value &b) { + using ::std::swap; + swap(a.value, b.value); + swap(a.__isset, b.__isset); +} + +TI32Value::TI32Value(const TI32Value& other67) { + value = other67.value; + __isset = other67.__isset; +} +TI32Value& TI32Value::operator=(const TI32Value& other68) { + value = other68.value; + __isset = other68.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TI32Value& obj) { + using apache::thrift::to_string; + out << "TI32Value("; + out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "<null>")); + out << ")"; + return out; +} + + +TI64Value::~TI64Value() throw() { +} + + +void TI64Value::__set_value(const int64_t val) { + this->value = val; +__isset.value = true; +} + +const char* TI64Value::ascii_fingerprint = "148F3AAAC1D9859963D5E800D187BF26"; +const uint8_t TI64Value::binary_fingerprint[16] = {0x14,0x8F,0x3A,0xAA,0xC1,0xD9,0x85,0x99,0x63,0xD5,0xE8,0x00,0xD1,0x87,0xBF,0x26}; + +uint32_t TI64Value::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_I64) { + xfer += iprot->readI64(this->value); + this->__isset.value = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TI64Value::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TI64Value"); + + if (this->__isset.value) { + xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_I64, 1); + xfer += oprot->writeI64(this->value); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TI64Value &a, TI64Value &b) { + using ::std::swap; + swap(a.value, b.value); + swap(a.__isset, b.__isset); +} + +TI64Value::TI64Value(const TI64Value& other69) { + value = other69.value; + __isset = other69.__isset; +} +TI64Value& TI64Value::operator=(const TI64Value& other70) { + value = other70.value; + __isset = other70.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TI64Value& obj) { + using apache::thrift::to_string; + out << "TI64Value("; + out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "<null>")); + out << ")"; + return out; +} + + +TDoubleValue::~TDoubleValue() throw() { +} + + +void TDoubleValue::__set_value(const double val) { + this->value = val; +__isset.value = true; +} + +const char* TDoubleValue::ascii_fingerprint = "3586E570A474C4A8603B4FF74903B3A6"; +const uint8_t TDoubleValue::binary_fingerprint[16] = {0x35,0x86,0xE5,0x70,0xA4,0x74,0xC4,0xA8,0x60,0x3B,0x4F,0xF7,0x49,0x03,0xB3,0xA6}; + +uint32_t TDoubleValue::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_DOUBLE) { + xfer += iprot->readDouble(this->value); + this->__isset.value = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TDoubleValue::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TDoubleValue"); + + if (this->__isset.value) { + xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_DOUBLE, 1); + xfer += oprot->writeDouble(this->value); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TDoubleValue &a, TDoubleValue &b) { + using ::std::swap; + swap(a.value, b.value); + swap(a.__isset, b.__isset); +} + +TDoubleValue::TDoubleValue(const TDoubleValue& other71) { + value = other71.value; + __isset = other71.__isset; +} +TDoubleValue& TDoubleValue::operator=(const TDoubleValue& other72) { + value = other72.value; + __isset = other72.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TDoubleValue& obj) { + using apache::thrift::to_string; + out << "TDoubleValue("; + out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "<null>")); + out << ")"; + return out; +} + + +TStringValue::~TStringValue() throw() { +} + + +void TStringValue::__set_value(const std::string& val) { + this->value = val; +__isset.value = true; +} + +const char* TStringValue::ascii_fingerprint = "66E694018C17E5B65A59AE8F55CCA3CD"; +const uint8_t TStringValue::binary_fingerprint[16] = {0x66,0xE6,0x94,0x01,0x8C,0x17,0xE5,0xB6,0x5A,0x59,0xAE,0x8F,0x55,0xCC,0xA3,0xCD}; + +uint32_t TStringValue::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_STRING) { + xfer += iprot->readString(this->value); + this->__isset.value = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TStringValue::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TStringValue"); + + if (this->__isset.value) { + xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->value); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TStringValue &a, TStringValue &b) { + using ::std::swap; + swap(a.value, b.value); + swap(a.__isset, b.__isset); +} + +TStringValue::TStringValue(const TStringValue& other73) { + value = other73.value; + __isset = other73.__isset; +} +TStringValue& TStringValue::operator=(const TStringValue& other74) { + value = other74.value; + __isset = other74.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TStringValue& obj) { + using apache::thrift::to_string; + out << "TStringValue("; + out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "<null>")); + out << ")"; + return out; +} + + +TColumnValue::~TColumnValue() throw() { +} + + +void TColumnValue::__set_boolVal(const TBoolValue& val) { + this->boolVal = val; +} + +void TColumnValue::__set_byteVal(const TByteValue& val) { + this->byteVal = val; +} + +void TColumnValue::__set_i16Val(const TI16Value& val) { + this->i16Val = val; +} + +void TColumnValue::__set_i32Val(const TI32Value& val) { + this->i32Val = val; +} + +void TColumnValue::__set_i64Val(const TI64Value& val) { + this->i64Val = val; +} + +void TColumnValue::__set_doubleVal(const TDoubleValue& val) { + this->doubleVal = val; +} + +void TColumnValue::__set_stringVal(const TStringValue& val) { + this->stringVal = val; +} + +const char* TColumnValue::ascii_fingerprint = "C2DDD988447EA7999A8285AA38AAE9AD"; +const uint8_t TColumnValue::binary_fingerprint[16] = {0xC2,0xDD,0xD9,0x88,0x44,0x7E,0xA7,0x99,0x9A,0x82,0x85,0xAA,0x38,0xAA,0xE9,0xAD}; + +uint32_t TColumnValue::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->boolVal.read(iprot); + this->__isset.boolVal = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->byteVal.read(iprot); + this->__isset.byteVal = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->i16Val.read(iprot); + this->__isset.i16Val = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->i32Val.read(iprot); + this->__isset.i32Val = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->i64Val.read(iprot); + this->__isset.i64Val = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->doubleVal.read(iprot); + this->__isset.doubleVal = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->stringVal.read(iprot); + this->__isset.stringVal = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t TColumnValue::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TColumnValue"); + + xfer += oprot->writeFieldBegin("boolVal", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->boolVal.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("byteVal", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->byteVal.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("i16Val", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->i16Val.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("i32Val", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->i32Val.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("i64Val", ::apache::thrift::protocol::T_STRUCT, 5); + xfer += this->i64Val.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("doubleVal", ::apache::thrift::protocol::T_STRUCT, 6); + xfer += this->doubleVal.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("stringVal", ::apache::thrift::protocol::T_STRUCT, 7); + xfer += this->stringVal.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TColumnValue &a, TColumnValue &b) { + using ::std::swap; + swap(a.boolVal, b.boolVal); + swap(a.byteVal, b.byteVal); + swap(a.i16Val, b.i16Val); + swap(a.i32Val, b.i32Val); + swap(a.i64Val, b.i64Val); + swap(a.doubleVal, b.doubleVal); + swap(a.stringVal, b.stringVal); + swap(a.__isset, b.__isset); +} + +TColumnValue::TColumnValue(const TColumnValue& other75) { + boolVal = other75.boolVal; + byteVal = other75.byteVal; + i16Val = other75.i16Val; + i32Val = other75.i32Val; + i64Val = other75.i64Val; + doubleVal = other75.doubleVal; + stringVal = other75.stringVal; + __isset = other75.__isset; +} +TColumnValue& TColumnValue::operator=(const TColumnValue& other76) { + boolVal = other76.boolVal; + byteVal = other76.byteVal; + i16Val = other76.i16Val; + i32Val = other76.i32Val; + i64Val = other76.i64Val; + doubleVal = other76.doubleVal; + stringVal = other76.stringVal; + __isset = other76.__isset; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TColumnValue& obj) { + using apache::thrift::to_string; + out << "TColumnValue("; + out << "boolVal=" << to_string(obj.boolVal); + out << ", " << "byteVal=" << to_string(obj.byteVal); + out << ", " << "i16Val=" << to_string(obj.i16Val); + out << ", " << "i32Val=" << to_string(obj.i32Val); + out << ", " << "i64Val=" << to_string(obj.i64Val); + out << ", " << "doubleVal=" << to_string(obj.doubleVal); + out << ", " << "stringVal=" << to_string(obj.stringVal); + out << ")"; + return out; +} + + +TRow::~TRow() throw() { +} + + +void TRow::__set_colVals(const std::vector<TColumnValue> & val) { + this->colVals = val; +} + +const char* TRow::ascii_fingerprint = "E73FD1FCA0CA58A669FC3E02FB68D534"; +const uint8_t TRow::binary_fingerprint[16] = {0xE7,0x3F,0xD1,0xFC,0xA0,0xCA,0x58,0xA6,0x69,0xFC,0x3E,0x02,0xFB,0x68,0xD5,0x34}; + +uint32_t TRow::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_colVals = 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->colVals.clear(); + uint32_t _size77; + ::apache::thrift::protocol::TType _etype80; + xfer += iprot->readListBegin(_etype80, _size77); + this->colVals.resize(_size77); + uint32_t _i81; + for (_i81 = 0; _i81 < _size77; ++_i81) + { + xfer += this->colVals[_i81].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_colVals = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_colVals) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TRow::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TRow"); + + xfer += oprot->writeFieldBegin("colVals", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->colVals.size())); + std::vector<TColumnValue> ::const_iterator _iter82; + for (_iter82 = this->colVals.begin(); _iter82 != this->colVals.end(); ++_iter82) + { + xfer += (*_iter82).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TRow &a, TRow &b) { + using ::std::swap; + swap(a.colVals, b.colVals); +} + +TRow::TRow(const TRow& other83) { + colVals = other83.colVals; +} +TRow& TRow::operator=(const TRow& other84) { + colVals = other84.colVals; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TRow& obj) { + using apache::thrift::to_string; + out << "TRow("; + out << "colVals=" << to_string(obj.colVals); + out << ")"; + return out; +} + + +TBoolColumn::~TBoolColumn() throw() { +} + + +void TBoolColumn::__set_values(const std::vector<bool> & val) { + this->values = val; +} + +void TBoolColumn::__set_nulls(const std::string& val) { + this->nulls = val; +} + +const char* TBoolColumn::ascii_fingerprint = "F9058324D96DB7F974D8ACDC01C54219"; +const uint8_t TBoolColumn::binary_fingerprint[16] = {0xF9,0x05,0x83,0x24,0xD9,0x6D,0xB7,0xF9,0x74,0xD8,0xAC,0xDC,0x01,0xC5,0x42,0x19}; + +uint32_t TBoolColumn::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_values = false; + bool isset_nulls = 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->values.clear(); + uint32_t _size85; + ::apache::thrift::protocol::TType _etype88; + xfer += iprot->readListBegin(_etype88, _size85); + this->values.resize(_size85); + uint32_t _i89; + for (_i89 = 0; _i89 < _size85; ++_i89) + { + xfer += iprot->readBool(this->values[_i89]); + } + xfer += iprot->readListEnd(); + } + isset_values = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readBinary(this->nulls); + isset_nulls = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_values) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_nulls) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TBoolColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TBoolColumn"); + + xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_BOOL, static_cast<uint32_t>(this->values.size())); + std::vector<bool> ::const_iterator _iter90; + for (_iter90 = this->values.begin(); _iter90 != this->values.end(); ++_iter90) + { + xfer += oprot->writeBool((*_iter90)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeBinary(this->nulls); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TBoolColumn &a, TBoolColumn &b) { + using ::std::swap; + swap(a.values, b.values); + swap(a.nulls, b.nulls); +} + +TBoolColumn::TBoolColumn(const TBoolColumn& other91) { + values = other91.values; + nulls = other91.nulls; +} +TBoolColumn& TBoolColumn::operator=(const TBoolColumn& other92) { + values = other92.values; + nulls = other92.nulls; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TBoolColumn& obj) { + using apache::thrift::to_string; + out << "TBoolColumn("; + out << "values=" << to_string(obj.values); + out << ", " << "nulls=" << to_string(obj.nulls); + out << ")"; + return out; +} + + +TByteColumn::~TByteColumn() throw() { +} + + +void TByteColumn::__set_values(const std::vector<int8_t> & val) { + this->values = val; +} + +void TByteColumn::__set_nulls(const std::string& val) { + this->nulls = val; +} + +const char* TByteColumn::ascii_fingerprint = "1CB300106BAA463A70BB2A2395900F48"; +const uint8_t TByteColumn::binary_fingerprint[16] = {0x1C,0xB3,0x00,0x10,0x6B,0xAA,0x46,0x3A,0x70,0xBB,0x2A,0x23,0x95,0x90,0x0F,0x48}; + +uint32_t TByteColumn::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_values = false; + bool isset_nulls = 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->values.clear(); + uint32_t _size93; + ::apache::thrift::protocol::TType _etype96; + xfer += iprot->readListBegin(_etype96, _size93); + this->values.resize(_size93); + uint32_t _i97; + for (_i97 = 0; _i97 < _size93; ++_i97) + { + xfer += iprot->readByte(this->values[_i97]); + } + xfer += iprot->readListEnd(); + } + isset_values = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readBinary(this->nulls); + isset_nulls = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_values) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_nulls) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TByteColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TByteColumn"); + + xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_BYTE, static_cast<uint32_t>(this->values.size())); + std::vector<int8_t> ::const_iterator _iter98; + for (_iter98 = this->values.begin(); _iter98 != this->values.end(); ++_iter98) + { + xfer += oprot->writeByte((*_iter98)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeBinary(this->nulls); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); + return xfer; +} + +void swap(TByteColumn &a, TByteColumn &b) { + using ::std::swap; + swap(a.values, b.values); + swap(a.nulls, b.nulls); +} + +TByteColumn::TByteColumn(const TByteColumn& other99) { + values = other99.values; + nulls = other99.nulls; +} +TByteColumn& TByteColumn::operator=(const TByteColumn& other100) { + values = other100.values; + nulls = other100.nulls; + return *this; +} +std::ostream& operator<<(std::ostream& out, const TByteColumn& obj) { + using apache::thrift::to_string; + out << "TByteColumn("; + out << "values=" << to_string(obj.values); + out << ", " << "nulls=" << to_string(obj.nulls); + out << ")"; + return out; +} + + +TI16Column::~TI16Column() throw() { +} + + +void TI16Column::__set_values(const std::vector<int16_t> & val) { + this->values = val; +} + +void TI16Column::__set_nulls(const std::string& val) { + this->nulls = val; +} + +const char* TI16Column::ascii_fingerprint = "6574CDB1F121C8DB47FB257A3F104BDB"; +const uint8_t TI16Column::binary_fingerprint[16] = {0x65,0x74,0xCD,0xB1,0xF1,0x21,0xC8,0xDB,0x47,0xFB,0x25,0x7A,0x3F,0x10,0x4B,0xDB}; + +uint32_t TI16Column::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_values = false; + bool isset_nulls = 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->values.clear(); + uint32_t _size101; + ::apache::thrift::protocol::TType _etype104; + xfer += iprot->readListBegin(_etype104, _size101); + this->values.resize(_size101); + uint32_t _i105; + for (_i105 = 0; _i105 < _size101; ++_i105) + { + xfer += iprot->readI16(this->values[_i105]); + } + xfer += iprot->readListEnd(); + } + isset_values = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readBinary(this->nulls); + isset_nulls = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_values) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_nulls) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t TI16Column::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("TI16Column"); + + xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I16, static_cast<uint32_t>(this->values.size())); + std::vector<int16_t> ::const_iterator _iter106; + for (_iter106 = this->values.begin(); _iter106 != this->values.end(); ++_iter106) + { + xfer += oprot->writeI16((*_iter106)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("nulls", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeBinary(this->nulls); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStru
<TRUNCATED>
