[12/51] [partial] hive git commit: HIVE-12442: Refactor/repackage HiveServer2's Thrift code so that it can be used in the tasks (Rohit Dholakia reviewed by Vaibhav Gumashta)

2016-01-11 Thread vgumashta
http://git-wip-us.apache.org/repos/asf/hive/blob/3a1c4b57/service/src/gen/thrift/gen-cpp/ThriftHive.cpp
--
diff --git a/service/src/gen/thrift/gen-cpp/ThriftHive.cpp 
b/service/src/gen/thrift/gen-cpp/ThriftHive.cpp
deleted file mode 100644
index a5448f0..000
--- a/service/src/gen/thrift/gen-cpp/ThriftHive.cpp
+++ /dev/null
@@ -1,3544 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-#include "ThriftHive.h"
-
-namespace Apache { namespace Hadoop { namespace Hive {
-
-
-ThriftHive_execute_args::~ThriftHive_execute_args() throw() {
-}
-
-
-uint32_t ThriftHive_execute_args::read(::apache::thrift::protocol::TProtocol* 
iprot) {
-
-  apache::thrift::protocol::TInputRecursionTracker tracker(*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->query);
-  this->__isset.query = true;
-} else {
-  xfer += iprot->skip(ftype);
-}
-break;
-  default:
-xfer += iprot->skip(ftype);
-break;
-}
-xfer += iprot->readFieldEnd();
-  }
-
-  xfer += iprot->readStructEnd();
-
-  return xfer;
-}
-
-uint32_t ThriftHive_execute_args::write(::apache::thrift::protocol::TProtocol* 
oprot) const {
-  uint32_t xfer = 0;
-  apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
-  xfer += oprot->writeStructBegin("ThriftHive_execute_args");
-
-  xfer += oprot->writeFieldBegin("query", 
::apache::thrift::protocol::T_STRING, 1);
-  xfer += oprot->writeString(this->query);
-  xfer += oprot->writeFieldEnd();
-
-  xfer += oprot->writeFieldStop();
-  xfer += oprot->writeStructEnd();
-  return xfer;
-}
-
-
-ThriftHive_execute_pargs::~ThriftHive_execute_pargs() throw() {
-}
-
-
-uint32_t 
ThriftHive_execute_pargs::write(::apache::thrift::protocol::TProtocol* oprot) 
const {
-  uint32_t xfer = 0;
-  apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
-  xfer += oprot->writeStructBegin("ThriftHive_execute_pargs");
-
-  xfer += oprot->writeFieldBegin("query", 
::apache::thrift::protocol::T_STRING, 1);
-  xfer += oprot->writeString((*(this->query)));
-  xfer += oprot->writeFieldEnd();
-
-  xfer += oprot->writeFieldStop();
-  xfer += oprot->writeStructEnd();
-  return xfer;
-}
-
-
-ThriftHive_execute_result::~ThriftHive_execute_result() throw() {
-}
-
-
-uint32_t 
ThriftHive_execute_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
-  apache::thrift::protocol::TInputRecursionTracker tracker(*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->ex.read(iprot);
-  this->__isset.ex = true;
-} else {
-  xfer += iprot->skip(ftype);
-}
-break;
-  default:
-xfer += iprot->skip(ftype);
-break;
-}
-xfer += iprot->readFieldEnd();
-  }
-
-  xfer += iprot->readStructEnd();
-
-  return xfer;
-}
-
-uint32_t 
ThriftHive_execute_result::write(::apache::thrift::protocol::TProtocol* oprot) 
const {
-
-  uint32_t xfer = 0;
-
-  xfer += oprot->writeStructBegin("ThriftHive_execute_result");
-
-  if (this->__isset.ex) {
-xfer += oprot->writeFieldBegin("ex", ::apache::thrift::protocol::T_STRUCT, 
1);
-xfer += this->ex.write(oprot);
-xfer += oprot->writeFieldEnd();
-  }
-  xfer += oprot->writeFieldStop();
-  xfer += oprot->writeStructEnd();
-  return xfer;
-}
-
-
-ThriftHive_execute_presult::~ThriftHive_execute_presult() throw() {
-}
-
-
-uint32_t 
ThriftHive_execute_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
-  apache::thrift::protocol::TInputRecursionTracker tracker(*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 == 

[12/51] [partial] hive git commit: HIVE-12442: Refactor/repackage HiveServer2's Thrift code so that it can be used in the tasks (Rohit Dholakia reviewed by Vaibhav Gumashta)

2016-01-07 Thread vgumashta
http://git-wip-us.apache.org/repos/asf/hive/blob/2542f5cc/service/src/gen/thrift/gen-cpp/ThriftHive.cpp
--
diff --git a/service/src/gen/thrift/gen-cpp/ThriftHive.cpp 
b/service/src/gen/thrift/gen-cpp/ThriftHive.cpp
deleted file mode 100644
index a5448f0..000
--- a/service/src/gen/thrift/gen-cpp/ThriftHive.cpp
+++ /dev/null
@@ -1,3544 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.9.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- *  @generated
- */
-#include "ThriftHive.h"
-
-namespace Apache { namespace Hadoop { namespace Hive {
-
-
-ThriftHive_execute_args::~ThriftHive_execute_args() throw() {
-}
-
-
-uint32_t ThriftHive_execute_args::read(::apache::thrift::protocol::TProtocol* 
iprot) {
-
-  apache::thrift::protocol::TInputRecursionTracker tracker(*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->query);
-  this->__isset.query = true;
-} else {
-  xfer += iprot->skip(ftype);
-}
-break;
-  default:
-xfer += iprot->skip(ftype);
-break;
-}
-xfer += iprot->readFieldEnd();
-  }
-
-  xfer += iprot->readStructEnd();
-
-  return xfer;
-}
-
-uint32_t ThriftHive_execute_args::write(::apache::thrift::protocol::TProtocol* 
oprot) const {
-  uint32_t xfer = 0;
-  apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
-  xfer += oprot->writeStructBegin("ThriftHive_execute_args");
-
-  xfer += oprot->writeFieldBegin("query", 
::apache::thrift::protocol::T_STRING, 1);
-  xfer += oprot->writeString(this->query);
-  xfer += oprot->writeFieldEnd();
-
-  xfer += oprot->writeFieldStop();
-  xfer += oprot->writeStructEnd();
-  return xfer;
-}
-
-
-ThriftHive_execute_pargs::~ThriftHive_execute_pargs() throw() {
-}
-
-
-uint32_t 
ThriftHive_execute_pargs::write(::apache::thrift::protocol::TProtocol* oprot) 
const {
-  uint32_t xfer = 0;
-  apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
-  xfer += oprot->writeStructBegin("ThriftHive_execute_pargs");
-
-  xfer += oprot->writeFieldBegin("query", 
::apache::thrift::protocol::T_STRING, 1);
-  xfer += oprot->writeString((*(this->query)));
-  xfer += oprot->writeFieldEnd();
-
-  xfer += oprot->writeFieldStop();
-  xfer += oprot->writeStructEnd();
-  return xfer;
-}
-
-
-ThriftHive_execute_result::~ThriftHive_execute_result() throw() {
-}
-
-
-uint32_t 
ThriftHive_execute_result::read(::apache::thrift::protocol::TProtocol* iprot) {
-
-  apache::thrift::protocol::TInputRecursionTracker tracker(*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->ex.read(iprot);
-  this->__isset.ex = true;
-} else {
-  xfer += iprot->skip(ftype);
-}
-break;
-  default:
-xfer += iprot->skip(ftype);
-break;
-}
-xfer += iprot->readFieldEnd();
-  }
-
-  xfer += iprot->readStructEnd();
-
-  return xfer;
-}
-
-uint32_t 
ThriftHive_execute_result::write(::apache::thrift::protocol::TProtocol* oprot) 
const {
-
-  uint32_t xfer = 0;
-
-  xfer += oprot->writeStructBegin("ThriftHive_execute_result");
-
-  if (this->__isset.ex) {
-xfer += oprot->writeFieldBegin("ex", ::apache::thrift::protocol::T_STRUCT, 
1);
-xfer += this->ex.write(oprot);
-xfer += oprot->writeFieldEnd();
-  }
-  xfer += oprot->writeFieldStop();
-  xfer += oprot->writeStructEnd();
-  return xfer;
-}
-
-
-ThriftHive_execute_presult::~ThriftHive_execute_presult() throw() {
-}
-
-
-uint32_t 
ThriftHive_execute_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
-
-  apache::thrift::protocol::TInputRecursionTracker tracker(*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 ==