You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ga...@apache.org on 2018/06/04 18:31:28 UTC
[1/7] hive git commit: HIVE-19688 Make catalogs updatable (Alan Gates
reviewed by Daniel Dai)
Repository: hive
Updated Branches:
refs/heads/branch-3 dc609b4a3 -> c2cc42c1c
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
index 4a37568..ec26cca 100644
--- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
+++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
@@ -40,6 +40,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf {
*/
public function create_catalog(\metastore\CreateCatalogRequest $catalog);
/**
+ * @param \metastore\AlterCatalogRequest $rqst
+ * @throws \metastore\NoSuchObjectException
+ * @throws \metastore\InvalidOperationException
+ * @throws \metastore\MetaException
+ */
+ public function alter_catalog(\metastore\AlterCatalogRequest $rqst);
+ /**
* @param \metastore\GetCatalogRequest $catName
* @return \metastore\GetCatalogResponse
* @throws \metastore\NoSuchObjectException
@@ -1721,6 +1728,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas
return;
}
+ public function alter_catalog(\metastore\AlterCatalogRequest $rqst)
+ {
+ $this->send_alter_catalog($rqst);
+ $this->recv_alter_catalog();
+ }
+
+ public function send_alter_catalog(\metastore\AlterCatalogRequest $rqst)
+ {
+ $args = new \metastore\ThriftHiveMetastore_alter_catalog_args();
+ $args->rqst = $rqst;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'alter_catalog', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('alter_catalog', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_alter_catalog()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_catalog_result', $this->input_->isStrictRead());
+ else
+ {
+ $rseqid = 0;
+ $fname = null;
+ $mtype = 0;
+
+ $this->input_->readMessageBegin($fname, $mtype, $rseqid);
+ if ($mtype == TMessageType::EXCEPTION) {
+ $x = new TApplicationException();
+ $x->read($this->input_);
+ $this->input_->readMessageEnd();
+ throw $x;
+ }
+ $result = new \metastore\ThriftHiveMetastore_alter_catalog_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->o1 !== null) {
+ throw $result->o1;
+ }
+ if ($result->o2 !== null) {
+ throw $result->o2;
+ }
+ if ($result->o3 !== null) {
+ throw $result->o3;
+ }
+ return;
+ }
+
public function get_catalog(\metastore\GetCatalogRequest $catName)
{
$this->send_get_catalog($catName);
@@ -13800,6 +13864,213 @@ class ThriftHiveMetastore_create_catalog_result {
}
+class ThriftHiveMetastore_alter_catalog_args {
+ static $_TSPEC;
+
+ /**
+ * @var \metastore\AlterCatalogRequest
+ */
+ public $rqst = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'rqst',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\AlterCatalogRequest',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['rqst'])) {
+ $this->rqst = $vals['rqst'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_alter_catalog_args';
+ }
+
+ public function read($input)
+ {
+ $xfer = 0;
+ $fname = null;
+ $ftype = 0;
+ $fid = 0;
+ $xfer += $input->readStructBegin($fname);
+ while (true)
+ {
+ $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+ if ($ftype == TType::STOP) {
+ break;
+ }
+ switch ($fid)
+ {
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->rqst = new \metastore\AlterCatalogRequest();
+ $xfer += $this->rqst->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_alter_catalog_args');
+ if ($this->rqst !== null) {
+ if (!is_object($this->rqst)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('rqst', TType::STRUCT, 1);
+ $xfer += $this->rqst->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_alter_catalog_result {
+ static $_TSPEC;
+
+ /**
+ * @var \metastore\NoSuchObjectException
+ */
+ public $o1 = null;
+ /**
+ * @var \metastore\InvalidOperationException
+ */
+ public $o2 = null;
+ /**
+ * @var \metastore\MetaException
+ */
+ public $o3 = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'o1',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\NoSuchObjectException',
+ ),
+ 2 => array(
+ 'var' => 'o2',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\InvalidOperationException',
+ ),
+ 3 => array(
+ 'var' => 'o3',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\MetaException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['o1'])) {
+ $this->o1 = $vals['o1'];
+ }
+ if (isset($vals['o2'])) {
+ $this->o2 = $vals['o2'];
+ }
+ if (isset($vals['o3'])) {
+ $this->o3 = $vals['o3'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_alter_catalog_result';
+ }
+
+ public function read($input)
+ {
+ $xfer = 0;
+ $fname = null;
+ $ftype = 0;
+ $fid = 0;
+ $xfer += $input->readStructBegin($fname);
+ while (true)
+ {
+ $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+ if ($ftype == TType::STOP) {
+ break;
+ }
+ switch ($fid)
+ {
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->o1 = new \metastore\NoSuchObjectException();
+ $xfer += $this->o1->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->o2 = new \metastore\InvalidOperationException();
+ $xfer += $this->o2->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->o3 = new \metastore\MetaException();
+ $xfer += $this->o3->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_alter_catalog_result');
+ if ($this->o1 !== null) {
+ $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
+ $xfer += $this->o1->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o2 !== null) {
+ $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2);
+ $xfer += $this->o2->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o3 !== null) {
+ $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3);
+ $xfer += $this->o3->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
class ThriftHiveMetastore_get_catalog_args {
static $_TSPEC;
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php
index fe54515..a29ebb7 100644
--- a/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php
+++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php
@@ -4681,6 +4681,109 @@ class CreateCatalogRequest {
}
+class AlterCatalogRequest {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var \metastore\Catalog
+ */
+ public $newCat = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'newCat',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\Catalog',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['newCat'])) {
+ $this->newCat = $vals['newCat'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'AlterCatalogRequest';
+ }
+
+ public function read($input)
+ {
+ $xfer = 0;
+ $fname = null;
+ $ftype = 0;
+ $fid = 0;
+ $xfer += $input->readStructBegin($fname);
+ while (true)
+ {
+ $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+ if ($ftype == TType::STOP) {
+ break;
+ }
+ switch ($fid)
+ {
+ case 1:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->newCat = new \metastore\Catalog();
+ $xfer += $this->newCat->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('AlterCatalogRequest');
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->newCat !== null) {
+ if (!is_object($this->newCat)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('newCat', TType::STRUCT, 2);
+ $xfer += $this->newCat->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
class GetCatalogRequest {
static $_TSPEC;
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
index 8fa5fe4..5402372 100755
--- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
+++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
@@ -27,6 +27,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print(' string getMetaConf(string key)')
print(' void setMetaConf(string key, string value)')
print(' void create_catalog(CreateCatalogRequest catalog)')
+ print(' void alter_catalog(AlterCatalogRequest rqst)')
print(' GetCatalogResponse get_catalog(GetCatalogRequest catName)')
print(' GetCatalogsResponse get_catalogs()')
print(' void drop_catalog(DropCatalogRequest catName)')
@@ -317,6 +318,12 @@ elif cmd == 'create_catalog':
sys.exit(1)
pp.pprint(client.create_catalog(eval(args[0]),))
+elif cmd == 'alter_catalog':
+ if len(args) != 1:
+ print('alter_catalog requires 1 args')
+ sys.exit(1)
+ pp.pprint(client.alter_catalog(eval(args[0]),))
+
elif cmd == 'get_catalog':
if len(args) != 1:
print('get_catalog requires 1 args')
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
index 11881d3..5a3f2c1 100644
--- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
+++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
@@ -45,6 +45,13 @@ class Iface(fb303.FacebookService.Iface):
"""
pass
+ def alter_catalog(self, rqst):
+ """
+ Parameters:
+ - rqst
+ """
+ pass
+
def get_catalog(self, catName):
"""
Parameters:
@@ -1705,6 +1712,41 @@ class Client(fb303.FacebookService.Client, Iface):
raise result.o3
return
+ def alter_catalog(self, rqst):
+ """
+ Parameters:
+ - rqst
+ """
+ self.send_alter_catalog(rqst)
+ self.recv_alter_catalog()
+
+ def send_alter_catalog(self, rqst):
+ self._oprot.writeMessageBegin('alter_catalog', TMessageType.CALL, self._seqid)
+ args = alter_catalog_args()
+ args.rqst = rqst
+ args.write(self._oprot)
+ self._oprot.writeMessageEnd()
+ self._oprot.trans.flush()
+
+ def recv_alter_catalog(self):
+ iprot = self._iprot
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
+ if mtype == TMessageType.EXCEPTION:
+ x = TApplicationException()
+ x.read(iprot)
+ iprot.readMessageEnd()
+ raise x
+ result = alter_catalog_result()
+ result.read(iprot)
+ iprot.readMessageEnd()
+ if result.o1 is not None:
+ raise result.o1
+ if result.o2 is not None:
+ raise result.o2
+ if result.o3 is not None:
+ raise result.o3
+ return
+
def get_catalog(self, catName):
"""
Parameters:
@@ -8966,6 +9008,7 @@ class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
self._processMap["getMetaConf"] = Processor.process_getMetaConf
self._processMap["setMetaConf"] = Processor.process_setMetaConf
self._processMap["create_catalog"] = Processor.process_create_catalog
+ self._processMap["alter_catalog"] = Processor.process_alter_catalog
self._processMap["get_catalog"] = Processor.process_get_catalog
self._processMap["get_catalogs"] = Processor.process_get_catalogs
self._processMap["drop_catalog"] = Processor.process_drop_catalog
@@ -9257,6 +9300,34 @@ class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
oprot.writeMessageEnd()
oprot.trans.flush()
+ def process_alter_catalog(self, seqid, iprot, oprot):
+ args = alter_catalog_args()
+ args.read(iprot)
+ iprot.readMessageEnd()
+ result = alter_catalog_result()
+ try:
+ self._handler.alter_catalog(args.rqst)
+ msg_type = TMessageType.REPLY
+ except (TTransport.TTransportException, KeyboardInterrupt, SystemExit):
+ raise
+ except NoSuchObjectException as o1:
+ msg_type = TMessageType.REPLY
+ result.o1 = o1
+ except InvalidOperationException as o2:
+ msg_type = TMessageType.REPLY
+ result.o2 = o2
+ except MetaException as o3:
+ msg_type = TMessageType.REPLY
+ result.o3 = o3
+ except Exception as ex:
+ msg_type = TMessageType.EXCEPTION
+ logging.exception(ex)
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
+ oprot.writeMessageBegin("alter_catalog", msg_type, seqid)
+ result.write(oprot)
+ oprot.writeMessageEnd()
+ oprot.trans.flush()
+
def process_get_catalog(self, seqid, iprot, oprot):
args = get_catalog_args()
args.read(iprot)
@@ -14716,6 +14787,166 @@ class create_catalog_result:
def __ne__(self, other):
return not (self == other)
+class alter_catalog_args:
+ """
+ Attributes:
+ - rqst
+ """
+
+ thrift_spec = (
+ None, # 0
+ (1, TType.STRUCT, 'rqst', (AlterCatalogRequest, AlterCatalogRequest.thrift_spec), None, ), # 1
+ )
+
+ def __init__(self, rqst=None,):
+ self.rqst = rqst
+
+ def read(self, iprot):
+ if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
+ fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.STRUCT:
+ self.rqst = AlterCatalogRequest()
+ self.rqst.read(iprot)
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
+ oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
+ return
+ oprot.writeStructBegin('alter_catalog_args')
+ if self.rqst is not None:
+ oprot.writeFieldBegin('rqst', TType.STRUCT, 1)
+ self.rqst.write(oprot)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+
+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.rqst)
+ return value
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.iteritems()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+
+class alter_catalog_result:
+ """
+ Attributes:
+ - o1
+ - o2
+ - o3
+ """
+
+ thrift_spec = (
+ None, # 0
+ (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1
+ (2, TType.STRUCT, 'o2', (InvalidOperationException, InvalidOperationException.thrift_spec), None, ), # 2
+ (3, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 3
+ )
+
+ def __init__(self, o1=None, o2=None, o3=None,):
+ self.o1 = o1
+ self.o2 = o2
+ self.o3 = o3
+
+ def read(self, iprot):
+ if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
+ fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.STRUCT:
+ self.o1 = NoSuchObjectException()
+ self.o1.read(iprot)
+ else:
+ iprot.skip(ftype)
+ elif fid == 2:
+ if ftype == TType.STRUCT:
+ self.o2 = InvalidOperationException()
+ self.o2.read(iprot)
+ else:
+ iprot.skip(ftype)
+ elif fid == 3:
+ if ftype == TType.STRUCT:
+ self.o3 = MetaException()
+ self.o3.read(iprot)
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
+ oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
+ return
+ oprot.writeStructBegin('alter_catalog_result')
+ if self.o1 is not None:
+ oprot.writeFieldBegin('o1', TType.STRUCT, 1)
+ self.o1.write(oprot)
+ oprot.writeFieldEnd()
+ if self.o2 is not None:
+ oprot.writeFieldBegin('o2', TType.STRUCT, 2)
+ self.o2.write(oprot)
+ oprot.writeFieldEnd()
+ if self.o3 is not None:
+ oprot.writeFieldBegin('o3', TType.STRUCT, 3)
+ self.o3.write(oprot)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+
+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.o1)
+ value = (value * 31) ^ hash(self.o2)
+ value = (value * 31) ^ hash(self.o3)
+ return value
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.iteritems()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+
class get_catalog_args:
"""
Attributes:
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
index 786c8c5..11affe3 100644
--- a/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
+++ b/standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
@@ -3404,6 +3404,85 @@ class CreateCatalogRequest:
def __ne__(self, other):
return not (self == other)
+class AlterCatalogRequest:
+ """
+ Attributes:
+ - name
+ - newCat
+ """
+
+ thrift_spec = (
+ None, # 0
+ (1, TType.STRING, 'name', None, None, ), # 1
+ (2, TType.STRUCT, 'newCat', (Catalog, Catalog.thrift_spec), None, ), # 2
+ )
+
+ def __init__(self, name=None, newCat=None,):
+ self.name = name
+ self.newCat = newCat
+
+ def read(self, iprot):
+ if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
+ fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
+ return
+ iprot.readStructBegin()
+ while True:
+ (fname, ftype, fid) = iprot.readFieldBegin()
+ if ftype == TType.STOP:
+ break
+ if fid == 1:
+ if ftype == TType.STRING:
+ self.name = iprot.readString()
+ else:
+ iprot.skip(ftype)
+ elif fid == 2:
+ if ftype == TType.STRUCT:
+ self.newCat = Catalog()
+ self.newCat.read(iprot)
+ else:
+ iprot.skip(ftype)
+ else:
+ iprot.skip(ftype)
+ iprot.readFieldEnd()
+ iprot.readStructEnd()
+
+ def write(self, oprot):
+ if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
+ oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
+ return
+ oprot.writeStructBegin('AlterCatalogRequest')
+ if self.name is not None:
+ oprot.writeFieldBegin('name', TType.STRING, 1)
+ oprot.writeString(self.name)
+ oprot.writeFieldEnd()
+ if self.newCat is not None:
+ oprot.writeFieldBegin('newCat', TType.STRUCT, 2)
+ self.newCat.write(oprot)
+ oprot.writeFieldEnd()
+ oprot.writeFieldStop()
+ oprot.writeStructEnd()
+
+ def validate(self):
+ return
+
+
+ def __hash__(self):
+ value = 17
+ value = (value * 31) ^ hash(self.name)
+ value = (value * 31) ^ hash(self.newCat)
+ return value
+
+ def __repr__(self):
+ L = ['%s=%r' % (key, value)
+ for key, value in self.__dict__.iteritems()]
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
+
+ def __eq__(self, other):
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not (self == other)
+
class GetCatalogRequest:
"""
Attributes:
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb b/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
index 9174596..fc640d0 100644
--- a/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
+++ b/standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
@@ -820,6 +820,24 @@ class CreateCatalogRequest
::Thrift::Struct.generate_accessors self
end
+class AlterCatalogRequest
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ NAME = 1
+ NEWCAT = 2
+
+ FIELDS = {
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
+ NEWCAT => {:type => ::Thrift::Types::STRUCT, :name => 'newCat', :class => ::Catalog}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+end
+
class GetCatalogRequest
include ::Thrift::Struct, ::Thrift::Struct_Union
NAME = 1
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
index 4ef99bd..bbf3f12 100644
--- a/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
+++ b/standalone-metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb
@@ -60,6 +60,23 @@ module ThriftHiveMetastore
return
end
+ def alter_catalog(rqst)
+ send_alter_catalog(rqst)
+ recv_alter_catalog()
+ end
+
+ def send_alter_catalog(rqst)
+ send_message('alter_catalog', Alter_catalog_args, :rqst => rqst)
+ end
+
+ def recv_alter_catalog()
+ result = receive_message(Alter_catalog_result)
+ raise result.o1 unless result.o1.nil?
+ raise result.o2 unless result.o2.nil?
+ raise result.o3 unless result.o3.nil?
+ return
+ end
+
def get_catalog(catName)
send_get_catalog(catName)
return recv_get_catalog()
@@ -3481,6 +3498,21 @@ module ThriftHiveMetastore
write_result(result, oprot, 'create_catalog', seqid)
end
+ def process_alter_catalog(seqid, iprot, oprot)
+ args = read_args(iprot, Alter_catalog_args)
+ result = Alter_catalog_result.new()
+ begin
+ @handler.alter_catalog(args.rqst)
+ rescue ::NoSuchObjectException => o1
+ result.o1 = o1
+ rescue ::InvalidOperationException => o2
+ result.o2 = o2
+ rescue ::MetaException => o3
+ result.o3 = o3
+ end
+ write_result(result, oprot, 'alter_catalog', seqid)
+ end
+
def process_get_catalog(seqid, iprot, oprot)
args = read_args(iprot, Get_catalog_args)
result = Get_catalog_result.new()
@@ -6128,6 +6160,42 @@ module ThriftHiveMetastore
::Thrift::Struct.generate_accessors self
end
+ class Alter_catalog_args
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ RQST = 1
+
+ FIELDS = {
+ RQST => {:type => ::Thrift::Types::STRUCT, :name => 'rqst', :class => ::AlterCatalogRequest}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
+ class Alter_catalog_result
+ include ::Thrift::Struct, ::Thrift::Struct_Union
+ O1 = 1
+ O2 = 2
+ O3 = 3
+
+ FIELDS = {
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidOperationException},
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
+ }
+
+ def struct_fields; FIELDS; end
+
+ def validate
+ end
+
+ ::Thrift::Struct.generate_accessors self
+ end
+
class Get_catalog_args
include ::Thrift::Struct, ::Thrift::Struct_Union
CATNAME = 1
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
index 3f18605..8d216f7 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
@@ -88,6 +88,7 @@ import org.apache.hadoop.hive.metastore.events.AddPartitionEvent;
import org.apache.hadoop.hive.metastore.events.AddPrimaryKeyEvent;
import org.apache.hadoop.hive.metastore.events.AddUniqueConstraintEvent;
import org.apache.hadoop.hive.metastore.events.AllocWriteIdEvent;
+import org.apache.hadoop.hive.metastore.events.AlterCatalogEvent;
import org.apache.hadoop.hive.metastore.events.AlterDatabaseEvent;
import org.apache.hadoop.hive.metastore.events.AlterISchemaEvent;
import org.apache.hadoop.hive.metastore.events.AlterPartitionEvent;
@@ -113,6 +114,7 @@ import org.apache.hadoop.hive.metastore.events.InsertEvent;
import org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent;
import org.apache.hadoop.hive.metastore.events.OpenTxnEvent;
import org.apache.hadoop.hive.metastore.events.PreAddPartitionEvent;
+import org.apache.hadoop.hive.metastore.events.PreAlterCatalogEvent;
import org.apache.hadoop.hive.metastore.events.PreAlterDatabaseEvent;
import org.apache.hadoop.hive.metastore.events.PreAlterISchemaEvent;
import org.apache.hadoop.hive.metastore.events.PreAlterPartitionEvent;
@@ -1054,6 +1056,51 @@ public class HiveMetaStore extends ThriftHiveMetastore {
}
@Override
+ public void alter_catalog(AlterCatalogRequest rqst) throws TException {
+ startFunction("alter_catalog " + rqst.getName());
+ boolean success = false;
+ Exception ex = null;
+ RawStore ms = getMS();
+ Map<String, String> transactionalListenersResponses = Collections.emptyMap();
+ GetCatalogResponse oldCat = null;
+
+ try {
+ oldCat = get_catalog(new GetCatalogRequest(rqst.getName()));
+ // Above should have thrown NoSuchObjectException if there is no such catalog
+ assert oldCat != null && oldCat.getCatalog() != null;
+ firePreEvent(new PreAlterCatalogEvent(oldCat.getCatalog(), rqst.getNewCat(), this));
+
+ ms.openTransaction();
+ ms.alterCatalog(rqst.getName(), rqst.getNewCat());
+
+ if (!transactionalListeners.isEmpty()) {
+ transactionalListenersResponses =
+ MetaStoreListenerNotifier.notifyEvent(transactionalListeners,
+ EventType.ALTER_CATALOG,
+ new AlterCatalogEvent(oldCat.getCatalog(), rqst.getNewCat(), true, this));
+ }
+
+ success = ms.commitTransaction();
+ } catch (MetaException|NoSuchObjectException e) {
+ ex = e;
+ throw e;
+ } finally {
+ if (!success) {
+ ms.rollbackTransaction();
+ }
+
+ if ((null != oldCat) && (!listeners.isEmpty())) {
+ MetaStoreListenerNotifier.notifyEvent(listeners,
+ EventType.ALTER_CATALOG,
+ new AlterCatalogEvent(oldCat.getCatalog(), rqst.getNewCat(), success, this),
+ null, transactionalListenersResponses, ms);
+ }
+ endFunction("alter_catalog", success, ex);
+ }
+
+ }
+
+ @Override
public GetCatalogResponse get_catalog(GetCatalogRequest rqst)
throws NoSuchObjectException, TException {
String catName = rqst.getName();
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
index 2965e72..6438e9a 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
@@ -616,6 +616,11 @@ public class HiveMetaStoreClient implements IMetaStoreClient, AutoCloseable {
}
@Override
+ public void alterCatalog(String catalogName, Catalog newCatalog) throws TException {
+ client.alter_catalog(new AlterCatalogRequest(catalogName, newCatalog));
+ }
+
+ @Override
public Catalog getCatalog(String catName) throws TException {
GetCatalogResponse rsp = client.get_catalog(new GetCatalogRequest(catName));
return rsp == null ? null : filterHook.filterCatalog(rsp.getCatalog());
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
index 7ba286a..bc09076 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
@@ -189,6 +189,21 @@ public interface IMetaStoreClient {
throws AlreadyExistsException, InvalidObjectException, MetaException, TException;
/**
+ * Alter an existing catalog.
+ * @param catalogName the name of the catalog to alter.
+ * @param newCatalog the new catalog object. All relevant details of the catalog should be
+ * set, don't rely on the system to figure out what you changed and only copy
+ * that in.
+ * @throws NoSuchObjectException no catalog of this name exists
+ * @throws InvalidObjectException an attempt was made to make an unsupported change (such as
+ * catalog name).
+ * @throws MetaException usually indicates a database error
+ * @throws TException general thrift exception
+ */
+ void alterCatalog(String catalogName, Catalog newCatalog)
+ throws NoSuchObjectException, InvalidObjectException, MetaException, TException;
+
+ /**
* Get a catalog object.
* @param catName Name of the catalog to fetch.
* @return The catalog.
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java
index 92505af..e0e65cf 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java
@@ -28,6 +28,7 @@ import org.apache.hadoop.hive.metastore.events.AddNotNullConstraintEvent;
import org.apache.hadoop.hive.metastore.events.AddPrimaryKeyEvent;
import org.apache.hadoop.hive.metastore.events.AddSchemaVersionEvent;
import org.apache.hadoop.hive.metastore.events.AddUniqueConstraintEvent;
+import org.apache.hadoop.hive.metastore.events.AlterCatalogEvent;
import org.apache.hadoop.hive.metastore.events.AlterDatabaseEvent;
import org.apache.hadoop.hive.metastore.events.AlterISchemaEvent;
import org.apache.hadoop.hive.metastore.events.AddPartitionEvent;
@@ -232,6 +233,9 @@ public abstract class MetaStoreEventListener implements Configurable {
public void onCreateCatalog(CreateCatalogEvent createCatalogEvent) throws MetaException {
}
+ public void onAlterCatalog(AlterCatalogEvent alterCatalogEvent) throws MetaException {
+ }
+
public void onDropCatalog(DropCatalogEvent dropCatalogEvent) throws MetaException {
}
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreListenerNotifier.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreListenerNotifier.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreListenerNotifier.java
index b2856e2..3cf8314 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreListenerNotifier.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreListenerNotifier.java
@@ -30,6 +30,7 @@ import org.apache.hadoop.hive.metastore.events.AddPartitionEvent;
import org.apache.hadoop.hive.metastore.events.AddPrimaryKeyEvent;
import org.apache.hadoop.hive.metastore.events.AddSchemaVersionEvent;
import org.apache.hadoop.hive.metastore.events.AddUniqueConstraintEvent;
+import org.apache.hadoop.hive.metastore.events.AlterCatalogEvent;
import org.apache.hadoop.hive.metastore.events.AlterDatabaseEvent;
import org.apache.hadoop.hive.metastore.events.AlterISchemaEvent;
import org.apache.hadoop.hive.metastore.events.AlterPartitionEvent;
@@ -210,6 +211,8 @@ public class MetaStoreListenerNotifier {
(listener, event) -> listener.onCreateCatalog((CreateCatalogEvent)event))
.put(EventType.DROP_CATALOG,
(listener, event) -> listener.onDropCatalog((DropCatalogEvent)event))
+ .put(EventType.ALTER_CATALOG,
+ (listener, event) -> listener.onAlterCatalog((AlterCatalogEvent)event))
.put(EventType.OPEN_TXN,
(listener, event) -> listener.onOpenTxn((OpenTxnEvent) event, null, null))
.put(EventType.COMMIT_TXN,
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/AlterCatalogEvent.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/AlterCatalogEvent.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/AlterCatalogEvent.java
new file mode 100644
index 0000000..7a19fd0
--- /dev/null
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/AlterCatalogEvent.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hive.metastore.events;
+
+import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceStability;
+import org.apache.hadoop.hive.metastore.IHMSHandler;
+import org.apache.hadoop.hive.metastore.api.Catalog;
+
+@InterfaceAudience.Public
+@InterfaceStability.Stable
+public class AlterCatalogEvent extends ListenerEvent {
+
+ private final Catalog oldCat, newCat;
+
+ public AlterCatalogEvent(Catalog oldCat, Catalog newCat, boolean status, IHMSHandler handler) {
+ super(status, handler);
+ this.oldCat = oldCat;
+ this.newCat = newCat;
+ }
+
+ public Catalog getOldCatalog() {
+ return oldCat;
+ }
+
+ public Catalog getNewCatalog() {
+ return newCat;
+ }
+}
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreAlterCatalogEvent.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreAlterCatalogEvent.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreAlterCatalogEvent.java
new file mode 100644
index 0000000..e6ffe8c
--- /dev/null
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreAlterCatalogEvent.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hive.metastore.events;
+
+import org.apache.hadoop.hive.metastore.IHMSHandler;
+import org.apache.hadoop.hive.metastore.api.Catalog;
+
+public class PreAlterCatalogEvent extends PreEventContext {
+
+ private final Catalog oldCat, newCat;
+
+ public PreAlterCatalogEvent(Catalog oldCat, Catalog newCat, IHMSHandler handler) {
+ super(PreEventType.ALTER_CATALOG, handler);
+ this.oldCat = oldCat;
+ this.newCat = newCat;
+ }
+
+ public Catalog getOldCatalog() {
+ return oldCat;
+ }
+
+ public Catalog getNewCatalog() {
+ return newCat;
+ }
+}
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreEventContext.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreEventContext.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreEventContext.java
index b45a537..b93675f 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreEventContext.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/events/PreEventContext.java
@@ -53,7 +53,8 @@ public abstract class PreEventContext {
READ_SCHEMA_VERSION,
CREATE_CATALOG,
DROP_CATALOG,
- READ_CATALOG
+ READ_CATALOG,
+ ALTER_CATALOG
}
private final PreEventType eventType;
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/AlterCatalogMessage.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/AlterCatalogMessage.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/AlterCatalogMessage.java
new file mode 100644
index 0000000..175d6ef
--- /dev/null
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/AlterCatalogMessage.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hive.metastore.messaging;
+
+import org.apache.hadoop.hive.metastore.api.Catalog;
+
+public abstract class AlterCatalogMessage extends EventMessage {
+ protected AlterCatalogMessage() {
+ super(EventType.ALTER_CATALOG);
+ }
+
+ public abstract Catalog getCatObjBefore() throws Exception;
+ public abstract Catalog getCatObjAfter() throws Exception;
+}
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/EventMessage.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/EventMessage.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/EventMessage.java
index ffbce1d..969dd7b 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/EventMessage.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/EventMessage.java
@@ -59,7 +59,8 @@ public abstract class EventMessage {
OPEN_TXN(MessageFactory.OPEN_TXN_EVENT),
COMMIT_TXN(MessageFactory.COMMIT_TXN_EVENT),
ABORT_TXN(MessageFactory.ABORT_TXN_EVENT),
- ALLOC_WRITE_ID(MessageFactory.ALLOC_WRITE_ID_EVENT);
+ ALLOC_WRITE_ID(MessageFactory.ALLOC_WRITE_ID_EVENT),
+ ALTER_CATALOG(MessageFactory.ALTER_CATALOG_EVENT);
private String typeString;
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java
index 75ca6ec..e0629ea 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java
@@ -73,6 +73,7 @@ public abstract class MessageFactory {
public static final String COMMIT_TXN_EVENT = "COMMIT_TXN";
public static final String ABORT_TXN_EVENT = "ABORT_TXN";
public static final String ALLOC_WRITE_ID_EVENT = "ALLOC_WRITE_ID_EVENT";
+ public static final String ALTER_CATALOG_EVENT = "ALTER_CATALOG";
private static MessageFactory instance = null;
@@ -323,4 +324,6 @@ public abstract class MessageFactory {
public abstract CreateCatalogMessage buildCreateCatalogMessage(Catalog catalog);
public abstract DropCatalogMessage buildDropCatalogMessage(Catalog catalog);
+
+ public abstract AlterCatalogMessage buildAlterCatalogMessage(Catalog oldCat, Catalog newCat);
}
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONAlterCatalogMessage.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONAlterCatalogMessage.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONAlterCatalogMessage.java
new file mode 100644
index 0000000..779c0b0
--- /dev/null
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONAlterCatalogMessage.java
@@ -0,0 +1,90 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hive.metastore.messaging.json;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.apache.hadoop.hive.metastore.api.Catalog;
+import org.apache.hadoop.hive.metastore.messaging.AlterCatalogMessage;
+import org.apache.thrift.TException;
+
+public class JSONAlterCatalogMessage extends AlterCatalogMessage {
+ @JsonProperty
+ String server, servicePrincipal, catObjBeforeJson, catObjAfterJson;
+
+ @JsonProperty
+ Long timestamp;
+
+ /**
+ * Default constructor, needed for Jackson.
+ */
+ public JSONAlterCatalogMessage() {
+ }
+
+ public JSONAlterCatalogMessage(String server, String servicePrincipal,
+ Catalog catObjBefore, Catalog catObjAfter, Long timestamp) {
+ this.server = server;
+ this.servicePrincipal = servicePrincipal;
+ this.timestamp = timestamp;
+ try {
+ this.catObjBeforeJson = JSONMessageFactory.createCatalogObjJson(catObjBefore);
+ this.catObjAfterJson = JSONMessageFactory.createCatalogObjJson(catObjAfter);
+ } catch (TException e) {
+ throw new IllegalArgumentException("Could not serialize: ", e);
+ }
+ checkValid();
+ }
+
+ @Override
+ public String getDB() {
+ return null;
+ }
+
+ @Override
+ public String getServer() {
+ return server;
+ }
+
+ @Override
+ public String getServicePrincipal() {
+ return servicePrincipal;
+ }
+
+ @Override
+ public Long getTimestamp() {
+ return timestamp;
+ }
+
+ @Override
+ public Catalog getCatObjBefore() throws Exception {
+ return (Catalog) JSONMessageFactory.getTObj(catObjBeforeJson, Catalog.class);
+ }
+
+ @Override
+ public Catalog getCatObjAfter() throws Exception {
+ return (Catalog) JSONMessageFactory.getTObj(catObjAfterJson, Catalog.class);
+ }
+
+ @Override
+ public String toString() {
+ try {
+ return JSONMessageDeserializer.mapper.writeValueAsString(this);
+ } catch (Exception e) {
+ throw new IllegalArgumentException("Could not serialize: ", e);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageFactory.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageFactory.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageFactory.java
index f0c5f4f..d64c3ff 100644
--- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageFactory.java
+++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONMessageFactory.java
@@ -44,6 +44,7 @@ import org.apache.hadoop.hive.metastore.messaging.AddNotNullConstraintMessage;
import org.apache.hadoop.hive.metastore.messaging.AddPartitionMessage;
import org.apache.hadoop.hive.metastore.messaging.AddPrimaryKeyMessage;
import org.apache.hadoop.hive.metastore.messaging.AddUniqueConstraintMessage;
+import org.apache.hadoop.hive.metastore.messaging.AlterCatalogMessage;
import org.apache.hadoop.hive.metastore.messaging.AlterDatabaseMessage;
import org.apache.hadoop.hive.metastore.messaging.AlterPartitionMessage;
import org.apache.hadoop.hive.metastore.messaging.AlterTableMessage;
@@ -204,6 +205,12 @@ public class JSONMessageFactory extends MessageFactory {
}
@Override
+ public AlterCatalogMessage buildAlterCatalogMessage(Catalog beforeCat, Catalog afterCat) {
+ return new JSONAlterCatalogMessage(MS_SERVER_URL, MS_SERVICE_PRINCIPAL,
+ beforeCat, afterCat, now());
+ }
+
+ @Override
public DropCatalogMessage buildDropCatalogMessage(Catalog catalog) {
return new JSONDropCatalogMessage(MS_SERVER_URL, MS_SERVICE_PRINCIPAL, catalog.getName(), now());
}
@@ -276,6 +283,11 @@ public class JSONMessageFactory extends MessageFactory {
return serializer.toString(dbObj, "UTF-8");
}
+ static String createCatalogObjJson(Catalog catObj) throws TException {
+ TSerializer serializer = new TSerializer(new TJSONProtocol.Factory());
+ return serializer.toString(catObj, "UTF-8");
+ }
+
static String createTableObjJson(Table tableObj) throws TException {
TSerializer serializer = new TSerializer(new TJSONProtocol.Factory());
return serializer.toString(tableObj, "UTF-8");
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/main/thrift/hive_metastore.thrift
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/main/thrift/hive_metastore.thrift b/standalone-metastore/src/main/thrift/hive_metastore.thrift
index 3d85acf..6e503eb 100644
--- a/standalone-metastore/src/main/thrift/hive_metastore.thrift
+++ b/standalone-metastore/src/main/thrift/hive_metastore.thrift
@@ -338,6 +338,11 @@ struct CreateCatalogRequest {
1: Catalog catalog
}
+struct AlterCatalogRequest {
+ 1: string name,
+ 2: Catalog newCat
+}
+
struct GetCatalogRequest {
1: string name
}
@@ -1611,6 +1616,7 @@ service ThriftHiveMetastore extends fb303.FacebookService
void setMetaConf(1:string key, 2:string value) throws(1:MetaException o1)
void create_catalog(1: CreateCatalogRequest catalog) throws (1:AlreadyExistsException o1, 2:InvalidObjectException o2, 3: MetaException o3)
+ void alter_catalog(1: AlterCatalogRequest rqst) throws (1:NoSuchObjectException o1, 2:InvalidOperationException o2, 3:MetaException o3)
GetCatalogResponse get_catalog(1: GetCatalogRequest catName) throws (1:NoSuchObjectException o1, 2:MetaException o2)
GetCatalogsResponse get_catalogs() throws (1:MetaException o1)
void drop_catalog(1: DropCatalogRequest catName) throws (1:NoSuchObjectException o1, 2:InvalidOperationException o2, 3:MetaException o3)
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java
index bdb4b8b..2d87a2f 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java
@@ -2903,6 +2903,12 @@ public class HiveMetaStoreClientPreCatalog implements IMetaStoreClient, AutoClos
}
@Override
+ public void alterCatalog(String catalogName, Catalog newCatalog) throws NoSuchObjectException,
+ InvalidObjectException, MetaException, TException {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
public List<String> getCatalogs() throws TException {
throw new UnsupportedOperationException();
}
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java
index 02fb9eb..4ccbd09 100644
--- a/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java
+++ b/standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestCatalogs.java
@@ -144,6 +144,26 @@ public class TestCatalogs extends MetaStoreClientTest {
catalogs.get(i).equalsIgnoreCase(expected.get(i)));
}
+
+ // Update catalogs
+ // Update location
+ Catalog newCat = new Catalog(client.getCatalog(catNames[0]));
+ String newLocation = MetaStoreTestUtils.getTestWarehouseDir("a_different_location");
+ newCat.setLocationUri(newLocation);
+ client.alterCatalog(catNames[0], newCat);
+ Catalog fetchedNewCat = client.getCatalog(catNames[0]);
+ Assert.assertEquals(newLocation, fetchedNewCat.getLocationUri());
+ Assert.assertEquals(description[0], fetchedNewCat.getDescription());
+
+ // Update description
+ newCat = new Catalog(client.getCatalog(catNames[1]));
+ String newDescription = "an even more descriptive description";
+ newCat.setDescription(newDescription);
+ client.alterCatalog(catNames[1], newCat);
+ fetchedNewCat = client.getCatalog(catNames[1]);
+ Assert.assertEquals(location[1], fetchedNewCat.getLocationUri());
+ Assert.assertEquals(newDescription, fetchedNewCat.getDescription());
+
for (int i = 0; i < catNames.length; i++) {
client.dropCatalog(catNames[i]);
File dir = new File(location[i]);
@@ -214,4 +234,31 @@ public class TestCatalogs extends MetaStoreClientTest {
client.dropCatalog(catName);
}
+
+ @Test(expected = NoSuchObjectException.class)
+ public void alterNonExistentCatalog() throws TException {
+ String catName = "alter_no_such_catalog";
+ Catalog cat = new CatalogBuilder()
+ .setName(catName)
+ .setLocation(MetaStoreTestUtils.getTestWarehouseDir(catName))
+ .build();
+
+ client.alterCatalog(catName, cat);
+ }
+
+ @Test(expected = InvalidOperationException.class)
+ public void alterChangeName() throws TException {
+ String catName = "alter_change_name";
+ String location = MetaStoreTestUtils.getTestWarehouseDir(catName);
+ String description = "I have a bad feeling about this";
+ new CatalogBuilder()
+ .setName(catName)
+ .setLocation(location)
+ .setDescription(description)
+ .create(client);
+
+ Catalog newCat = client.getCatalog(catName);
+ newCat.setName("you_may_call_me_tim");
+ client.alterCatalog(catName, newCat);
+ }
}
[3/7] hive git commit: HIVE-19688 Make catalogs updatable (Alan Gates
reviewed by Daniel Dai)
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
index 78656d9..5c6495e 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
@@ -291,6 +291,8 @@ class Catalog;
class CreateCatalogRequest;
+class AlterCatalogRequest;
+
class GetCatalogRequest;
class GetCatalogResponse;
@@ -2450,6 +2452,58 @@ inline std::ostream& operator<<(std::ostream& out, const CreateCatalogRequest& o
return out;
}
+typedef struct _AlterCatalogRequest__isset {
+ _AlterCatalogRequest__isset() : name(false), newCat(false) {}
+ bool name :1;
+ bool newCat :1;
+} _AlterCatalogRequest__isset;
+
+class AlterCatalogRequest {
+ public:
+
+ AlterCatalogRequest(const AlterCatalogRequest&);
+ AlterCatalogRequest& operator=(const AlterCatalogRequest&);
+ AlterCatalogRequest() : name() {
+ }
+
+ virtual ~AlterCatalogRequest() throw();
+ std::string name;
+ Catalog newCat;
+
+ _AlterCatalogRequest__isset __isset;
+
+ void __set_name(const std::string& val);
+
+ void __set_newCat(const Catalog& val);
+
+ bool operator == (const AlterCatalogRequest & rhs) const
+ {
+ if (!(name == rhs.name))
+ return false;
+ if (!(newCat == rhs.newCat))
+ return false;
+ return true;
+ }
+ bool operator != (const AlterCatalogRequest &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const AlterCatalogRequest & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+ virtual void printTo(std::ostream& out) const;
+};
+
+void swap(AlterCatalogRequest &a, AlterCatalogRequest &b);
+
+inline std::ostream& operator<<(std::ostream& out, const AlterCatalogRequest& obj)
+{
+ obj.printTo(out);
+ return out;
+}
+
typedef struct _GetCatalogRequest__isset {
_GetCatalogRequest__isset() : name(false) {}
bool name :1;
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterCatalogRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterCatalogRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterCatalogRequest.java
new file mode 100644
index 0000000..b9b5117
--- /dev/null
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlterCatalogRequest.java
@@ -0,0 +1,504 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class AlterCatalogRequest implements org.apache.thrift.TBase<AlterCatalogRequest, AlterCatalogRequest._Fields>, java.io.Serializable, Cloneable, Comparable<AlterCatalogRequest> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AlterCatalogRequest");
+
+ private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField NEW_CAT_FIELD_DESC = new org.apache.thrift.protocol.TField("newCat", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new AlterCatalogRequestStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new AlterCatalogRequestTupleSchemeFactory());
+ }
+
+ private String name; // required
+ private Catalog newCat; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ NAME((short)1, "name"),
+ NEW_CAT((short)2, "newCat");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // NAME
+ return NAME;
+ case 2: // NEW_CAT
+ return NEW_CAT;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.NEW_CAT, new org.apache.thrift.meta_data.FieldMetaData("newCat", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Catalog.class)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AlterCatalogRequest.class, metaDataMap);
+ }
+
+ public AlterCatalogRequest() {
+ }
+
+ public AlterCatalogRequest(
+ String name,
+ Catalog newCat)
+ {
+ this();
+ this.name = name;
+ this.newCat = newCat;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public AlterCatalogRequest(AlterCatalogRequest other) {
+ if (other.isSetName()) {
+ this.name = other.name;
+ }
+ if (other.isSetNewCat()) {
+ this.newCat = new Catalog(other.newCat);
+ }
+ }
+
+ public AlterCatalogRequest deepCopy() {
+ return new AlterCatalogRequest(this);
+ }
+
+ @Override
+ public void clear() {
+ this.name = null;
+ this.newCat = null;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public void unsetName() {
+ this.name = null;
+ }
+
+ /** Returns true if field name is set (has been assigned a value) and false otherwise */
+ public boolean isSetName() {
+ return this.name != null;
+ }
+
+ public void setNameIsSet(boolean value) {
+ if (!value) {
+ this.name = null;
+ }
+ }
+
+ public Catalog getNewCat() {
+ return this.newCat;
+ }
+
+ public void setNewCat(Catalog newCat) {
+ this.newCat = newCat;
+ }
+
+ public void unsetNewCat() {
+ this.newCat = null;
+ }
+
+ /** Returns true if field newCat is set (has been assigned a value) and false otherwise */
+ public boolean isSetNewCat() {
+ return this.newCat != null;
+ }
+
+ public void setNewCatIsSet(boolean value) {
+ if (!value) {
+ this.newCat = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case NAME:
+ if (value == null) {
+ unsetName();
+ } else {
+ setName((String)value);
+ }
+ break;
+
+ case NEW_CAT:
+ if (value == null) {
+ unsetNewCat();
+ } else {
+ setNewCat((Catalog)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case NAME:
+ return getName();
+
+ case NEW_CAT:
+ return getNewCat();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case NAME:
+ return isSetName();
+ case NEW_CAT:
+ return isSetNewCat();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof AlterCatalogRequest)
+ return this.equals((AlterCatalogRequest)that);
+ return false;
+ }
+
+ public boolean equals(AlterCatalogRequest that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_name = true && this.isSetName();
+ boolean that_present_name = true && that.isSetName();
+ if (this_present_name || that_present_name) {
+ if (!(this_present_name && that_present_name))
+ return false;
+ if (!this.name.equals(that.name))
+ return false;
+ }
+
+ boolean this_present_newCat = true && this.isSetNewCat();
+ boolean that_present_newCat = true && that.isSetNewCat();
+ if (this_present_newCat || that_present_newCat) {
+ if (!(this_present_newCat && that_present_newCat))
+ return false;
+ if (!this.newCat.equals(that.newCat))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_name = true && (isSetName());
+ list.add(present_name);
+ if (present_name)
+ list.add(name);
+
+ boolean present_newCat = true && (isSetNewCat());
+ list.add(present_newCat);
+ if (present_newCat)
+ list.add(newCat);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(AlterCatalogRequest other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetNewCat()).compareTo(other.isSetNewCat());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetNewCat()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newCat, other.newCat);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("AlterCatalogRequest(");
+ boolean first = true;
+
+ sb.append("name:");
+ if (this.name == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.name);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("newCat:");
+ if (this.newCat == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.newCat);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ if (newCat != null) {
+ newCat.validate();
+ }
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class AlterCatalogRequestStandardSchemeFactory implements SchemeFactory {
+ public AlterCatalogRequestStandardScheme getScheme() {
+ return new AlterCatalogRequestStandardScheme();
+ }
+ }
+
+ private static class AlterCatalogRequestStandardScheme extends StandardScheme<AlterCatalogRequest> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, AlterCatalogRequest struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.name = iprot.readString();
+ struct.setNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // NEW_CAT
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.newCat = new Catalog();
+ struct.newCat.read(iprot);
+ struct.setNewCatIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, AlterCatalogRequest struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.name != null) {
+ oprot.writeFieldBegin(NAME_FIELD_DESC);
+ oprot.writeString(struct.name);
+ oprot.writeFieldEnd();
+ }
+ if (struct.newCat != null) {
+ oprot.writeFieldBegin(NEW_CAT_FIELD_DESC);
+ struct.newCat.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class AlterCatalogRequestTupleSchemeFactory implements SchemeFactory {
+ public AlterCatalogRequestTupleScheme getScheme() {
+ return new AlterCatalogRequestTupleScheme();
+ }
+ }
+
+ private static class AlterCatalogRequestTupleScheme extends TupleScheme<AlterCatalogRequest> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, AlterCatalogRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetName()) {
+ optionals.set(0);
+ }
+ if (struct.isSetNewCat()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetName()) {
+ oprot.writeString(struct.name);
+ }
+ if (struct.isSetNewCat()) {
+ struct.newCat.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, AlterCatalogRequest struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ struct.name = iprot.readString();
+ struct.setNameIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.newCat = new Catalog();
+ struct.newCat.read(iprot);
+ struct.setNewCatIsSet(true);
+ }
+ }
+ }
+
+}
+
[2/7] hive git commit: HIVE-19688 Make catalogs updatable (Alan Gates
reviewed by Daniel Dai)
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
index 929f328..672ebf9 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
@@ -48,6 +48,8 @@ import org.slf4j.LoggerFactory;
public void create_catalog(CreateCatalogRequest catalog) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException;
+ public void alter_catalog(AlterCatalogRequest rqst) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException;
+
public GetCatalogResponse get_catalog(GetCatalogRequest catName) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
public GetCatalogsResponse get_catalogs() throws MetaException, org.apache.thrift.TException;
@@ -464,6 +466,8 @@ import org.slf4j.LoggerFactory;
public void create_catalog(CreateCatalogRequest catalog, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void alter_catalog(AlterCatalogRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
public void get_catalog(GetCatalogRequest catName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void get_catalogs(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
@@ -971,6 +975,35 @@ import org.slf4j.LoggerFactory;
return;
}
+ public void alter_catalog(AlterCatalogRequest rqst) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException
+ {
+ send_alter_catalog(rqst);
+ recv_alter_catalog();
+ }
+
+ public void send_alter_catalog(AlterCatalogRequest rqst) throws org.apache.thrift.TException
+ {
+ alter_catalog_args args = new alter_catalog_args();
+ args.setRqst(rqst);
+ sendBase("alter_catalog", args);
+ }
+
+ public void recv_alter_catalog() throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException
+ {
+ alter_catalog_result result = new alter_catalog_result();
+ receiveBase(result, "alter_catalog");
+ if (result.o1 != null) {
+ throw result.o1;
+ }
+ if (result.o2 != null) {
+ throw result.o2;
+ }
+ if (result.o3 != null) {
+ throw result.o3;
+ }
+ return;
+ }
+
public GetCatalogResponse get_catalog(GetCatalogRequest catName) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
{
send_get_catalog(catName);
@@ -6922,6 +6955,38 @@ import org.slf4j.LoggerFactory;
}
}
+ public void alter_catalog(AlterCatalogRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ alter_catalog_call method_call = new alter_catalog_call(rqst, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_catalog_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private AlterCatalogRequest rqst;
+ public alter_catalog_call(AlterCatalogRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.rqst = rqst;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_catalog", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ alter_catalog_args args = new alter_catalog_args();
+ args.setRqst(rqst);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public void getResult() throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ (new Client(prot)).recv_alter_catalog();
+ }
+ }
+
public void get_catalog(GetCatalogRequest catName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
get_catalog_call method_call = new get_catalog_call(catName, resultHandler, this, ___protocolFactory, ___transport);
@@ -13923,6 +13988,7 @@ import org.slf4j.LoggerFactory;
processMap.put("getMetaConf", new getMetaConf());
processMap.put("setMetaConf", new setMetaConf());
processMap.put("create_catalog", new create_catalog());
+ processMap.put("alter_catalog", new alter_catalog());
processMap.put("get_catalog", new get_catalog());
processMap.put("get_catalogs", new get_catalogs());
processMap.put("drop_catalog", new drop_catalog());
@@ -14205,6 +14271,34 @@ import org.slf4j.LoggerFactory;
}
}
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_catalog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_catalog_args> {
+ public alter_catalog() {
+ super("alter_catalog");
+ }
+
+ public alter_catalog_args getEmptyArgsInstance() {
+ return new alter_catalog_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public alter_catalog_result getResult(I iface, alter_catalog_args args) throws org.apache.thrift.TException {
+ alter_catalog_result result = new alter_catalog_result();
+ try {
+ iface.alter_catalog(args.rqst);
+ } catch (NoSuchObjectException o1) {
+ result.o1 = o1;
+ } catch (InvalidOperationException o2) {
+ result.o2 = o2;
+ } catch (MetaException o3) {
+ result.o3 = o3;
+ }
+ return result;
+ }
+ }
+
@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_catalog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_catalog_args> {
public get_catalog() {
super("get_catalog");
@@ -19427,6 +19521,7 @@ import org.slf4j.LoggerFactory;
processMap.put("getMetaConf", new getMetaConf());
processMap.put("setMetaConf", new setMetaConf());
processMap.put("create_catalog", new create_catalog());
+ processMap.put("alter_catalog", new alter_catalog());
processMap.put("get_catalog", new get_catalog());
processMap.put("get_catalogs", new get_catalogs());
processMap.put("drop_catalog", new drop_catalog());
@@ -19812,139 +19907,20 @@ import org.slf4j.LoggerFactory;
}
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_catalog<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_catalog_args, GetCatalogResponse> {
- public get_catalog() {
- super("get_catalog");
- }
-
- public get_catalog_args getEmptyArgsInstance() {
- return new get_catalog_args();
- }
-
- public AsyncMethodCallback<GetCatalogResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<GetCatalogResponse>() {
- public void onComplete(GetCatalogResponse o) {
- get_catalog_result result = new get_catalog_result();
- result.success = o;
- try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
- }
- fb.close();
- }
- public void onError(Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
- get_catalog_result result = new get_catalog_result();
- if (e instanceof NoSuchObjectException) {
- result.o1 = (NoSuchObjectException) e;
- result.setO1IsSet(true);
- msg = result;
- }
- else if (e instanceof MetaException) {
- result.o2 = (MetaException) e;
- result.setO2IsSet(true);
- msg = result;
- }
- else
- {
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
- }
- fb.close();
- }
- };
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public void start(I iface, get_catalog_args args, org.apache.thrift.async.AsyncMethodCallback<GetCatalogResponse> resultHandler) throws TException {
- iface.get_catalog(args.catName,resultHandler);
- }
- }
-
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_catalogs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_catalogs_args, GetCatalogsResponse> {
- public get_catalogs() {
- super("get_catalogs");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_catalog<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_catalog_args, Void> {
+ public alter_catalog() {
+ super("alter_catalog");
}
- public get_catalogs_args getEmptyArgsInstance() {
- return new get_catalogs_args();
- }
-
- public AsyncMethodCallback<GetCatalogsResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<GetCatalogsResponse>() {
- public void onComplete(GetCatalogsResponse o) {
- get_catalogs_result result = new get_catalogs_result();
- result.success = o;
- try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
- }
- fb.close();
- }
- public void onError(Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
- get_catalogs_result result = new get_catalogs_result();
- if (e instanceof MetaException) {
- result.o1 = (MetaException) e;
- result.setO1IsSet(true);
- msg = result;
- }
- else
- {
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
- }
- fb.close();
- }
- };
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public void start(I iface, get_catalogs_args args, org.apache.thrift.async.AsyncMethodCallback<GetCatalogsResponse> resultHandler) throws TException {
- iface.get_catalogs(resultHandler);
- }
- }
-
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_catalog<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_catalog_args, Void> {
- public drop_catalog() {
- super("drop_catalog");
- }
-
- public drop_catalog_args getEmptyArgsInstance() {
- return new drop_catalog_args();
+ public alter_catalog_args getEmptyArgsInstance() {
+ return new alter_catalog_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
- drop_catalog_result result = new drop_catalog_result();
+ alter_catalog_result result = new alter_catalog_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -19956,7 +19932,7 @@ import org.slf4j.LoggerFactory;
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- drop_catalog_result result = new drop_catalog_result();
+ alter_catalog_result result = new alter_catalog_result();
if (e instanceof NoSuchObjectException) {
result.o1 = (NoSuchObjectException) e;
result.setO1IsSet(true);
@@ -19992,25 +19968,26 @@ import org.slf4j.LoggerFactory;
return false;
}
- public void start(I iface, drop_catalog_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
- iface.drop_catalog(args.catName,resultHandler);
+ public void start(I iface, alter_catalog_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ iface.alter_catalog(args.rqst,resultHandler);
}
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_database<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, create_database_args, Void> {
- public create_database() {
- super("create_database");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_catalog<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_catalog_args, GetCatalogResponse> {
+ public get_catalog() {
+ super("get_catalog");
}
- public create_database_args getEmptyArgsInstance() {
- return new create_database_args();
+ public get_catalog_args getEmptyArgsInstance() {
+ return new get_catalog_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<GetCatalogResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
- public void onComplete(Void o) {
- create_database_result result = new create_database_result();
+ return new AsyncMethodCallback<GetCatalogResponse>() {
+ public void onComplete(GetCatalogResponse o) {
+ get_catalog_result result = new get_catalog_result();
+ result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -20022,20 +19999,15 @@ import org.slf4j.LoggerFactory;
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- create_database_result result = new create_database_result();
- if (e instanceof AlreadyExistsException) {
- result.o1 = (AlreadyExistsException) e;
+ get_catalog_result result = new get_catalog_result();
+ if (e instanceof NoSuchObjectException) {
+ result.o1 = (NoSuchObjectException) e;
result.setO1IsSet(true);
msg = result;
}
- else if (e instanceof InvalidObjectException) {
- result.o2 = (InvalidObjectException) e;
- result.setO2IsSet(true);
- msg = result;
- }
else if (e instanceof MetaException) {
- result.o3 = (MetaException) e;
- result.setO3IsSet(true);
+ result.o2 = (MetaException) e;
+ result.setO2IsSet(true);
msg = result;
}
else
@@ -20058,25 +20030,25 @@ import org.slf4j.LoggerFactory;
return false;
}
- public void start(I iface, create_database_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
- iface.create_database(args.database,resultHandler);
+ public void start(I iface, get_catalog_args args, org.apache.thrift.async.AsyncMethodCallback<GetCatalogResponse> resultHandler) throws TException {
+ iface.get_catalog(args.catName,resultHandler);
}
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_database<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_database_args, Database> {
- public get_database() {
- super("get_database");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_catalogs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_catalogs_args, GetCatalogsResponse> {
+ public get_catalogs() {
+ super("get_catalogs");
}
- public get_database_args getEmptyArgsInstance() {
- return new get_database_args();
+ public get_catalogs_args getEmptyArgsInstance() {
+ return new get_catalogs_args();
}
- public AsyncMethodCallback<Database> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ public AsyncMethodCallback<GetCatalogsResponse> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Database>() {
- public void onComplete(Database o) {
- get_database_result result = new get_database_result();
+ return new AsyncMethodCallback<GetCatalogsResponse>() {
+ public void onComplete(GetCatalogsResponse o) {
+ get_catalogs_result result = new get_catalogs_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
@@ -20089,17 +20061,12 @@ import org.slf4j.LoggerFactory;
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- get_database_result result = new get_database_result();
- if (e instanceof NoSuchObjectException) {
- result.o1 = (NoSuchObjectException) e;
+ get_catalogs_result result = new get_catalogs_result();
+ if (e instanceof MetaException) {
+ result.o1 = (MetaException) e;
result.setO1IsSet(true);
msg = result;
}
- else if (e instanceof MetaException) {
- result.o2 = (MetaException) e;
- result.setO2IsSet(true);
- msg = result;
- }
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
@@ -20120,25 +20087,25 @@ import org.slf4j.LoggerFactory;
return false;
}
- public void start(I iface, get_database_args args, org.apache.thrift.async.AsyncMethodCallback<Database> resultHandler) throws TException {
- iface.get_database(args.name,resultHandler);
+ public void start(I iface, get_catalogs_args args, org.apache.thrift.async.AsyncMethodCallback<GetCatalogsResponse> resultHandler) throws TException {
+ iface.get_catalogs(resultHandler);
}
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_database<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_database_args, Void> {
- public drop_database() {
- super("drop_database");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_catalog<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_catalog_args, Void> {
+ public drop_catalog() {
+ super("drop_catalog");
}
- public drop_database_args getEmptyArgsInstance() {
- return new drop_database_args();
+ public drop_catalog_args getEmptyArgsInstance() {
+ return new drop_catalog_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
- drop_database_result result = new drop_database_result();
+ drop_catalog_result result = new drop_catalog_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
@@ -20150,7 +20117,201 @@ import org.slf4j.LoggerFactory;
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
- drop_database_result result = new drop_database_result();
+ drop_catalog_result result = new drop_catalog_result();
+ if (e instanceof NoSuchObjectException) {
+ result.o1 = (NoSuchObjectException) e;
+ result.setO1IsSet(true);
+ msg = result;
+ }
+ else if (e instanceof InvalidOperationException) {
+ result.o2 = (InvalidOperationException) e;
+ result.setO2IsSet(true);
+ msg = result;
+ }
+ else if (e instanceof MetaException) {
+ result.o3 = (MetaException) e;
+ result.setO3IsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, drop_catalog_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ iface.drop_catalog(args.catName,resultHandler);
+ }
+ }
+
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_database<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, create_database_args, Void> {
+ public create_database() {
+ super("create_database");
+ }
+
+ public create_database_args getEmptyArgsInstance() {
+ return new create_database_args();
+ }
+
+ public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Void>() {
+ public void onComplete(Void o) {
+ create_database_result result = new create_database_result();
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ create_database_result result = new create_database_result();
+ if (e instanceof AlreadyExistsException) {
+ result.o1 = (AlreadyExistsException) e;
+ result.setO1IsSet(true);
+ msg = result;
+ }
+ else if (e instanceof InvalidObjectException) {
+ result.o2 = (InvalidObjectException) e;
+ result.setO2IsSet(true);
+ msg = result;
+ }
+ else if (e instanceof MetaException) {
+ result.o3 = (MetaException) e;
+ result.setO3IsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, create_database_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ iface.create_database(args.database,resultHandler);
+ }
+ }
+
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_database<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, get_database_args, Database> {
+ public get_database() {
+ super("get_database");
+ }
+
+ public get_database_args getEmptyArgsInstance() {
+ return new get_database_args();
+ }
+
+ public AsyncMethodCallback<Database> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Database>() {
+ public void onComplete(Database o) {
+ get_database_result result = new get_database_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ get_database_result result = new get_database_result();
+ if (e instanceof NoSuchObjectException) {
+ result.o1 = (NoSuchObjectException) e;
+ result.setO1IsSet(true);
+ msg = result;
+ }
+ else if (e instanceof MetaException) {
+ result.o2 = (MetaException) e;
+ result.setO2IsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, get_database_args args, org.apache.thrift.async.AsyncMethodCallback<Database> resultHandler) throws TException {
+ iface.get_database(args.name,resultHandler);
+ }
+ }
+
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class drop_database<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, drop_database_args, Void> {
+ public drop_database() {
+ super("drop_database");
+ }
+
+ public drop_database_args getEmptyArgsInstance() {
+ return new drop_database_args();
+ }
+
+ public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Void>() {
+ public void onComplete(Void o) {
+ drop_database_result result = new drop_database_result();
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ drop_database_result result = new drop_database_result();
if (e instanceof NoSuchObjectException) {
result.o1 = (NoSuchObjectException) e;
result.setO1IsSet(true);
@@ -33798,15 +33959,900 @@ import org.slf4j.LoggerFactory;
}
}
- private static class setMetaConf_resultStandardSchemeFactory implements SchemeFactory {
- public setMetaConf_resultStandardScheme getScheme() {
- return new setMetaConf_resultStandardScheme();
+ private static class setMetaConf_resultStandardSchemeFactory implements SchemeFactory {
+ public setMetaConf_resultStandardScheme getScheme() {
+ return new setMetaConf_resultStandardScheme();
+ }
+ }
+
+ private static class setMetaConf_resultStandardScheme extends StandardScheme<setMetaConf_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, setMetaConf_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // O1
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.o1 = new MetaException();
+ struct.o1.read(iprot);
+ struct.setO1IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, setMetaConf_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.o1 != null) {
+ oprot.writeFieldBegin(O1_FIELD_DESC);
+ struct.o1.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class setMetaConf_resultTupleSchemeFactory implements SchemeFactory {
+ public setMetaConf_resultTupleScheme getScheme() {
+ return new setMetaConf_resultTupleScheme();
+ }
+ }
+
+ private static class setMetaConf_resultTupleScheme extends TupleScheme<setMetaConf_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, setMetaConf_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetO1()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetO1()) {
+ struct.o1.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, setMetaConf_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.o1 = new MetaException();
+ struct.o1.read(iprot);
+ struct.setO1IsSet(true);
+ }
+ }
+ }
+
+ }
+
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_catalog_args implements org.apache.thrift.TBase<create_catalog_args, create_catalog_args._Fields>, java.io.Serializable, Cloneable, Comparable<create_catalog_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_catalog_args");
+
+ private static final org.apache.thrift.protocol.TField CATALOG_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new create_catalog_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new create_catalog_argsTupleSchemeFactory());
+ }
+
+ private CreateCatalogRequest catalog; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ CATALOG((short)1, "catalog");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // CATALOG
+ return CATALOG;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.CATALOG, new org.apache.thrift.meta_data.FieldMetaData("catalog", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreateCatalogRequest.class)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_catalog_args.class, metaDataMap);
+ }
+
+ public create_catalog_args() {
+ }
+
+ public create_catalog_args(
+ CreateCatalogRequest catalog)
+ {
+ this();
+ this.catalog = catalog;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public create_catalog_args(create_catalog_args other) {
+ if (other.isSetCatalog()) {
+ this.catalog = new CreateCatalogRequest(other.catalog);
+ }
+ }
+
+ public create_catalog_args deepCopy() {
+ return new create_catalog_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.catalog = null;
+ }
+
+ public CreateCatalogRequest getCatalog() {
+ return this.catalog;
+ }
+
+ public void setCatalog(CreateCatalogRequest catalog) {
+ this.catalog = catalog;
+ }
+
+ public void unsetCatalog() {
+ this.catalog = null;
+ }
+
+ /** Returns true if field catalog is set (has been assigned a value) and false otherwise */
+ public boolean isSetCatalog() {
+ return this.catalog != null;
+ }
+
+ public void setCatalogIsSet(boolean value) {
+ if (!value) {
+ this.catalog = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case CATALOG:
+ if (value == null) {
+ unsetCatalog();
+ } else {
+ setCatalog((CreateCatalogRequest)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case CATALOG:
+ return getCatalog();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case CATALOG:
+ return isSetCatalog();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof create_catalog_args)
+ return this.equals((create_catalog_args)that);
+ return false;
+ }
+
+ public boolean equals(create_catalog_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_catalog = true && this.isSetCatalog();
+ boolean that_present_catalog = true && that.isSetCatalog();
+ if (this_present_catalog || that_present_catalog) {
+ if (!(this_present_catalog && that_present_catalog))
+ return false;
+ if (!this.catalog.equals(that.catalog))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_catalog = true && (isSetCatalog());
+ list.add(present_catalog);
+ if (present_catalog)
+ list.add(catalog);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(create_catalog_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetCatalog()).compareTo(other.isSetCatalog());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetCatalog()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog, other.catalog);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("create_catalog_args(");
+ boolean first = true;
+
+ sb.append("catalog:");
+ if (this.catalog == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.catalog);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ if (catalog != null) {
+ catalog.validate();
+ }
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class create_catalog_argsStandardSchemeFactory implements SchemeFactory {
+ public create_catalog_argsStandardScheme getScheme() {
+ return new create_catalog_argsStandardScheme();
+ }
+ }
+
+ private static class create_catalog_argsStandardScheme extends StandardScheme<create_catalog_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, create_catalog_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // CATALOG
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.catalog = new CreateCatalogRequest();
+ struct.catalog.read(iprot);
+ struct.setCatalogIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, create_catalog_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.catalog != null) {
+ oprot.writeFieldBegin(CATALOG_FIELD_DESC);
+ struct.catalog.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class create_catalog_argsTupleSchemeFactory implements SchemeFactory {
+ public create_catalog_argsTupleScheme getScheme() {
+ return new create_catalog_argsTupleScheme();
+ }
+ }
+
+ private static class create_catalog_argsTupleScheme extends TupleScheme<create_catalog_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, create_catalog_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetCatalog()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetCatalog()) {
+ struct.catalog.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, create_catalog_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.catalog = new CreateCatalogRequest();
+ struct.catalog.read(iprot);
+ struct.setCatalogIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_catalog_result implements org.apache.thrift.TBase<create_catalog_result, create_catalog_result._Fields>, java.io.Serializable, Cloneable, Comparable<create_catalog_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_catalog_result");
+
+ private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+ private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new create_catalog_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new create_catalog_resultTupleSchemeFactory());
+ }
+
+ private AlreadyExistsException o1; // required
+ private InvalidObjectException o2; // required
+ private MetaException o3; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ O1((short)1, "o1"),
+ O2((short)2, "o2"),
+ O3((short)3, "o3");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // O1
+ return O1;
+ case 2: // O2
+ return O2;
+ case 3: // O3
+ return O3;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_catalog_result.class, metaDataMap);
+ }
+
+ public create_catalog_result() {
+ }
+
+ public create_catalog_result(
+ AlreadyExistsException o1,
+ InvalidObjectException o2,
+ MetaException o3)
+ {
+ this();
+ this.o1 = o1;
+ this.o2 = o2;
+ this.o3 = o3;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public create_catalog_result(create_catalog_result other) {
+ if (other.isSetO1()) {
+ this.o1 = new AlreadyExistsException(other.o1);
+ }
+ if (other.isSetO2()) {
+ this.o2 = new InvalidObjectException(other.o2);
+ }
+ if (other.isSetO3()) {
+ this.o3 = new MetaException(other.o3);
+ }
+ }
+
+ public create_catalog_result deepCopy() {
+ return new create_catalog_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.o1 = null;
+ this.o2 = null;
+ this.o3 = null;
+ }
+
+ public AlreadyExistsException getO1() {
+ return this.o1;
+ }
+
+ public void setO1(AlreadyExistsException o1) {
+ this.o1 = o1;
+ }
+
+ public void unsetO1() {
+ this.o1 = null;
+ }
+
+ /** Returns true if field o1 is set (has been assigned a value) and false otherwise */
+ public boolean isSetO1() {
+ return this.o1 != null;
+ }
+
+ public void setO1IsSet(boolean value) {
+ if (!value) {
+ this.o1 = null;
+ }
+ }
+
+ public InvalidObjectException getO2() {
+ return this.o2;
+ }
+
+ public void setO2(InvalidObjectException o2) {
+ this.o2 = o2;
+ }
+
+ public void unsetO2() {
+ this.o2 = null;
+ }
+
+ /** Returns true if field o2 is set (has been assigned a value) and false otherwise */
+ public boolean isSetO2() {
+ return this.o2 != null;
+ }
+
+ public void setO2IsSet(boolean value) {
+ if (!value) {
+ this.o2 = null;
+ }
+ }
+
+ public MetaException getO3() {
+ return this.o3;
+ }
+
+ public void setO3(MetaException o3) {
+ this.o3 = o3;
+ }
+
+ public void unsetO3() {
+ this.o3 = null;
+ }
+
+ /** Returns true if field o3 is set (has been assigned a value) and false otherwise */
+ public boolean isSetO3() {
+ return this.o3 != null;
+ }
+
+ public void setO3IsSet(boolean value) {
+ if (!value) {
+ this.o3 = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case O1:
+ if (value == null) {
+ unsetO1();
+ } else {
+ setO1((AlreadyExistsException)value);
+ }
+ break;
+
+ case O2:
+ if (value == null) {
+ unsetO2();
+ } else {
+ setO2((InvalidObjectException)value);
+ }
+ break;
+
+ case O3:
+ if (value == null) {
+ unsetO3();
+ } else {
+ setO3((MetaException)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case O1:
+ return getO1();
+
+ case O2:
+ return getO2();
+
+ case O3:
+ return getO3();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case O1:
+ return isSetO1();
+ case O2:
+ return isSetO2();
+ case O3:
+ return isSetO3();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof create_catalog_result)
+ return this.equals((create_catalog_result)that);
+ return false;
+ }
+
+ public boolean equals(create_catalog_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_o1 = true && this.isSetO1();
+ boolean that_present_o1 = true && that.isSetO1();
+ if (this_present_o1 || that_present_o1) {
+ if (!(this_present_o1 && that_present_o1))
+ return false;
+ if (!this.o1.equals(that.o1))
+ return false;
+ }
+
+ boolean this_present_o2 = true && this.isSetO2();
+ boolean that_present_o2 = true && that.isSetO2();
+ if (this_present_o2 || that_present_o2) {
+ if (!(this_present_o2 && that_present_o2))
+ return false;
+ if (!this.o2.equals(that.o2))
+ return false;
+ }
+
+ boolean this_present_o3 = true && this.isSetO3();
+ boolean that_present_o3 = true && that.isSetO3();
+ if (this_present_o3 || that_present_o3) {
+ if (!(this_present_o3 && that_present_o3))
+ return false;
+ if (!this.o3.equals(that.o3))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_o1 = true && (isSetO1());
+ list.add(present_o1);
+ if (present_o1)
+ list.add(o1);
+
+ boolean present_o2 = true && (isSetO2());
+ list.add(present_o2);
+ if (present_o2)
+ list.add(o2);
+
+ boolean present_o3 = true && (isSetO3());
+ list.add(present_o3);
+ if (present_o3)
+ list.add(o3);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(create_catalog_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetO1()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetO2()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetO3()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("create_catalog_result(");
+ boolean first = true;
+
+ sb.append("o1:");
+ if (this.o1 == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.o1);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("o2:");
+ if (this.o2 == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.o2);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("o3:");
+ if (this.o3 == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.o3);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class create_catalog_resultStandardSchemeFactory implements SchemeFactory {
+ public create_catalog_resultStandardScheme getScheme() {
+ return new create_catalog_resultStandardScheme();
}
}
- private static class setMetaConf_resultStandardScheme extends StandardScheme<setMetaConf_result> {
+ private static class create_catalog_resultStandardScheme extends StandardScheme<create_catalog_result> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, setMetaConf_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, create_catalog_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -33818,13 +34864,31 @@ import org.slf4j.LoggerFactory;
switch (schemeField.id) {
case 1: // O1
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.o1 = new MetaException();
+ struct.o1 = new AlreadyExistsException();
struct.o1.read(iprot);
struct.setO1IsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 2: // O2
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.o2 = new InvalidObjectException();
+ struct.o2.read(iprot);
+ struct.setO2IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // O3
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.o3 = new MetaException();
+ struct.o3.read(iprot);
+ struct.setO3IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -33834,7 +34898,7 @@ import org.slf4j.LoggerFactory;
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, setMetaConf_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, create_catalog_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -33843,63 +34907,95 @@ import org.slf4j.LoggerFactory;
struct.o1.write(oprot);
oprot.writeFieldEnd();
}
+ if (struct.o2 != null) {
+ oprot.writeFieldBegin(O2_FIELD_DESC);
+ struct.o2.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.o3 != null) {
+ oprot.writeFieldBegin(O3_FIELD_DESC);
+ struct.o3.write(oprot);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
- private static class setMetaConf_resultTupleSchemeFactory implements SchemeFactory {
- public setMetaConf_resultTupleScheme getScheme() {
- return new setMetaConf_resultTupleScheme();
+ private static class create_catalog_resultTupleSchemeFactory implements SchemeFactory {
+ public create_catalog_resultTupleScheme getScheme() {
+ return new create_catalog_resultTupleScheme();
}
}
- private static class setMetaConf_resultTupleScheme extends TupleScheme<setMetaConf_result> {
+ private static class create_catalog_resultTupleScheme extends TupleScheme<create_catalog_result> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, setMetaConf_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, create_catalog_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetO1()) {
optionals.set(0);
}
- oprot.writeBitSet(optionals, 1);
+ if (struct.isSetO2()) {
+ optionals.set(1);
+ }
+ if (struct.isSetO3()) {
+ optionals.set(2);
+ }
+ oprot.writeBitSet(optionals, 3);
if (struct.isSetO1()) {
struct.o1.write(oprot);
}
+ if (struct.isSetO2()) {
+ struct.o2.write(oprot);
+ }
+ if (struct.isSetO3()) {
+ struct.o3.write(oprot);
+ }
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, setMetaConf_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, create_catalog_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
- struct.o1 = new MetaException();
+ struct.o1 = new AlreadyExistsException();
struct.o1.read(iprot);
struct.setO1IsSet(true);
}
+ if (incoming.get(1)) {
+ struct.o2 = new InvalidObjectException();
+ struct.o2.read(iprot);
+ struct.setO2IsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.o3 = new MetaException();
+ struct.o3.read(iprot);
+ struct.setO3IsSet(true);
+ }
}
}
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_catalog_args implements org.apache.thrift.TBase<create_catalog_args, create_catalog_args._Fields>, java.io.Serializable, Cloneable, Comparable<create_catalog_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_catalog_args");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_catalog_args implements org.apache.thrift.TBase<alter_catalog_args, alter_catalog_args._Fields>, java.io.Serializable, Cloneable, Comparable<alter_catalog_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_catalog_args");
- private static final org.apache.thrift.protocol.TField CATALOG_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new create_catalog_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new create_catalog_argsTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new alter_catalog_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new alter_catalog_argsTupleSchemeFactory());
}
- private CreateCatalogRequest catalog; // required
+ private AlterCatalogRequest rqst; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- CATALOG((short)1, "catalog");
+ RQST((short)1, "rqst");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -33914,8 +35010,8 @@ import org.slf4j.LoggerFactory;
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case 1: // CATALOG
- return CATALOG;
+ case 1: // RQST
+ return RQST;
default:
return null;
}
@@ -33959,70 +35055,70 @@ import org.slf4j.LoggerFactory;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.CATALOG, new org.apache.thrift.meta_data.FieldMetaData("catalog", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreateCatalogRequest.class)));
+ tmpMap.put(_Fields.RQST, new org.apache.thrift.meta_data.FieldMetaData("rqst", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AlterCatalogRequest.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_catalog_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_catalog_args.class, metaDataMap);
}
- public create_catalog_args() {
+ public alter_catalog_args() {
}
- public create_catalog_args(
- CreateCatalogRequest catalog)
+ public alter_catalog_args(
+ AlterCatalogRequest rqst)
{
this();
- this.catalog = catalog;
+ this.rqst = rqst;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public create_catalog_args(create_catalog_args other) {
- if (other.isSetCatalog()) {
- this.catalog = new CreateCatalogRequest(other.catalog);
+ public alter_catalog_args(alter_catalog_args other) {
+ if (other.isSetRqst()) {
+ this.rqst = new AlterCatalogRequest(other.rqst);
}
}
- public create_catalog_args deepCopy() {
- return new create_catalog_args(this);
+ public alter_catalog_args deepCopy() {
+ return new alter_catalog_args(this);
}
@Override
public void clear() {
- this.catalog = null;
+ this.rqst = null;
}
- public CreateCatalogRequest getCatalog() {
- return this.catalog;
+ public AlterCatalogRequest getRqst() {
+ return this.rqst;
}
- public void setCatalog(CreateCatalogRequest catalog) {
- this.catalog = catalog;
+ public void setRqst(AlterCatalogRequest rqst) {
+ this.rqst = rqst;
}
- public void unsetCatalog() {
- this.catalog = null;
+ public void unsetRqst() {
+ this.rqst = null;
}
- /** Returns true if field catalog is set (has been assigned a value) and false otherwise */
- public boolean isSetCatalog() {
- return this.catalog != null;
+ /** Returns true if field rqst is set (has been assigned a value) and false otherwise */
+ public boolean isSetRqst() {
+ return this.rqst != null;
}
- public void setCatalogIsSet(boolean value) {
+ public void setRqstIsSet(boolean value) {
if (!value) {
- this.catalog = null;
+ this.rqst = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
- case CATALOG:
+ case RQST:
if (value == null) {
- unsetCatalog();
+ unsetRqst();
} else {
- setCatalog((CreateCatalogRequest)value);
+ setRqst((AlterCatalogRequest)value);
}
break;
@@ -34031,8 +35127,8 @@ import org.slf4j.LoggerFactory;
public Object getFieldValue(_Fields field) {
switch (field) {
- case CATALOG:
- return getCatalog();
+ case RQST:
+ return getRqst();
}
throw new IllegalStateException();
@@ -34045,8 +35141,8 @@ import org.slf4j.LoggerFactory;
}
switch (field) {
- case CATALOG:
- return isSetCatalog();
+ case RQST:
+ return isSetRqst();
}
throw new IllegalStateException();
}
@@ -34055,21 +35151,21 @@ import org.slf4j.LoggerFactory;
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof create_catalog_args)
- return this.equals((create_catalog_args)that);
+ if (that instanceof alter_catalog_args)
+ return this.equals((alter_catalog_args)that);
return false;
}
- public boolean equals(create_catalog_args that) {
+ public boolean equals(alter_catalog_args that) {
if (that == null)
return false;
- boolean this_present_catalog = true && this.isSetCatalog();
- boolean that_present_catalog = true && that.isSetCatalog();
- if (this_present_catalog || that_present_catalog) {
- if (!(this_present_catalog && that_present_catalog))
+ boolean this_present_rqst = true && this.isSetRqst();
+ boolean that_present_rqst = true && that.isSetRqst();
+ if (this_present_rqst || that_present_rqst) {
+ if (!(this_present_rqst && that_present_rqst))
return false;
- if (!this.catalog.equals(that.catalog))
+ if (!this.rqst.equals(that.rqst))
return false;
}
@@ -34080,28 +35176,28 @@ import org.slf4j.LoggerFactory;
public int hashCode() {
List<Object> list = new ArrayList<Object>();
- boolean present_catalog = true && (isSetCatalog());
- list.add(present_catalog);
- if (present_catalog)
- list.add(catalog);
+ boolean present_rqst = true && (isSetRqst());
+ list.add(present_rqst);
+ if (present_rqst)
+ list.add(rqst);
return list.hashCode();
}
@Override
- public int compareTo(create_catalog_args other) {
+ public int compareTo(alter_catalog_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetCatalog()).compareTo(other.isSetCatalog());
+ lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetCatalog()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog, other.catalog);
+ if (isSetRqst()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst);
if (lastComparison != 0) {
return lastComparison;
}
@@ -34123,14 +35219,14 @@ import org.slf4j.LoggerFactory;
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("create_catalog_args(");
+ StringBuilder sb = new StringBuilder("alter_catalog_args(");
boolean first = true;
- sb.append("catalog:");
- if (this.catalog == null) {
+ sb.append("rqst:");
+ if (this.rqst == null) {
sb.append("null");
} else {
- sb.append(this.catalog);
+ sb.append(this.rqst);
}
first = false;
sb.append(")");
@@ -34140,8 +35236,8 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
- if (catalog != null) {
- catalog.validate();
+ if (rqst != null) {
+ rqst.validate();
}
}
@@ -34161,15 +35257,15 @@ import org.slf4j.LoggerFactory;
}
}
- private static class create_catalog_argsStandardSchemeFactory implements SchemeFactory {
- public create_catalog_argsStandardScheme getScheme() {
- return new create_catalog_argsStandardScheme();
+ private static class alter_catalog_argsStandardSchemeFactory implements SchemeFactory {
+ public alter_catalog_argsStandardScheme getScheme() {
+ return new alter_catalog_argsStandardScheme();
}
}
- private static class create_catalog_argsStandardScheme extends StandardScheme<create_catalog_args> {
+ private static class alter_catalog_argsStandardScheme extends StandardScheme<alter_catalog_args> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, create_catalog_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_catalog_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -34179,11 +35275,11 @@ import org.slf4j.LoggerFactory;
break;
}
switch (schemeField.id) {
- case 1: // CATALOG
+ case 1: // RQST
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.catalog = new CreateCatalogRequest();
- struct.catalog.read(iprot);
- struct.setCatalogIsSet(true);
+ struct.rqst = new AlterCatalogRequest();
+ struct.rqst.read(iprot);
+ struct.setRqstIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -34197,13 +35293,13 @@ import org.slf4j.LoggerFactory;
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, create_catalog_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_catalog_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- if (struct.catalog != null) {
- oprot.writeFieldBegin(CATALOG_FIELD_DESC);
- struct.catalog.write(oprot);
+ if (struct.rqst != null) {
+ oprot.writeFieldBegin(RQST_FIELD_DESC);
+ struct.rqst.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -34212,43 +35308,43 @@ import org.slf4j.LoggerFactory;
}
- private static class create_catalog_argsTupleSchemeFactory implements SchemeFactory {
- public create_catalog_argsTupleScheme getScheme() {
- return new create_catalog_argsTupleScheme();
+ private static class alter_catalog_argsTupleSchemeFactory implements SchemeFactory {
+ public alter_catalog_argsTupleScheme getScheme() {
+ return new alter_catalog_argsTupleScheme();
}
}
- private static class create_catalog_argsTupleScheme extends TupleScheme<create_catalog_args> {
+ private static class alter_catalog_argsTupleScheme extends TupleScheme<alter_catalog_args> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, create_catalog_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, alter_catalog_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
- if (struct.isSetCatalog()) {
+ if (struct.isSetRqst()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
- if (struct.isSetCatalog()) {
- struct.catalog.write(oprot);
+ if (struct.isSetRqst()) {
+ struct.rqst.write(oprot);
}
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, create_catalog_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, alter_catalog_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
- struct.catalog = new CreateCatalogRequest();
- struct.catalog.read(iprot);
- struct.setCatalogIsSet(true);
+ struct.rqst = new AlterCatalogRequest();
+ struct.rqst.read(iprot);
+ struct.setRqstIsSet(true);
}
}
}
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class create_catalog_result implements org.apache.thrift.TBase<create_catalog_result, create_catalog_result._Fields>, java.io.Serializable, Cloneable, Comparable<create_catalog_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_catalog_result");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class alter_catalog_result implements org.apache.thrift.TBase<alter_catalog_result, alter_catalog_result._Fields>, java.io.Serializable, Cloneable, Comparable<alter_catalog_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_catalog_result");
private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2);
@@ -34256,12 +35352,12 @@ import org.slf4j.LoggerFactory;
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new create_catalog_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new create_catalog_resultTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new alter_catalog_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new alter_catalog_resultTupleSchemeFactory());
}
- private AlreadyExistsException o1; // required
- private InvalidObjectException o2; // required
+ private NoSuchObjectException o1; // required
+ private InvalidOperationException o2; // required
private MetaException o3; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
@@ -34339,15 +35435,15 @@ import org.slf4j.LoggerFactory;
tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_catalog_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_catalog_result.class, metaDataMap);
}
- public create_catalog_result() {
+ public alter_catalog_result() {
}
- public create_catalog_result(
- AlreadyExistsException o1,
- InvalidObjectException o2,
+ public alter_catalog_result(
+ NoSuchObjectException o1,
+ InvalidOperationException o2,
MetaException o3)
{
this();
@@ -34359,20 +35455,20 @@ import org.slf4j.LoggerFactory;
/**
* Performs a deep copy on <i>other</i>.
*/
- public create_catalog_result(create_catalog_result other) {
+ public alter_catalog_result(alter_catalog_result other) {
if (other.isSetO1()) {
- this.o1 = new AlreadyExistsException(other.o1);
+ this.o1 = new NoSuchObjectException(other.o1);
}
if (other.isSetO2()) {
- this.o2 = new InvalidObjectException(other.o2);
+ this.o2 = new InvalidOperationException(other.o2);
}
if (other.isSetO3()) {
this.o3 = new MetaException(other.o3);
}
}
- public create_catalog_result deepCopy() {
- return new create_catalog_result(this);
+ public alter_catalog_result deepCopy() {
+ return new alter_catalog_result(this);
}
@Override
@@ -34382,11 +35478,11 @@ import org.slf4j.LoggerFactory;
this.o3 = null;
}
- public AlreadyExistsException getO1() {
+ public NoSuchObjectException getO1() {
return this.o1;
}
- public void setO1(AlreadyExistsException o1) {
+ public void setO1(NoSuchObjectException o1) {
this.o1 = o1;
}
@@ -34405,11 +35501,11 @@ import org.slf4j.LoggerFactory;
}
}
- public InvalidObjectException getO2() {
+ public InvalidOperationException getO2() {
return this.o2;
}
- public void setO2(InvalidObjectException o2) {
+ public void setO2(InvalidOperationException o2) {
this.o2 = o2;
}
@@ -34457,7 +35553,7 @@ import org.slf4j.LoggerFactory;
if (value == null) {
unsetO1();
} else {
- setO1((AlreadyExistsException)value);
+ setO1((NoSuchObjectException)value);
}
break;
@@ -34465,7 +35561,7 @@ import org.slf4j.LoggerFactory;
if (value == null) {
unsetO2();
} else {
- setO2((InvalidObjectException)value);
+ setO2((InvalidOperationException)value);
}
break;
@@ -34516,12 +35612,12 @@ import org.slf4j.LoggerFactory;
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof create_catalog_result)
- return this.equals((create_catalog_result)that);
+ if (that instanceof alter_catalog_result)
+ return this.equals((alter_catalog_result)that);
return false;
}
- public boolean equals(create_catalog_result that) {
+ public boolean equals(alter_catalog_result that) {
if (that == null)
return false;
@@ -34578,7 +35674,7 @@ import org.slf4j.LoggerFactory;
}
@Override
- public int compareTo(create_catalog_result other) {
+ public int compareTo(alter_catalog_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -34632,7 +35728,7 @@ import org.slf4j.LoggerFactory;
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("create_catalog_result(");
+ StringBuilder sb = new StringBuilder("alter_catalog_result(");
boolean first = true;
sb.append("o1:");
@@ -34683,15 +35779,15 @@ import org.slf4j.LoggerFactory;
}
}
- private static class create_catalog_resultStandardSchemeFactory implements SchemeFactory {
- public create_catalog_resultStandardScheme getScheme() {
- return new create_catalog_resultStandardScheme();
+ private static class alter_catalog_resultStandardSchemeFactory implements SchemeFactory {
+ public alter_catalog_resultStandardScheme getScheme() {
+ return new alter_catalog_resultStandardScheme();
}
}
- private static class create_catalog_resultStandardScheme extends StandardScheme<create_catalog_result> {
+ private sta
<TRUNCATED>
[7/7] hive git commit: HIVE-19688 Make catalogs updatable (Alan Gates
reviewed by Daniel Dai)
Posted by ga...@apache.org.
HIVE-19688 Make catalogs updatable (Alan Gates reviewed by Daniel Dai)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/c2cc42c1
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/c2cc42c1
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/c2cc42c1
Branch: refs/heads/branch-3
Commit: c2cc42c1c8010e08ad8519c4f8164adb028f15d0
Parents: dc609b4
Author: Alan Gates <ga...@hortonworks.com>
Authored: Mon Jun 4 11:30:38 2018 -0700
Committer: Alan Gates <ga...@hortonworks.com>
Committed: Mon Jun 4 11:30:38 2018 -0700
----------------------------------------------------------------------
.../org/apache/hive/beeline/HiveSchemaTool.java | 83 +-
.../hive/beeline/TestSchemaToolCatalogOps.java | 44 +-
.../gen/thrift/gen-cpp/ThriftHiveMetastore.cpp | 2733 ++++----
.../gen/thrift/gen-cpp/ThriftHiveMetastore.h | 141 +
.../ThriftHiveMetastore_server.skeleton.cpp | 5 +
.../gen/thrift/gen-cpp/hive_metastore_types.cpp | 6142 +++++++++---------
.../gen/thrift/gen-cpp/hive_metastore_types.h | 54 +
.../hive/metastore/api/AlterCatalogRequest.java | 504 ++
.../hive/metastore/api/ThriftHiveMetastore.java | 1738 ++++-
.../gen-php/metastore/ThriftHiveMetastore.php | 271 +
.../src/gen/thrift/gen-php/metastore/Types.php | 103 +
.../hive_metastore/ThriftHiveMetastore-remote | 7 +
.../hive_metastore/ThriftHiveMetastore.py | 231 +
.../gen/thrift/gen-py/hive_metastore/ttypes.py | 79 +
.../gen/thrift/gen-rb/hive_metastore_types.rb | 18 +
.../gen/thrift/gen-rb/thrift_hive_metastore.rb | 68 +
.../hadoop/hive/metastore/HiveMetaStore.java | 47 +
.../hive/metastore/HiveMetaStoreClient.java | 5 +
.../hadoop/hive/metastore/IMetaStoreClient.java | 15 +
.../hive/metastore/MetaStoreEventListener.java | 4 +
.../metastore/MetaStoreListenerNotifier.java | 3 +
.../metastore/events/AlterCatalogEvent.java | 44 +
.../metastore/events/PreAlterCatalogEvent.java | 40 +
.../hive/metastore/events/PreEventContext.java | 3 +-
.../messaging/AlterCatalogMessage.java | 29 +
.../hive/metastore/messaging/EventMessage.java | 3 +-
.../metastore/messaging/MessageFactory.java | 3 +
.../messaging/json/JSONAlterCatalogMessage.java | 90 +
.../messaging/json/JSONMessageFactory.java | 12 +
.../src/main/thrift/hive_metastore.thrift | 6 +
.../HiveMetaStoreClientPreCatalog.java | 6 +
.../hive/metastore/client/TestCatalogs.java | 47 +
32 files changed, 8086 insertions(+), 4492 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/beeline/src/java/org/apache/hive/beeline/HiveSchemaTool.java
----------------------------------------------------------------------
diff --git a/beeline/src/java/org/apache/hive/beeline/HiveSchemaTool.java b/beeline/src/java/org/apache/hive/beeline/HiveSchemaTool.java
index 856b0ac..314dff8 100644
--- a/beeline/src/java/org/apache/hive/beeline/HiveSchemaTool.java
+++ b/beeline/src/java/org/apache/hive/beeline/HiveSchemaTool.java
@@ -914,6 +914,12 @@ public class HiveSchemaTool {
throw new HiveMetaException("No catalogs found, have you upgraded the database?");
}
int catNum = rs.getInt(1) + 1;
+ // We need to stay out of the way of any sequences used by the underlying database.
+ // Otherwise the next time the client tries to add a catalog we'll get an error.
+ // There should never be billions of catalogs, so we'll shift our sequence number up
+ // there to avoid clashes.
+ int floor = 1 << 30;
+ if (catNum < floor) catNum = floor;
String update = "insert into " + quoteIf("CTLGS") +
"(" + quoteIf("CTLG_ID") + ", " + quoteIf("NAME") + ", " + quoteAlways("DESC") + ", " + quoteIf( "LOCATION_URI") + ") " +
@@ -936,6 +942,61 @@ public class HiveSchemaTool {
}
@VisibleForTesting
+ void alterCatalog(String catName, String location, String description) throws HiveMetaException {
+ if (location == null && description == null) {
+ throw new HiveMetaException("Asked to update catalog " + catName +
+ " but not given any changes to update");
+ }
+ catName = normalizeIdentifier(catName);
+ System.out.println("Updating catalog " + catName);
+
+ Connection conn = getConnectionToMetastore(true);
+ boolean success = false;
+ try {
+ conn.setAutoCommit(false);
+ try (Statement stmt = conn.createStatement()) {
+ StringBuilder update = new StringBuilder("update ")
+ .append(quoteIf("CTLGS"))
+ .append(" set ");
+ if (location != null) {
+ update.append(quoteIf("LOCATION_URI"))
+ .append(" = '")
+ .append(location)
+ .append("' ");
+ }
+ if (description != null) {
+ if (location != null) update.append(", ");
+ update.append(quoteAlways("DESC"))
+ .append(" = '")
+ .append(description)
+ .append("'");
+ }
+ update.append(" where ")
+ .append(quoteIf("NAME"))
+ .append(" = '")
+ .append(catName)
+ .append("'");
+ LOG.debug("Going to run " + update.toString());
+ int count = stmt.executeUpdate(update.toString());
+ if (count != 1) {
+ throw new HiveMetaException("Failed to find catalog " + catName + " to update");
+ }
+ conn.commit();
+ success = true;
+ }
+ } catch (SQLException e) {
+ throw new HiveMetaException("Failed to update catalog", e);
+ } finally {
+ try {
+ if (!success) conn.rollback();
+ } catch (SQLException e) {
+ // Not really much we can do here.
+ LOG.error("Failed to rollback, everything will probably go bad from here.", e);
+ }
+ }
+ }
+
+ @VisibleForTesting
void moveDatabase(String fromCatName, String toCatName, String dbName) throws HiveMetaException {
fromCatName = normalizeIdentifier(fromCatName);
toCatName = normalizeIdentifier(toCatName);
@@ -1229,6 +1290,10 @@ public class HiveSchemaTool {
.hasArg()
.withDescription("Create a catalog, requires --catalogLocation parameter as well")
.create("createCatalog");
+ Option alterCatalog = OptionBuilder
+ .hasArg()
+ .withDescription("Alter a catalog, requires --catalogLocation and/or --catalogDescription parameter as well")
+ .create("alterCatalog");
Option moveDatabase = OptionBuilder
.hasArg()
.withDescription("Move a database between catalogs. Argument is the database name. " +
@@ -1242,10 +1307,17 @@ public class HiveSchemaTool {
.create("moveTable");
OptionGroup optGroup = new OptionGroup();
- optGroup.addOption(upgradeOpt).addOption(initOpt).
- addOption(help).addOption(upgradeFromOpt).
- addOption(initToOpt).addOption(infoOpt).addOption(validateOpt)
- .addOption(createCatalog).addOption(moveDatabase).addOption(moveTable);
+ optGroup.addOption(upgradeOpt)
+ .addOption(initOpt)
+ .addOption(help)
+ .addOption(upgradeFromOpt)
+ .addOption(initToOpt)
+ .addOption(infoOpt)
+ .addOption(validateOpt)
+ .addOption(createCatalog)
+ .addOption(alterCatalog)
+ .addOption(moveDatabase)
+ .addOption(moveTable);
optGroup.setRequired(true);
Option userNameOpt = OptionBuilder.withArgName("user")
@@ -1445,6 +1517,9 @@ public class HiveSchemaTool {
schemaTool.createCatalog(line.getOptionValue("createCatalog"),
line.getOptionValue("catalogLocation"), line.getOptionValue("catalogDescription"),
line.hasOption("ifNotExists"));
+ } else if (line.hasOption("alterCatalog")) {
+ schemaTool.alterCatalog(line.getOptionValue("alterCatalog"),
+ line.getOptionValue("catalogLocation"), line.getOptionValue("catalogDescription"));
} else if (line.hasOption("moveDatabase")) {
schemaTool.moveDatabase(line.getOptionValue("fromCatalog"),
line.getOptionValue("toCatalog"), line.getOptionValue("moveDatabase"));
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaToolCatalogOps.java
----------------------------------------------------------------------
diff --git a/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaToolCatalogOps.java b/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaToolCatalogOps.java
index db10ae6..f5bc570 100644
--- a/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaToolCatalogOps.java
+++ b/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaToolCatalogOps.java
@@ -108,7 +108,7 @@ public class TestSchemaToolCatalogOps {
}
@Test
- public void createExistingCatalogWithIfNotExists() throws HiveMetaException, TException {
+ public void createExistingCatalogWithIfNotExists() throws HiveMetaException {
String catName = "my_existing_test_catalog";
String location = "file:///tmp/my_test_catalog";
String description = "very descriptive";
@@ -118,6 +118,48 @@ public class TestSchemaToolCatalogOps {
}
@Test
+ public void alterCatalog() throws HiveMetaException, TException {
+ String catName = "an_alterable_catalog";
+ String location = "file:///tmp/an_alterable_catalog";
+ String description = "description";
+ schemaTool.createCatalog(catName, location, description, false);
+
+ location = "file:///tmp/somewhere_else";
+ schemaTool.alterCatalog(catName, location, null);
+ Catalog cat = client.getCatalog(catName);
+ Assert.assertEquals(location, cat.getLocationUri());
+ Assert.assertEquals(description, cat.getDescription());
+
+ description = "a better description";
+ schemaTool.alterCatalog(catName, null, description);
+ cat = client.getCatalog(catName);
+ Assert.assertEquals(location, cat.getLocationUri());
+ Assert.assertEquals(description, cat.getDescription());
+
+ location = "file:///tmp/a_third_location";
+ description = "best description yet";
+ schemaTool.alterCatalog(catName, location, description);
+ cat = client.getCatalog(catName);
+ Assert.assertEquals(location, cat.getLocationUri());
+ Assert.assertEquals(description, cat.getDescription());
+ }
+
+ @Test(expected = HiveMetaException.class)
+ public void alterBogusCatalog() throws HiveMetaException {
+ schemaTool.alterCatalog("nosuch", "file:///tmp/somewhere", "whatever");
+ }
+
+ @Test(expected = HiveMetaException.class)
+ public void alterCatalogNoChange() throws HiveMetaException {
+ String catName = "alter_cat_no_change";
+ String location = "file:///tmp/alter_cat_no_change";
+ String description = "description";
+ schemaTool.createCatalog(catName, location, description, false);
+
+ schemaTool.alterCatalog(catName, null, null);
+ }
+
+ @Test
public void moveDatabase() throws HiveMetaException, TException {
String toCatName = "moveDbCat";
String dbName = "moveDbDb";
[4/7] hive git commit: HIVE-19688 Make catalogs updatable (Alan Gates
reviewed by Daniel Dai)
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
index 8925fe2..bc4d168 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
@@ -4653,6 +4653,112 @@ void CreateCatalogRequest::printTo(std::ostream& out) const {
}
+AlterCatalogRequest::~AlterCatalogRequest() throw() {
+}
+
+
+void AlterCatalogRequest::__set_name(const std::string& val) {
+ this->name = val;
+}
+
+void AlterCatalogRequest::__set_newCat(const Catalog& val) {
+ this->newCat = val;
+}
+
+uint32_t AlterCatalogRequest::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->name);
+ this->__isset.name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->newCat.read(iprot);
+ this->__isset.newCat = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t AlterCatalogRequest::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
+ xfer += oprot->writeStructBegin("AlterCatalogRequest");
+
+ xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->name);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldBegin("newCat", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->newCat.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+void swap(AlterCatalogRequest &a, AlterCatalogRequest &b) {
+ using ::std::swap;
+ swap(a.name, b.name);
+ swap(a.newCat, b.newCat);
+ swap(a.__isset, b.__isset);
+}
+
+AlterCatalogRequest::AlterCatalogRequest(const AlterCatalogRequest& other134) {
+ name = other134.name;
+ newCat = other134.newCat;
+ __isset = other134.__isset;
+}
+AlterCatalogRequest& AlterCatalogRequest::operator=(const AlterCatalogRequest& other135) {
+ name = other135.name;
+ newCat = other135.newCat;
+ __isset = other135.__isset;
+ return *this;
+}
+void AlterCatalogRequest::printTo(std::ostream& out) const {
+ using ::apache::thrift::to_string;
+ out << "AlterCatalogRequest(";
+ out << "name=" << to_string(name);
+ out << ", " << "newCat=" << to_string(newCat);
+ out << ")";
+}
+
+
GetCatalogRequest::~GetCatalogRequest() throw() {
}
@@ -4722,13 +4828,13 @@ void swap(GetCatalogRequest &a, GetCatalogRequest &b) {
swap(a.__isset, b.__isset);
}
-GetCatalogRequest::GetCatalogRequest(const GetCatalogRequest& other134) {
- name = other134.name;
- __isset = other134.__isset;
+GetCatalogRequest::GetCatalogRequest(const GetCatalogRequest& other136) {
+ name = other136.name;
+ __isset = other136.__isset;
}
-GetCatalogRequest& GetCatalogRequest::operator=(const GetCatalogRequest& other135) {
- name = other135.name;
- __isset = other135.__isset;
+GetCatalogRequest& GetCatalogRequest::operator=(const GetCatalogRequest& other137) {
+ name = other137.name;
+ __isset = other137.__isset;
return *this;
}
void GetCatalogRequest::printTo(std::ostream& out) const {
@@ -4808,13 +4914,13 @@ void swap(GetCatalogResponse &a, GetCatalogResponse &b) {
swap(a.__isset, b.__isset);
}
-GetCatalogResponse::GetCatalogResponse(const GetCatalogResponse& other136) {
- catalog = other136.catalog;
- __isset = other136.__isset;
+GetCatalogResponse::GetCatalogResponse(const GetCatalogResponse& other138) {
+ catalog = other138.catalog;
+ __isset = other138.__isset;
}
-GetCatalogResponse& GetCatalogResponse::operator=(const GetCatalogResponse& other137) {
- catalog = other137.catalog;
- __isset = other137.__isset;
+GetCatalogResponse& GetCatalogResponse::operator=(const GetCatalogResponse& other139) {
+ catalog = other139.catalog;
+ __isset = other139.__isset;
return *this;
}
void GetCatalogResponse::printTo(std::ostream& out) const {
@@ -4858,14 +4964,14 @@ uint32_t GetCatalogsResponse::read(::apache::thrift::protocol::TProtocol* iprot)
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->names.clear();
- uint32_t _size138;
- ::apache::thrift::protocol::TType _etype141;
- xfer += iprot->readListBegin(_etype141, _size138);
- this->names.resize(_size138);
- uint32_t _i142;
- for (_i142 = 0; _i142 < _size138; ++_i142)
+ uint32_t _size140;
+ ::apache::thrift::protocol::TType _etype143;
+ xfer += iprot->readListBegin(_etype143, _size140);
+ this->names.resize(_size140);
+ uint32_t _i144;
+ for (_i144 = 0; _i144 < _size140; ++_i144)
{
- xfer += iprot->readString(this->names[_i142]);
+ xfer += iprot->readString(this->names[_i144]);
}
xfer += iprot->readListEnd();
}
@@ -4894,10 +5000,10 @@ uint32_t GetCatalogsResponse::write(::apache::thrift::protocol::TProtocol* oprot
xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->names.size()));
- std::vector<std::string> ::const_iterator _iter143;
- for (_iter143 = this->names.begin(); _iter143 != this->names.end(); ++_iter143)
+ std::vector<std::string> ::const_iterator _iter145;
+ for (_iter145 = this->names.begin(); _iter145 != this->names.end(); ++_iter145)
{
- xfer += oprot->writeString((*_iter143));
+ xfer += oprot->writeString((*_iter145));
}
xfer += oprot->writeListEnd();
}
@@ -4914,13 +5020,13 @@ void swap(GetCatalogsResponse &a, GetCatalogsResponse &b) {
swap(a.__isset, b.__isset);
}
-GetCatalogsResponse::GetCatalogsResponse(const GetCatalogsResponse& other144) {
- names = other144.names;
- __isset = other144.__isset;
+GetCatalogsResponse::GetCatalogsResponse(const GetCatalogsResponse& other146) {
+ names = other146.names;
+ __isset = other146.__isset;
}
-GetCatalogsResponse& GetCatalogsResponse::operator=(const GetCatalogsResponse& other145) {
- names = other145.names;
- __isset = other145.__isset;
+GetCatalogsResponse& GetCatalogsResponse::operator=(const GetCatalogsResponse& other147) {
+ names = other147.names;
+ __isset = other147.__isset;
return *this;
}
void GetCatalogsResponse::printTo(std::ostream& out) const {
@@ -5000,13 +5106,13 @@ void swap(DropCatalogRequest &a, DropCatalogRequest &b) {
swap(a.__isset, b.__isset);
}
-DropCatalogRequest::DropCatalogRequest(const DropCatalogRequest& other146) {
- name = other146.name;
- __isset = other146.__isset;
+DropCatalogRequest::DropCatalogRequest(const DropCatalogRequest& other148) {
+ name = other148.name;
+ __isset = other148.__isset;
}
-DropCatalogRequest& DropCatalogRequest::operator=(const DropCatalogRequest& other147) {
- name = other147.name;
- __isset = other147.__isset;
+DropCatalogRequest& DropCatalogRequest::operator=(const DropCatalogRequest& other149) {
+ name = other149.name;
+ __isset = other149.__isset;
return *this;
}
void DropCatalogRequest::printTo(std::ostream& out) const {
@@ -5106,17 +5212,17 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->parameters.clear();
- uint32_t _size148;
- ::apache::thrift::protocol::TType _ktype149;
- ::apache::thrift::protocol::TType _vtype150;
- xfer += iprot->readMapBegin(_ktype149, _vtype150, _size148);
- uint32_t _i152;
- for (_i152 = 0; _i152 < _size148; ++_i152)
+ uint32_t _size150;
+ ::apache::thrift::protocol::TType _ktype151;
+ ::apache::thrift::protocol::TType _vtype152;
+ xfer += iprot->readMapBegin(_ktype151, _vtype152, _size150);
+ uint32_t _i154;
+ for (_i154 = 0; _i154 < _size150; ++_i154)
{
- std::string _key153;
- xfer += iprot->readString(_key153);
- std::string& _val154 = this->parameters[_key153];
- xfer += iprot->readString(_val154);
+ std::string _key155;
+ xfer += iprot->readString(_key155);
+ std::string& _val156 = this->parameters[_key155];
+ xfer += iprot->readString(_val156);
}
xfer += iprot->readMapEnd();
}
@@ -5143,9 +5249,9 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 7:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast155;
- xfer += iprot->readI32(ecast155);
- this->ownerType = (PrincipalType::type)ecast155;
+ int32_t ecast157;
+ xfer += iprot->readI32(ecast157);
+ this->ownerType = (PrincipalType::type)ecast157;
this->__isset.ownerType = true;
} else {
xfer += iprot->skip(ftype);
@@ -5191,11 +5297,11 @@ uint32_t Database::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 4);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
- std::map<std::string, std::string> ::const_iterator _iter156;
- for (_iter156 = this->parameters.begin(); _iter156 != this->parameters.end(); ++_iter156)
+ std::map<std::string, std::string> ::const_iterator _iter158;
+ for (_iter158 = this->parameters.begin(); _iter158 != this->parameters.end(); ++_iter158)
{
- xfer += oprot->writeString(_iter156->first);
- xfer += oprot->writeString(_iter156->second);
+ xfer += oprot->writeString(_iter158->first);
+ xfer += oprot->writeString(_iter158->second);
}
xfer += oprot->writeMapEnd();
}
@@ -5239,27 +5345,27 @@ void swap(Database &a, Database &b) {
swap(a.__isset, b.__isset);
}
-Database::Database(const Database& other157) {
- name = other157.name;
- description = other157.description;
- locationUri = other157.locationUri;
- parameters = other157.parameters;
- privileges = other157.privileges;
- ownerName = other157.ownerName;
- ownerType = other157.ownerType;
- catalogName = other157.catalogName;
- __isset = other157.__isset;
-}
-Database& Database::operator=(const Database& other158) {
- name = other158.name;
- description = other158.description;
- locationUri = other158.locationUri;
- parameters = other158.parameters;
- privileges = other158.privileges;
- ownerName = other158.ownerName;
- ownerType = other158.ownerType;
- catalogName = other158.catalogName;
- __isset = other158.__isset;
+Database::Database(const Database& other159) {
+ name = other159.name;
+ description = other159.description;
+ locationUri = other159.locationUri;
+ parameters = other159.parameters;
+ privileges = other159.privileges;
+ ownerName = other159.ownerName;
+ ownerType = other159.ownerType;
+ catalogName = other159.catalogName;
+ __isset = other159.__isset;
+}
+Database& Database::operator=(const Database& other160) {
+ name = other160.name;
+ description = other160.description;
+ locationUri = other160.locationUri;
+ parameters = other160.parameters;
+ privileges = other160.privileges;
+ ownerName = other160.ownerName;
+ ownerType = other160.ownerType;
+ catalogName = other160.catalogName;
+ __isset = other160.__isset;
return *this;
}
void Database::printTo(std::ostream& out) const {
@@ -5354,17 +5460,17 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->parameters.clear();
- uint32_t _size159;
- ::apache::thrift::protocol::TType _ktype160;
- ::apache::thrift::protocol::TType _vtype161;
- xfer += iprot->readMapBegin(_ktype160, _vtype161, _size159);
- uint32_t _i163;
- for (_i163 = 0; _i163 < _size159; ++_i163)
+ uint32_t _size161;
+ ::apache::thrift::protocol::TType _ktype162;
+ ::apache::thrift::protocol::TType _vtype163;
+ xfer += iprot->readMapBegin(_ktype162, _vtype163, _size161);
+ uint32_t _i165;
+ for (_i165 = 0; _i165 < _size161; ++_i165)
{
- std::string _key164;
- xfer += iprot->readString(_key164);
- std::string& _val165 = this->parameters[_key164];
- xfer += iprot->readString(_val165);
+ std::string _key166;
+ xfer += iprot->readString(_key166);
+ std::string& _val167 = this->parameters[_key166];
+ xfer += iprot->readString(_val167);
}
xfer += iprot->readMapEnd();
}
@@ -5399,9 +5505,9 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 7:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast166;
- xfer += iprot->readI32(ecast166);
- this->serdeType = (SerdeType::type)ecast166;
+ int32_t ecast168;
+ xfer += iprot->readI32(ecast168);
+ this->serdeType = (SerdeType::type)ecast168;
this->__isset.serdeType = true;
} else {
xfer += iprot->skip(ftype);
@@ -5435,11 +5541,11 @@ uint32_t SerDeInfo::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 3);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
- std::map<std::string, std::string> ::const_iterator _iter167;
- for (_iter167 = this->parameters.begin(); _iter167 != this->parameters.end(); ++_iter167)
+ std::map<std::string, std::string> ::const_iterator _iter169;
+ for (_iter169 = this->parameters.begin(); _iter169 != this->parameters.end(); ++_iter169)
{
- xfer += oprot->writeString(_iter167->first);
- xfer += oprot->writeString(_iter167->second);
+ xfer += oprot->writeString(_iter169->first);
+ xfer += oprot->writeString(_iter169->second);
}
xfer += oprot->writeMapEnd();
}
@@ -5482,25 +5588,25 @@ void swap(SerDeInfo &a, SerDeInfo &b) {
swap(a.__isset, b.__isset);
}
-SerDeInfo::SerDeInfo(const SerDeInfo& other168) {
- name = other168.name;
- serializationLib = other168.serializationLib;
- parameters = other168.parameters;
- description = other168.description;
- serializerClass = other168.serializerClass;
- deserializerClass = other168.deserializerClass;
- serdeType = other168.serdeType;
- __isset = other168.__isset;
-}
-SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other169) {
- name = other169.name;
- serializationLib = other169.serializationLib;
- parameters = other169.parameters;
- description = other169.description;
- serializerClass = other169.serializerClass;
- deserializerClass = other169.deserializerClass;
- serdeType = other169.serdeType;
- __isset = other169.__isset;
+SerDeInfo::SerDeInfo(const SerDeInfo& other170) {
+ name = other170.name;
+ serializationLib = other170.serializationLib;
+ parameters = other170.parameters;
+ description = other170.description;
+ serializerClass = other170.serializerClass;
+ deserializerClass = other170.deserializerClass;
+ serdeType = other170.serdeType;
+ __isset = other170.__isset;
+}
+SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other171) {
+ name = other171.name;
+ serializationLib = other171.serializationLib;
+ parameters = other171.parameters;
+ description = other171.description;
+ serializerClass = other171.serializerClass;
+ deserializerClass = other171.deserializerClass;
+ serdeType = other171.serdeType;
+ __isset = other171.__isset;
return *this;
}
void SerDeInfo::printTo(std::ostream& out) const {
@@ -5603,15 +5709,15 @@ void swap(Order &a, Order &b) {
swap(a.__isset, b.__isset);
}
-Order::Order(const Order& other170) {
- col = other170.col;
- order = other170.order;
- __isset = other170.__isset;
+Order::Order(const Order& other172) {
+ col = other172.col;
+ order = other172.order;
+ __isset = other172.__isset;
}
-Order& Order::operator=(const Order& other171) {
- col = other171.col;
- order = other171.order;
- __isset = other171.__isset;
+Order& Order::operator=(const Order& other173) {
+ col = other173.col;
+ order = other173.order;
+ __isset = other173.__isset;
return *this;
}
void Order::printTo(std::ostream& out) const {
@@ -5664,14 +5770,14 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->skewedColNames.clear();
- uint32_t _size172;
- ::apache::thrift::protocol::TType _etype175;
- xfer += iprot->readListBegin(_etype175, _size172);
- this->skewedColNames.resize(_size172);
- uint32_t _i176;
- for (_i176 = 0; _i176 < _size172; ++_i176)
+ uint32_t _size174;
+ ::apache::thrift::protocol::TType _etype177;
+ xfer += iprot->readListBegin(_etype177, _size174);
+ this->skewedColNames.resize(_size174);
+ uint32_t _i178;
+ for (_i178 = 0; _i178 < _size174; ++_i178)
{
- xfer += iprot->readString(this->skewedColNames[_i176]);
+ xfer += iprot->readString(this->skewedColNames[_i178]);
}
xfer += iprot->readListEnd();
}
@@ -5684,23 +5790,23 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->skewedColValues.clear();
- uint32_t _size177;
- ::apache::thrift::protocol::TType _etype180;
- xfer += iprot->readListBegin(_etype180, _size177);
- this->skewedColValues.resize(_size177);
- uint32_t _i181;
- for (_i181 = 0; _i181 < _size177; ++_i181)
+ uint32_t _size179;
+ ::apache::thrift::protocol::TType _etype182;
+ xfer += iprot->readListBegin(_etype182, _size179);
+ this->skewedColValues.resize(_size179);
+ uint32_t _i183;
+ for (_i183 = 0; _i183 < _size179; ++_i183)
{
{
- this->skewedColValues[_i181].clear();
- uint32_t _size182;
- ::apache::thrift::protocol::TType _etype185;
- xfer += iprot->readListBegin(_etype185, _size182);
- this->skewedColValues[_i181].resize(_size182);
- uint32_t _i186;
- for (_i186 = 0; _i186 < _size182; ++_i186)
+ this->skewedColValues[_i183].clear();
+ uint32_t _size184;
+ ::apache::thrift::protocol::TType _etype187;
+ xfer += iprot->readListBegin(_etype187, _size184);
+ this->skewedColValues[_i183].resize(_size184);
+ uint32_t _i188;
+ for (_i188 = 0; _i188 < _size184; ++_i188)
{
- xfer += iprot->readString(this->skewedColValues[_i181][_i186]);
+ xfer += iprot->readString(this->skewedColValues[_i183][_i188]);
}
xfer += iprot->readListEnd();
}
@@ -5716,29 +5822,29 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->skewedColValueLocationMaps.clear();
- uint32_t _size187;
- ::apache::thrift::protocol::TType _ktype188;
- ::apache::thrift::protocol::TType _vtype189;
- xfer += iprot->readMapBegin(_ktype188, _vtype189, _size187);
- uint32_t _i191;
- for (_i191 = 0; _i191 < _size187; ++_i191)
+ uint32_t _size189;
+ ::apache::thrift::protocol::TType _ktype190;
+ ::apache::thrift::protocol::TType _vtype191;
+ xfer += iprot->readMapBegin(_ktype190, _vtype191, _size189);
+ uint32_t _i193;
+ for (_i193 = 0; _i193 < _size189; ++_i193)
{
- std::vector<std::string> _key192;
+ std::vector<std::string> _key194;
{
- _key192.clear();
- uint32_t _size194;
- ::apache::thrift::protocol::TType _etype197;
- xfer += iprot->readListBegin(_etype197, _size194);
- _key192.resize(_size194);
- uint32_t _i198;
- for (_i198 = 0; _i198 < _size194; ++_i198)
+ _key194.clear();
+ uint32_t _size196;
+ ::apache::thrift::protocol::TType _etype199;
+ xfer += iprot->readListBegin(_etype199, _size196);
+ _key194.resize(_size196);
+ uint32_t _i200;
+ for (_i200 = 0; _i200 < _size196; ++_i200)
{
- xfer += iprot->readString(_key192[_i198]);
+ xfer += iprot->readString(_key194[_i200]);
}
xfer += iprot->readListEnd();
}
- std::string& _val193 = this->skewedColValueLocationMaps[_key192];
- xfer += iprot->readString(_val193);
+ std::string& _val195 = this->skewedColValueLocationMaps[_key194];
+ xfer += iprot->readString(_val195);
}
xfer += iprot->readMapEnd();
}
@@ -5767,10 +5873,10 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("skewedColNames", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->skewedColNames.size()));
- std::vector<std::string> ::const_iterator _iter199;
- for (_iter199 = this->skewedColNames.begin(); _iter199 != this->skewedColNames.end(); ++_iter199)
+ std::vector<std::string> ::const_iterator _iter201;
+ for (_iter201 = this->skewedColNames.begin(); _iter201 != this->skewedColNames.end(); ++_iter201)
{
- xfer += oprot->writeString((*_iter199));
+ xfer += oprot->writeString((*_iter201));
}
xfer += oprot->writeListEnd();
}
@@ -5779,15 +5885,15 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("skewedColValues", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_LIST, static_cast<uint32_t>(this->skewedColValues.size()));
- std::vector<std::vector<std::string> > ::const_iterator _iter200;
- for (_iter200 = this->skewedColValues.begin(); _iter200 != this->skewedColValues.end(); ++_iter200)
+ std::vector<std::vector<std::string> > ::const_iterator _iter202;
+ for (_iter202 = this->skewedColValues.begin(); _iter202 != this->skewedColValues.end(); ++_iter202)
{
{
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*_iter200).size()));
- std::vector<std::string> ::const_iterator _iter201;
- for (_iter201 = (*_iter200).begin(); _iter201 != (*_iter200).end(); ++_iter201)
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*_iter202).size()));
+ std::vector<std::string> ::const_iterator _iter203;
+ for (_iter203 = (*_iter202).begin(); _iter203 != (*_iter202).end(); ++_iter203)
{
- xfer += oprot->writeString((*_iter201));
+ xfer += oprot->writeString((*_iter203));
}
xfer += oprot->writeListEnd();
}
@@ -5799,19 +5905,19 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("skewedColValueLocationMaps", ::apache::thrift::protocol::T_MAP, 3);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_LIST, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->skewedColValueLocationMaps.size()));
- std::map<std::vector<std::string> , std::string> ::const_iterator _iter202;
- for (_iter202 = this->skewedColValueLocationMaps.begin(); _iter202 != this->skewedColValueLocationMaps.end(); ++_iter202)
+ std::map<std::vector<std::string> , std::string> ::const_iterator _iter204;
+ for (_iter204 = this->skewedColValueLocationMaps.begin(); _iter204 != this->skewedColValueLocationMaps.end(); ++_iter204)
{
{
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(_iter202->first.size()));
- std::vector<std::string> ::const_iterator _iter203;
- for (_iter203 = _iter202->first.begin(); _iter203 != _iter202->first.end(); ++_iter203)
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(_iter204->first.size()));
+ std::vector<std::string> ::const_iterator _iter205;
+ for (_iter205 = _iter204->first.begin(); _iter205 != _iter204->first.end(); ++_iter205)
{
- xfer += oprot->writeString((*_iter203));
+ xfer += oprot->writeString((*_iter205));
}
xfer += oprot->writeListEnd();
}
- xfer += oprot->writeString(_iter202->second);
+ xfer += oprot->writeString(_iter204->second);
}
xfer += oprot->writeMapEnd();
}
@@ -5830,17 +5936,17 @@ void swap(SkewedInfo &a, SkewedInfo &b) {
swap(a.__isset, b.__isset);
}
-SkewedInfo::SkewedInfo(const SkewedInfo& other204) {
- skewedColNames = other204.skewedColNames;
- skewedColValues = other204.skewedColValues;
- skewedColValueLocationMaps = other204.skewedColValueLocationMaps;
- __isset = other204.__isset;
+SkewedInfo::SkewedInfo(const SkewedInfo& other206) {
+ skewedColNames = other206.skewedColNames;
+ skewedColValues = other206.skewedColValues;
+ skewedColValueLocationMaps = other206.skewedColValueLocationMaps;
+ __isset = other206.__isset;
}
-SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other205) {
- skewedColNames = other205.skewedColNames;
- skewedColValues = other205.skewedColValues;
- skewedColValueLocationMaps = other205.skewedColValueLocationMaps;
- __isset = other205.__isset;
+SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other207) {
+ skewedColNames = other207.skewedColNames;
+ skewedColValues = other207.skewedColValues;
+ skewedColValueLocationMaps = other207.skewedColValueLocationMaps;
+ __isset = other207.__isset;
return *this;
}
void SkewedInfo::printTo(std::ostream& out) const {
@@ -5932,14 +6038,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->cols.clear();
- uint32_t _size206;
- ::apache::thrift::protocol::TType _etype209;
- xfer += iprot->readListBegin(_etype209, _size206);
- this->cols.resize(_size206);
- uint32_t _i210;
- for (_i210 = 0; _i210 < _size206; ++_i210)
+ uint32_t _size208;
+ ::apache::thrift::protocol::TType _etype211;
+ xfer += iprot->readListBegin(_etype211, _size208);
+ this->cols.resize(_size208);
+ uint32_t _i212;
+ for (_i212 = 0; _i212 < _size208; ++_i212)
{
- xfer += this->cols[_i210].read(iprot);
+ xfer += this->cols[_i212].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -6000,14 +6106,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->bucketCols.clear();
- uint32_t _size211;
- ::apache::thrift::protocol::TType _etype214;
- xfer += iprot->readListBegin(_etype214, _size211);
- this->bucketCols.resize(_size211);
- uint32_t _i215;
- for (_i215 = 0; _i215 < _size211; ++_i215)
+ uint32_t _size213;
+ ::apache::thrift::protocol::TType _etype216;
+ xfer += iprot->readListBegin(_etype216, _size213);
+ this->bucketCols.resize(_size213);
+ uint32_t _i217;
+ for (_i217 = 0; _i217 < _size213; ++_i217)
{
- xfer += iprot->readString(this->bucketCols[_i215]);
+ xfer += iprot->readString(this->bucketCols[_i217]);
}
xfer += iprot->readListEnd();
}
@@ -6020,14 +6126,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->sortCols.clear();
- uint32_t _size216;
- ::apache::thrift::protocol::TType _etype219;
- xfer += iprot->readListBegin(_etype219, _size216);
- this->sortCols.resize(_size216);
- uint32_t _i220;
- for (_i220 = 0; _i220 < _size216; ++_i220)
+ uint32_t _size218;
+ ::apache::thrift::protocol::TType _etype221;
+ xfer += iprot->readListBegin(_etype221, _size218);
+ this->sortCols.resize(_size218);
+ uint32_t _i222;
+ for (_i222 = 0; _i222 < _size218; ++_i222)
{
- xfer += this->sortCols[_i220].read(iprot);
+ xfer += this->sortCols[_i222].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -6040,17 +6146,17 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->parameters.clear();
- uint32_t _size221;
- ::apache::thrift::protocol::TType _ktype222;
- ::apache::thrift::protocol::TType _vtype223;
- xfer += iprot->readMapBegin(_ktype222, _vtype223, _size221);
- uint32_t _i225;
- for (_i225 = 0; _i225 < _size221; ++_i225)
+ uint32_t _size223;
+ ::apache::thrift::protocol::TType _ktype224;
+ ::apache::thrift::protocol::TType _vtype225;
+ xfer += iprot->readMapBegin(_ktype224, _vtype225, _size223);
+ uint32_t _i227;
+ for (_i227 = 0; _i227 < _size223; ++_i227)
{
- std::string _key226;
- xfer += iprot->readString(_key226);
- std::string& _val227 = this->parameters[_key226];
- xfer += iprot->readString(_val227);
+ std::string _key228;
+ xfer += iprot->readString(_key228);
+ std::string& _val229 = this->parameters[_key228];
+ xfer += iprot->readString(_val229);
}
xfer += iprot->readMapEnd();
}
@@ -6095,10 +6201,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot)
xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->cols.size()));
- std::vector<FieldSchema> ::const_iterator _iter228;
- for (_iter228 = this->cols.begin(); _iter228 != this->cols.end(); ++_iter228)
+ std::vector<FieldSchema> ::const_iterator _iter230;
+ for (_iter230 = this->cols.begin(); _iter230 != this->cols.end(); ++_iter230)
{
- xfer += (*_iter228).write(oprot);
+ xfer += (*_iter230).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -6131,10 +6237,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot)
xfer += oprot->writeFieldBegin("bucketCols", ::apache::thrift::protocol::T_LIST, 8);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->bucketCols.size()));
- std::vector<std::string> ::const_iterator _iter229;
- for (_iter229 = this->bucketCols.begin(); _iter229 != this->bucketCols.end(); ++_iter229)
+ std::vector<std::string> ::const_iterator _iter231;
+ for (_iter231 = this->bucketCols.begin(); _iter231 != this->bucketCols.end(); ++_iter231)
{
- xfer += oprot->writeString((*_iter229));
+ xfer += oprot->writeString((*_iter231));
}
xfer += oprot->writeListEnd();
}
@@ -6143,10 +6249,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot)
xfer += oprot->writeFieldBegin("sortCols", ::apache::thrift::protocol::T_LIST, 9);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->sortCols.size()));
- std::vector<Order> ::const_iterator _iter230;
- for (_iter230 = this->sortCols.begin(); _iter230 != this->sortCols.end(); ++_iter230)
+ std::vector<Order> ::const_iterator _iter232;
+ for (_iter232 = this->sortCols.begin(); _iter232 != this->sortCols.end(); ++_iter232)
{
- xfer += (*_iter230).write(oprot);
+ xfer += (*_iter232).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -6155,11 +6261,11 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot)
xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 10);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
- std::map<std::string, std::string> ::const_iterator _iter231;
- for (_iter231 = this->parameters.begin(); _iter231 != this->parameters.end(); ++_iter231)
+ std::map<std::string, std::string> ::const_iterator _iter233;
+ for (_iter233 = this->parameters.begin(); _iter233 != this->parameters.end(); ++_iter233)
{
- xfer += oprot->writeString(_iter231->first);
- xfer += oprot->writeString(_iter231->second);
+ xfer += oprot->writeString(_iter233->first);
+ xfer += oprot->writeString(_iter233->second);
}
xfer += oprot->writeMapEnd();
}
@@ -6197,35 +6303,35 @@ void swap(StorageDescriptor &a, StorageDescriptor &b) {
swap(a.__isset, b.__isset);
}
-StorageDescriptor::StorageDescriptor(const StorageDescriptor& other232) {
- cols = other232.cols;
- location = other232.location;
- inputFormat = other232.inputFormat;
- outputFormat = other232.outputFormat;
- compressed = other232.compressed;
- numBuckets = other232.numBuckets;
- serdeInfo = other232.serdeInfo;
- bucketCols = other232.bucketCols;
- sortCols = other232.sortCols;
- parameters = other232.parameters;
- skewedInfo = other232.skewedInfo;
- storedAsSubDirectories = other232.storedAsSubDirectories;
- __isset = other232.__isset;
-}
-StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other233) {
- cols = other233.cols;
- location = other233.location;
- inputFormat = other233.inputFormat;
- outputFormat = other233.outputFormat;
- compressed = other233.compressed;
- numBuckets = other233.numBuckets;
- serdeInfo = other233.serdeInfo;
- bucketCols = other233.bucketCols;
- sortCols = other233.sortCols;
- parameters = other233.parameters;
- skewedInfo = other233.skewedInfo;
- storedAsSubDirectories = other233.storedAsSubDirectories;
- __isset = other233.__isset;
+StorageDescriptor::StorageDescriptor(const StorageDescriptor& other234) {
+ cols = other234.cols;
+ location = other234.location;
+ inputFormat = other234.inputFormat;
+ outputFormat = other234.outputFormat;
+ compressed = other234.compressed;
+ numBuckets = other234.numBuckets;
+ serdeInfo = other234.serdeInfo;
+ bucketCols = other234.bucketCols;
+ sortCols = other234.sortCols;
+ parameters = other234.parameters;
+ skewedInfo = other234.skewedInfo;
+ storedAsSubDirectories = other234.storedAsSubDirectories;
+ __isset = other234.__isset;
+}
+StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other235) {
+ cols = other235.cols;
+ location = other235.location;
+ inputFormat = other235.inputFormat;
+ outputFormat = other235.outputFormat;
+ compressed = other235.compressed;
+ numBuckets = other235.numBuckets;
+ serdeInfo = other235.serdeInfo;
+ bucketCols = other235.bucketCols;
+ sortCols = other235.sortCols;
+ parameters = other235.parameters;
+ skewedInfo = other235.skewedInfo;
+ storedAsSubDirectories = other235.storedAsSubDirectories;
+ __isset = other235.__isset;
return *this;
}
void StorageDescriptor::printTo(std::ostream& out) const {
@@ -6410,14 +6516,14 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->partitionKeys.clear();
- uint32_t _size234;
- ::apache::thrift::protocol::TType _etype237;
- xfer += iprot->readListBegin(_etype237, _size234);
- this->partitionKeys.resize(_size234);
- uint32_t _i238;
- for (_i238 = 0; _i238 < _size234; ++_i238)
+ uint32_t _size236;
+ ::apache::thrift::protocol::TType _etype239;
+ xfer += iprot->readListBegin(_etype239, _size236);
+ this->partitionKeys.resize(_size236);
+ uint32_t _i240;
+ for (_i240 = 0; _i240 < _size236; ++_i240)
{
- xfer += this->partitionKeys[_i238].read(iprot);
+ xfer += this->partitionKeys[_i240].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -6430,17 +6536,17 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->parameters.clear();
- uint32_t _size239;
- ::apache::thrift::protocol::TType _ktype240;
- ::apache::thrift::protocol::TType _vtype241;
- xfer += iprot->readMapBegin(_ktype240, _vtype241, _size239);
- uint32_t _i243;
- for (_i243 = 0; _i243 < _size239; ++_i243)
+ uint32_t _size241;
+ ::apache::thrift::protocol::TType _ktype242;
+ ::apache::thrift::protocol::TType _vtype243;
+ xfer += iprot->readMapBegin(_ktype242, _vtype243, _size241);
+ uint32_t _i245;
+ for (_i245 = 0; _i245 < _size241; ++_i245)
{
- std::string _key244;
- xfer += iprot->readString(_key244);
- std::string& _val245 = this->parameters[_key244];
- xfer += iprot->readString(_val245);
+ std::string _key246;
+ xfer += iprot->readString(_key246);
+ std::string& _val247 = this->parameters[_key246];
+ xfer += iprot->readString(_val247);
}
xfer += iprot->readMapEnd();
}
@@ -6515,9 +6621,9 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) {
break;
case 18:
if (ftype == ::apache::thrift::protocol::T_I32) {
- int32_t ecast246;
- xfer += iprot->readI32(ecast246);
- this->ownerType = (PrincipalType::type)ecast246;
+ int32_t ecast248;
+ xfer += iprot->readI32(ecast248);
+ this->ownerType = (PrincipalType::type)ecast248;
this->__isset.ownerType = true;
} else {
xfer += iprot->skip(ftype);
@@ -6571,10 +6677,10 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 8);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->partitionKeys.size()));
- std::vector<FieldSchema> ::const_iterator _iter247;
- for (_iter247 = this->partitionKeys.begin(); _iter247 != this->partitionKeys.end(); ++_iter247)
+ std::vector<FieldSchema> ::const_iterator _iter249;
+ for (_iter249 = this->partitionKeys.begin(); _iter249 != this->partitionKeys.end(); ++_iter249)
{
- xfer += (*_iter247).write(oprot);
+ xfer += (*_iter249).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -6583,11 +6689,11 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
- std::map<std::string, std::string> ::const_iterator _iter248;
- for (_iter248 = this->parameters.begin(); _iter248 != this->parameters.end(); ++_iter248)
+ std::map<std::string, std::string> ::const_iterator _iter250;
+ for (_iter250 = this->parameters.begin(); _iter250 != this->parameters.end(); ++_iter250)
{
- xfer += oprot->writeString(_iter248->first);
- xfer += oprot->writeString(_iter248->second);
+ xfer += oprot->writeString(_iter250->first);
+ xfer += oprot->writeString(_iter250->second);
}
xfer += oprot->writeMapEnd();
}
@@ -6663,47 +6769,47 @@ void swap(Table &a, Table &b) {
swap(a.__isset, b.__isset);
}
-Table::Table(const Table& other249) {
- tableName = other249.tableName;
- dbName = other249.dbName;
- owner = other249.owner;
- createTime = other249.createTime;
- lastAccessTime = other249.lastAccessTime;
- retention = other249.retention;
- sd = other249.sd;
- partitionKeys = other249.partitionKeys;
- parameters = other249.parameters;
- viewOriginalText = other249.viewOriginalText;
- viewExpandedText = other249.viewExpandedText;
- tableType = other249.tableType;
- privileges = other249.privileges;
- temporary = other249.temporary;
- rewriteEnabled = other249.rewriteEnabled;
- creationMetadata = other249.creationMetadata;
- catName = other249.catName;
- ownerType = other249.ownerType;
- __isset = other249.__isset;
-}
-Table& Table::operator=(const Table& other250) {
- tableName = other250.tableName;
- dbName = other250.dbName;
- owner = other250.owner;
- createTime = other250.createTime;
- lastAccessTime = other250.lastAccessTime;
- retention = other250.retention;
- sd = other250.sd;
- partitionKeys = other250.partitionKeys;
- parameters = other250.parameters;
- viewOriginalText = other250.viewOriginalText;
- viewExpandedText = other250.viewExpandedText;
- tableType = other250.tableType;
- privileges = other250.privileges;
- temporary = other250.temporary;
- rewriteEnabled = other250.rewriteEnabled;
- creationMetadata = other250.creationMetadata;
- catName = other250.catName;
- ownerType = other250.ownerType;
- __isset = other250.__isset;
+Table::Table(const Table& other251) {
+ tableName = other251.tableName;
+ dbName = other251.dbName;
+ owner = other251.owner;
+ createTime = other251.createTime;
+ lastAccessTime = other251.lastAccessTime;
+ retention = other251.retention;
+ sd = other251.sd;
+ partitionKeys = other251.partitionKeys;
+ parameters = other251.parameters;
+ viewOriginalText = other251.viewOriginalText;
+ viewExpandedText = other251.viewExpandedText;
+ tableType = other251.tableType;
+ privileges = other251.privileges;
+ temporary = other251.temporary;
+ rewriteEnabled = other251.rewriteEnabled;
+ creationMetadata = other251.creationMetadata;
+ catName = other251.catName;
+ ownerType = other251.ownerType;
+ __isset = other251.__isset;
+}
+Table& Table::operator=(const Table& other252) {
+ tableName = other252.tableName;
+ dbName = other252.dbName;
+ owner = other252.owner;
+ createTime = other252.createTime;
+ lastAccessTime = other252.lastAccessTime;
+ retention = other252.retention;
+ sd = other252.sd;
+ partitionKeys = other252.partitionKeys;
+ parameters = other252.parameters;
+ viewOriginalText = other252.viewOriginalText;
+ viewExpandedText = other252.viewExpandedText;
+ tableType = other252.tableType;
+ privileges = other252.privileges;
+ temporary = other252.temporary;
+ rewriteEnabled = other252.rewriteEnabled;
+ creationMetadata = other252.creationMetadata;
+ catName = other252.catName;
+ ownerType = other252.ownerType;
+ __isset = other252.__isset;
return *this;
}
void Table::printTo(std::ostream& out) const {
@@ -6798,14 +6904,14 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->values.clear();
- uint32_t _size251;
- ::apache::thrift::protocol::TType _etype254;
- xfer += iprot->readListBegin(_etype254, _size251);
- this->values.resize(_size251);
- uint32_t _i255;
- for (_i255 = 0; _i255 < _size251; ++_i255)
+ uint32_t _size253;
+ ::apache::thrift::protocol::TType _etype256;
+ xfer += iprot->readListBegin(_etype256, _size253);
+ this->values.resize(_size253);
+ uint32_t _i257;
+ for (_i257 = 0; _i257 < _size253; ++_i257)
{
- xfer += iprot->readString(this->values[_i255]);
+ xfer += iprot->readString(this->values[_i257]);
}
xfer += iprot->readListEnd();
}
@@ -6858,17 +6964,17 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->parameters.clear();
- uint32_t _size256;
- ::apache::thrift::protocol::TType _ktype257;
- ::apache::thrift::protocol::TType _vtype258;
- xfer += iprot->readMapBegin(_ktype257, _vtype258, _size256);
- uint32_t _i260;
- for (_i260 = 0; _i260 < _size256; ++_i260)
+ uint32_t _size258;
+ ::apache::thrift::protocol::TType _ktype259;
+ ::apache::thrift::protocol::TType _vtype260;
+ xfer += iprot->readMapBegin(_ktype259, _vtype260, _size258);
+ uint32_t _i262;
+ for (_i262 = 0; _i262 < _size258; ++_i262)
{
- std::string _key261;
- xfer += iprot->readString(_key261);
- std::string& _val262 = this->parameters[_key261];
- xfer += iprot->readString(_val262);
+ std::string _key263;
+ xfer += iprot->readString(_key263);
+ std::string& _val264 = this->parameters[_key263];
+ xfer += iprot->readString(_val264);
}
xfer += iprot->readMapEnd();
}
@@ -6913,10 +7019,10 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->values.size()));
- std::vector<std::string> ::const_iterator _iter263;
- for (_iter263 = this->values.begin(); _iter263 != this->values.end(); ++_iter263)
+ std::vector<std::string> ::const_iterator _iter265;
+ for (_iter265 = this->values.begin(); _iter265 != this->values.end(); ++_iter265)
{
- xfer += oprot->writeString((*_iter263));
+ xfer += oprot->writeString((*_iter265));
}
xfer += oprot->writeListEnd();
}
@@ -6945,11 +7051,11 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 7);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
- std::map<std::string, std::string> ::const_iterator _iter264;
- for (_iter264 = this->parameters.begin(); _iter264 != this->parameters.end(); ++_iter264)
+ std::map<std::string, std::string> ::const_iterator _iter266;
+ for (_iter266 = this->parameters.begin(); _iter266 != this->parameters.end(); ++_iter266)
{
- xfer += oprot->writeString(_iter264->first);
- xfer += oprot->writeString(_iter264->second);
+ xfer += oprot->writeString(_iter266->first);
+ xfer += oprot->writeString(_iter266->second);
}
xfer += oprot->writeMapEnd();
}
@@ -6984,29 +7090,29 @@ void swap(Partition &a, Partition &b) {
swap(a.__isset, b.__isset);
}
-Partition::Partition(const Partition& other265) {
- values = other265.values;
- dbName = other265.dbName;
- tableName = other265.tableName;
- createTime = other265.createTime;
- lastAccessTime = other265.lastAccessTime;
- sd = other265.sd;
- parameters = other265.parameters;
- privileges = other265.privileges;
- catName = other265.catName;
- __isset = other265.__isset;
-}
-Partition& Partition::operator=(const Partition& other266) {
- values = other266.values;
- dbName = other266.dbName;
- tableName = other266.tableName;
- createTime = other266.createTime;
- lastAccessTime = other266.lastAccessTime;
- sd = other266.sd;
- parameters = other266.parameters;
- privileges = other266.privileges;
- catName = other266.catName;
- __isset = other266.__isset;
+Partition::Partition(const Partition& other267) {
+ values = other267.values;
+ dbName = other267.dbName;
+ tableName = other267.tableName;
+ createTime = other267.createTime;
+ lastAccessTime = other267.lastAccessTime;
+ sd = other267.sd;
+ parameters = other267.parameters;
+ privileges = other267.privileges;
+ catName = other267.catName;
+ __isset = other267.__isset;
+}
+Partition& Partition::operator=(const Partition& other268) {
+ values = other268.values;
+ dbName = other268.dbName;
+ tableName = other268.tableName;
+ createTime = other268.createTime;
+ lastAccessTime = other268.lastAccessTime;
+ sd = other268.sd;
+ parameters = other268.parameters;
+ privileges = other268.privileges;
+ catName = other268.catName;
+ __isset = other268.__isset;
return *this;
}
void Partition::printTo(std::ostream& out) const {
@@ -7079,14 +7185,14 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot)
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->values.clear();
- uint32_t _size267;
- ::apache::thrift::protocol::TType _etype270;
- xfer += iprot->readListBegin(_etype270, _size267);
- this->values.resize(_size267);
- uint32_t _i271;
- for (_i271 = 0; _i271 < _size267; ++_i271)
+ uint32_t _size269;
+ ::apache::thrift::protocol::TType _etype272;
+ xfer += iprot->readListBegin(_etype272, _size269);
+ this->values.resize(_size269);
+ uint32_t _i273;
+ for (_i273 = 0; _i273 < _size269; ++_i273)
{
- xfer += iprot->readString(this->values[_i271]);
+ xfer += iprot->readString(this->values[_i273]);
}
xfer += iprot->readListEnd();
}
@@ -7123,17 +7229,17 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot)
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->parameters.clear();
- uint32_t _size272;
- ::apache::thrift::protocol::TType _ktype273;
- ::apache::thrift::protocol::TType _vtype274;
- xfer += iprot->readMapBegin(_ktype273, _vtype274, _size272);
- uint32_t _i276;
- for (_i276 = 0; _i276 < _size272; ++_i276)
+ uint32_t _size274;
+ ::apache::thrift::protocol::TType _ktype275;
+ ::apache::thrift::protocol::TType _vtype276;
+ xfer += iprot->readMapBegin(_ktype275, _vtype276, _size274);
+ uint32_t _i278;
+ for (_i278 = 0; _i278 < _size274; ++_i278)
{
- std::string _key277;
- xfer += iprot->readString(_key277);
- std::string& _val278 = this->parameters[_key277];
- xfer += iprot->readString(_val278);
+ std::string _key279;
+ xfer += iprot->readString(_key279);
+ std::string& _val280 = this->parameters[_key279];
+ xfer += iprot->readString(_val280);
}
xfer += iprot->readMapEnd();
}
@@ -7170,10 +7276,10 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot)
xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->values.size()));
- std::vector<std::string> ::const_iterator _iter279;
- for (_iter279 = this->values.begin(); _iter279 != this->values.end(); ++_iter279)
+ std::vector<std::string> ::const_iterator _iter281;
+ for (_iter281 = this->values.begin(); _iter281 != this->values.end(); ++_iter281)
{
- xfer += oprot->writeString((*_iter279));
+ xfer += oprot->writeString((*_iter281));
}
xfer += oprot->writeListEnd();
}
@@ -7194,11 +7300,11 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot)
xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 5);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
- std::map<std::string, std::string> ::const_iterator _iter280;
- for (_iter280 = this->parameters.begin(); _iter280 != this->parameters.end(); ++_iter280)
+ std::map<std::string, std::string> ::const_iterator _iter282;
+ for (_iter282 = this->parameters.begin(); _iter282 != this->parameters.end(); ++_iter282)
{
- xfer += oprot->writeString(_iter280->first);
- xfer += oprot->writeString(_iter280->second);
+ xfer += oprot->writeString(_iter282->first);
+ xfer += oprot->writeString(_iter282->second);
}
xfer += oprot->writeMapEnd();
}
@@ -7225,23 +7331,23 @@ void swap(PartitionWithoutSD &a, PartitionWithoutSD &b) {
swap(a.__isset, b.__isset);
}
-PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other281) {
- values = other281.values;
- createTime = other281.createTime;
- lastAccessTime = other281.lastAccessTime;
- relativePath = other281.relativePath;
- parameters = other281.parameters;
- privileges = other281.privileges;
- __isset = other281.__isset;
-}
-PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other282) {
- values = other282.values;
- createTime = other282.createTime;
- lastAccessTime = other282.lastAccessTime;
- relativePath = other282.relativePath;
- parameters = other282.parameters;
- privileges = other282.privileges;
- __isset = other282.__isset;
+PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other283) {
+ values = other283.values;
+ createTime = other283.createTime;
+ lastAccessTime = other283.lastAccessTime;
+ relativePath = other283.relativePath;
+ parameters = other283.parameters;
+ privileges = other283.privileges;
+ __isset = other283.__isset;
+}
+PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other284) {
+ values = other284.values;
+ createTime = other284.createTime;
+ lastAccessTime = other284.lastAccessTime;
+ relativePath = other284.relativePath;
+ parameters = other284.parameters;
+ privileges = other284.privileges;
+ __isset = other284.__isset;
return *this;
}
void PartitionWithoutSD::printTo(std::ostream& out) const {
@@ -7294,14 +7400,14 @@ uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol*
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->partitions.clear();
- uint32_t _size283;
- ::apache::thrift::protocol::TType _etype286;
- xfer += iprot->readListBegin(_etype286, _size283);
- this->partitions.resize(_size283);
- uint32_t _i287;
- for (_i287 = 0; _i287 < _size283; ++_i287)
+ uint32_t _size285;
+ ::apache::thrift::protocol::TType _etype288;
+ xfer += iprot->readListBegin(_etype288, _size285);
+ this->partitions.resize(_size285);
+ uint32_t _i289;
+ for (_i289 = 0; _i289 < _size285; ++_i289)
{
- xfer += this->partitions[_i287].read(iprot);
+ xfer += this->partitions[_i289].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -7338,10 +7444,10 @@ uint32_t PartitionSpecWithSharedSD::write(::apache::thrift::protocol::TProtocol*
xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->partitions.size()));
- std::vector<PartitionWithoutSD> ::const_iterator _iter288;
- for (_iter288 = this->partitions.begin(); _iter288 != this->partitions.end(); ++_iter288)
+ std::vector<PartitionWithoutSD> ::const_iterator _iter290;
+ for (_iter290 = this->partitions.begin(); _iter290 != this->partitions.end(); ++_iter290)
{
- xfer += (*_iter288).write(oprot);
+ xfer += (*_iter290).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -7363,15 +7469,15 @@ void swap(PartitionSpecWithSharedSD &a, PartitionSpecWithSharedSD &b) {
swap(a.__isset, b.__isset);
}
-PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other289) {
- partitions = other289.partitions;
- sd = other289.sd;
- __isset = other289.__isset;
+PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other291) {
+ partitions = other291.partitions;
+ sd = other291.sd;
+ __isset = other291.__isset;
}
-PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other290) {
- partitions = other290.partitions;
- sd = other290.sd;
- __isset = other290.__isset;
+PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other292) {
+ partitions = other292.partitions;
+ sd = other292.sd;
+ __isset = other292.__isset;
return *this;
}
void PartitionSpecWithSharedSD::printTo(std::ostream& out) const {
@@ -7416,14 +7522,14 @@ uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol*
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->partitions.clear();
- uint32_t _size291;
- ::apache::thrift::protocol::TType _etype294;
- xfer += iprot->readListBegin(_etype294, _size291);
- this->partitions.resize(_size291);
- uint32_t _i295;
- for (_i295 = 0; _i295 < _size291; ++_i295)
+ uint32_t _size293;
+ ::apache::thrift::protocol::TType _etype296;
+ xfer += iprot->readListBegin(_etype296, _size293);
+ this->partitions.resize(_size293);
+ uint32_t _i297;
+ for (_i297 = 0; _i297 < _size293; ++_i297)
{
- xfer += this->partitions[_i295].read(iprot);
+ xfer += this->partitions[_i297].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -7452,10 +7558,10 @@ uint32_t PartitionListComposingSpec::write(::apache::thrift::protocol::TProtocol
xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->partitions.size()));
- std::vector<Partition> ::const_iterator _iter296;
- for (_iter296 = this->partitions.begin(); _iter296 != this->partitions.end(); ++_iter296)
+ std::vector<Partition> ::const_iterator _iter298;
+ for (_iter298 = this->partitions.begin(); _iter298 != this->partitions.end(); ++_iter298)
{
- xfer += (*_iter296).write(oprot);
+ xfer += (*_iter298).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -7472,13 +7578,13 @@ void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b) {
swap(a.__isset, b.__isset);
}
-PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other297) {
- partitions = other297.partitions;
- __isset = other297.__isset;
+PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other299) {
+ partitions = other299.partitions;
+ __isset = other299.__isset;
}
-PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other298) {
- partitions = other298.partitions;
- __isset = other298.__isset;
+PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other300) {
+ partitions = other300.partitions;
+ __isset = other300.__isset;
return *this;
}
void PartitionListComposingSpec::printTo(std::ostream& out) const {
@@ -7649,23 +7755,23 @@ void swap(PartitionSpec &a, PartitionSpec &b) {
swap(a.__isset, b.__isset);
}
-PartitionSpec::PartitionSpec(const PartitionSpec& other299) {
- dbName = other299.dbName;
- tableName = other299.tableName;
- rootPath = other299.rootPath;
- sharedSDPartitionSpec = other299.sharedSDPartitionSpec;
- partitionList = other299.partitionList;
- catName = other299.catName;
- __isset = other299.__isset;
+PartitionSpec::PartitionSpec(const PartitionSpec& other301) {
+ dbName = other301.dbName;
+ tableName = other301.tableName;
+ rootPath = other301.rootPath;
+ sharedSDPartitionSpec = other301.sharedSDPartitionSpec;
+ partitionList = other301.partitionList;
+ catName = other301.catName;
+ __isset = other301.__isset;
}
-PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other300) {
- dbName = other300.dbName;
- tableName = other300.tableName;
- rootPath = other300.rootPath;
- sharedSDPartitionSpec = other300.sharedSDPartitionSpec;
- partitionList = other300.partitionList;
- catName = other300.catName;
- __isset = other300.__isset;
+PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other302) {
+ dbName = other302.dbName;
+ tableName = other302.tableName;
+ rootPath = other302.rootPath;
+ sharedSDPartitionSpec = other302.sharedSDPartitionSpec;
+ partitionList = other302.partitionList;
+ catName = other302.catName;
+ __isset = other302.__isset;
return *this;
}
void PartitionSpec::printTo(std::ostream& out) const {
@@ -7812,19 +7918,19 @@ void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b) {
swap(a.__isset, b.__isset);
}
-BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other301) {
- numTrues = other301.numTrues;
- numFalses = other301.numFalses;
- numNulls = other301.numNulls;
- bitVectors = other301.bitVectors;
- __isset = other301.__isset;
+BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other303) {
+ numTrues = other303.numTrues;
+ numFalses = other303.numFalses;
+ numNulls = other303.numNulls;
+ bitVectors = other303.bitVectors;
+ __isset = other303.__isset;
}
-BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other302) {
- numTrues = other302.numTrues;
- numFalses = other302.numFalses;
- numNulls = other302.numNulls;
- bitVectors = other302.bitVectors;
- __isset = other302.__isset;
+BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other304) {
+ numTrues = other304.numTrues;
+ numFalses = other304.numFalses;
+ numNulls = other304.numNulls;
+ bitVectors = other304.bitVectors;
+ __isset = other304.__isset;
return *this;
}
void BooleanColumnStatsData::printTo(std::ostream& out) const {
@@ -7987,21 +8093,21 @@ void swap(DoubleColumnStatsData &a, DoubleColumnStatsData &b) {
swap(a.__isset, b.__isset);
}
-DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other303) {
- lowValue = other303.lowValue;
- highValue = other303.highValue;
- numNulls = other303.numNulls;
- numDVs = other303.numDVs;
- bitVectors = other303.bitVectors;
- __isset = other303.__isset;
+DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other305) {
+ lowValue = other305.lowValue;
+ highValue = other305.highValue;
+ numNulls = other305.numNulls;
+ numDVs = other305.numDVs;
+ bitVectors = other305.bitVectors;
+ __isset = other305.__isset;
}
-DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other304) {
- lowValue = other304.lowValue;
- highValue = other304.highValue;
- numNulls = other304.numNulls;
- numDVs = other304.numDVs;
- bitVectors = other304.bitVectors;
- __isset = other304.__isset;
+DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other306) {
+ lowValue = other306.lowValue;
+ highValue = other306.highValue;
+ numNulls = other306.numNulls;
+ numDVs = other306.numDVs;
+ bitVectors = other306.bitVectors;
+ __isset = other306.__isset;
return *this;
}
void DoubleColumnStatsData::printTo(std::ostream& out) const {
@@ -8165,21 +8271,21 @@ void swap(LongColumnStatsData &a, LongColumnStatsData &b) {
swap(a.__isset, b.__isset);
}
-LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other305) {
- lowValue = other305.lowValue;
- highValue = other305.highValue;
- numNulls = other305.numNulls;
- numDVs = other305.numDVs;
- bitVectors = other305.bitVectors;
- __isset = other305.__isset;
+LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other307) {
+ lowValue = other307.lowValue;
+ highValue = other307.highValue;
+ numNulls = other307.numNulls;
+ numDVs = other307.numDVs;
+ bitVectors = other307.bitVectors;
+ __isset = other307.__isset;
}
-LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other306) {
- lowValue = other306.lowValue;
- highValue = other306.highValue;
- numNulls = other306.numNulls;
- numDVs = other306.numDVs;
- bitVectors = other306.bitVectors;
- __isset = other306.__isset;
+LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other308) {
+ lowValue = other308.lowValue;
+ highValue = other308.highValue;
+ numNulls = other308.numNulls;
+ numDVs = other308.numDVs;
+ bitVectors = other308.bitVectors;
+ __isset = other308.__isset;
return *this;
}
void LongColumnStatsData::printTo(std::ostream& out) const {
@@ -8345,21 +8451,21 @@ void swap(StringColumnStatsData &a, StringColumnStatsData &b) {
swap(a.__isset, b.__isset);
}
-StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other307) {
- maxColLen = other307.maxColLen;
- avgColLen = other307.avgColLen;
- numNulls = other307.numNulls;
- numDVs = other307.numDVs;
- bitVectors = other307.bitVectors;
- __isset = other307.__isset;
+StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other309) {
+ maxColLen = other309.maxColLen;
+ avgColLen = other309.avgColLen;
+ numNulls = other309.numNulls;
+ numDVs = other309.numDVs;
+ bitVectors = other309.bitVectors;
+ __isset = other309.__isset;
}
-StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other308) {
- maxColLen = other308.maxColLen;
- avgColLen = other308.avgColLen;
- numNulls = other308.numNulls;
- numDVs = other308.numDVs;
- bitVectors = other308.bitVectors;
- __isset = other308.__isset;
+StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other310) {
+ maxColLen = other310.maxColLen;
+ avgColLen = other310.avgColLen;
+ numNulls = other310.numNulls;
+ numDVs = other310.numDVs;
+ bitVectors = other310.bitVectors;
+ __isset = other310.__isset;
return *this;
}
void StringColumnStatsData::printTo(std::ostream& out) const {
@@ -8505,19 +8611,19 @@ void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b) {
swap(a.__isset, b.__isset);
}
-BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other309) {
- maxColLen = other309.maxColLen;
- avgColLen = other309.avgColLen;
- numNulls = other309.numNulls;
- bitVectors = other309.bitVectors;
- __isset = other309.__isset;
+BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other311) {
+ maxColLen = other311.maxColLen;
+ avgColLen = other311.avgColLen;
+ numNulls = other311.numNulls;
+ bitVectors = other311.bitVectors;
+ __isset = other311.__isset;
}
-BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other310) {
- maxColLen = other310.maxColLen;
- avgColLen = other310.avgColLen;
- numNulls = other310.numNulls;
- bitVectors = other310.bitVectors;
- __isset = other310.__isset;
+BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other312) {
+ maxColLen = other312.maxColLen;
+ avgColLen = other312.avgColLen;
+ numNulls = other312.numNulls;
+ bitVectors = other312.bitVectors;
+ __isset = other312.__isset;
return *this;
}
void BinaryColumnStatsData::printTo(std::ostream& out) const {
@@ -8622,13 +8728,13 @@ void swap(Decimal &a, Decimal &b) {
swap(a.unscaled, b.unscaled);
}
-Decimal::Decimal(const Decimal& other311) {
- scale = other311.scale;
- unscaled = other311.unscaled;
+Decimal::Decimal(const Decimal& other313) {
+ scale = other313.scale;
+ unscaled = other313.unscaled;
}
-Decimal& Decimal::operator=(const Decimal& other312) {
- scale = other312.scale;
- unscaled = other312.unscaled;
+Decimal& Decimal::operator=(const Decimal& other314) {
+ scale = other314.scale;
+ unscaled = other314.unscaled;
return *this;
}
void Decimal::printTo(std::ostream& out) const {
@@ -8789,21 +8895,21 @@ void swap(DecimalColumnStatsData &a, DecimalColumnStatsData &b) {
swap(a.__isset, b.__isset);
}
-DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other313) {
- lowValue = other313.lowValue;
- highValue = other313.highValue;
- numNulls = other313.numNulls;
- numDVs = other313.numDVs;
- bitVectors = other313.bitVectors;
- __isset = other313.__isset;
-}
-DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other314) {
- lowValue = other314.lowValue;
- highValue = other314.highValue;
- numNulls = other314.numNulls;
- numDVs = other314.numDVs;
- bitVectors = other314.bitVectors;
- __isset = other314.__isset;
+DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other315) {
+ lowValue = other315.lowValue;
+ highValue = other315.highValue;
+ numNulls = other315.numNulls;
+ numDVs = other315.numDVs;
+ bitVectors = other315.bitVectors;
+ __isset = other315.__isset;
+}
+DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other316) {
+ lowValue = other316.lowValue;
+ highValue = other316.highValue;
+ numNulls = other316.numNulls;
+ numDVs = other316.numDVs;
+ bitVectors = other316.bitVectors;
+ __isset = other316.__isset;
return *this;
}
void DecimalColumnStatsData::printTo(std::ostream& out) const {
@@ -8889,11 +8995,11 @@ void swap(Date &a, Date &b) {
swap(a.daysSinceEpoch, b.daysSinceEpoch);
}
-Date::Date(const Date& other315) {
- daysSinceEpoch = other315.daysSinceEpoch;
+Date::Date(const Date& other317) {
+ daysSinceEpoch = other317.daysSinceEpoch;
}
-Date& Date::operator=(const Date& other316) {
- daysSinceEpoch = other316.daysSinceEpoch;
+Date& Date::operator=(const Date& other318) {
+ daysSinceEpoch = other318.daysSinceEpoch;
return *this;
}
void Date::printTo(std::ostream& out) const {
@@ -9053,21 +9159,21 @@ void swap(DateColumnStatsData &a, DateColumnStatsData &b) {
swap(a.__isset, b.__isset);
}
-DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other317) {
- lowValue = other317.lowValue;
- highValue = other317.highValue;
- numNulls = other317.numNulls;
- numDVs = other317.numDVs;
- bitVectors = other317.bitVectors;
- __isset = other317.__isset;
-}
-DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other318) {
- lowValue = other318.lowValue;
- highValue = other318.highValue;
- numNulls = other318.numNulls;
- numDVs = other318.numDVs;
- bitVectors = other318.bitVectors;
- __isset = other318.__isset;
+DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other319) {
+ lowValue = other319.lowValue;
+ highValue = other319.highValue;
+ numNulls = other319.numNulls;
+ numDVs = other319.numDVs;
+ bitVectors = other319.bitVectors;
+ __isset = other319.__isset;
+}
+DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other320) {
+ lowValue = other320.lowValue;
+ highValue = other320.highValue;
+ numNulls = other320.numNulls;
+ numDVs = other320.numDVs;
+ bitVectors = other320.bitVectors;
+ __isset = other320.__isset;
return *this;
}
void DateColumnStatsData::printTo(std::ostream& out) const {
@@ -9253,25 +9359,25 @@ void swap(ColumnStatisticsData &a, ColumnStatisticsData &b) {
swap(a.__isset, b.__isset);
}
-ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other319) {
- booleanStats = other319.booleanStats;
- longStats = other319.longStats;
- doubleStats = other319.doubleStats;
- stringStats = other319.stringStats;
- binaryStats = other319.binaryStats;
- decimalStats = other319.decimalStats;
- dateStats = other319.dateStats;
- __isset = other319.__isset;
-}
-ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other320) {
- booleanStats = other320.booleanStats;
- longStats = other320.longStats;
- doubleStats = other320.doubleStats;
- stringStats = other320.stringStats;
- binaryStats = other320.binaryStats;
- decimalStats = other320.decimalStats;
- dateStats = other320.dateStats;
- __isset = other320.__isset;
+ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other321) {
+ booleanStats = other321.booleanStats;
+ longStats = other321.longStats;
+ doubleStats = other321.doubleStats;
+ stringStats = other321.stringStats;
+ binaryStats = other321.binaryStats;
+ decimalStats = other321.decimalStats;
+ dateStats = other321.dateStats;
+ __isset = other321.__isset;
+}
+ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other322) {
+ booleanStats = other322.booleanStats;
+ longStats = other322.longStats;
+ doubleStats = other322.doubleStats;
+ stringStats = other322.stringStats;
+ binaryStats = other322.binaryStats;
+ decimalStats = other322.decimalStats;
+ dateStats = other322.dateStats;
+ __isset = other322.__isset;
return *this;
}
void ColumnStatisticsData::printTo(std::ostream& out) const {
@@ -9399,15 +9505,15 @@ void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b) {
swap(a.statsData, b.statsData);
}
-ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other321) {
- colName = other321.colName;
- colType = other321.colType;
- statsData = other321.statsData;
+ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other323) {
+ colName = other323.colName;
+ colType = other323.colType;
+ statsData = other323.statsData;
}
-ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other322) {
- colName = other322.colName;
- colType = other322.colType;
- statsData = other322.statsData;
+ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other324) {
+ colName = other324.colName;
+ colType = other324.colType;
+ statsData = other324.statsData;
return *this;
}
void ColumnStatisticsObj::printTo(std::ostream& out) const {
@@ -9589,23 +9695,23 @@ void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b) {
swap(a.__isset, b.__isset);
}
-ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other323) {
- isTblLevel = other323.isTblLevel;
- dbName = other323.dbName;
- tableName = other323.tableName;
- partName = other323.partName;
- lastAnalyzed = other323.lastAnalyzed;
- catName = other323.catName;
- __isset = other323.__isset;
-}
-ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other324) {
- isTblLevel = other324.isTblLevel;
- dbName = other324.dbName;
- tableName = other324.tableName;
- partName = other324.partName;
- lastAnalyzed = other324.lastAnalyzed;
- catName = other324.catName;
- __isset = other324.__isset;
+ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other325) {
+ isTblLevel = other325.isTblLevel;
+ dbName = other325.dbName;
+ tableName = other325.tableName;
+ partName = other325.partName;
+ lastAnalyzed = other325.lastAnalyzed;
+ catName = other325.catName;
+ __isset = other325.__isset;
+}
+ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other326) {
+ isTblLevel = other326.isTblLevel;
+ dbName = other326.dbName;
+ tableName = other326.tableName;
+ partName = other326.partName;
+ lastAnalyzed = other326.lastAnalyzed;
+ catName = other326.catName;
+ __isset = other326.__isset;
return *this;
}
void ColumnStatisticsDesc::printTo(std::ostream& out) const {
@@ -9668,14 +9774,14 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->statsObj.clear();
- uint32_t _size325;
- ::apache::thrift::protocol::TType _etype328;
- xfer += iprot->readListBegin(_etype328, _size325);
- this->statsObj.resize(_size325);
- uint32_t _i329;
- for (_i329 = 0; _i329 < _size325; ++_i329)
+ uint32_t _size327;
+ ::apache::thrift::protocol::TType _etype330;
+ xfer += iprot->readListBegin(_etype330, _size327);
+ this->statsObj.resize(_size327);
+ uint32_t _i331;
+ for (_i331 = 0; _i331 < _size327; ++_i331)
{
- xfer += this->statsObj[_i329].read(iprot);
+ xfer += this->statsObj[_i331].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -9712,10 +9818,10 @@ uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) c
xfer += oprot->writeFieldBegin("statsObj", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->statsObj.size()));
- std::vector<ColumnStatisticsObj> ::const_iterator _iter330;
- for (_iter330 = this->statsObj.begin(); _iter330 != this->statsObj.end(); ++_iter330)
+ std::vector<ColumnStatisticsObj> ::const_iterator _iter332;
+ for (_iter332 = this->statsObj.begin(); _iter332 != this->statsObj.end(); ++_iter332)
{
- xfer += (*_iter330).write(oprot);
+ xfer += (*_iter332).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -9732,13 +9838,13 @@ void swap(ColumnStatistics &a, ColumnStatistics &b) {
swap(a.statsObj, b.statsObj);
}
-ColumnStatistics::ColumnStatistics(const ColumnStatistics& other331) {
- statsDesc = other331.statsDesc;
- statsObj = other331.statsObj;
+ColumnStatistics::ColumnStatistics(const ColumnStatistics& other333) {
+ statsDesc = other333.statsDesc;
+ statsObj = other333.statsObj;
}
-ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other332) {
- statsDesc = other332.statsDesc;
- statsObj = other332.statsObj;
+ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other334) {
+ statsDesc = other334.statsDesc;
+ statsObj = other334.statsObj;
return *this;
}
void ColumnStatistics::printTo(std::ostream& out) const {
@@ -9789,14 +9895,14 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->colStats.clear();
- uint32_t _size333;
- ::apache::thrift::protocol::TType _etype336;
- xfer += iprot->readListBegin(_etype336, _size333);
- this->colStats.resize(_size333);
- uint32_t _i337;
- for (_i337 = 0; _i337 < _size333; ++_i337)
+ uint32_t _size335;
+ ::apache::thrift::protocol::TType _etype338;
+ xfer += iprot->readListBegin(_etype338, _size335);
+ this->colStats.resize(_size335);
+ uint32_t _i339;
+ for (_i339 = 0; _i339 < _size335; ++_i339)
{
- xfer += this->colStats[_i337].read(iprot);
+ xfer += this->colStats[_i339].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -9837,10 +9943,10 @@ uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->colStats.size()));
- std::vector<ColumnStatisticsObj> ::const_iterator _iter338;
- for (_iter338 = this->colStats.begin(); _iter338 != this->colStats.end(); ++_iter338)
+ std::vector<ColumnStatisticsObj> ::const_iterator _iter340;
+ for (_iter340 = this->colStats.begin(); _iter340 != this->colStats.end(); ++_iter340)
{
- xfer += (*_iter338).write(oprot);
+ xfer += (*_iter340).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -9861,13 +9967,13 @@ void swap(AggrStats &a, AggrStats &b) {
swap(a.partsFound, b.partsFound);
}
-AggrStats::AggrStats(const AggrStats& other339) {
- colStats = other339.colStats;
- partsFound = other339.partsFound;
+AggrStats::AggrStats(const AggrStats& other341) {
+ colStats = other341.colStats;
+ partsFound = other341.partsFound;
}
-AggrStats& AggrStats::operator=(const AggrStats& other340) {
- colStats = other340.colStats;
- partsFound = other340.partsFound;
+AggrStats& AggrStats::operator=(const AggrStats& other342) {
+ colStats = other342.colStats;
+ partsFound = other342.partsFound;
return *this;
}
void AggrStats::printTo(std::ostream& out) const {
@@ -9918,14 +10024,14 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol*
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->colStats.clear();
- uint32_t _size341;
- ::apache::thrift::protocol::TType _etype344;
- xfer += iprot->readListBegin(_etype344, _size341);
- this->colStats.resize(_size341);
- uint32_t _i345;
- for (_i345 = 0; _i345 < _size341; ++_i345)
+ uint32_t _size343;
+ ::apache::thrift::protocol::TType _etype346;
+ xfer += iprot->readListBegin(_etype346, _size343);
+ this->colStats.resize(_size343);
+ uint32_t _i347;
+ for (_i347 = 0; _i347 < _size343; ++_i347)
{
- xfer += this->colStats[_i345].read(iprot);
+ xfer += this->colStats[_i347].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -9964,10 +10070,10 @@ uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol*
xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->colStats.size()));
- std::vector<ColumnStatistics> ::const_iterator _iter346;
- for (_iter346 = this->colStats.begin(); _iter346 != this->colStats.end(); ++_iter346)
+ std::vector<ColumnStatistics> ::const_iterator _iter348;
+ for (_iter348 = this->colStats.begin(); _iter348 != this->colStats.end(); ++_iter348)
{
- xfer += (*_iter346).write(oprot);
+ xfer += (*_iter348).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -9990,15 +10096,15 @@ void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b) {
swap(a.__isset, b.__isset);
}
-SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other347) {
- colStats = other347.colStats;
- needMerge = other347.needMerge;
- __isset = other347.__isset;
+SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other349) {
+ colStats = other349.colStats;
+ needMerge = other349.needMerge;
+ __isset = other349.__isset;
}
-SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other348) {
- colStats = other348.colStats;
- needMerge = other348.needMerge;
- __isset = other348.__isset;
+SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other350) {
+ colStats = other350.colStats;
+ needMerge = other350.needMerge;
+ __isset = other350.__isset;
return *this;
}
void SetPartitionsStatsRequest::printTo(std::ostream& out) const {
@@ -10047,14 +10153,14 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->fieldSchemas.clear();
- uint32_t _size349;
- ::apache::thrift::protocol::TType _etype352;
- xfer += iprot->readListBegin(_etype352, _size349);
- this->fieldSchemas.resize(_size349);
- uint32_t _i353;
- for (_i353 = 0; _i353 < _size349; ++_i353)
+ uint32_t _size351;
+ ::apache::thrift::protocol::TType _etype354;
+ xfer += iprot->readListBegin(_etype354, _size351);
+ this->fieldSchemas.resize(_size351);
+ uint32_t _i355;
+ for (_i355 = 0; _i355 < _size351; ++_i355)
{
- xfer += this->fieldSchemas[_i353].read(iprot);
+ xfer += this->fieldSchemas[_i355].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -10067,17 +10173,17 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) {
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->properties.clear();
- uint32_t _size354;
- ::apache::thrift::protocol::TType _ktype355;
- ::apache::thrift::protocol::TType _vtype356;
- xfer += iprot->readMapBegin(_ktype355, _vtype356, _size354);
- uint32_t _i358;
- for (_i358 = 0; _i358 < _size354; ++_i358)
+ uint32_t _size356;
+ ::apache::thrift::protocol::TType _ktype357;
+ ::apache::thrift::protocol::TType _vtype358;
+ xfer += iprot->readMapBegin(_ktype357, _vtype358, _size356);
+ uint32_t _i360;
+ for (_i360 = 0; _i360 < _size356; ++_i360)
{
- std::string _key359;
- xfer += iprot->readString(_key359);
- std::string& _val360 = this->properties[_key359];
- xfer += iprot->readString(_val360);
+ std::string _key361;
+ xfer += iprot->readString(_key361);
+ std::string& _val362 = this->properties[_key361];
+ xfer += iprot->readString(_val362);
}
xfer += iprot->readMapEnd();
}
@@ -10106,10 +10212,10 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const {
xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->fieldSchemas.size()));
- std::vector<FieldSchema> ::const_iterator _iter361;
- for (_iter361 = this->fieldSchemas.begin(); _iter361 != this->fieldSchemas.end(); ++_iter361)
+ std::vector<FieldSchema> ::const_iterator _iter363;
+ for (_iter363 = this->fieldSchemas.begin(); _iter363 != this->fieldSchemas.end(); ++_iter3
<TRUNCATED>
[6/7] hive git commit: HIVE-19688 Make catalogs updatable (Alan Gates
reviewed by Daniel Dai)
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
index ddb175e..e459bc2 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
@@ -646,6 +646,233 @@ uint32_t ThriftHiveMetastore_create_catalog_presult::read(::apache::thrift::prot
}
+ThriftHiveMetastore_alter_catalog_args::~ThriftHiveMetastore_alter_catalog_args() throw() {
+}
+
+
+uint32_t ThriftHiveMetastore_alter_catalog_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_STRUCT) {
+ xfer += this->rqst.read(iprot);
+ this->__isset.rqst = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_alter_catalog_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_catalog_args");
+
+ xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->rqst.write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+ThriftHiveMetastore_alter_catalog_pargs::~ThriftHiveMetastore_alter_catalog_pargs() throw() {
+}
+
+
+uint32_t ThriftHiveMetastore_alter_catalog_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_catalog_pargs");
+
+ xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->rqst)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+ThriftHiveMetastore_alter_catalog_result::~ThriftHiveMetastore_alter_catalog_result() throw() {
+}
+
+
+uint32_t ThriftHiveMetastore_alter_catalog_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->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_alter_catalog_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_catalog_result");
+
+ if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o3) {
+ xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->o3.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+
+ThriftHiveMetastore_alter_catalog_presult::~ThriftHiveMetastore_alter_catalog_presult() throw() {
+}
+
+
+uint32_t ThriftHiveMetastore_alter_catalog_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 == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+
ThriftHiveMetastore_get_catalog_args::~ThriftHiveMetastore_get_catalog_args() throw() {
}
@@ -2107,14 +2334,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1200;
- ::apache::thrift::protocol::TType _etype1203;
- xfer += iprot->readListBegin(_etype1203, _size1200);
- this->success.resize(_size1200);
- uint32_t _i1204;
- for (_i1204 = 0; _i1204 < _size1200; ++_i1204)
+ uint32_t _size1202;
+ ::apache::thrift::protocol::TType _etype1205;
+ xfer += iprot->readListBegin(_etype1205, _size1202);
+ this->success.resize(_size1202);
+ uint32_t _i1206;
+ for (_i1206 = 0; _i1206 < _size1202; ++_i1206)
{
- xfer += iprot->readString(this->success[_i1204]);
+ xfer += iprot->readString(this->success[_i1206]);
}
xfer += iprot->readListEnd();
}
@@ -2153,10 +2380,10 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter1205;
- for (_iter1205 = this->success.begin(); _iter1205 != this->success.end(); ++_iter1205)
+ std::vector<std::string> ::const_iterator _iter1207;
+ for (_iter1207 = this->success.begin(); _iter1207 != this->success.end(); ++_iter1207)
{
- xfer += oprot->writeString((*_iter1205));
+ xfer += oprot->writeString((*_iter1207));
}
xfer += oprot->writeListEnd();
}
@@ -2201,14 +2428,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1206;
- ::apache::thrift::protocol::TType _etype1209;
- xfer += iprot->readListBegin(_etype1209, _size1206);
- (*(this->success)).resize(_size1206);
- uint32_t _i1210;
- for (_i1210 = 0; _i1210 < _size1206; ++_i1210)
+ uint32_t _size1208;
+ ::apache::thrift::protocol::TType _etype1211;
+ xfer += iprot->readListBegin(_etype1211, _size1208);
+ (*(this->success)).resize(_size1208);
+ uint32_t _i1212;
+ for (_i1212 = 0; _i1212 < _size1208; ++_i1212)
{
- xfer += iprot->readString((*(this->success))[_i1210]);
+ xfer += iprot->readString((*(this->success))[_i1212]);
}
xfer += iprot->readListEnd();
}
@@ -2325,14 +2552,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1211;
- ::apache::thrift::protocol::TType _etype1214;
- xfer += iprot->readListBegin(_etype1214, _size1211);
- this->success.resize(_size1211);
- uint32_t _i1215;
- for (_i1215 = 0; _i1215 < _size1211; ++_i1215)
+ uint32_t _size1213;
+ ::apache::thrift::protocol::TType _etype1216;
+ xfer += iprot->readListBegin(_etype1216, _size1213);
+ this->success.resize(_size1213);
+ uint32_t _i1217;
+ for (_i1217 = 0; _i1217 < _size1213; ++_i1217)
{
- xfer += iprot->readString(this->success[_i1215]);
+ xfer += iprot->readString(this->success[_i1217]);
}
xfer += iprot->readListEnd();
}
@@ -2371,10 +2598,10 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter1216;
- for (_iter1216 = this->success.begin(); _iter1216 != this->success.end(); ++_iter1216)
+ std::vector<std::string> ::const_iterator _iter1218;
+ for (_iter1218 = this->success.begin(); _iter1218 != this->success.end(); ++_iter1218)
{
- xfer += oprot->writeString((*_iter1216));
+ xfer += oprot->writeString((*_iter1218));
}
xfer += oprot->writeListEnd();
}
@@ -2419,14 +2646,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1217;
- ::apache::thrift::protocol::TType _etype1220;
- xfer += iprot->readListBegin(_etype1220, _size1217);
- (*(this->success)).resize(_size1217);
- uint32_t _i1221;
- for (_i1221 = 0; _i1221 < _size1217; ++_i1221)
+ uint32_t _size1219;
+ ::apache::thrift::protocol::TType _etype1222;
+ xfer += iprot->readListBegin(_etype1222, _size1219);
+ (*(this->success)).resize(_size1219);
+ uint32_t _i1223;
+ for (_i1223 = 0; _i1223 < _size1219; ++_i1223)
{
- xfer += iprot->readString((*(this->success))[_i1221]);
+ xfer += iprot->readString((*(this->success))[_i1223]);
}
xfer += iprot->readListEnd();
}
@@ -3488,17 +3715,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->success.clear();
- uint32_t _size1222;
- ::apache::thrift::protocol::TType _ktype1223;
- ::apache::thrift::protocol::TType _vtype1224;
- xfer += iprot->readMapBegin(_ktype1223, _vtype1224, _size1222);
- uint32_t _i1226;
- for (_i1226 = 0; _i1226 < _size1222; ++_i1226)
+ uint32_t _size1224;
+ ::apache::thrift::protocol::TType _ktype1225;
+ ::apache::thrift::protocol::TType _vtype1226;
+ xfer += iprot->readMapBegin(_ktype1225, _vtype1226, _size1224);
+ uint32_t _i1228;
+ for (_i1228 = 0; _i1228 < _size1224; ++_i1228)
{
- std::string _key1227;
- xfer += iprot->readString(_key1227);
- Type& _val1228 = this->success[_key1227];
- xfer += _val1228.read(iprot);
+ std::string _key1229;
+ xfer += iprot->readString(_key1229);
+ Type& _val1230 = this->success[_key1229];
+ xfer += _val1230.read(iprot);
}
xfer += iprot->readMapEnd();
}
@@ -3537,11 +3764,11 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::map<std::string, Type> ::const_iterator _iter1229;
- for (_iter1229 = this->success.begin(); _iter1229 != this->success.end(); ++_iter1229)
+ std::map<std::string, Type> ::const_iterator _iter1231;
+ for (_iter1231 = this->success.begin(); _iter1231 != this->success.end(); ++_iter1231)
{
- xfer += oprot->writeString(_iter1229->first);
- xfer += _iter1229->second.write(oprot);
+ xfer += oprot->writeString(_iter1231->first);
+ xfer += _iter1231->second.write(oprot);
}
xfer += oprot->writeMapEnd();
}
@@ -3586,17 +3813,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
(*(this->success)).clear();
- uint32_t _size1230;
- ::apache::thrift::protocol::TType _ktype1231;
- ::apache::thrift::protocol::TType _vtype1232;
- xfer += iprot->readMapBegin(_ktype1231, _vtype1232, _size1230);
- uint32_t _i1234;
- for (_i1234 = 0; _i1234 < _size1230; ++_i1234)
+ uint32_t _size1232;
+ ::apache::thrift::protocol::TType _ktype1233;
+ ::apache::thrift::protocol::TType _vtype1234;
+ xfer += iprot->readMapBegin(_ktype1233, _vtype1234, _size1232);
+ uint32_t _i1236;
+ for (_i1236 = 0; _i1236 < _size1232; ++_i1236)
{
- std::string _key1235;
- xfer += iprot->readString(_key1235);
- Type& _val1236 = (*(this->success))[_key1235];
- xfer += _val1236.read(iprot);
+ std::string _key1237;
+ xfer += iprot->readString(_key1237);
+ Type& _val1238 = (*(this->success))[_key1237];
+ xfer += _val1238.read(iprot);
}
xfer += iprot->readMapEnd();
}
@@ -3750,14 +3977,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1237;
- ::apache::thrift::protocol::TType _etype1240;
- xfer += iprot->readListBegin(_etype1240, _size1237);
- this->success.resize(_size1237);
- uint32_t _i1241;
- for (_i1241 = 0; _i1241 < _size1237; ++_i1241)
+ uint32_t _size1239;
+ ::apache::thrift::protocol::TType _etype1242;
+ xfer += iprot->readListBegin(_etype1242, _size1239);
+ this->success.resize(_size1239);
+ uint32_t _i1243;
+ for (_i1243 = 0; _i1243 < _size1239; ++_i1243)
{
- xfer += this->success[_i1241].read(iprot);
+ xfer += this->success[_i1243].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -3812,10 +4039,10 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<FieldSchema> ::const_iterator _iter1242;
- for (_iter1242 = this->success.begin(); _iter1242 != this->success.end(); ++_iter1242)
+ std::vector<FieldSchema> ::const_iterator _iter1244;
+ for (_iter1244 = this->success.begin(); _iter1244 != this->success.end(); ++_iter1244)
{
- xfer += (*_iter1242).write(oprot);
+ xfer += (*_iter1244).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -3868,14 +4095,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1243;
- ::apache::thrift::protocol::TType _etype1246;
- xfer += iprot->readListBegin(_etype1246, _size1243);
- (*(this->success)).resize(_size1243);
- uint32_t _i1247;
- for (_i1247 = 0; _i1247 < _size1243; ++_i1247)
+ uint32_t _size1245;
+ ::apache::thrift::protocol::TType _etype1248;
+ xfer += iprot->readListBegin(_etype1248, _size1245);
+ (*(this->success)).resize(_size1245);
+ uint32_t _i1249;
+ for (_i1249 = 0; _i1249 < _size1245; ++_i1249)
{
- xfer += (*(this->success))[_i1247].read(iprot);
+ xfer += (*(this->success))[_i1249].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4061,14 +4288,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1248;
- ::apache::thrift::protocol::TType _etype1251;
- xfer += iprot->readListBegin(_etype1251, _size1248);
- this->success.resize(_size1248);
- uint32_t _i1252;
- for (_i1252 = 0; _i1252 < _size1248; ++_i1252)
+ uint32_t _size1250;
+ ::apache::thrift::protocol::TType _etype1253;
+ xfer += iprot->readListBegin(_etype1253, _size1250);
+ this->success.resize(_size1250);
+ uint32_t _i1254;
+ for (_i1254 = 0; _i1254 < _size1250; ++_i1254)
{
- xfer += this->success[_i1252].read(iprot);
+ xfer += this->success[_i1254].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4123,10 +4350,10 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::write(:
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<FieldSchema> ::const_iterator _iter1253;
- for (_iter1253 = this->success.begin(); _iter1253 != this->success.end(); ++_iter1253)
+ std::vector<FieldSchema> ::const_iterator _iter1255;
+ for (_iter1255 = this->success.begin(); _iter1255 != this->success.end(); ++_iter1255)
{
- xfer += (*_iter1253).write(oprot);
+ xfer += (*_iter1255).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4179,14 +4406,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1254;
- ::apache::thrift::protocol::TType _etype1257;
- xfer += iprot->readListBegin(_etype1257, _size1254);
- (*(this->success)).resize(_size1254);
- uint32_t _i1258;
- for (_i1258 = 0; _i1258 < _size1254; ++_i1258)
+ uint32_t _size1256;
+ ::apache::thrift::protocol::TType _etype1259;
+ xfer += iprot->readListBegin(_etype1259, _size1256);
+ (*(this->success)).resize(_size1256);
+ uint32_t _i1260;
+ for (_i1260 = 0; _i1260 < _size1256; ++_i1260)
{
- xfer += (*(this->success))[_i1258].read(iprot);
+ xfer += (*(this->success))[_i1260].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4356,14 +4583,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1259;
- ::apache::thrift::protocol::TType _etype1262;
- xfer += iprot->readListBegin(_etype1262, _size1259);
- this->success.resize(_size1259);
- uint32_t _i1263;
- for (_i1263 = 0; _i1263 < _size1259; ++_i1263)
+ uint32_t _size1261;
+ ::apache::thrift::protocol::TType _etype1264;
+ xfer += iprot->readListBegin(_etype1264, _size1261);
+ this->success.resize(_size1261);
+ uint32_t _i1265;
+ for (_i1265 = 0; _i1265 < _size1261; ++_i1265)
{
- xfer += this->success[_i1263].read(iprot);
+ xfer += this->success[_i1265].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4418,10 +4645,10 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<FieldSchema> ::const_iterator _iter1264;
- for (_iter1264 = this->success.begin(); _iter1264 != this->success.end(); ++_iter1264)
+ std::vector<FieldSchema> ::const_iterator _iter1266;
+ for (_iter1266 = this->success.begin(); _iter1266 != this->success.end(); ++_iter1266)
{
- xfer += (*_iter1264).write(oprot);
+ xfer += (*_iter1266).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4474,14 +4701,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1265;
- ::apache::thrift::protocol::TType _etype1268;
- xfer += iprot->readListBegin(_etype1268, _size1265);
- (*(this->success)).resize(_size1265);
- uint32_t _i1269;
- for (_i1269 = 0; _i1269 < _size1265; ++_i1269)
+ uint32_t _size1267;
+ ::apache::thrift::protocol::TType _etype1270;
+ xfer += iprot->readListBegin(_etype1270, _size1267);
+ (*(this->success)).resize(_size1267);
+ uint32_t _i1271;
+ for (_i1271 = 0; _i1271 < _size1267; ++_i1271)
{
- xfer += (*(this->success))[_i1269].read(iprot);
+ xfer += (*(this->success))[_i1271].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4667,14 +4894,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1270;
- ::apache::thrift::protocol::TType _etype1273;
- xfer += iprot->readListBegin(_etype1273, _size1270);
- this->success.resize(_size1270);
- uint32_t _i1274;
- for (_i1274 = 0; _i1274 < _size1270; ++_i1274)
+ uint32_t _size1272;
+ ::apache::thrift::protocol::TType _etype1275;
+ xfer += iprot->readListBegin(_etype1275, _size1272);
+ this->success.resize(_size1272);
+ uint32_t _i1276;
+ for (_i1276 = 0; _i1276 < _size1272; ++_i1276)
{
- xfer += this->success[_i1274].read(iprot);
+ xfer += this->success[_i1276].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -4729,10 +4956,10 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::write(:
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<FieldSchema> ::const_iterator _iter1275;
- for (_iter1275 = this->success.begin(); _iter1275 != this->success.end(); ++_iter1275)
+ std::vector<FieldSchema> ::const_iterator _iter1277;
+ for (_iter1277 = this->success.begin(); _iter1277 != this->success.end(); ++_iter1277)
{
- xfer += (*_iter1275).write(oprot);
+ xfer += (*_iter1277).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -4785,14 +5012,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1276;
- ::apache::thrift::protocol::TType _etype1279;
- xfer += iprot->readListBegin(_etype1279, _size1276);
- (*(this->success)).resize(_size1276);
- uint32_t _i1280;
- for (_i1280 = 0; _i1280 < _size1276; ++_i1280)
+ uint32_t _size1278;
+ ::apache::thrift::protocol::TType _etype1281;
+ xfer += iprot->readListBegin(_etype1281, _size1278);
+ (*(this->success)).resize(_size1278);
+ uint32_t _i1282;
+ for (_i1282 = 0; _i1282 < _size1278; ++_i1282)
{
- xfer += (*(this->success))[_i1280].read(iprot);
+ xfer += (*(this->success))[_i1282].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -5385,14 +5612,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->primaryKeys.clear();
- uint32_t _size1281;
- ::apache::thrift::protocol::TType _etype1284;
- xfer += iprot->readListBegin(_etype1284, _size1281);
- this->primaryKeys.resize(_size1281);
- uint32_t _i1285;
- for (_i1285 = 0; _i1285 < _size1281; ++_i1285)
+ uint32_t _size1283;
+ ::apache::thrift::protocol::TType _etype1286;
+ xfer += iprot->readListBegin(_etype1286, _size1283);
+ this->primaryKeys.resize(_size1283);
+ uint32_t _i1287;
+ for (_i1287 = 0; _i1287 < _size1283; ++_i1287)
{
- xfer += this->primaryKeys[_i1285].read(iprot);
+ xfer += this->primaryKeys[_i1287].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -5405,14 +5632,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->foreignKeys.clear();
- uint32_t _size1286;
- ::apache::thrift::protocol::TType _etype1289;
- xfer += iprot->readListBegin(_etype1289, _size1286);
- this->foreignKeys.resize(_size1286);
- uint32_t _i1290;
- for (_i1290 = 0; _i1290 < _size1286; ++_i1290)
+ uint32_t _size1288;
+ ::apache::thrift::protocol::TType _etype1291;
+ xfer += iprot->readListBegin(_etype1291, _size1288);
+ this->foreignKeys.resize(_size1288);
+ uint32_t _i1292;
+ for (_i1292 = 0; _i1292 < _size1288; ++_i1292)
{
- xfer += this->foreignKeys[_i1290].read(iprot);
+ xfer += this->foreignKeys[_i1292].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -5425,14 +5652,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->uniqueConstraints.clear();
- uint32_t _size1291;
- ::apache::thrift::protocol::TType _etype1294;
- xfer += iprot->readListBegin(_etype1294, _size1291);
- this->uniqueConstraints.resize(_size1291);
- uint32_t _i1295;
- for (_i1295 = 0; _i1295 < _size1291; ++_i1295)
+ uint32_t _size1293;
+ ::apache::thrift::protocol::TType _etype1296;
+ xfer += iprot->readListBegin(_etype1296, _size1293);
+ this->uniqueConstraints.resize(_size1293);
+ uint32_t _i1297;
+ for (_i1297 = 0; _i1297 < _size1293; ++_i1297)
{
- xfer += this->uniqueConstraints[_i1295].read(iprot);
+ xfer += this->uniqueConstraints[_i1297].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -5445,14 +5672,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->notNullConstraints.clear();
- uint32_t _size1296;
- ::apache::thrift::protocol::TType _etype1299;
- xfer += iprot->readListBegin(_etype1299, _size1296);
- this->notNullConstraints.resize(_size1296);
- uint32_t _i1300;
- for (_i1300 = 0; _i1300 < _size1296; ++_i1300)
+ uint32_t _size1298;
+ ::apache::thrift::protocol::TType _etype1301;
+ xfer += iprot->readListBegin(_etype1301, _size1298);
+ this->notNullConstraints.resize(_size1298);
+ uint32_t _i1302;
+ for (_i1302 = 0; _i1302 < _size1298; ++_i1302)
{
- xfer += this->notNullConstraints[_i1300].read(iprot);
+ xfer += this->notNullConstraints[_i1302].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -5465,14 +5692,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->defaultConstraints.clear();
- uint32_t _size1301;
- ::apache::thrift::protocol::TType _etype1304;
- xfer += iprot->readListBegin(_etype1304, _size1301);
- this->defaultConstraints.resize(_size1301);
- uint32_t _i1305;
- for (_i1305 = 0; _i1305 < _size1301; ++_i1305)
+ uint32_t _size1303;
+ ::apache::thrift::protocol::TType _etype1306;
+ xfer += iprot->readListBegin(_etype1306, _size1303);
+ this->defaultConstraints.resize(_size1303);
+ uint32_t _i1307;
+ for (_i1307 = 0; _i1307 < _size1303; ++_i1307)
{
- xfer += this->defaultConstraints[_i1305].read(iprot);
+ xfer += this->defaultConstraints[_i1307].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -5485,14 +5712,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->checkConstraints.clear();
- uint32_t _size1306;
- ::apache::thrift::protocol::TType _etype1309;
- xfer += iprot->readListBegin(_etype1309, _size1306);
- this->checkConstraints.resize(_size1306);
- uint32_t _i1310;
- for (_i1310 = 0; _i1310 < _size1306; ++_i1310)
+ uint32_t _size1308;
+ ::apache::thrift::protocol::TType _etype1311;
+ xfer += iprot->readListBegin(_etype1311, _size1308);
+ this->checkConstraints.resize(_size1308);
+ uint32_t _i1312;
+ for (_i1312 = 0; _i1312 < _size1308; ++_i1312)
{
- xfer += this->checkConstraints[_i1310].read(iprot);
+ xfer += this->checkConstraints[_i1312].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -5525,10 +5752,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->primaryKeys.size()));
- std::vector<SQLPrimaryKey> ::const_iterator _iter1311;
- for (_iter1311 = this->primaryKeys.begin(); _iter1311 != this->primaryKeys.end(); ++_iter1311)
+ std::vector<SQLPrimaryKey> ::const_iterator _iter1313;
+ for (_iter1313 = this->primaryKeys.begin(); _iter1313 != this->primaryKeys.end(); ++_iter1313)
{
- xfer += (*_iter1311).write(oprot);
+ xfer += (*_iter1313).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5537,10 +5764,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->foreignKeys.size()));
- std::vector<SQLForeignKey> ::const_iterator _iter1312;
- for (_iter1312 = this->foreignKeys.begin(); _iter1312 != this->foreignKeys.end(); ++_iter1312)
+ std::vector<SQLForeignKey> ::const_iterator _iter1314;
+ for (_iter1314 = this->foreignKeys.begin(); _iter1314 != this->foreignKeys.end(); ++_iter1314)
{
- xfer += (*_iter1312).write(oprot);
+ xfer += (*_iter1314).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5549,10 +5776,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 4);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->uniqueConstraints.size()));
- std::vector<SQLUniqueConstraint> ::const_iterator _iter1313;
- for (_iter1313 = this->uniqueConstraints.begin(); _iter1313 != this->uniqueConstraints.end(); ++_iter1313)
+ std::vector<SQLUniqueConstraint> ::const_iterator _iter1315;
+ for (_iter1315 = this->uniqueConstraints.begin(); _iter1315 != this->uniqueConstraints.end(); ++_iter1315)
{
- xfer += (*_iter1313).write(oprot);
+ xfer += (*_iter1315).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5561,10 +5788,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->notNullConstraints.size()));
- std::vector<SQLNotNullConstraint> ::const_iterator _iter1314;
- for (_iter1314 = this->notNullConstraints.begin(); _iter1314 != this->notNullConstraints.end(); ++_iter1314)
+ std::vector<SQLNotNullConstraint> ::const_iterator _iter1316;
+ for (_iter1316 = this->notNullConstraints.begin(); _iter1316 != this->notNullConstraints.end(); ++_iter1316)
{
- xfer += (*_iter1314).write(oprot);
+ xfer += (*_iter1316).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5573,10 +5800,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 6);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->defaultConstraints.size()));
- std::vector<SQLDefaultConstraint> ::const_iterator _iter1315;
- for (_iter1315 = this->defaultConstraints.begin(); _iter1315 != this->defaultConstraints.end(); ++_iter1315)
+ std::vector<SQLDefaultConstraint> ::const_iterator _iter1317;
+ for (_iter1317 = this->defaultConstraints.begin(); _iter1317 != this->defaultConstraints.end(); ++_iter1317)
{
- xfer += (*_iter1315).write(oprot);
+ xfer += (*_iter1317).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5585,10 +5812,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache:
xfer += oprot->writeFieldBegin("checkConstraints", ::apache::thrift::protocol::T_LIST, 7);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->checkConstraints.size()));
- std::vector<SQLCheckConstraint> ::const_iterator _iter1316;
- for (_iter1316 = this->checkConstraints.begin(); _iter1316 != this->checkConstraints.end(); ++_iter1316)
+ std::vector<SQLCheckConstraint> ::const_iterator _iter1318;
+ for (_iter1318 = this->checkConstraints.begin(); _iter1318 != this->checkConstraints.end(); ++_iter1318)
{
- xfer += (*_iter1316).write(oprot);
+ xfer += (*_iter1318).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5616,10 +5843,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->primaryKeys)).size()));
- std::vector<SQLPrimaryKey> ::const_iterator _iter1317;
- for (_iter1317 = (*(this->primaryKeys)).begin(); _iter1317 != (*(this->primaryKeys)).end(); ++_iter1317)
+ std::vector<SQLPrimaryKey> ::const_iterator _iter1319;
+ for (_iter1319 = (*(this->primaryKeys)).begin(); _iter1319 != (*(this->primaryKeys)).end(); ++_iter1319)
{
- xfer += (*_iter1317).write(oprot);
+ xfer += (*_iter1319).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5628,10 +5855,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->foreignKeys)).size()));
- std::vector<SQLForeignKey> ::const_iterator _iter1318;
- for (_iter1318 = (*(this->foreignKeys)).begin(); _iter1318 != (*(this->foreignKeys)).end(); ++_iter1318)
+ std::vector<SQLForeignKey> ::const_iterator _iter1320;
+ for (_iter1320 = (*(this->foreignKeys)).begin(); _iter1320 != (*(this->foreignKeys)).end(); ++_iter1320)
{
- xfer += (*_iter1318).write(oprot);
+ xfer += (*_iter1320).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5640,10 +5867,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 4);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->uniqueConstraints)).size()));
- std::vector<SQLUniqueConstraint> ::const_iterator _iter1319;
- for (_iter1319 = (*(this->uniqueConstraints)).begin(); _iter1319 != (*(this->uniqueConstraints)).end(); ++_iter1319)
+ std::vector<SQLUniqueConstraint> ::const_iterator _iter1321;
+ for (_iter1321 = (*(this->uniqueConstraints)).begin(); _iter1321 != (*(this->uniqueConstraints)).end(); ++_iter1321)
{
- xfer += (*_iter1319).write(oprot);
+ xfer += (*_iter1321).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5652,10 +5879,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 5);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->notNullConstraints)).size()));
- std::vector<SQLNotNullConstraint> ::const_iterator _iter1320;
- for (_iter1320 = (*(this->notNullConstraints)).begin(); _iter1320 != (*(this->notNullConstraints)).end(); ++_iter1320)
+ std::vector<SQLNotNullConstraint> ::const_iterator _iter1322;
+ for (_iter1322 = (*(this->notNullConstraints)).begin(); _iter1322 != (*(this->notNullConstraints)).end(); ++_iter1322)
{
- xfer += (*_iter1320).write(oprot);
+ xfer += (*_iter1322).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5664,10 +5891,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 6);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->defaultConstraints)).size()));
- std::vector<SQLDefaultConstraint> ::const_iterator _iter1321;
- for (_iter1321 = (*(this->defaultConstraints)).begin(); _iter1321 != (*(this->defaultConstraints)).end(); ++_iter1321)
+ std::vector<SQLDefaultConstraint> ::const_iterator _iter1323;
+ for (_iter1323 = (*(this->defaultConstraints)).begin(); _iter1323 != (*(this->defaultConstraints)).end(); ++_iter1323)
{
- xfer += (*_iter1321).write(oprot);
+ xfer += (*_iter1323).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -5676,10 +5903,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache
xfer += oprot->writeFieldBegin("checkConstraints", ::apache::thrift::protocol::T_LIST, 7);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->checkConstraints)).size()));
- std::vector<SQLCheckConstraint> ::const_iterator _iter1322;
- for (_iter1322 = (*(this->checkConstraints)).begin(); _iter1322 != (*(this->checkConstraints)).end(); ++_iter1322)
+ std::vector<SQLCheckConstraint> ::const_iterator _iter1324;
+ for (_iter1324 = (*(this->checkConstraints)).begin(); _iter1324 != (*(this->checkConstraints)).end(); ++_iter1324)
{
- xfer += (*_iter1322).write(oprot);
+ xfer += (*_iter1324).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -7847,14 +8074,14 @@ uint32_t ThriftHiveMetastore_truncate_table_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->partNames.clear();
- uint32_t _size1323;
- ::apache::thrift::protocol::TType _etype1326;
- xfer += iprot->readListBegin(_etype1326, _size1323);
- this->partNames.resize(_size1323);
- uint32_t _i1327;
- for (_i1327 = 0; _i1327 < _size1323; ++_i1327)
+ uint32_t _size1325;
+ ::apache::thrift::protocol::TType _etype1328;
+ xfer += iprot->readListBegin(_etype1328, _size1325);
+ this->partNames.resize(_size1325);
+ uint32_t _i1329;
+ for (_i1329 = 0; _i1329 < _size1325; ++_i1329)
{
- xfer += iprot->readString(this->partNames[_i1327]);
+ xfer += iprot->readString(this->partNames[_i1329]);
}
xfer += iprot->readListEnd();
}
@@ -7891,10 +8118,10 @@ uint32_t ThriftHiveMetastore_truncate_table_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->partNames.size()));
- std::vector<std::string> ::const_iterator _iter1328;
- for (_iter1328 = this->partNames.begin(); _iter1328 != this->partNames.end(); ++_iter1328)
+ std::vector<std::string> ::const_iterator _iter1330;
+ for (_iter1330 = this->partNames.begin(); _iter1330 != this->partNames.end(); ++_iter1330)
{
- xfer += oprot->writeString((*_iter1328));
+ xfer += oprot->writeString((*_iter1330));
}
xfer += oprot->writeListEnd();
}
@@ -7926,10 +8153,10 @@ uint32_t ThriftHiveMetastore_truncate_table_pargs::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->partNames)).size()));
- std::vector<std::string> ::const_iterator _iter1329;
- for (_iter1329 = (*(this->partNames)).begin(); _iter1329 != (*(this->partNames)).end(); ++_iter1329)
+ std::vector<std::string> ::const_iterator _iter1331;
+ for (_iter1331 = (*(this->partNames)).begin(); _iter1331 != (*(this->partNames)).end(); ++_iter1331)
{
- xfer += oprot->writeString((*_iter1329));
+ xfer += oprot->writeString((*_iter1331));
}
xfer += oprot->writeListEnd();
}
@@ -8173,14 +8400,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1330;
- ::apache::thrift::protocol::TType _etype1333;
- xfer += iprot->readListBegin(_etype1333, _size1330);
- this->success.resize(_size1330);
- uint32_t _i1334;
- for (_i1334 = 0; _i1334 < _size1330; ++_i1334)
+ uint32_t _size1332;
+ ::apache::thrift::protocol::TType _etype1335;
+ xfer += iprot->readListBegin(_etype1335, _size1332);
+ this->success.resize(_size1332);
+ uint32_t _i1336;
+ for (_i1336 = 0; _i1336 < _size1332; ++_i1336)
{
- xfer += iprot->readString(this->success[_i1334]);
+ xfer += iprot->readString(this->success[_i1336]);
}
xfer += iprot->readListEnd();
}
@@ -8219,10 +8446,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter1335;
- for (_iter1335 = this->success.begin(); _iter1335 != this->success.end(); ++_iter1335)
+ std::vector<std::string> ::const_iterator _iter1337;
+ for (_iter1337 = this->success.begin(); _iter1337 != this->success.end(); ++_iter1337)
{
- xfer += oprot->writeString((*_iter1335));
+ xfer += oprot->writeString((*_iter1337));
}
xfer += oprot->writeListEnd();
}
@@ -8267,14 +8494,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1336;
- ::apache::thrift::protocol::TType _etype1339;
- xfer += iprot->readListBegin(_etype1339, _size1336);
- (*(this->success)).resize(_size1336);
- uint32_t _i1340;
- for (_i1340 = 0; _i1340 < _size1336; ++_i1340)
+ uint32_t _size1338;
+ ::apache::thrift::protocol::TType _etype1341;
+ xfer += iprot->readListBegin(_etype1341, _size1338);
+ (*(this->success)).resize(_size1338);
+ uint32_t _i1342;
+ for (_i1342 = 0; _i1342 < _size1338; ++_i1342)
{
- xfer += iprot->readString((*(this->success))[_i1340]);
+ xfer += iprot->readString((*(this->success))[_i1342]);
}
xfer += iprot->readListEnd();
}
@@ -8444,14 +8671,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::read(::apache::thrift::p
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1341;
- ::apache::thrift::protocol::TType _etype1344;
- xfer += iprot->readListBegin(_etype1344, _size1341);
- this->success.resize(_size1341);
- uint32_t _i1345;
- for (_i1345 = 0; _i1345 < _size1341; ++_i1345)
+ uint32_t _size1343;
+ ::apache::thrift::protocol::TType _etype1346;
+ xfer += iprot->readListBegin(_etype1346, _size1343);
+ this->success.resize(_size1343);
+ uint32_t _i1347;
+ for (_i1347 = 0; _i1347 < _size1343; ++_i1347)
{
- xfer += iprot->readString(this->success[_i1345]);
+ xfer += iprot->readString(this->success[_i1347]);
}
xfer += iprot->readListEnd();
}
@@ -8490,10 +8717,10 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::write(::apache::thrift::
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter1346;
- for (_iter1346 = this->success.begin(); _iter1346 != this->success.end(); ++_iter1346)
+ std::vector<std::string> ::const_iterator _iter1348;
+ for (_iter1348 = this->success.begin(); _iter1348 != this->success.end(); ++_iter1348)
{
- xfer += oprot->writeString((*_iter1346));
+ xfer += oprot->writeString((*_iter1348));
}
xfer += oprot->writeListEnd();
}
@@ -8538,14 +8765,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1347;
- ::apache::thrift::protocol::TType _etype1350;
- xfer += iprot->readListBegin(_etype1350, _size1347);
- (*(this->success)).resize(_size1347);
- uint32_t _i1351;
- for (_i1351 = 0; _i1351 < _size1347; ++_i1351)
+ uint32_t _size1349;
+ ::apache::thrift::protocol::TType _etype1352;
+ xfer += iprot->readListBegin(_etype1352, _size1349);
+ (*(this->success)).resize(_size1349);
+ uint32_t _i1353;
+ for (_i1353 = 0; _i1353 < _size1349; ++_i1353)
{
- xfer += iprot->readString((*(this->success))[_i1351]);
+ xfer += iprot->readString((*(this->success))[_i1353]);
}
xfer += iprot->readListEnd();
}
@@ -8683,14 +8910,14 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_result::read(:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1352;
- ::apache::thrift::protocol::TType _etype1355;
- xfer += iprot->readListBegin(_etype1355, _size1352);
- this->success.resize(_size1352);
- uint32_t _i1356;
- for (_i1356 = 0; _i1356 < _size1352; ++_i1356)
+ uint32_t _size1354;
+ ::apache::thrift::protocol::TType _etype1357;
+ xfer += iprot->readListBegin(_etype1357, _size1354);
+ this->success.resize(_size1354);
+ uint32_t _i1358;
+ for (_i1358 = 0; _i1358 < _size1354; ++_i1358)
{
- xfer += iprot->readString(this->success[_i1356]);
+ xfer += iprot->readString(this->success[_i1358]);
}
xfer += iprot->readListEnd();
}
@@ -8729,10 +8956,10 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_result::write(
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter1357;
- for (_iter1357 = this->success.begin(); _iter1357 != this->success.end(); ++_iter1357)
+ std::vector<std::string> ::const_iterator _iter1359;
+ for (_iter1359 = this->success.begin(); _iter1359 != this->success.end(); ++_iter1359)
{
- xfer += oprot->writeString((*_iter1357));
+ xfer += oprot->writeString((*_iter1359));
}
xfer += oprot->writeListEnd();
}
@@ -8777,14 +9004,14 @@ uint32_t ThriftHiveMetastore_get_materialized_views_for_rewriting_presult::read(
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1358;
- ::apache::thrift::protocol::TType _etype1361;
- xfer += iprot->readListBegin(_etype1361, _size1358);
- (*(this->success)).resize(_size1358);
- uint32_t _i1362;
- for (_i1362 = 0; _i1362 < _size1358; ++_i1362)
+ uint32_t _size1360;
+ ::apache::thrift::protocol::TType _etype1363;
+ xfer += iprot->readListBegin(_etype1363, _size1360);
+ (*(this->success)).resize(_size1360);
+ uint32_t _i1364;
+ for (_i1364 = 0; _i1364 < _size1360; ++_i1364)
{
- xfer += iprot->readString((*(this->success))[_i1362]);
+ xfer += iprot->readString((*(this->success))[_i1364]);
}
xfer += iprot->readListEnd();
}
@@ -8859,14 +9086,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->tbl_types.clear();
- uint32_t _size1363;
- ::apache::thrift::protocol::TType _etype1366;
- xfer += iprot->readListBegin(_etype1366, _size1363);
- this->tbl_types.resize(_size1363);
- uint32_t _i1367;
- for (_i1367 = 0; _i1367 < _size1363; ++_i1367)
+ uint32_t _size1365;
+ ::apache::thrift::protocol::TType _etype1368;
+ xfer += iprot->readListBegin(_etype1368, _size1365);
+ this->tbl_types.resize(_size1365);
+ uint32_t _i1369;
+ for (_i1369 = 0; _i1369 < _size1365; ++_i1369)
{
- xfer += iprot->readString(this->tbl_types[_i1367]);
+ xfer += iprot->readString(this->tbl_types[_i1369]);
}
xfer += iprot->readListEnd();
}
@@ -8903,10 +9130,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->tbl_types.size()));
- std::vector<std::string> ::const_iterator _iter1368;
- for (_iter1368 = this->tbl_types.begin(); _iter1368 != this->tbl_types.end(); ++_iter1368)
+ std::vector<std::string> ::const_iterator _iter1370;
+ for (_iter1370 = this->tbl_types.begin(); _iter1370 != this->tbl_types.end(); ++_iter1370)
{
- xfer += oprot->writeString((*_iter1368));
+ xfer += oprot->writeString((*_iter1370));
}
xfer += oprot->writeListEnd();
}
@@ -8938,10 +9165,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->tbl_types)).size()));
- std::vector<std::string> ::const_iterator _iter1369;
- for (_iter1369 = (*(this->tbl_types)).begin(); _iter1369 != (*(this->tbl_types)).end(); ++_iter1369)
+ std::vector<std::string> ::const_iterator _iter1371;
+ for (_iter1371 = (*(this->tbl_types)).begin(); _iter1371 != (*(this->tbl_types)).end(); ++_iter1371)
{
- xfer += oprot->writeString((*_iter1369));
+ xfer += oprot->writeString((*_iter1371));
}
xfer += oprot->writeListEnd();
}
@@ -8982,14 +9209,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1370;
- ::apache::thrift::protocol::TType _etype1373;
- xfer += iprot->readListBegin(_etype1373, _size1370);
- this->success.resize(_size1370);
- uint32_t _i1374;
- for (_i1374 = 0; _i1374 < _size1370; ++_i1374)
+ uint32_t _size1372;
+ ::apache::thrift::protocol::TType _etype1375;
+ xfer += iprot->readListBegin(_etype1375, _size1372);
+ this->success.resize(_size1372);
+ uint32_t _i1376;
+ for (_i1376 = 0; _i1376 < _size1372; ++_i1376)
{
- xfer += this->success[_i1374].read(iprot);
+ xfer += this->success[_i1376].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -9028,10 +9255,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<TableMeta> ::const_iterator _iter1375;
- for (_iter1375 = this->success.begin(); _iter1375 != this->success.end(); ++_iter1375)
+ std::vector<TableMeta> ::const_iterator _iter1377;
+ for (_iter1377 = this->success.begin(); _iter1377 != this->success.end(); ++_iter1377)
{
- xfer += (*_iter1375).write(oprot);
+ xfer += (*_iter1377).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -9076,14 +9303,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1376;
- ::apache::thrift::protocol::TType _etype1379;
- xfer += iprot->readListBegin(_etype1379, _size1376);
- (*(this->success)).resize(_size1376);
- uint32_t _i1380;
- for (_i1380 = 0; _i1380 < _size1376; ++_i1380)
+ uint32_t _size1378;
+ ::apache::thrift::protocol::TType _etype1381;
+ xfer += iprot->readListBegin(_etype1381, _size1378);
+ (*(this->success)).resize(_size1378);
+ uint32_t _i1382;
+ for (_i1382 = 0; _i1382 < _size1378; ++_i1382)
{
- xfer += (*(this->success))[_i1380].read(iprot);
+ xfer += (*(this->success))[_i1382].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -9221,14 +9448,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1381;
- ::apache::thrift::protocol::TType _etype1384;
- xfer += iprot->readListBegin(_etype1384, _size1381);
- this->success.resize(_size1381);
- uint32_t _i1385;
- for (_i1385 = 0; _i1385 < _size1381; ++_i1385)
+ uint32_t _size1383;
+ ::apache::thrift::protocol::TType _etype1386;
+ xfer += iprot->readListBegin(_etype1386, _size1383);
+ this->success.resize(_size1383);
+ uint32_t _i1387;
+ for (_i1387 = 0; _i1387 < _size1383; ++_i1387)
{
- xfer += iprot->readString(this->success[_i1385]);
+ xfer += iprot->readString(this->success[_i1387]);
}
xfer += iprot->readListEnd();
}
@@ -9267,10 +9494,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter1386;
- for (_iter1386 = this->success.begin(); _iter1386 != this->success.end(); ++_iter1386)
+ std::vector<std::string> ::const_iterator _iter1388;
+ for (_iter1388 = this->success.begin(); _iter1388 != this->success.end(); ++_iter1388)
{
- xfer += oprot->writeString((*_iter1386));
+ xfer += oprot->writeString((*_iter1388));
}
xfer += oprot->writeListEnd();
}
@@ -9315,14 +9542,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1387;
- ::apache::thrift::protocol::TType _etype1390;
- xfer += iprot->readListBegin(_etype1390, _size1387);
- (*(this->success)).resize(_size1387);
- uint32_t _i1391;
- for (_i1391 = 0; _i1391 < _size1387; ++_i1391)
+ uint32_t _size1389;
+ ::apache::thrift::protocol::TType _etype1392;
+ xfer += iprot->readListBegin(_etype1392, _size1389);
+ (*(this->success)).resize(_size1389);
+ uint32_t _i1393;
+ for (_i1393 = 0; _i1393 < _size1389; ++_i1393)
{
- xfer += iprot->readString((*(this->success))[_i1391]);
+ xfer += iprot->readString((*(this->success))[_i1393]);
}
xfer += iprot->readListEnd();
}
@@ -9632,14 +9859,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->tbl_names.clear();
- uint32_t _size1392;
- ::apache::thrift::protocol::TType _etype1395;
- xfer += iprot->readListBegin(_etype1395, _size1392);
- this->tbl_names.resize(_size1392);
- uint32_t _i1396;
- for (_i1396 = 0; _i1396 < _size1392; ++_i1396)
+ uint32_t _size1394;
+ ::apache::thrift::protocol::TType _etype1397;
+ xfer += iprot->readListBegin(_etype1397, _size1394);
+ this->tbl_names.resize(_size1394);
+ uint32_t _i1398;
+ for (_i1398 = 0; _i1398 < _size1394; ++_i1398)
{
- xfer += iprot->readString(this->tbl_names[_i1396]);
+ xfer += iprot->readString(this->tbl_names[_i1398]);
}
xfer += iprot->readListEnd();
}
@@ -9672,10 +9899,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr
xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->tbl_names.size()));
- std::vector<std::string> ::const_iterator _iter1397;
- for (_iter1397 = this->tbl_names.begin(); _iter1397 != this->tbl_names.end(); ++_iter1397)
+ std::vector<std::string> ::const_iterator _iter1399;
+ for (_iter1399 = this->tbl_names.begin(); _iter1399 != this->tbl_names.end(); ++_iter1399)
{
- xfer += oprot->writeString((*_iter1397));
+ xfer += oprot->writeString((*_iter1399));
}
xfer += oprot->writeListEnd();
}
@@ -9703,10 +9930,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th
xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->tbl_names)).size()));
- std::vector<std::string> ::const_iterator _iter1398;
- for (_iter1398 = (*(this->tbl_names)).begin(); _iter1398 != (*(this->tbl_names)).end(); ++_iter1398)
+ std::vector<std::string> ::const_iterator _iter1400;
+ for (_iter1400 = (*(this->tbl_names)).begin(); _iter1400 != (*(this->tbl_names)).end(); ++_iter1400)
{
- xfer += oprot->writeString((*_iter1398));
+ xfer += oprot->writeString((*_iter1400));
}
xfer += oprot->writeListEnd();
}
@@ -9747,14 +9974,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1399;
- ::apache::thrift::protocol::TType _etype1402;
- xfer += iprot->readListBegin(_etype1402, _size1399);
- this->success.resize(_size1399);
- uint32_t _i1403;
- for (_i1403 = 0; _i1403 < _size1399; ++_i1403)
+ uint32_t _size1401;
+ ::apache::thrift::protocol::TType _etype1404;
+ xfer += iprot->readListBegin(_etype1404, _size1401);
+ this->success.resize(_size1401);
+ uint32_t _i1405;
+ for (_i1405 = 0; _i1405 < _size1401; ++_i1405)
{
- xfer += this->success[_i1403].read(iprot);
+ xfer += this->success[_i1405].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -9785,10 +10012,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::vector<Table> ::const_iterator _iter1404;
- for (_iter1404 = this->success.begin(); _iter1404 != this->success.end(); ++_iter1404)
+ std::vector<Table> ::const_iterator _iter1406;
+ for (_iter1406 = this->success.begin(); _iter1406 != this->success.end(); ++_iter1406)
{
- xfer += (*_iter1404).write(oprot);
+ xfer += (*_iter1406).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -9829,14 +10056,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1405;
- ::apache::thrift::protocol::TType _etype1408;
- xfer += iprot->readListBegin(_etype1408, _size1405);
- (*(this->success)).resize(_size1405);
- uint32_t _i1409;
- for (_i1409 = 0; _i1409 < _size1405; ++_i1409)
+ uint32_t _size1407;
+ ::apache::thrift::protocol::TType _etype1410;
+ xfer += iprot->readListBegin(_etype1410, _size1407);
+ (*(this->success)).resize(_size1407);
+ uint32_t _i1411;
+ for (_i1411 = 0; _i1411 < _size1407; ++_i1411)
{
- xfer += (*(this->success))[_i1409].read(iprot);
+ xfer += (*(this->success))[_i1411].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -10369,14 +10596,14 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_args::read(::
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->tbl_names.clear();
- uint32_t _size1410;
- ::apache::thrift::protocol::TType _etype1413;
- xfer += iprot->readListBegin(_etype1413, _size1410);
- this->tbl_names.resize(_size1410);
- uint32_t _i1414;
- for (_i1414 = 0; _i1414 < _size1410; ++_i1414)
+ uint32_t _size1412;
+ ::apache::thrift::protocol::TType _etype1415;
+ xfer += iprot->readListBegin(_etype1415, _size1412);
+ this->tbl_names.resize(_size1412);
+ uint32_t _i1416;
+ for (_i1416 = 0; _i1416 < _size1412; ++_i1416)
{
- xfer += iprot->readString(this->tbl_names[_i1414]);
+ xfer += iprot->readString(this->tbl_names[_i1416]);
}
xfer += iprot->readListEnd();
}
@@ -10409,10 +10636,10 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_args::write(:
xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->tbl_names.size()));
- std::vector<std::string> ::const_iterator _iter1415;
- for (_iter1415 = this->tbl_names.begin(); _iter1415 != this->tbl_names.end(); ++_iter1415)
+ std::vector<std::string> ::const_iterator _iter1417;
+ for (_iter1417 = this->tbl_names.begin(); _iter1417 != this->tbl_names.end(); ++_iter1417)
{
- xfer += oprot->writeString((*_iter1415));
+ xfer += oprot->writeString((*_iter1417));
}
xfer += oprot->writeListEnd();
}
@@ -10440,10 +10667,10 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_pargs::write(
xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->tbl_names)).size()));
- std::vector<std::string> ::const_iterator _iter1416;
- for (_iter1416 = (*(this->tbl_names)).begin(); _iter1416 != (*(this->tbl_names)).end(); ++_iter1416)
+ std::vector<std::string> ::const_iterator _iter1418;
+ for (_iter1418 = (*(this->tbl_names)).begin(); _iter1418 != (*(this->tbl_names)).end(); ++_iter1418)
{
- xfer += oprot->writeString((*_iter1416));
+ xfer += oprot->writeString((*_iter1418));
}
xfer += oprot->writeListEnd();
}
@@ -10484,17 +10711,17 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_result::read(
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->success.clear();
- uint32_t _size1417;
- ::apache::thrift::protocol::TType _ktype1418;
- ::apache::thrift::protocol::TType _vtype1419;
- xfer += iprot->readMapBegin(_ktype1418, _vtype1419, _size1417);
- uint32_t _i1421;
- for (_i1421 = 0; _i1421 < _size1417; ++_i1421)
+ uint32_t _size1419;
+ ::apache::thrift::protocol::TType _ktype1420;
+ ::apache::thrift::protocol::TType _vtype1421;
+ xfer += iprot->readMapBegin(_ktype1420, _vtype1421, _size1419);
+ uint32_t _i1423;
+ for (_i1423 = 0; _i1423 < _size1419; ++_i1423)
{
- std::string _key1422;
- xfer += iprot->readString(_key1422);
- Materialization& _val1423 = this->success[_key1422];
- xfer += _val1423.read(iprot);
+ std::string _key1424;
+ xfer += iprot->readString(_key1424);
+ Materialization& _val1425 = this->success[_key1424];
+ xfer += _val1425.read(iprot);
}
xfer += iprot->readMapEnd();
}
@@ -10549,11 +10776,11 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_result::write
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
- std::map<std::string, Materialization> ::const_iterator _iter1424;
- for (_iter1424 = this->success.begin(); _iter1424 != this->success.end(); ++_iter1424)
+ std::map<std::string, Materialization> ::const_iterator _iter1426;
+ for (_iter1426 = this->success.begin(); _iter1426 != this->success.end(); ++_iter1426)
{
- xfer += oprot->writeString(_iter1424->first);
- xfer += _iter1424->second.write(oprot);
+ xfer += oprot->writeString(_iter1426->first);
+ xfer += _iter1426->second.write(oprot);
}
xfer += oprot->writeMapEnd();
}
@@ -10606,17 +10833,17 @@ uint32_t ThriftHiveMetastore_get_materialization_invalidation_info_presult::read
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
(*(this->success)).clear();
- uint32_t _size1425;
- ::apache::thrift::protocol::TType _ktype1426;
- ::apache::thrift::protocol::TType _vtype1427;
- xfer += iprot->readMapBegin(_ktype1426, _vtype1427, _size1425);
- uint32_t _i1429;
- for (_i1429 = 0; _i1429 < _size1425; ++_i1429)
+ uint32_t _size1427;
+ ::apache::thrift::protocol::TType _ktype1428;
+ ::apache::thrift::protocol::TType _vtype1429;
+ xfer += iprot->readMapBegin(_ktype1428, _vtype1429, _size1427);
+ uint32_t _i1431;
+ for (_i1431 = 0; _i1431 < _size1427; ++_i1431)
{
- std::string _key1430;
- xfer += iprot->readString(_key1430);
- Materialization& _val1431 = (*(this->success))[_key1430];
- xfer += _val1431.read(iprot);
+ std::string _key1432;
+ xfer += iprot->readString(_key1432);
+ Materialization& _val1433 = (*(this->success))[_key1432];
+ xfer += _val1433.read(iprot);
}
xfer += iprot->readMapEnd();
}
@@ -11077,14 +11304,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size1432;
- ::apache::thrift::protocol::TType _etype1435;
- xfer += iprot->readListBegin(_etype1435, _size1432);
- this->success.resize(_size1432);
- uint32_t _i1436;
- for (_i1436 = 0; _i1436 < _size1432; ++_i1436)
+ uint32_t _size1434;
+ ::apache::thrift::protocol::TType _etype1437;
+ xfer += iprot->readListBegin(_etype1437, _size1434);
+ this->success.resize(_size1434);
+ uint32_t _i1438;
+ for (_i1438 = 0; _i1438 < _size1434; ++_i1438)
{
- xfer += iprot->readString(this->success[_i1436]);
+ xfer += iprot->readString(this->success[_i1438]);
}
xfer += iprot->readListEnd();
}
@@ -11139,10 +11366,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
- std::vector<std::string> ::const_iterator _iter1437;
- for (_iter1437 = this->success.begin(); _iter1437 != this->success.end(); ++_iter1437)
+ std::vector<std::string> ::const_iterator _iter1439;
+ for (_iter1439 = this->success.begin(); _iter1439 != this->success.end(); ++_iter1439)
{
- xfer += oprot->writeString((*_iter1437));
+ xfer += oprot->writeString((*_iter1439));
}
xfer += oprot->writeListEnd();
}
@@ -11195,14 +11422,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size1438;
- ::apache::thrift::protocol::TType _etype1441;
- xfer += iprot->readListBegin(_etype1441, _size1438);
- (*(this->success)).resize(_size1438);
- uint32_t _i1442;
- for (_i1442 = 0; _i1442 < _size1438; ++_i1442)
+ uint32_t _size1440;
+ ::apache::thrift::protocol::TType _etype1443;
+ xfer += iprot->readListBegin(_etype1443, _size1440);
+ (*(this->success)).resize(_size1440);
+ uint32_t _i1444;
+ for (_i1444 = 0; _i1444 < _size1440; ++_i1444)
{
- xfer += iprot->readString((*(this->success))[_i1442]);
+ xfer += iprot->readString((*(this->success))[_i1444]);
}
xfer += iprot->readListEnd();
}
@@ -12536,14 +12763,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->new_parts.clear();
- uint32_t _size1443;
- ::apache::thrift::protocol::TType _etype1446;
- xfer += iprot->readListBegin(_etype1446, _size1443);
- this->new_parts.resize(_size1443);
- uint32_t _i1447;
- for (_i1447 = 0; _i1447 < _size1443; ++_i1447)
+ uint32_t _size1445;
+ ::apache::thrift::protocol::TType _etype1448;
+ xfer += iprot->readListBegin(_etype1448, _size1445);
+ this->new_parts.resize(_size1445);
+ uint32_t _i1449;
+ for (_i1449 = 0; _i1449 < _size1445; ++_i1449)
{
- xfer += this->new_parts[_i1447].read(iprot);
+ xfer += this->new_parts[_i1449].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -12572,10 +12799,10 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->new_parts.size()));
- std::vector<Partition> ::const_iterator _iter1448;
- for (_iter1448 = this->new_parts.begin(); _iter1448 != this->new_parts.end(); ++_iter1448)
+ std::vector<Partition> ::const_iterator _iter1450;
+ for (_iter1450 = this->new_parts.begin(); _iter1450 != this->new_parts.end(); ++_iter1450)
{
- xfer += (*_iter1448).write(oprot);
+ xfer += (*_iter1450).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -12599,10 +12826,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->new_parts)).size()));
- std::vector<Partition> ::const_iterator _iter1449;
- for (_iter1449 = (*(this->new_parts)).begin(); _iter1449 != (*(this->new_parts)).end(); ++_iter1449)
+ std::vector<Partition> ::const_iterator _iter1451;
+ for (_iter1451 = (*(this->new_parts)).begin(); _iter1451 != (*(this->new_parts)).end(); ++_iter1451)
{
- xfer += (*_iter1449).write(oprot);
+ xfer += (*_iter1451).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -12811,14 +13038,14 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->new_parts.clear();
- uint32_t _size1450;
- ::apache::thrift::protocol::TType _etype1453;
- xfer += iprot->readListBegin(_etype1453, _size1450);
- this->new_parts.resize(_size1450);
- uint32_t _i1454;
- for (_i1454 = 0; _i1454 < _size1450; ++_i1454)
+ uint32_t _size1452;
+ ::apache::thrift::protocol::TType _etype1455;
+ xfer += iprot->readListBegin(_etype1455, _size1452);
+ this->new_parts.resize(_size1452);
+ uint32_t _i1456;
+ for (_i1456 = 0; _i1456 < _size1452; ++_i1456)
{
- xfer += this->new_parts[_i1454].read(iprot);
+ xfer += this->new_parts[_i1456].read(iprot);
}
xfer += iprot->readListEnd();
}
@@ -12847,10 +13074,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift::
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->new_parts.size()));
- std::vector<PartitionSpec> ::const_iterator _iter1455;
- for (_iter1455 = this->new_parts.begin(); _iter1455 != this->new_parts.end(); ++_iter1455)
+ std::vector<PartitionSpec> ::const_iterator _iter1457;
+ for (_iter1457 = this->new_parts.begin(); _iter1457 != this->new_parts.end(); ++_iter1457)
{
- xfer += (*_iter1455).write(oprot);
+ xfer += (*_iter1457).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -12874,10 +13101,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift:
xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->new_parts)).size()));
- std::vector<PartitionSpec> ::const_iterator _iter1456;
- for (_iter1456 = (*(this->new_parts)).begin(); _iter1456 != (*(this->new_parts)).end(); ++_iter1456)
+ std::vector<PartitionSpec> ::const_iterator _iter1458;
+ for (_iter1458 = (*(this->new_parts)).begin(); _iter1458 != (*(this->new_parts)).end(); ++_iter1458)
{
- xfer += (*_iter1456).write(oprot);
+ xfer += (*_iter1458).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -13102,14 +13329,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size1457;
- ::apache::thrift::protocol::TType _etype1460;
- xfer += iprot->readListBegin(_etype1460, _size1457);
- this->part_vals.resize(_size1457);
- uint32_t _i1461;
- for (_i1461 = 0; _i1461 < _size1457; ++_i1461)
+ uint32_t _size1459;
+ ::apache::thrift::protocol::TType _etype1462;
+ xfer += iprot->readListBegin(_etype1462, _size1459);
+ this->part_vals.resize(_size1459);
+ uint32_t _i1463;
+ for (_i1463 = 0; _i1463 < _size1459; ++_i1463)
{
- xfer += iprot->readString(this->part_vals[_i1461]);
+ xfer += iprot->readString(this->part_vals[_i1463]);
}
xfer += iprot->readListEnd();
}
@@ -13146,10 +13373,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
- std::vector<std::string> ::const_iterator _iter1462;
- for (_iter1462 = this->part_vals.begin(); _iter1462 != this->part_vals.end(); ++_iter1462)
+ std::vector<std::string> ::const_iterator _iter1464;
+ for (_iter1464 = this->part_vals.begin(); _iter1464 != this->part_vals.end(); ++_iter1464)
{
- xfer += oprot->writeString((*_iter1462));
+ xfer += oprot->writeString((*_iter1464));
}
xfer += oprot->writeListEnd();
}
@@ -13181,10 +13408,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
- std::vector<std::string> ::const_iterator _iter1463;
- for (_iter1463 = (*(this->part_vals)).begin(); _iter1463 != (*(this->part_vals)).end(); ++_iter1463)
+ std::vector<std::string> ::const_iterator _iter1465;
+ for (_iter1465 = (*(this->part_vals)).begin(); _iter1465 != (*(this->part_vals)).end(); ++_iter1465)
{
- xfer += oprot->writeString((*_iter1463));
+ xfer += oprot->writeString((*_iter1465));
}
xfer += oprot->writeListEnd();
}
@@ -13656,14 +13883,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size1464;
- ::apache::thrift::protocol::TType _etype1467;
- xfer += iprot->readListBegin(_etype1467, _size1464);
- this->part_vals.resize(_size1464);
- uint32_t _i1468;
- for (_i1468 = 0; _i1468 < _size1464; ++_i1468)
+ uint32_t _size1466;
+ ::apache::thrift::protocol::TType _etype1469;
+ xfer += iprot->readListBegin(_etype1469, _size1466);
+ this->part_vals.resize(_size1466);
+ uint32_t _i1470;
+ for (_i1470 = 0; _i1470 < _size1466; ++_i1470)
{
- xfer += iprot->readString(this->part_vals[_i1468]);
+ xfer += iprot->readString(this->part_vals[_i1470]);
}
xfer += iprot->readListEnd();
}
@@ -13708,10 +13935,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::wri
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
- std::vector<std::string> ::const_iterator _iter1469;
- for (_iter1469 = this->part_vals.begin(); _iter1469 != this->part_vals.end(); ++_iter1469)
+ std::vector<std::string> ::const_iterator _iter1471;
+ for (_iter1471 = this->part_vals.begin(); _iter1471 != this->part_vals.end(); ++_iter1471)
{
- xfer += oprot->writeString((*_iter1469));
+ xfer += oprot->writeString((*_iter1471));
}
xfer += oprot->writeListEnd();
}
@@ -13747,10 +13974,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::wr
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
- std::vector<std::string> ::const_iterator _iter1470;
- for (_iter1470 = (*(this->part_vals)).begin(); _iter1470 != (*(this->part_vals)).end(); ++_iter1470)
+ std::vector<std::string> ::const_iterator _iter1472;
+ for (_iter1472 = (*(this->part_vals)).begin(); _iter1472 != (*(this->part_vals)).end(); ++_iter1472)
{
- xfer += oprot->writeString((*_iter1470));
+ xfer += oprot->writeString((*_iter1472));
}
xfer += oprot->writeListEnd();
}
@@ -14553,14 +14780,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size1471;
- ::apache::thrift::protocol::TType _etype1474;
- xfer += iprot->readListBegin(_etype1474, _size1471);
- this->part_vals.resize(_size1471);
- uint32_t _i1475;
- for (_i1475 = 0; _i1475 < _size1471; ++_i1475)
+ uint32_t _size1473;
+ ::apache::thrift::protocol::TType _etype1476;
+ xfer += iprot->readListBegin(_etype1476, _size1473);
+ this->part_vals.resize(_size1473);
+ uint32_t _i1477;
+ for (_i1477 = 0; _i1477 < _size1473; ++_i1477)
{
- xfer += iprot->readString(this->part_vals[_i1475]);
+ xfer += iprot->readString(this->part_vals[_i1477]);
}
xfer += iprot->readListEnd();
}
@@ -14605,10 +14832,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
- std::vector<std::str
<TRUNCATED>
[5/7] hive git commit: HIVE-19688 Make catalogs updatable (Alan Gates
reviewed by Daniel Dai)
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
index b7987e3..1d57aee 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
@@ -25,6 +25,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService
virtual void getMetaConf(std::string& _return, const std::string& key) = 0;
virtual void setMetaConf(const std::string& key, const std::string& value) = 0;
virtual void create_catalog(const CreateCatalogRequest& catalog) = 0;
+ virtual void alter_catalog(const AlterCatalogRequest& rqst) = 0;
virtual void get_catalog(GetCatalogResponse& _return, const GetCatalogRequest& catName) = 0;
virtual void get_catalogs(GetCatalogsResponse& _return) = 0;
virtual void drop_catalog(const DropCatalogRequest& catName) = 0;
@@ -266,6 +267,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p
void create_catalog(const CreateCatalogRequest& /* catalog */) {
return;
}
+ void alter_catalog(const AlterCatalogRequest& /* rqst */) {
+ return;
+ }
void get_catalog(GetCatalogResponse& /* _return */, const GetCatalogRequest& /* catName */) {
return;
}
@@ -1248,6 +1252,126 @@ class ThriftHiveMetastore_create_catalog_presult {
};
+typedef struct _ThriftHiveMetastore_alter_catalog_args__isset {
+ _ThriftHiveMetastore_alter_catalog_args__isset() : rqst(false) {}
+ bool rqst :1;
+} _ThriftHiveMetastore_alter_catalog_args__isset;
+
+class ThriftHiveMetastore_alter_catalog_args {
+ public:
+
+ ThriftHiveMetastore_alter_catalog_args(const ThriftHiveMetastore_alter_catalog_args&);
+ ThriftHiveMetastore_alter_catalog_args& operator=(const ThriftHiveMetastore_alter_catalog_args&);
+ ThriftHiveMetastore_alter_catalog_args() {
+ }
+
+ virtual ~ThriftHiveMetastore_alter_catalog_args() throw();
+ AlterCatalogRequest rqst;
+
+ _ThriftHiveMetastore_alter_catalog_args__isset __isset;
+
+ void __set_rqst(const AlterCatalogRequest& val);
+
+ bool operator == (const ThriftHiveMetastore_alter_catalog_args & rhs) const
+ {
+ if (!(rqst == rhs.rqst))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_alter_catalog_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_alter_catalog_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class ThriftHiveMetastore_alter_catalog_pargs {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_alter_catalog_pargs() throw();
+ const AlterCatalogRequest* rqst;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_alter_catalog_result__isset {
+ _ThriftHiveMetastore_alter_catalog_result__isset() : o1(false), o2(false), o3(false) {}
+ bool o1 :1;
+ bool o2 :1;
+ bool o3 :1;
+} _ThriftHiveMetastore_alter_catalog_result__isset;
+
+class ThriftHiveMetastore_alter_catalog_result {
+ public:
+
+ ThriftHiveMetastore_alter_catalog_result(const ThriftHiveMetastore_alter_catalog_result&);
+ ThriftHiveMetastore_alter_catalog_result& operator=(const ThriftHiveMetastore_alter_catalog_result&);
+ ThriftHiveMetastore_alter_catalog_result() {
+ }
+
+ virtual ~ThriftHiveMetastore_alter_catalog_result() throw();
+ NoSuchObjectException o1;
+ InvalidOperationException o2;
+ MetaException o3;
+
+ _ThriftHiveMetastore_alter_catalog_result__isset __isset;
+
+ void __set_o1(const NoSuchObjectException& val);
+
+ void __set_o2(const InvalidOperationException& val);
+
+ void __set_o3(const MetaException& val);
+
+ bool operator == (const ThriftHiveMetastore_alter_catalog_result & rhs) const
+ {
+ if (!(o1 == rhs.o1))
+ return false;
+ if (!(o2 == rhs.o2))
+ return false;
+ if (!(o3 == rhs.o3))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_alter_catalog_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_alter_catalog_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_alter_catalog_presult__isset {
+ _ThriftHiveMetastore_alter_catalog_presult__isset() : o1(false), o2(false), o3(false) {}
+ bool o1 :1;
+ bool o2 :1;
+ bool o3 :1;
+} _ThriftHiveMetastore_alter_catalog_presult__isset;
+
+class ThriftHiveMetastore_alter_catalog_presult {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_alter_catalog_presult() throw();
+ NoSuchObjectException o1;
+ InvalidOperationException o2;
+ MetaException o3;
+
+ _ThriftHiveMetastore_alter_catalog_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
typedef struct _ThriftHiveMetastore_get_catalog_args__isset {
_ThriftHiveMetastore_get_catalog_args__isset() : catName(false) {}
bool catName :1;
@@ -26108,6 +26232,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public
void create_catalog(const CreateCatalogRequest& catalog);
void send_create_catalog(const CreateCatalogRequest& catalog);
void recv_create_catalog();
+ void alter_catalog(const AlterCatalogRequest& rqst);
+ void send_alter_catalog(const AlterCatalogRequest& rqst);
+ void recv_alter_catalog();
void get_catalog(GetCatalogResponse& _return, const GetCatalogRequest& catName);
void send_get_catalog(const GetCatalogRequest& catName);
void recv_get_catalog(GetCatalogResponse& _return);
@@ -26730,6 +26857,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP
void process_getMetaConf(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_setMetaConf(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_create_catalog(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
+ void process_alter_catalog(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_catalog(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_get_catalogs(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
void process_drop_catalog(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
@@ -26940,6 +27068,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP
processMap_["getMetaConf"] = &ThriftHiveMetastoreProcessor::process_getMetaConf;
processMap_["setMetaConf"] = &ThriftHiveMetastoreProcessor::process_setMetaConf;
processMap_["create_catalog"] = &ThriftHiveMetastoreProcessor::process_create_catalog;
+ processMap_["alter_catalog"] = &ThriftHiveMetastoreProcessor::process_alter_catalog;
processMap_["get_catalog"] = &ThriftHiveMetastoreProcessor::process_get_catalog;
processMap_["get_catalogs"] = &ThriftHiveMetastoreProcessor::process_get_catalogs;
processMap_["drop_catalog"] = &ThriftHiveMetastoreProcessor::process_drop_catalog;
@@ -27204,6 +27333,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi
ifaces_[i]->create_catalog(catalog);
}
+ void alter_catalog(const AlterCatalogRequest& rqst) {
+ size_t sz = ifaces_.size();
+ size_t i = 0;
+ for (; i < (sz - 1); ++i) {
+ ifaces_[i]->alter_catalog(rqst);
+ }
+ ifaces_[i]->alter_catalog(rqst);
+ }
+
void get_catalog(GetCatalogResponse& _return, const GetCatalogRequest& catName) {
size_t sz = ifaces_.size();
size_t i = 0;
@@ -29181,6 +29319,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf
void create_catalog(const CreateCatalogRequest& catalog);
int32_t send_create_catalog(const CreateCatalogRequest& catalog);
void recv_create_catalog(const int32_t seqid);
+ void alter_catalog(const AlterCatalogRequest& rqst);
+ int32_t send_alter_catalog(const AlterCatalogRequest& rqst);
+ void recv_alter_catalog(const int32_t seqid);
void get_catalog(GetCatalogResponse& _return, const GetCatalogRequest& catName);
int32_t send_get_catalog(const GetCatalogRequest& catName);
void recv_get_catalog(GetCatalogResponse& _return, const int32_t seqid);
http://git-wip-us.apache.org/repos/asf/hive/blob/c2cc42c1/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
index 3d9d75e..d45ec81 100644
--- a/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
+++ b/standalone-metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
@@ -37,6 +37,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf {
printf("create_catalog\n");
}
+ void alter_catalog(const AlterCatalogRequest& rqst) {
+ // Your implementation goes here
+ printf("alter_catalog\n");
+ }
+
void get_catalog(GetCatalogResponse& _return, const GetCatalogRequest& catName) {
// Your implementation goes here
printf("get_catalog\n");