diff --git a/dev/Dockerfile b/dev/Dockerfile index 5292e26421..d7afc16fac 100644 --- a/dev/Dockerfile +++ b/dev/Dockerfile @@ -40,7 +40,6 @@ WORKDIR ${SPARK_HOME} ENV SPARK_VERSION=3.5.6 ENV ICEBERG_SPARK_RUNTIME_VERSION=3.5_2.12 ENV ICEBERG_VERSION=1.9.1 -ENV PYICEBERG_VERSION=0.9.1 RUN curl --retry 5 -s -C - https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop3.tgz -o spark-${SPARK_VERSION}-bin-hadoop3.tgz \ && tar xzf spark-${SPARK_VERSION}-bin-hadoop3.tgz --directory /opt/spark --strip-components 1 \ @@ -55,7 +54,7 @@ RUN curl --retry 5 -s https://repo1.maven.org/maven2/org/apache/iceberg/iceberg- RUN curl --retry 5 -s https://repo1.maven.org/maven2/org/apache/iceberg/iceberg-aws-bundle/${ICEBERG_VERSION}/iceberg-aws-bundle-${ICEBERG_VERSION}.jar \ -Lo /opt/spark/jars/iceberg-aws-bundle-${ICEBERG_VERSION}.jar -COPY spark-defaults.conf /opt/spark/conf +COPY dev/spark-defaults.conf /opt/spark/conf ENV PATH="/opt/spark/sbin:/opt/spark/bin:${PATH}" RUN chmod u+x /opt/spark/sbin/* && \ @@ -63,10 +62,22 @@ RUN chmod u+x /opt/spark/sbin/* && \ RUN pip3 install -q ipython -RUN pip3 install "pyiceberg[s3fs,hive,pyarrow]==${PYICEBERG_VERSION}" +# Copy the local pyiceberg source code and install locally +COPY pyiceberg/ /tmp/pyiceberg/pyiceberg +COPY pyproject.toml /tmp/pyiceberg/ +COPY build-module.py /tmp/pyiceberg/ +COPY vendor/ /tmp/pyiceberg/vendor +COPY README.md /tmp/pyiceberg/ +COPY NOTICE /tmp/pyiceberg/ -COPY entrypoint.sh . -COPY provision.py . +# Install pyiceberg from the copied source +RUN cd /tmp/pyiceberg && pip3 install ".[s3fs,hive,pyarrow]" + +# Clean up +RUN rm -rf /tmp/pyiceberg + +COPY dev/entrypoint.sh ${SPARK_HOME}/ +COPY dev/provision.py ${SPARK_HOME}/ ENTRYPOINT ["./entrypoint.sh"] CMD ["notebook"] diff --git a/dev/docker-compose-integration.yml b/dev/docker-compose-integration.yml index 500a042e16..f47171b351 100644 --- a/dev/docker-compose-integration.yml +++ b/dev/docker-compose-integration.yml @@ -19,7 +19,9 @@ services: spark-iceberg: image: python-integration container_name: pyiceberg-spark - build: . + build: + context: .. + dockerfile: dev/Dockerfile networks: iceberg_net: depends_on: diff --git a/dev/hive/Dockerfile b/dev/hive/Dockerfile index 2ff3dbce67..6b1f00dce0 100644 --- a/dev/hive/Dockerfile +++ b/dev/hive/Dockerfile @@ -23,7 +23,7 @@ ENV AWS_SDK_BUNDLE=1.12.753 RUN curl https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/${HADOOP_VERSION}/hadoop-aws-${HADOOP_VERSION}.jar -Lo /tmp/hadoop-aws-${HADOOP_VERSION}.jar RUN curl https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/${AWS_SDK_BUNDLE}/aws-java-sdk-bundle-${AWS_SDK_BUNDLE}.jar -Lo /tmp/aws-java-sdk-bundle-${AWS_SDK_BUNDLE}.jar -FROM apache/hive:4.0.0 +FROM apache/hive:4.0.1 ENV HADOOP_VERSION=3.3.6 ENV AWS_SDK_BUNDLE=1.12.753 diff --git a/pyiceberg/catalog/hive.py b/pyiceberg/catalog/hive.py index cc9cd028c4..e44e1d5eb0 100644 --- a/pyiceberg/catalog/hive.py +++ b/pyiceberg/catalog/hive.py @@ -38,6 +38,10 @@ CheckLockRequest, EnvironmentContext, FieldSchema, + GetTableRequest, + GetTableResult, + GetTablesRequest, + GetTablesResult, InvalidOperationException, LockComponent, LockLevel, @@ -389,8 +393,11 @@ def _create_hive_table(self, open_client: Client, hive_table: HiveTable) -> None def _get_hive_table(self, open_client: Client, database_name: str, table_name: str) -> HiveTable: try: - return open_client.get_table(dbname=database_name, tbl_name=table_name) - except NoSuchObjectException as e: + get_table_result: GetTableResult = open_client.get_table_req( + req=GetTableRequest(dbName=database_name, tblName=table_name) + ) + return get_table_result.table + except IndexError as e: raise NoSuchTableError(f"Table does not exists: {table_name}") from e def create_table( @@ -435,7 +442,10 @@ def create_table( with self._client as open_client: self._create_hive_table(open_client, tbl) - hive_table = open_client.get_table(dbname=database_name, tbl_name=table_name) + try: + hive_table = self._get_hive_table(open_client, database_name, table_name) + except IndexError as e: + raise NoSuchObjectException("get_table failed: unknown result") from e return self._convert_hive_into_iceberg(hive_table) @@ -465,7 +475,10 @@ def register_table(self, identifier: Union[str, Identifier], metadata_location: tbl = self._convert_iceberg_into_hive(staged_table) with self._client as open_client: self._create_hive_table(open_client, tbl) - hive_table = open_client.get_table(dbname=database_name, tbl_name=table_name) + try: + hive_table = self._get_hive_table(open_client, database_name, table_name) + except IndexError as e: + raise NoSuchObjectException("get_table failed: unknown result") from e return self._convert_hive_into_iceberg(hive_table) @@ -656,7 +669,10 @@ def rename_table(self, from_identifier: Union[str, Identifier], to_identifier: U to_database_name, to_table_name = self.identifier_to_database_and_table(to_identifier) try: with self._client as open_client: - tbl = open_client.get_table(dbname=from_database_name, tbl_name=from_table_name) + try: + tbl = self._get_hive_table(open_client, from_database_name, from_table_name) + except IndexError as e: + raise NoSuchObjectException("get_table failed: unknown result") from e tbl.dbName = to_database_name tbl.tableName = to_table_name open_client.alter_table_with_environment_context( @@ -726,11 +742,13 @@ def list_tables(self, namespace: Union[str, Identifier]) -> List[Identifier]: """ database_name = self.identifier_to_database(namespace, NoSuchNamespaceError) with self._client as open_client: + all_table_names = open_client.get_all_tables(db_name=database_name) + get_tables_result: GetTablesResult = open_client.get_table_objects_by_name_req( + req=GetTablesRequest(dbName=database_name, tblNames=all_table_names) + ) return [ (database_name, table.tableName) - for table in open_client.get_table_objects_by_name( - dbname=database_name, tbl_names=open_client.get_all_tables(db_name=database_name) - ) + for table in get_tables_result.tables if table.parameters.get(TABLE_TYPE, "").lower() == ICEBERG ] diff --git a/tests/catalog/test_hive.py b/tests/catalog/test_hive.py index a36425ebea..e18e7cae26 100644 --- a/tests/catalog/test_hive.py +++ b/tests/catalog/test_hive.py @@ -31,6 +31,10 @@ AlreadyExistsException, EnvironmentContext, FieldSchema, + GetTableRequest, + GetTableResult, + GetTablesRequest, + GetTablesResult, InvalidOperationException, LockResponse, LockState, @@ -280,7 +284,7 @@ def test_create_table( catalog._client = MagicMock() catalog._client.__enter__().create_table.return_value = None - catalog._client.__enter__().get_table.return_value = hive_table + catalog._client.__enter__().get_table_req.return_value = GetTableResult(table=hive_table) catalog._client.__enter__().get_database.return_value = hive_database catalog.create_table(("default", "table"), schema=table_schema_with_all_types, properties={"owner": "javaberg"}) @@ -459,7 +463,7 @@ def test_create_table_with_given_location_removes_trailing_slash( catalog._client = MagicMock() catalog._client.__enter__().create_table.return_value = None - catalog._client.__enter__().get_table.return_value = hive_table + catalog._client.__enter__().get_table_req.return_value = GetTableResult(table=hive_table) catalog._client.__enter__().get_database.return_value = hive_database catalog.create_table( ("default", "table"), schema=table_schema_with_all_types, properties={"owner": "javaberg"}, location=f"{location}/" @@ -633,7 +637,7 @@ def test_create_v1_table(table_schema_simple: Schema, hive_database: HiveDatabas catalog._client = MagicMock() catalog._client.__enter__().create_table.return_value = None - catalog._client.__enter__().get_table.return_value = hive_table + catalog._client.__enter__().get_table_req.return_value = GetTableResult(table=hive_table) catalog._client.__enter__().get_database.return_value = hive_database catalog.create_table( ("default", "table"), schema=table_schema_simple, properties={"owner": "javaberg", "format-version": "1"} @@ -684,10 +688,10 @@ def test_load_table(hive_table: HiveTable) -> None: catalog = HiveCatalog(HIVE_CATALOG_NAME, uri=HIVE_METASTORE_FAKE_URL) catalog._client = MagicMock() - catalog._client.__enter__().get_table.return_value = hive_table + catalog._client.__enter__().get_table_req.return_value = GetTableResult(table=hive_table) table = catalog.load_table(("default", "new_tabl2e")) - catalog._client.__enter__().get_table.assert_called_with(dbname="default", tbl_name="new_tabl2e") + catalog._client.__enter__().get_table_req.assert_called_with(req=GetTableRequest(dbName="default", tblName="new_tabl2e")) expected = TableMetadataV2( location="s3://bucket/test/location", @@ -784,11 +788,11 @@ def test_load_table_from_self_identifier(hive_table: HiveTable) -> None: catalog = HiveCatalog(HIVE_CATALOG_NAME, uri=HIVE_METASTORE_FAKE_URL) catalog._client = MagicMock() - catalog._client.__enter__().get_table.return_value = hive_table + catalog._client.__enter__().get_table_req.return_value = GetTableResult(table=hive_table) intermediate = catalog.load_table(("default", "new_tabl2e")) table = catalog.load_table(intermediate.name()) - catalog._client.__enter__().get_table.assert_called_with(dbname="default", tbl_name="new_tabl2e") + catalog._client.__enter__().get_table_req.assert_called_with(req=GetTableRequest(dbName="default", tblName="new_tabl2e")) expected = TableMetadataV2( location="s3://bucket/test/location", @@ -889,7 +893,10 @@ def test_rename_table(hive_table: HiveTable) -> None: renamed_table.tableName = "new_tabl3e" catalog._client = MagicMock() - catalog._client.__enter__().get_table.side_effect = [hive_table, renamed_table] + catalog._client.__enter__().get_table_req.side_effect = [ + GetTableResult(table=hive_table), + GetTableResult(table=renamed_table), + ] catalog._client.__enter__().alter_table_with_environment_context.return_value = None from_identifier = ("default", "new_tabl2e") @@ -898,8 +905,11 @@ def test_rename_table(hive_table: HiveTable) -> None: assert table.name() == to_identifier - calls = [call(dbname="default", tbl_name="new_tabl2e"), call(dbname="default", tbl_name="new_tabl3e")] - catalog._client.__enter__().get_table.assert_has_calls(calls) + expected_calls = [ + call(req=GetTableRequest(dbName="default", tblName="new_tabl2e")), + call(req=GetTableRequest(dbName="default", tblName="new_tabl3e")), + ] + catalog._client.__enter__().get_table_req.assert_has_calls(expected_calls) catalog._client.__enter__().alter_table_with_environment_context.assert_called_with( dbname="default", tbl_name="new_tabl2e", @@ -912,25 +922,31 @@ def test_rename_table_from_self_identifier(hive_table: HiveTable) -> None: catalog = HiveCatalog(HIVE_CATALOG_NAME, uri=HIVE_METASTORE_FAKE_URL) catalog._client = MagicMock() - catalog._client.__enter__().get_table.return_value = hive_table + catalog._client.__enter__().get_table_req.return_value = GetTableResult(table=hive_table) from_identifier = ("default", "new_tabl2e") from_table = catalog.load_table(from_identifier) - catalog._client.__enter__().get_table.assert_called_with(dbname="default", tbl_name="new_tabl2e") + catalog._client.__enter__().get_table_req.assert_called_with(req=GetTableRequest(dbName="default", tblName="new_tabl2e")) renamed_table = copy.deepcopy(hive_table) renamed_table.dbName = "default" renamed_table.tableName = "new_tabl3e" - catalog._client.__enter__().get_table.side_effect = [hive_table, renamed_table] + catalog._client.__enter__().get_table_req.side_effect = [ + GetTableResult(table=hive_table), + GetTableResult(table=renamed_table), + ] catalog._client.__enter__().alter_table_with_environment_context.return_value = None to_identifier = ("default", "new_tabl3e") table = catalog.rename_table(from_table.name(), to_identifier) assert table.name() == to_identifier - calls = [call(dbname="default", tbl_name="new_tabl2e"), call(dbname="default", tbl_name="new_tabl3e")] - catalog._client.__enter__().get_table.assert_has_calls(calls) + expected_calls = [ + call(req=GetTableRequest(dbName="default", tblName="new_tabl2e")), + call(req=GetTableRequest(dbName="default", tblName="new_tabl3e")), + ] + catalog._client.__enter__().get_table_req.assert_has_calls(expected_calls) catalog._client.__enter__().alter_table_with_environment_context.assert_called_with( dbname="default", tbl_name="new_tabl2e", @@ -1013,13 +1029,13 @@ def test_list_tables(hive_table: HiveTable) -> None: catalog._client = MagicMock() catalog._client.__enter__().get_all_tables.return_value = ["table1", "table2", "table3", "table4"] - catalog._client.__enter__().get_table_objects_by_name.return_value = [tbl1, tbl2, tbl3, tbl4] + catalog._client.__enter__().get_table_objects_by_name_req.return_value = GetTablesResult(tables=[tbl1, tbl2, tbl3, tbl4]) got_tables = catalog.list_tables("database") assert got_tables == [("database", "table1"), ("database", "table2")] catalog._client.__enter__().get_all_tables.assert_called_with(db_name="database") - catalog._client.__enter__().get_table_objects_by_name.assert_called_with( - dbname="database", tbl_names=["table1", "table2", "table3", "table4"] + catalog._client.__enter__().get_table_objects_by_name_req.assert_called_with( + req=GetTablesRequest(dbName="database", tblNames=["table1", "table2", "table3", "table4"]) ) @@ -1049,7 +1065,7 @@ def test_drop_table_from_self_identifier(hive_table: HiveTable) -> None: catalog = HiveCatalog(HIVE_CATALOG_NAME, uri=HIVE_METASTORE_FAKE_URL) catalog._client = MagicMock() - catalog._client.__enter__().get_table.return_value = hive_table + catalog._client.__enter__().get_table_req.return_value = GetTableResult(table=hive_table) table = catalog.load_table(("default", "new_tabl2e")) catalog._client.__enter__().get_all_databases.return_value = ["namespace1", "namespace2"] diff --git a/vendor/Makefile b/vendor/Makefile new file mode 100644 index 0000000000..57a135ed08 --- /dev/null +++ b/vendor/Makefile @@ -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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# Makefile for generating vendor packages + +.PHONY: all clean fb303 hive-metastore + +all: fb303 hive-metastore + +# FB303 Thrift client generation +fb303: + rm -f /tmp/fb303.thrift + rm -rf fb303 + curl -s https://raw.githubusercontent.com/apache/thrift/master/contrib/fb303/if/fb303.thrift > /tmp/fb303.thrift + rm -rf /tmp/gen-py/ + thrift -gen py -o /tmp/ /tmp/fb303.thrift + mv /tmp/gen-py/fb303 fb303 + +# Hive Metastore Thrift definition generation +hive-metastore: + rm -rf /tmp/hive + mkdir -p /tmp/hive/share/fb303/if/ + curl -s https://raw.githubusercontent.com/apache/thrift/master/contrib/fb303/if/fb303.thrift > /tmp/hive/share/fb303/if/fb303.thrift + curl -s https://raw.githubusercontent.com/apache/hive/master/standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift > /tmp/hive/hive_metastore.thrift + thrift -gen py -o /tmp/hive /tmp/hive/hive_metastore.thrift + rm -rf hive_metastore + mv /tmp/hive/gen-py/hive_metastore hive_metastore diff --git a/vendor/README.md b/vendor/README.md index 0b55d9e5c6..8f033769fe 100644 --- a/vendor/README.md +++ b/vendor/README.md @@ -18,28 +18,42 @@ Some packages we want to maintain in the repository itself, because there is no good 3rd party alternative. -## FB303 Thrift client +## Quick Setup + +Generate all vendor packages: + +```bash +make all +``` + +Generate individual packages: + +```bash +make fb303 # FB303 Thrift client only +make hive-metastore # Hive Metastore Thrift definitions only +``` + +## Packages + +### FB303 Thrift client fb303 is a base Thrift service and a common set of functionality for querying stats, options, and other information from a service. +**Generate with Make:** ```bash -rm -f /tmp/fb303.thrift -rm -rf fb303 -curl -s https://raw.githubusercontent.com/apache/thrift/master/contrib/fb303/if/fb303.thrift > /tmp/fb303.thrift -rm -rf /tmp/gen-py/ -thrift -gen py -o /tmp/ /tmp/fb303.thrift -mv /tmp/gen-py/fb303 fb303 +make fb303 ``` # Hive Metastore Thrift definition The thrift definition require the fb303 service as a dependency +**Generate with Make:** ```bash -rm -rf /tmp/hive -mkdir -p /tmp/hive/share/fb303/if/ -curl -s https://raw.githubusercontent.com/apache/thrift/master/contrib/fb303/if/fb303.thrift > /tmp/hive/share/fb303/if/fb303.thrift -curl -s https://raw.githubusercontent.com/apache/hive/master/standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift > /tmp/hive/hive_metastore.thrift -thrift -gen py -o /tmp/hive /tmp/hive/hive_metastore.thrift -mv /tmp/hive/gen-py/hive_metastore hive_metastore +make hive-metastore ``` + +## Requirements + +- Apache Thrift compiler (`thrift`) +- `curl` for downloading Thrift definitions \ No newline at end of file diff --git a/vendor/fb303/FacebookService-remote b/vendor/fb303/FacebookService-remote new file mode 100755 index 0000000000..13fcc9ae30 --- /dev/null +++ b/vendor/fb303/FacebookService-remote @@ -0,0 +1,201 @@ +#!/usr/bin/env python +# +# Autogenerated by Thrift Compiler (0.22.0) +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# +# options string: py +# + +import sys +import pprint +if sys.version_info[0] > 2: + from urllib.parse import urlparse +else: + from urlparse import urlparse +from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient +from thrift.protocol.TBinaryProtocol import TBinaryProtocol + +from fb303 import FacebookService +from fb303.ttypes import * + +if len(sys.argv) <= 1 or sys.argv[1] == '--help': + print('') + print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]') + print('') + print('Functions:') + print(' string getName()') + print(' string getVersion()') + print(' fb_status getStatus()') + print(' string getStatusDetails()') + print(' getCounters()') + print(' i64 getCounter(string key)') + print(' void setOption(string key, string value)') + print(' string getOption(string key)') + print(' getOptions()') + print(' string getCpuProfile(i32 profileDurationInSec)') + print(' i64 aliveSince()') + print(' void reinitialize()') + print(' void shutdown()') + print('') + sys.exit(0) + +pp = pprint.PrettyPrinter(indent=2) +host = 'localhost' +port = 9090 +uri = '' +framed = False +ssl = False +validate = True +ca_certs = None +keyfile = None +certfile = None +http = False +argi = 1 + +if sys.argv[argi] == '-h': + parts = sys.argv[argi + 1].split(':') + host = parts[0] + if len(parts) > 1: + port = int(parts[1]) + argi += 2 + +if sys.argv[argi] == '-u': + url = urlparse(sys.argv[argi + 1]) + parts = url[1].split(':') + host = parts[0] + if len(parts) > 1: + port = int(parts[1]) + else: + port = 80 + uri = url[2] + if url[4]: + uri += '?%s' % url[4] + http = True + argi += 2 + +if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed': + framed = True + argi += 1 + +if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl': + ssl = True + argi += 1 + +if sys.argv[argi] == '-novalidate': + validate = False + argi += 1 + +if sys.argv[argi] == '-ca_certs': + ca_certs = sys.argv[argi+1] + argi += 2 + +if sys.argv[argi] == '-keyfile': + keyfile = sys.argv[argi+1] + argi += 2 + +if sys.argv[argi] == '-certfile': + certfile = sys.argv[argi+1] + argi += 2 + +cmd = sys.argv[argi] +args = sys.argv[argi + 1:] + +if http: + transport = THttpClient.THttpClient(host, port, uri) +else: + if ssl: + socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile) + else: + socket = TSocket.TSocket(host, port) + if framed: + transport = TTransport.TFramedTransport(socket) + else: + transport = TTransport.TBufferedTransport(socket) +protocol = TBinaryProtocol(transport) +client = FacebookService.Client(protocol) +transport.open() + +if cmd == 'getName': + if len(args) != 0: + print('getName requires 0 args') + sys.exit(1) + pp.pprint(client.getName()) + +elif cmd == 'getVersion': + if len(args) != 0: + print('getVersion requires 0 args') + sys.exit(1) + pp.pprint(client.getVersion()) + +elif cmd == 'getStatus': + if len(args) != 0: + print('getStatus requires 0 args') + sys.exit(1) + pp.pprint(client.getStatus()) + +elif cmd == 'getStatusDetails': + if len(args) != 0: + print('getStatusDetails requires 0 args') + sys.exit(1) + pp.pprint(client.getStatusDetails()) + +elif cmd == 'getCounters': + if len(args) != 0: + print('getCounters requires 0 args') + sys.exit(1) + pp.pprint(client.getCounters()) + +elif cmd == 'getCounter': + if len(args) != 1: + print('getCounter requires 1 args') + sys.exit(1) + pp.pprint(client.getCounter(args[0],)) + +elif cmd == 'setOption': + if len(args) != 2: + print('setOption requires 2 args') + sys.exit(1) + pp.pprint(client.setOption(args[0], args[1],)) + +elif cmd == 'getOption': + if len(args) != 1: + print('getOption requires 1 args') + sys.exit(1) + pp.pprint(client.getOption(args[0],)) + +elif cmd == 'getOptions': + if len(args) != 0: + print('getOptions requires 0 args') + sys.exit(1) + pp.pprint(client.getOptions()) + +elif cmd == 'getCpuProfile': + if len(args) != 1: + print('getCpuProfile requires 1 args') + sys.exit(1) + pp.pprint(client.getCpuProfile(eval(args[0]),)) + +elif cmd == 'aliveSince': + if len(args) != 0: + print('aliveSince requires 0 args') + sys.exit(1) + pp.pprint(client.aliveSince()) + +elif cmd == 'reinitialize': + if len(args) != 0: + print('reinitialize requires 0 args') + sys.exit(1) + pp.pprint(client.reinitialize()) + +elif cmd == 'shutdown': + if len(args) != 0: + print('shutdown requires 0 args') + sys.exit(1) + pp.pprint(client.shutdown()) + +else: + print('Unrecognized method %s' % cmd) + sys.exit(1) + +transport.close() diff --git a/vendor/fb303/FacebookService.py b/vendor/fb303/FacebookService.py index c46b0a82a2..c4bb1545d6 100644 --- a/vendor/fb303/FacebookService.py +++ b/vendor/fb303/FacebookService.py @@ -1,50 +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 # -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Autogenerated by Thrift Compiler (0.16.0) +# Autogenerated by Thrift Compiler (0.22.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # -import logging -import sys - -from thrift.Thrift import ( - TApplicationException, - TMessageType, - TProcessor, - TType, -) -from thrift.transport import TTransport +from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException +from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec +from uuid import UUID +import sys +import logging from .ttypes import * - +from thrift.Thrift import TProcessor +from thrift.transport import TTransport all_structs = [] -class Iface: +class Iface(object): """ Standard base service """ - def getName(self): """ Returns a descriptive name of the service @@ -157,7 +136,6 @@ class Client(Iface): Standard base service """ - def __init__(self, iprot, oprot=None): self._iprot = self._oprot = iprot if oprot is not None: @@ -173,7 +151,7 @@ def getName(self): return self.recv_getName() def send_getName(self): - self._oprot.writeMessageBegin("getName", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getName', TMessageType.CALL, self._seqid) args = getName_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -203,7 +181,7 @@ def getVersion(self): return self.recv_getVersion() def send_getVersion(self): - self._oprot.writeMessageBegin("getVersion", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getVersion', TMessageType.CALL, self._seqid) args = getVersion_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -233,7 +211,7 @@ def getStatus(self): return self.recv_getStatus() def send_getStatus(self): - self._oprot.writeMessageBegin("getStatus", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getStatus', TMessageType.CALL, self._seqid) args = getStatus_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -264,7 +242,7 @@ def getStatusDetails(self): return self.recv_getStatusDetails() def send_getStatusDetails(self): - self._oprot.writeMessageBegin("getStatusDetails", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getStatusDetails', TMessageType.CALL, self._seqid) args = getStatusDetails_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -294,7 +272,7 @@ def getCounters(self): return self.recv_getCounters() def send_getCounters(self): - self._oprot.writeMessageBegin("getCounters", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getCounters', TMessageType.CALL, self._seqid) args = getCounters_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -327,7 +305,7 @@ def getCounter(self, key): return self.recv_getCounter() def send_getCounter(self, key): - self._oprot.writeMessageBegin("getCounter", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getCounter', TMessageType.CALL, self._seqid) args = getCounter_args() args.key = key args.write(self._oprot) @@ -362,7 +340,7 @@ def setOption(self, key, value): self.recv_setOption() def send_setOption(self, key, value): - self._oprot.writeMessageBegin("setOption", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('setOption', TMessageType.CALL, self._seqid) args = setOption_args() args.key = key args.value = value @@ -395,7 +373,7 @@ def getOption(self, key): return self.recv_getOption() def send_getOption(self, key): - self._oprot.writeMessageBegin("getOption", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getOption', TMessageType.CALL, self._seqid) args = getOption_args() args.key = key args.write(self._oprot) @@ -426,7 +404,7 @@ def getOptions(self): return self.recv_getOptions() def send_getOptions(self): - self._oprot.writeMessageBegin("getOptions", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getOptions', TMessageType.CALL, self._seqid) args = getOptions_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -460,7 +438,7 @@ def getCpuProfile(self, profileDurationInSec): return self.recv_getCpuProfile() def send_getCpuProfile(self, profileDurationInSec): - self._oprot.writeMessageBegin("getCpuProfile", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getCpuProfile', TMessageType.CALL, self._seqid) args = getCpuProfile_args() args.profileDurationInSec = profileDurationInSec args.write(self._oprot) @@ -491,7 +469,7 @@ def aliveSince(self): return self.recv_aliveSince() def send_aliveSince(self): - self._oprot.writeMessageBegin("aliveSince", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('aliveSince', TMessageType.CALL, self._seqid) args = aliveSince_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -520,7 +498,7 @@ def reinitialize(self): self.send_reinitialize() def send_reinitialize(self): - self._oprot.writeMessageBegin("reinitialize", TMessageType.ONEWAY, self._seqid) + self._oprot.writeMessageBegin('reinitialize', TMessageType.ONEWAY, self._seqid) args = reinitialize_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -534,7 +512,7 @@ def shutdown(self): self.send_shutdown() def send_shutdown(self): - self._oprot.writeMessageBegin("shutdown", TMessageType.ONEWAY, self._seqid) + self._oprot.writeMessageBegin('shutdown', TMessageType.ONEWAY, self._seqid) args = shutdown_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -570,7 +548,7 @@ def process(self, iprot, oprot): if name not in self._processMap: iprot.skip(TType.STRUCT) iprot.readMessageEnd() - x = TApplicationException(TApplicationException.UNKNOWN_METHOD, "Unknown function %s" % (name)) + x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) x.write(oprot) oprot.writeMessageEnd() @@ -591,13 +569,13 @@ def process_getName(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getName", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -614,13 +592,13 @@ def process_getVersion(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getVersion", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -637,13 +615,13 @@ def process_getStatus(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getStatus", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -660,13 +638,13 @@ def process_getStatusDetails(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getStatusDetails", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -683,13 +661,13 @@ def process_getCounters(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCounters", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -706,13 +684,13 @@ def process_getCounter(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCounter", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -729,13 +707,13 @@ def process_setOption(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("setOption", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -752,13 +730,13 @@ def process_getOption(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getOption", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -775,13 +753,13 @@ def process_getOptions(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getOptions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -798,13 +776,13 @@ def process_getCpuProfile(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getCpuProfile", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -821,13 +799,13 @@ def process_aliveSince(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("aliveSince", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -842,7 +820,7 @@ def process_reinitialize(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except Exception: - logging.exception("Exception in oneway handler") + logging.exception('Exception in oneway handler') def process_shutdown(self, seqid, iprot, oprot): args = shutdown_args() @@ -853,19 +831,17 @@ def process_shutdown(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except Exception: - logging.exception("Exception in oneway handler") - + logging.exception('Exception in oneway handler') # HELPER FUNCTIONS AND STRUCTURES -class getName_args: +class getName_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -879,10 +855,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getName_args") + oprot.writeStructBegin('getName_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -890,39 +867,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getName_args) -getName_args.thrift_spec = () +getName_args.thrift_spec = ( +) -class getName_result: +class getName_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -932,9 +904,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -943,13 +913,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getName_result") + oprot.writeStructBegin('getName_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -958,35 +929,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getName_result) getName_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 ) -class getVersion_args: +class getVersion_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1000,10 +963,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getVersion_args") + oprot.writeStructBegin('getVersion_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -1011,39 +975,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getVersion_args) -getVersion_args.thrift_spec = () +getVersion_args.thrift_spec = ( +) -class getVersion_result: +class getVersion_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1053,9 +1012,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1064,13 +1021,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getVersion_result") + oprot.writeStructBegin('getVersion_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1079,35 +1037,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getVersion_result) getVersion_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 ) -class getStatus_args: +class getStatus_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1121,10 +1071,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getStatus_args") + oprot.writeStructBegin('getStatus_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -1132,39 +1083,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getStatus_args) -getStatus_args.thrift_spec = () +getStatus_args.thrift_spec = ( +) -class getStatus_result: +class getStatus_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1183,12 +1129,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getStatus_result") + oprot.writeStructBegin('getStatus_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I32, 0) + oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1198,35 +1145,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getStatus_result) getStatus_result.thrift_spec = ( - ( - 0, - TType.I32, - "success", - None, - None, - ), # 0 + (0, TType.I32, 'success', None, None, ), # 0 ) -class getStatusDetails_args: +class getStatusDetails_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1240,10 +1179,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getStatusDetails_args") + oprot.writeStructBegin('getStatusDetails_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -1251,39 +1191,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getStatusDetails_args) -getStatusDetails_args.thrift_spec = () +getStatusDetails_args.thrift_spec = ( +) -class getStatusDetails_result: +class getStatusDetails_result(object): """ Attributes: - success """ + thrift_spec = None - def __init__( - self, - success=None, - ): + + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1293,9 +1228,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1304,13 +1237,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getStatusDetails_result") + oprot.writeStructBegin('getStatusDetails_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1319,35 +1253,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getStatusDetails_result) getStatusDetails_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 ) -class getCounters_args: +class getCounters_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1361,10 +1287,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getCounters_args") + oprot.writeStructBegin('getCounters_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -1372,39 +1299,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getCounters_args) -getCounters_args.thrift_spec = () +getCounters_args.thrift_spec = ( +) -class getCounters_result: +class getCounters_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1417,11 +1339,7 @@ def read(self, iprot): self.success = {} (_ktype1, _vtype2, _size0) = iprot.readMapBegin() for _i4 in range(_size0): - _key5 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key5 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() _val6 = iprot.readI64() self.success[_key5] = _val6 iprot.readMapEnd() @@ -1433,15 +1351,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getCounters_result") + oprot.writeStructBegin('getCounters_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.I64, len(self.success)) for kiter7, viter8 in self.success.items(): - oprot.writeString(kiter7.encode("utf-8") if sys.version_info[0] == 2 else kiter7) + oprot.writeString(kiter7.encode('utf-8') if sys.version_info[0] == 2 else kiter7) oprot.writeI64(viter8) oprot.writeMapEnd() oprot.writeFieldEnd() @@ -1452,47 +1371,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getCounters_result) getCounters_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.I64, None, False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.I64, None, False), None, ), # 0 ) -class getCounter_args: +class getCounter_args(object): """ Attributes: - key """ + thrift_spec = None - def __init__( - self, - key=None, - ): + + def __init__(self, key = None,): self.key = key def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1502,9 +1409,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.key = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.key = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1513,13 +1418,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getCounter_args") + oprot.writeStructBegin('getCounter_args') if self.key is not None: - oprot.writeFieldBegin("key", TType.STRING, 1) - oprot.writeString(self.key.encode("utf-8") if sys.version_info[0] == 2 else self.key) + oprot.writeFieldBegin('key', TType.STRING, 1) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1528,48 +1434,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getCounter_args) getCounter_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "key", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'key', 'UTF8', None, ), # 1 ) -class getCounter_result: +class getCounter_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1588,12 +1482,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getCounter_result") + oprot.writeStructBegin('getCounter_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I64, 0) + oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1603,50 +1498,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getCounter_result) getCounter_result.thrift_spec = ( - ( - 0, - TType.I64, - "success", - None, - None, - ), # 0 + (0, TType.I64, 'success', None, None, ), # 0 ) -class setOption_args: +class setOption_args(object): """ Attributes: - key - value """ + thrift_spec = None + - def __init__( - self, - key=None, - value=None, - ): + def __init__(self, key = None, value = None,): self.key = key self.value = value def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1656,16 +1538,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.key = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.key = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.value = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.value = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1674,17 +1552,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("setOption_args") + oprot.writeStructBegin('setOption_args') if self.key is not None: - oprot.writeFieldBegin("key", TType.STRING, 1) - oprot.writeString(self.key.encode("utf-8") if sys.version_info[0] == 2 else self.key) + oprot.writeFieldBegin('key', TType.STRING, 1) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) oprot.writeFieldEnd() if self.value is not None: - oprot.writeFieldBegin("value", TType.STRING, 2) - oprot.writeString(self.value.encode("utf-8") if sys.version_info[0] == 2 else self.value) + oprot.writeFieldBegin('value', TType.STRING, 2) + oprot.writeString(self.value.encode('utf-8') if sys.version_info[0] == 2 else self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1693,43 +1572,29 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(setOption_args) setOption_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "key", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "value", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'key', 'UTF8', None, ), # 1 + (2, TType.STRING, 'value', 'UTF8', None, ), # 2 ) -class setOption_result: +class setOption_result(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1743,10 +1608,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("setOption_result") + oprot.writeStructBegin('setOption_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -1754,39 +1620,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(setOption_result) -setOption_result.thrift_spec = () +setOption_result.thrift_spec = ( +) -class getOption_args: +class getOption_args(object): """ Attributes: - key """ + thrift_spec = None + - def __init__( - self, - key=None, - ): + def __init__(self, key = None,): self.key = key def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1796,9 +1657,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.key = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.key = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1807,13 +1666,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getOption_args") + oprot.writeStructBegin('getOption_args') if self.key is not None: - oprot.writeFieldBegin("key", TType.STRING, 1) - oprot.writeString(self.key.encode("utf-8") if sys.version_info[0] == 2 else self.key) + oprot.writeFieldBegin('key', TType.STRING, 1) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1822,48 +1682,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getOption_args) getOption_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "key", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'key', 'UTF8', None, ), # 1 ) -class getOption_result: +class getOption_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1873,9 +1721,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1884,13 +1730,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getOption_result") + oprot.writeStructBegin('getOption_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1899,35 +1746,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getOption_result) getOption_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 ) -class getOptions_args: +class getOptions_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1941,10 +1780,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getOptions_args") + oprot.writeStructBegin('getOptions_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -1952,39 +1792,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getOptions_args) -getOptions_args.thrift_spec = () +getOptions_args.thrift_spec = ( +) -class getOptions_result: +class getOptions_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1997,16 +1832,8 @@ def read(self, iprot): self.success = {} (_ktype10, _vtype11, _size9) = iprot.readMapBegin() for _i13 in range(_size9): - _key14 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val15 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key14 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val15 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() self.success[_key14] = _val15 iprot.readMapEnd() else: @@ -2017,16 +1844,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getOptions_result") + oprot.writeStructBegin('getOptions_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter16, viter17 in self.success.items(): - oprot.writeString(kiter16.encode("utf-8") if sys.version_info[0] == 2 else kiter16) - oprot.writeString(viter17.encode("utf-8") if sys.version_info[0] == 2 else viter17) + oprot.writeString(kiter16.encode('utf-8') if sys.version_info[0] == 2 else kiter16) + oprot.writeString(viter17.encode('utf-8') if sys.version_info[0] == 2 else viter17) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -2036,47 +1864,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getOptions_result) getOptions_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 ) -class getCpuProfile_args: +class getCpuProfile_args(object): """ Attributes: - profileDurationInSec """ + thrift_spec = None - def __init__( - self, - profileDurationInSec=None, - ): + + def __init__(self, profileDurationInSec = None,): self.profileDurationInSec = profileDurationInSec def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2095,12 +1911,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getCpuProfile_args") + oprot.writeStructBegin('getCpuProfile_args') if self.profileDurationInSec is not None: - oprot.writeFieldBegin("profileDurationInSec", TType.I32, 1) + oprot.writeFieldBegin('profileDurationInSec', TType.I32, 1) oprot.writeI32(self.profileDurationInSec) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -2110,48 +1927,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getCpuProfile_args) getCpuProfile_args.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "profileDurationInSec", - None, - None, - ), # 1 + (1, TType.I32, 'profileDurationInSec', None, None, ), # 1 ) -class getCpuProfile_result: +class getCpuProfile_result(object): """ Attributes: - success """ + thrift_spec = None - def __init__( - self, - success=None, - ): + + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2161,9 +1966,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -2172,13 +1975,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getCpuProfile_result") + oprot.writeStructBegin('getCpuProfile_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -2187,35 +1991,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getCpuProfile_result) getCpuProfile_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 ) -class aliveSince_args: +class aliveSince_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2229,10 +2025,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("aliveSince_args") + oprot.writeStructBegin('aliveSince_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -2240,39 +2037,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(aliveSince_args) -aliveSince_args.thrift_spec = () +aliveSince_args.thrift_spec = ( +) -class aliveSince_result: +class aliveSince_result(object): """ Attributes: - success """ + thrift_spec = None - def __init__( - self, - success=None, - ): + + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2291,12 +2083,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("aliveSince_result") + oprot.writeStructBegin('aliveSince_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I64, 0) + oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -2306,35 +2099,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(aliveSince_result) aliveSince_result.thrift_spec = ( - ( - 0, - TType.I64, - "success", - None, - None, - ), # 0 + (0, TType.I64, 'success', None, None, ), # 0 ) -class reinitialize_args: +class reinitialize_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2348,10 +2133,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("reinitialize_args") + oprot.writeStructBegin('reinitialize_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -2359,27 +2145,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(reinitialize_args) +reinitialize_args.thrift_spec = ( +) -all_structs.append(reinitialize_args) -reinitialize_args.thrift_spec = () +class shutdown_args(object): + thrift_spec = None -class shutdown_args: def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2393,10 +2178,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("shutdown_args") + oprot.writeStructBegin('shutdown_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -2404,17 +2190,17 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(shutdown_args) -shutdown_args.thrift_spec = () +shutdown_args.thrift_spec = ( +) fix_spec(all_structs) del all_structs diff --git a/vendor/fb303/__init__.py b/vendor/fb303/__init__.py index 398041beaf..2c4edc2e3e 100644 --- a/vendor/fb303/__init__.py +++ b/vendor/fb303/__init__.py @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -__all__ = ["ttypes", "constants", "FacebookService"] +__all__ = ['ttypes', 'constants', 'FacebookService'] diff --git a/vendor/fb303/constants.py b/vendor/fb303/constants.py index 3361fd3904..e74a4e60cf 100644 --- a/vendor/fb303/constants.py +++ b/vendor/fb303/constants.py @@ -1,26 +1,15 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Autogenerated by Thrift Compiler (0.16.0) +# Autogenerated by Thrift Compiler (0.22.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # +from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException +from thrift.protocol.TProtocol import TProtocolException +from thrift.TRecursive import fix_spec +from uuid import UUID - +import sys +from .ttypes import * diff --git a/vendor/fb303/ttypes.py b/vendor/fb303/ttypes.py index bf2c4e2955..7724963a16 100644 --- a/vendor/fb303/ttypes.py +++ b/vendor/fb303/ttypes.py @@ -1,39 +1,27 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Autogenerated by Thrift Compiler (0.16.0) +# Autogenerated by Thrift Compiler (0.22.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # - +from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException +from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec +from uuid import UUID + +import sys +from thrift.transport import TTransport all_structs = [] -class fb_status: +class fb_status(object): """ Common status reporting mechanism across all services """ - DEAD = 0 STARTING = 1 ALIVE = 2 @@ -58,7 +46,5 @@ class fb_status: "STOPPED": 4, "WARNING": 5, } - - fix_spec(all_structs) del all_structs diff --git a/vendor/hive_metastore/ThriftHiveMetastore-remote b/vendor/hive_metastore/ThriftHiveMetastore-remote new file mode 100755 index 0000000000..8a5938570d --- /dev/null +++ b/vendor/hive_metastore/ThriftHiveMetastore-remote @@ -0,0 +1,2189 @@ +#!/usr/bin/env python +# +# Autogenerated by Thrift Compiler (0.22.0) +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# +# options string: py +# + +import sys +import pprint +if sys.version_info[0] > 2: + from urllib.parse import urlparse +else: + from urlparse import urlparse +from thrift.transport import TTransport, TSocket, TSSLSocket, THttpClient +from thrift.protocol.TBinaryProtocol import TBinaryProtocol + +from hive_metastore import ThriftHiveMetastore +from hive_metastore.ttypes import * + +if len(sys.argv) <= 1 or sys.argv[1] == '--help': + print('') + print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] [-novalidate] [-ca_certs certs] [-keyfile keyfile] [-certfile certfile] function [arg1 [arg2...]]') + print('') + print('Functions:') + print(' AbortCompactResponse abort_Compactions(AbortCompactionRequest rqst)') + 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)') + print(' void create_database(Database database)') + print(' void create_database_req(CreateDatabaseRequest createDatabaseRequest)') + print(' Database get_database(string name)') + print(' Database get_database_req(GetDatabaseRequest request)') + print(' void drop_database(string name, bool deleteData, bool cascade)') + print(' void drop_database_req(DropDatabaseRequest req)') + print(' get_databases(string pattern)') + print(' get_all_databases()') + print(' GetDatabaseObjectsResponse get_databases_req(GetDatabaseObjectsRequest request)') + print(' void alter_database(string dbname, Database db)') + print(' void alter_database_req(AlterDatabaseRequest alterDbReq)') + print(' void create_dataconnector_req(CreateDataConnectorRequest connectorReq)') + print(' DataConnector get_dataconnector_req(GetDataConnectorRequest request)') + print(' void drop_dataconnector_req(DropDataConnectorRequest dropDcReq)') + print(' get_dataconnectors()') + print(' void alter_dataconnector_req(AlterDataConnectorRequest alterReq)') + print(' Type get_type(string name)') + print(' bool create_type(Type type)') + print(' bool drop_type(string type)') + print(' get_type_all(string name)') + print(' get_fields(string db_name, string table_name)') + print(' get_fields_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') + print(' GetFieldsResponse get_fields_req(GetFieldsRequest req)') + print(' get_schema(string db_name, string table_name)') + print(' get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') + print(' GetSchemaResponse get_schema_req(GetSchemaRequest req)') + print(' void create_table(Table tbl)') + print(' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)') + print(' void create_table_with_constraints(Table tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints)') + print(' void create_table_req(CreateTableRequest request)') + print(' void drop_constraint(DropConstraintRequest req)') + print(' void add_primary_key(AddPrimaryKeyRequest req)') + print(' void add_foreign_key(AddForeignKeyRequest req)') + print(' void add_unique_constraint(AddUniqueConstraintRequest req)') + print(' void add_not_null_constraint(AddNotNullConstraintRequest req)') + print(' void add_default_constraint(AddDefaultConstraintRequest req)') + print(' void add_check_constraint(AddCheckConstraintRequest req)') + print(' Table translate_table_dryrun(CreateTableRequest request)') + print(' void drop_table(string dbname, string name, bool deleteData)') + print(' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)') + print(' void drop_table_req(DropTableRequest dropTableReq)') + print(' void truncate_table(string dbName, string tableName, partNames)') + print(' TruncateTableResponse truncate_table_req(TruncateTableRequest req)') + print(' get_tables(string db_name, string pattern)') + print(' get_tables_by_type(string db_name, string pattern, string tableType)') + print(' get_all_materialized_view_objects_for_rewriting()') + print(' get_materialized_views_for_rewriting(string db_name)') + print(' get_table_meta(string db_patterns, string tbl_patterns, tbl_types)') + print(' get_all_tables(string db_name)') + print(' get_tables_ext(GetTablesExtRequest req)') + print(' GetTableResult get_table_req(GetTableRequest req)') + print(' GetTablesResult get_table_objects_by_name_req(GetTablesRequest req)') + print(' Materialization get_materialization_invalidation_info(CreationMetadata creation_metadata, string validTxnList)') + print(' void update_creation_metadata(string catName, string dbname, string tbl_name, CreationMetadata creation_metadata)') + print(' get_table_names_by_filter(string dbname, string filter, i16 max_tables)') + print(' void alter_table(string dbname, string tbl_name, Table new_tbl)') + print(' void alter_table_with_environment_context(string dbname, string tbl_name, Table new_tbl, EnvironmentContext environment_context)') + print(' void alter_table_with_cascade(string dbname, string tbl_name, Table new_tbl, bool cascade)') + print(' AlterTableResponse alter_table_req(AlterTableRequest req)') + print(' Partition add_partition(Partition new_part)') + print(' Partition add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context)') + print(' i32 add_partitions( new_parts)') + print(' i32 add_partitions_pspec( new_parts)') + print(' Partition append_partition(string db_name, string tbl_name, part_vals)') + print(' AddPartitionsResult add_partitions_req(AddPartitionsRequest request)') + print(' Partition append_partition_with_environment_context(string db_name, string tbl_name, part_vals, EnvironmentContext environment_context)') + print(' Partition append_partition_req(AppendPartitionsRequest appendPartitionsReq)') + print(' Partition append_partition_by_name(string db_name, string tbl_name, string part_name)') + print(' Partition append_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, EnvironmentContext environment_context)') + print(' bool drop_partition(string db_name, string tbl_name, part_vals, bool deleteData)') + print(' bool drop_partition_with_environment_context(string db_name, string tbl_name, part_vals, bool deleteData, EnvironmentContext environment_context)') + print(' bool drop_partition_req(DropPartitionRequest dropPartitionReq)') + print(' bool drop_partition_by_name(string db_name, string tbl_name, string part_name, bool deleteData)') + print(' bool drop_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, bool deleteData, EnvironmentContext environment_context)') + print(' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)') + print(' Partition get_partition(string db_name, string tbl_name, part_vals)') + print(' GetPartitionResponse get_partition_req(GetPartitionRequest req)') + print(' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') + print(' exchange_partitions( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') + print(' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)') + print(' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)') + print(' get_partitions(string db_name, string tbl_name, i16 max_parts)') + print(' PartitionsResponse get_partitions_req(PartitionsRequest req)') + print(' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)') + print(' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)') + print(' get_partition_names(string db_name, string tbl_name, i16 max_parts)') + print(' fetch_partition_names_req(PartitionsRequest partitionReq)') + print(' PartitionValuesResponse get_partition_values(PartitionValuesRequest request)') + print(' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') + print(' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)') + print(' GetPartitionsPsWithAuthResponse get_partitions_ps_with_auth_req(GetPartitionsPsWithAuthRequest req)') + print(' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') + print(' GetPartitionNamesPsResponse get_partition_names_ps_req(GetPartitionNamesPsRequest req)') + print(' get_partition_names_req(PartitionsByExprRequest req)') + print(' get_partitions_by_filter(string db_name, string tbl_name, string filter, i16 max_parts)') + print(' get_partitions_by_filter_req(GetPartitionsByFilterRequest req)') + print(' get_part_specs_by_filter(string db_name, string tbl_name, string filter, i32 max_parts)') + print(' PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req)') + print(' PartitionsSpecByExprResult get_partitions_spec_by_expr(PartitionsByExprRequest req)') + print(' i32 get_num_partitions_by_filter(string db_name, string tbl_name, string filter)') + print(' get_partitions_by_names(string db_name, string tbl_name, names)') + print(' GetPartitionsByNamesResult get_partitions_by_names_req(GetPartitionsByNamesRequest req)') + print(' PropertyGetResponse get_properties(PropertyGetRequest req)') + print(' bool set_properties(PropertySetRequest req)') + print(' void alter_partition(string db_name, string tbl_name, Partition new_part)') + print(' void alter_partitions(string db_name, string tbl_name, new_parts)') + print(' void alter_partitions_with_environment_context(string db_name, string tbl_name, new_parts, EnvironmentContext environment_context)') + print(' AlterPartitionsResponse alter_partitions_req(AlterPartitionsRequest req)') + print(' void alter_partition_with_environment_context(string db_name, string tbl_name, Partition new_part, EnvironmentContext environment_context)') + print(' void rename_partition(string db_name, string tbl_name, part_vals, Partition new_part)') + print(' RenamePartitionResponse rename_partition_req(RenamePartitionRequest req)') + print(' bool partition_name_has_valid_characters( part_vals, bool throw_exception)') + print(' string get_config_value(string name, string defaultValue)') + print(' partition_name_to_vals(string part_name)') + print(' partition_name_to_spec(string part_name)') + print(' void markPartitionForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)') + print(' bool isPartitionMarkedForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)') + print(' PrimaryKeysResponse get_primary_keys(PrimaryKeysRequest request)') + print(' ForeignKeysResponse get_foreign_keys(ForeignKeysRequest request)') + print(' UniqueConstraintsResponse get_unique_constraints(UniqueConstraintsRequest request)') + print(' NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest request)') + print(' DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequest request)') + print(' CheckConstraintsResponse get_check_constraints(CheckConstraintsRequest request)') + print(' AllTableConstraintsResponse get_all_table_constraints(AllTableConstraintsRequest request)') + print(' bool update_table_column_statistics(ColumnStatistics stats_obj)') + print(' bool update_partition_column_statistics(ColumnStatistics stats_obj)') + print(' SetPartitionsStatsResponse update_table_column_statistics_req(SetPartitionsStatsRequest req)') + print(' SetPartitionsStatsResponse update_partition_column_statistics_req(SetPartitionsStatsRequest req)') + print(' void update_transaction_statistics(UpdateTransactionalStatsRequest req)') + print(' ColumnStatistics get_table_column_statistics(string db_name, string tbl_name, string col_name)') + print(' ColumnStatistics get_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)') + print(' TableStatsResult get_table_statistics_req(TableStatsRequest request)') + print(' PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request)') + print(' AggrStats get_aggr_stats_for(PartitionsStatsRequest request)') + print(' bool set_aggr_stats_for(SetPartitionsStatsRequest request)') + print(' bool delete_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name, string engine)') + print(' bool delete_table_column_statistics(string db_name, string tbl_name, string col_name, string engine)') + print(' bool delete_column_statistics_req(DeleteColumnStatisticsRequest req)') + print(' void create_function(Function func)') + print(' void drop_function(string dbName, string funcName)') + print(' void alter_function(string dbName, string funcName, Function newFunc)') + print(' get_functions(string dbName, string pattern)') + print(' GetFunctionsResponse get_functions_req(GetFunctionsRequest request)') + print(' Function get_function(string dbName, string funcName)') + print(' GetAllFunctionsResponse get_all_functions()') + print(' bool create_role(Role role)') + print(' bool drop_role(string role_name)') + print(' get_role_names()') + print(' bool grant_role(string role_name, string principal_name, PrincipalType principal_type, string grantor, PrincipalType grantorType, bool grant_option)') + print(' bool revoke_role(string role_name, string principal_name, PrincipalType principal_type)') + print(' list_roles(string principal_name, PrincipalType principal_type)') + print(' GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request)') + print(' GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request)') + print(' GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request)') + print(' PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, string user_name, group_names)') + print(' list_privileges(string principal_name, PrincipalType principal_type, HiveObjectRef hiveObject)') + print(' bool grant_privileges(PrivilegeBag privileges)') + print(' bool revoke_privileges(PrivilegeBag privileges)') + print(' GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request)') + print(' GrantRevokePrivilegeResponse refresh_privileges(HiveObjectRef objToRefresh, string authorizer, GrantRevokePrivilegeRequest grantRequest)') + print(' set_ugi(string user_name, group_names)') + print(' string get_delegation_token(string token_owner, string renewer_kerberos_principal_name)') + print(' i64 renew_delegation_token(string token_str_form)') + print(' void cancel_delegation_token(string token_str_form)') + print(' bool add_token(string token_identifier, string delegation_token)') + print(' bool remove_token(string token_identifier)') + print(' string get_token(string token_identifier)') + print(' get_all_token_identifiers()') + print(' i32 add_master_key(string key)') + print(' void update_master_key(i32 seq_number, string key)') + print(' bool remove_master_key(i32 key_seq)') + print(' get_master_keys()') + print(' GetOpenTxnsResponse get_open_txns()') + print(' GetOpenTxnsInfoResponse get_open_txns_info()') + print(' OpenTxnsResponse open_txns(OpenTxnRequest rqst)') + print(' void abort_txn(AbortTxnRequest rqst)') + print(' void abort_txns(AbortTxnsRequest rqst)') + print(' void commit_txn(CommitTxnRequest rqst)') + print(' i64 get_latest_txnid_in_conflict(i64 txnId)') + print(' void repl_tbl_writeid_state(ReplTblWriteIdStateRequest rqst)') + print(' GetValidWriteIdsResponse get_valid_write_ids(GetValidWriteIdsRequest rqst)') + print(' void add_write_ids_to_min_history(i64 txnId, writeIds)') + print(' AllocateTableWriteIdsResponse allocate_table_write_ids(AllocateTableWriteIdsRequest rqst)') + print(' MaxAllocatedTableWriteIdResponse get_max_allocated_table_write_id(MaxAllocatedTableWriteIdRequest rqst)') + print(' void seed_write_id(SeedTableWriteIdsRequest rqst)') + print(' void seed_txn_id(SeedTxnIdRequest rqst)') + print(' LockResponse lock(LockRequest rqst)') + print(' LockResponse check_lock(CheckLockRequest rqst)') + print(' void unlock(UnlockRequest rqst)') + print(' ShowLocksResponse show_locks(ShowLocksRequest rqst)') + print(' void heartbeat(HeartbeatRequest ids)') + print(' HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest txns)') + print(' void compact(CompactionRequest rqst)') + print(' CompactionResponse compact2(CompactionRequest rqst)') + print(' ShowCompactResponse show_compact(ShowCompactRequest rqst)') + print(' bool submit_for_cleanup(CompactionRequest o1, i64 o2, i64 o3)') + print(' void add_dynamic_partitions(AddDynamicPartitions rqst)') + print(' OptionalCompactionInfoStruct find_next_compact(string workerId)') + print(' OptionalCompactionInfoStruct find_next_compact2(FindNextCompactRequest rqst)') + print(' void update_compactor_state(CompactionInfoStruct cr, i64 txn_id)') + print(' find_columns_with_stats(CompactionInfoStruct cr)') + print(' void mark_cleaned(CompactionInfoStruct cr)') + print(' void mark_compacted(CompactionInfoStruct cr)') + print(' void mark_failed(CompactionInfoStruct cr)') + print(' void mark_refused(CompactionInfoStruct cr)') + print(' bool update_compaction_metrics_data(CompactionMetricsDataStruct data)') + print(' void remove_compaction_metrics_data(CompactionMetricsDataRequest request)') + print(' void set_hadoop_jobid(string jobId, i64 cq_id)') + print(' GetLatestCommittedCompactionInfoResponse get_latest_committed_compaction_info(GetLatestCommittedCompactionInfoRequest rqst)') + print(' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)') + print(' CurrentNotificationEventId get_current_notificationEventId()') + print(' NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst)') + print(' FireEventResponse fire_listener_event(FireEventRequest rqst)') + print(' void flushCache()') + print(' WriteNotificationLogResponse add_write_notification_log(WriteNotificationLogRequest rqst)') + print(' WriteNotificationLogBatchResponse add_write_notification_log_in_batch(WriteNotificationLogBatchRequest rqst)') + print(' CmRecycleResponse cm_recycle(CmRecycleRequest request)') + print(' GetFileMetadataByExprResult get_file_metadata_by_expr(GetFileMetadataByExprRequest req)') + print(' GetFileMetadataResult get_file_metadata(GetFileMetadataRequest req)') + print(' PutFileMetadataResult put_file_metadata(PutFileMetadataRequest req)') + print(' ClearFileMetadataResult clear_file_metadata(ClearFileMetadataRequest req)') + print(' CacheFileMetadataResult cache_file_metadata(CacheFileMetadataRequest req)') + print(' string get_metastore_db_uuid()') + print(' WMCreateResourcePlanResponse create_resource_plan(WMCreateResourcePlanRequest request)') + print(' WMGetResourcePlanResponse get_resource_plan(WMGetResourcePlanRequest request)') + print(' WMGetActiveResourcePlanResponse get_active_resource_plan(WMGetActiveResourcePlanRequest request)') + print(' WMGetAllResourcePlanResponse get_all_resource_plans(WMGetAllResourcePlanRequest request)') + print(' WMAlterResourcePlanResponse alter_resource_plan(WMAlterResourcePlanRequest request)') + print(' WMValidateResourcePlanResponse validate_resource_plan(WMValidateResourcePlanRequest request)') + print(' WMDropResourcePlanResponse drop_resource_plan(WMDropResourcePlanRequest request)') + print(' WMCreateTriggerResponse create_wm_trigger(WMCreateTriggerRequest request)') + print(' WMAlterTriggerResponse alter_wm_trigger(WMAlterTriggerRequest request)') + print(' WMDropTriggerResponse drop_wm_trigger(WMDropTriggerRequest request)') + print(' WMGetTriggersForResourePlanResponse get_triggers_for_resourceplan(WMGetTriggersForResourePlanRequest request)') + print(' WMCreatePoolResponse create_wm_pool(WMCreatePoolRequest request)') + print(' WMAlterPoolResponse alter_wm_pool(WMAlterPoolRequest request)') + print(' WMDropPoolResponse drop_wm_pool(WMDropPoolRequest request)') + print(' WMCreateOrUpdateMappingResponse create_or_update_wm_mapping(WMCreateOrUpdateMappingRequest request)') + print(' WMDropMappingResponse drop_wm_mapping(WMDropMappingRequest request)') + print(' WMCreateOrDropTriggerToPoolMappingResponse create_or_drop_wm_trigger_to_pool_mapping(WMCreateOrDropTriggerToPoolMappingRequest request)') + print(' void create_ischema(ISchema schema)') + print(' void alter_ischema(AlterISchemaRequest rqst)') + print(' ISchema get_ischema(ISchemaName name)') + print(' void drop_ischema(ISchemaName name)') + print(' void add_schema_version(SchemaVersion schemaVersion)') + print(' SchemaVersion get_schema_version(SchemaVersionDescriptor schemaVersion)') + print(' SchemaVersion get_schema_latest_version(ISchemaName schemaName)') + print(' get_schema_all_versions(ISchemaName schemaName)') + print(' void drop_schema_version(SchemaVersionDescriptor schemaVersion)') + print(' FindSchemasByColsResp get_schemas_by_cols(FindSchemasByColsRqst rqst)') + print(' void map_schema_version_to_serde(MapSchemaVersionToSerdeRequest rqst)') + print(' void set_schema_version_state(SetSchemaVersionStateRequest rqst)') + print(' void add_serde(SerDeInfo serde)') + print(' SerDeInfo get_serde(GetSerdeRequest rqst)') + print(' LockResponse get_lock_materialization_rebuild(string dbName, string tableName, i64 txnId)') + print(' bool heartbeat_lock_materialization_rebuild(string dbName, string tableName, i64 txnId)') + print(' void add_runtime_stats(RuntimeStat stat)') + print(' get_runtime_stats(GetRuntimeStatsRequest rqst)') + print(' GetPartitionsResponse get_partitions_with_specs(GetPartitionsRequest request)') + print(' ScheduledQueryPollResponse scheduled_query_poll(ScheduledQueryPollRequest request)') + print(' void scheduled_query_maintenance(ScheduledQueryMaintenanceRequest request)') + print(' void scheduled_query_progress(ScheduledQueryProgressInfo info)') + print(' ScheduledQuery get_scheduled_query(ScheduledQueryKey scheduleKey)') + print(' void add_replication_metrics(ReplicationMetricList replicationMetricList)') + print(' ReplicationMetricList get_replication_metrics(GetReplicationMetricsRequest rqst)') + print(' GetOpenTxnsResponse get_open_txns_req(GetOpenTxnsRequest getOpenTxnsRequest)') + print(' void create_stored_procedure(StoredProcedure proc)') + print(' StoredProcedure get_stored_procedure(StoredProcedureRequest request)') + print(' void drop_stored_procedure(StoredProcedureRequest request)') + print(' get_all_stored_procedures(ListStoredProcedureRequest request)') + print(' Package find_package(GetPackageRequest request)') + print(' void add_package(AddPackageRequest request)') + print(' get_all_packages(ListPackageRequest request)') + print(' void drop_package(DropPackageRequest request)') + print(' get_all_write_event_info(GetAllWriteEventInfoRequest request)') + print(' ReplayedTxnsForPolicyResult get_replayed_txns_for_policy(string policyName)') + print(' string getName()') + print(' string getVersion()') + print(' fb_status getStatus()') + print(' string getStatusDetails()') + print(' getCounters()') + print(' i64 getCounter(string key)') + print(' void setOption(string key, string value)') + print(' string getOption(string key)') + print(' getOptions()') + print(' string getCpuProfile(i32 profileDurationInSec)') + print(' i64 aliveSince()') + print(' void reinitialize()') + print(' void shutdown()') + print('') + sys.exit(0) + +pp = pprint.PrettyPrinter(indent=2) +host = 'localhost' +port = 9090 +uri = '' +framed = False +ssl = False +validate = True +ca_certs = None +keyfile = None +certfile = None +http = False +argi = 1 + +if sys.argv[argi] == '-h': + parts = sys.argv[argi + 1].split(':') + host = parts[0] + if len(parts) > 1: + port = int(parts[1]) + argi += 2 + +if sys.argv[argi] == '-u': + url = urlparse(sys.argv[argi + 1]) + parts = url[1].split(':') + host = parts[0] + if len(parts) > 1: + port = int(parts[1]) + else: + port = 80 + uri = url[2] + if url[4]: + uri += '?%s' % url[4] + http = True + argi += 2 + +if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed': + framed = True + argi += 1 + +if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl': + ssl = True + argi += 1 + +if sys.argv[argi] == '-novalidate': + validate = False + argi += 1 + +if sys.argv[argi] == '-ca_certs': + ca_certs = sys.argv[argi+1] + argi += 2 + +if sys.argv[argi] == '-keyfile': + keyfile = sys.argv[argi+1] + argi += 2 + +if sys.argv[argi] == '-certfile': + certfile = sys.argv[argi+1] + argi += 2 + +cmd = sys.argv[argi] +args = sys.argv[argi + 1:] + +if http: + transport = THttpClient.THttpClient(host, port, uri) +else: + if ssl: + socket = TSSLSocket.TSSLSocket(host, port, validate=validate, ca_certs=ca_certs, keyfile=keyfile, certfile=certfile) + else: + socket = TSocket.TSocket(host, port) + if framed: + transport = TTransport.TFramedTransport(socket) + else: + transport = TTransport.TBufferedTransport(socket) +protocol = TBinaryProtocol(transport) +client = ThriftHiveMetastore.Client(protocol) +transport.open() + +if cmd == 'abort_Compactions': + if len(args) != 1: + print('abort_Compactions requires 1 args') + sys.exit(1) + pp.pprint(client.abort_Compactions(eval(args[0]),)) + +elif cmd == 'getMetaConf': + if len(args) != 1: + print('getMetaConf requires 1 args') + sys.exit(1) + pp.pprint(client.getMetaConf(args[0],)) + +elif cmd == 'setMetaConf': + if len(args) != 2: + print('setMetaConf requires 2 args') + sys.exit(1) + pp.pprint(client.setMetaConf(args[0], args[1],)) + +elif cmd == 'create_catalog': + if len(args) != 1: + print('create_catalog requires 1 args') + 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') + sys.exit(1) + pp.pprint(client.get_catalog(eval(args[0]),)) + +elif cmd == 'get_catalogs': + if len(args) != 0: + print('get_catalogs requires 0 args') + sys.exit(1) + pp.pprint(client.get_catalogs()) + +elif cmd == 'drop_catalog': + if len(args) != 1: + print('drop_catalog requires 1 args') + sys.exit(1) + pp.pprint(client.drop_catalog(eval(args[0]),)) + +elif cmd == 'create_database': + if len(args) != 1: + print('create_database requires 1 args') + sys.exit(1) + pp.pprint(client.create_database(eval(args[0]),)) + +elif cmd == 'create_database_req': + if len(args) != 1: + print('create_database_req requires 1 args') + sys.exit(1) + pp.pprint(client.create_database_req(eval(args[0]),)) + +elif cmd == 'get_database': + if len(args) != 1: + print('get_database requires 1 args') + sys.exit(1) + pp.pprint(client.get_database(args[0],)) + +elif cmd == 'get_database_req': + if len(args) != 1: + print('get_database_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_database_req(eval(args[0]),)) + +elif cmd == 'drop_database': + if len(args) != 3: + print('drop_database requires 3 args') + sys.exit(1) + pp.pprint(client.drop_database(args[0], eval(args[1]), eval(args[2]),)) + +elif cmd == 'drop_database_req': + if len(args) != 1: + print('drop_database_req requires 1 args') + sys.exit(1) + pp.pprint(client.drop_database_req(eval(args[0]),)) + +elif cmd == 'get_databases': + if len(args) != 1: + print('get_databases requires 1 args') + sys.exit(1) + pp.pprint(client.get_databases(args[0],)) + +elif cmd == 'get_all_databases': + if len(args) != 0: + print('get_all_databases requires 0 args') + sys.exit(1) + pp.pprint(client.get_all_databases()) + +elif cmd == 'get_databases_req': + if len(args) != 1: + print('get_databases_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_databases_req(eval(args[0]),)) + +elif cmd == 'alter_database': + if len(args) != 2: + print('alter_database requires 2 args') + sys.exit(1) + pp.pprint(client.alter_database(args[0], eval(args[1]),)) + +elif cmd == 'alter_database_req': + if len(args) != 1: + print('alter_database_req requires 1 args') + sys.exit(1) + pp.pprint(client.alter_database_req(eval(args[0]),)) + +elif cmd == 'create_dataconnector_req': + if len(args) != 1: + print('create_dataconnector_req requires 1 args') + sys.exit(1) + pp.pprint(client.create_dataconnector_req(eval(args[0]),)) + +elif cmd == 'get_dataconnector_req': + if len(args) != 1: + print('get_dataconnector_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_dataconnector_req(eval(args[0]),)) + +elif cmd == 'drop_dataconnector_req': + if len(args) != 1: + print('drop_dataconnector_req requires 1 args') + sys.exit(1) + pp.pprint(client.drop_dataconnector_req(eval(args[0]),)) + +elif cmd == 'get_dataconnectors': + if len(args) != 0: + print('get_dataconnectors requires 0 args') + sys.exit(1) + pp.pprint(client.get_dataconnectors()) + +elif cmd == 'alter_dataconnector_req': + if len(args) != 1: + print('alter_dataconnector_req requires 1 args') + sys.exit(1) + pp.pprint(client.alter_dataconnector_req(eval(args[0]),)) + +elif cmd == 'get_type': + if len(args) != 1: + print('get_type requires 1 args') + sys.exit(1) + pp.pprint(client.get_type(args[0],)) + +elif cmd == 'create_type': + if len(args) != 1: + print('create_type requires 1 args') + sys.exit(1) + pp.pprint(client.create_type(eval(args[0]),)) + +elif cmd == 'drop_type': + if len(args) != 1: + print('drop_type requires 1 args') + sys.exit(1) + pp.pprint(client.drop_type(args[0],)) + +elif cmd == 'get_type_all': + if len(args) != 1: + print('get_type_all requires 1 args') + sys.exit(1) + pp.pprint(client.get_type_all(args[0],)) + +elif cmd == 'get_fields': + if len(args) != 2: + print('get_fields requires 2 args') + sys.exit(1) + pp.pprint(client.get_fields(args[0], args[1],)) + +elif cmd == 'get_fields_with_environment_context': + if len(args) != 3: + print('get_fields_with_environment_context requires 3 args') + sys.exit(1) + pp.pprint(client.get_fields_with_environment_context(args[0], args[1], eval(args[2]),)) + +elif cmd == 'get_fields_req': + if len(args) != 1: + print('get_fields_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_fields_req(eval(args[0]),)) + +elif cmd == 'get_schema': + if len(args) != 2: + print('get_schema requires 2 args') + sys.exit(1) + pp.pprint(client.get_schema(args[0], args[1],)) + +elif cmd == 'get_schema_with_environment_context': + if len(args) != 3: + print('get_schema_with_environment_context requires 3 args') + sys.exit(1) + pp.pprint(client.get_schema_with_environment_context(args[0], args[1], eval(args[2]),)) + +elif cmd == 'get_schema_req': + if len(args) != 1: + print('get_schema_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_schema_req(eval(args[0]),)) + +elif cmd == 'create_table': + if len(args) != 1: + print('create_table requires 1 args') + sys.exit(1) + pp.pprint(client.create_table(eval(args[0]),)) + +elif cmd == 'create_table_with_environment_context': + if len(args) != 2: + print('create_table_with_environment_context requires 2 args') + sys.exit(1) + pp.pprint(client.create_table_with_environment_context(eval(args[0]), eval(args[1]),)) + +elif cmd == 'create_table_with_constraints': + if len(args) != 7: + print('create_table_with_constraints requires 7 args') + sys.exit(1) + pp.pprint(client.create_table_with_constraints(eval(args[0]), eval(args[1]), eval(args[2]), eval(args[3]), eval(args[4]), eval(args[5]), eval(args[6]),)) + +elif cmd == 'create_table_req': + if len(args) != 1: + print('create_table_req requires 1 args') + sys.exit(1) + pp.pprint(client.create_table_req(eval(args[0]),)) + +elif cmd == 'drop_constraint': + if len(args) != 1: + print('drop_constraint requires 1 args') + sys.exit(1) + pp.pprint(client.drop_constraint(eval(args[0]),)) + +elif cmd == 'add_primary_key': + if len(args) != 1: + print('add_primary_key requires 1 args') + sys.exit(1) + pp.pprint(client.add_primary_key(eval(args[0]),)) + +elif cmd == 'add_foreign_key': + if len(args) != 1: + print('add_foreign_key requires 1 args') + sys.exit(1) + pp.pprint(client.add_foreign_key(eval(args[0]),)) + +elif cmd == 'add_unique_constraint': + if len(args) != 1: + print('add_unique_constraint requires 1 args') + sys.exit(1) + pp.pprint(client.add_unique_constraint(eval(args[0]),)) + +elif cmd == 'add_not_null_constraint': + if len(args) != 1: + print('add_not_null_constraint requires 1 args') + sys.exit(1) + pp.pprint(client.add_not_null_constraint(eval(args[0]),)) + +elif cmd == 'add_default_constraint': + if len(args) != 1: + print('add_default_constraint requires 1 args') + sys.exit(1) + pp.pprint(client.add_default_constraint(eval(args[0]),)) + +elif cmd == 'add_check_constraint': + if len(args) != 1: + print('add_check_constraint requires 1 args') + sys.exit(1) + pp.pprint(client.add_check_constraint(eval(args[0]),)) + +elif cmd == 'translate_table_dryrun': + if len(args) != 1: + print('translate_table_dryrun requires 1 args') + sys.exit(1) + pp.pprint(client.translate_table_dryrun(eval(args[0]),)) + +elif cmd == 'drop_table': + if len(args) != 3: + print('drop_table requires 3 args') + sys.exit(1) + pp.pprint(client.drop_table(args[0], args[1], eval(args[2]),)) + +elif cmd == 'drop_table_with_environment_context': + if len(args) != 4: + print('drop_table_with_environment_context requires 4 args') + sys.exit(1) + pp.pprint(client.drop_table_with_environment_context(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'drop_table_req': + if len(args) != 1: + print('drop_table_req requires 1 args') + sys.exit(1) + pp.pprint(client.drop_table_req(eval(args[0]),)) + +elif cmd == 'truncate_table': + if len(args) != 3: + print('truncate_table requires 3 args') + sys.exit(1) + pp.pprint(client.truncate_table(args[0], args[1], eval(args[2]),)) + +elif cmd == 'truncate_table_req': + if len(args) != 1: + print('truncate_table_req requires 1 args') + sys.exit(1) + pp.pprint(client.truncate_table_req(eval(args[0]),)) + +elif cmd == 'get_tables': + if len(args) != 2: + print('get_tables requires 2 args') + sys.exit(1) + pp.pprint(client.get_tables(args[0], args[1],)) + +elif cmd == 'get_tables_by_type': + if len(args) != 3: + print('get_tables_by_type requires 3 args') + sys.exit(1) + pp.pprint(client.get_tables_by_type(args[0], args[1], args[2],)) + +elif cmd == 'get_all_materialized_view_objects_for_rewriting': + if len(args) != 0: + print('get_all_materialized_view_objects_for_rewriting requires 0 args') + sys.exit(1) + pp.pprint(client.get_all_materialized_view_objects_for_rewriting()) + +elif cmd == 'get_materialized_views_for_rewriting': + if len(args) != 1: + print('get_materialized_views_for_rewriting requires 1 args') + sys.exit(1) + pp.pprint(client.get_materialized_views_for_rewriting(args[0],)) + +elif cmd == 'get_table_meta': + if len(args) != 3: + print('get_table_meta requires 3 args') + sys.exit(1) + pp.pprint(client.get_table_meta(args[0], args[1], eval(args[2]),)) + +elif cmd == 'get_all_tables': + if len(args) != 1: + print('get_all_tables requires 1 args') + sys.exit(1) + pp.pprint(client.get_all_tables(args[0],)) + +elif cmd == 'get_tables_ext': + if len(args) != 1: + print('get_tables_ext requires 1 args') + sys.exit(1) + pp.pprint(client.get_tables_ext(eval(args[0]),)) + +elif cmd == 'get_table_req': + if len(args) != 1: + print('get_table_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_table_req(eval(args[0]),)) + +elif cmd == 'get_table_objects_by_name_req': + if len(args) != 1: + print('get_table_objects_by_name_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_table_objects_by_name_req(eval(args[0]),)) + +elif cmd == 'get_materialization_invalidation_info': + if len(args) != 2: + print('get_materialization_invalidation_info requires 2 args') + sys.exit(1) + pp.pprint(client.get_materialization_invalidation_info(eval(args[0]), args[1],)) + +elif cmd == 'update_creation_metadata': + if len(args) != 4: + print('update_creation_metadata requires 4 args') + sys.exit(1) + pp.pprint(client.update_creation_metadata(args[0], args[1], args[2], eval(args[3]),)) + +elif cmd == 'get_table_names_by_filter': + if len(args) != 3: + print('get_table_names_by_filter requires 3 args') + sys.exit(1) + pp.pprint(client.get_table_names_by_filter(args[0], args[1], eval(args[2]),)) + +elif cmd == 'alter_table': + if len(args) != 3: + print('alter_table requires 3 args') + sys.exit(1) + pp.pprint(client.alter_table(args[0], args[1], eval(args[2]),)) + +elif cmd == 'alter_table_with_environment_context': + if len(args) != 4: + print('alter_table_with_environment_context requires 4 args') + sys.exit(1) + pp.pprint(client.alter_table_with_environment_context(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'alter_table_with_cascade': + if len(args) != 4: + print('alter_table_with_cascade requires 4 args') + sys.exit(1) + pp.pprint(client.alter_table_with_cascade(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'alter_table_req': + if len(args) != 1: + print('alter_table_req requires 1 args') + sys.exit(1) + pp.pprint(client.alter_table_req(eval(args[0]),)) + +elif cmd == 'add_partition': + if len(args) != 1: + print('add_partition requires 1 args') + sys.exit(1) + pp.pprint(client.add_partition(eval(args[0]),)) + +elif cmd == 'add_partition_with_environment_context': + if len(args) != 2: + print('add_partition_with_environment_context requires 2 args') + sys.exit(1) + pp.pprint(client.add_partition_with_environment_context(eval(args[0]), eval(args[1]),)) + +elif cmd == 'add_partitions': + if len(args) != 1: + print('add_partitions requires 1 args') + sys.exit(1) + pp.pprint(client.add_partitions(eval(args[0]),)) + +elif cmd == 'add_partitions_pspec': + if len(args) != 1: + print('add_partitions_pspec requires 1 args') + sys.exit(1) + pp.pprint(client.add_partitions_pspec(eval(args[0]),)) + +elif cmd == 'append_partition': + if len(args) != 3: + print('append_partition requires 3 args') + sys.exit(1) + pp.pprint(client.append_partition(args[0], args[1], eval(args[2]),)) + +elif cmd == 'add_partitions_req': + if len(args) != 1: + print('add_partitions_req requires 1 args') + sys.exit(1) + pp.pprint(client.add_partitions_req(eval(args[0]),)) + +elif cmd == 'append_partition_with_environment_context': + if len(args) != 4: + print('append_partition_with_environment_context requires 4 args') + sys.exit(1) + pp.pprint(client.append_partition_with_environment_context(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'append_partition_req': + if len(args) != 1: + print('append_partition_req requires 1 args') + sys.exit(1) + pp.pprint(client.append_partition_req(eval(args[0]),)) + +elif cmd == 'append_partition_by_name': + if len(args) != 3: + print('append_partition_by_name requires 3 args') + sys.exit(1) + pp.pprint(client.append_partition_by_name(args[0], args[1], args[2],)) + +elif cmd == 'append_partition_by_name_with_environment_context': + if len(args) != 4: + print('append_partition_by_name_with_environment_context requires 4 args') + sys.exit(1) + pp.pprint(client.append_partition_by_name_with_environment_context(args[0], args[1], args[2], eval(args[3]),)) + +elif cmd == 'drop_partition': + if len(args) != 4: + print('drop_partition requires 4 args') + sys.exit(1) + pp.pprint(client.drop_partition(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'drop_partition_with_environment_context': + if len(args) != 5: + print('drop_partition_with_environment_context requires 5 args') + sys.exit(1) + pp.pprint(client.drop_partition_with_environment_context(args[0], args[1], eval(args[2]), eval(args[3]), eval(args[4]),)) + +elif cmd == 'drop_partition_req': + if len(args) != 1: + print('drop_partition_req requires 1 args') + sys.exit(1) + pp.pprint(client.drop_partition_req(eval(args[0]),)) + +elif cmd == 'drop_partition_by_name': + if len(args) != 4: + print('drop_partition_by_name requires 4 args') + sys.exit(1) + pp.pprint(client.drop_partition_by_name(args[0], args[1], args[2], eval(args[3]),)) + +elif cmd == 'drop_partition_by_name_with_environment_context': + if len(args) != 5: + print('drop_partition_by_name_with_environment_context requires 5 args') + sys.exit(1) + pp.pprint(client.drop_partition_by_name_with_environment_context(args[0], args[1], args[2], eval(args[3]), eval(args[4]),)) + +elif cmd == 'drop_partitions_req': + if len(args) != 1: + print('drop_partitions_req requires 1 args') + sys.exit(1) + pp.pprint(client.drop_partitions_req(eval(args[0]),)) + +elif cmd == 'get_partition': + if len(args) != 3: + print('get_partition requires 3 args') + sys.exit(1) + pp.pprint(client.get_partition(args[0], args[1], eval(args[2]),)) + +elif cmd == 'get_partition_req': + if len(args) != 1: + print('get_partition_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partition_req(eval(args[0]),)) + +elif cmd == 'exchange_partition': + if len(args) != 5: + print('exchange_partition requires 5 args') + sys.exit(1) + pp.pprint(client.exchange_partition(eval(args[0]), args[1], args[2], args[3], args[4],)) + +elif cmd == 'exchange_partitions': + if len(args) != 5: + print('exchange_partitions requires 5 args') + sys.exit(1) + pp.pprint(client.exchange_partitions(eval(args[0]), args[1], args[2], args[3], args[4],)) + +elif cmd == 'get_partition_with_auth': + if len(args) != 5: + print('get_partition_with_auth requires 5 args') + sys.exit(1) + pp.pprint(client.get_partition_with_auth(args[0], args[1], eval(args[2]), args[3], eval(args[4]),)) + +elif cmd == 'get_partition_by_name': + if len(args) != 3: + print('get_partition_by_name requires 3 args') + sys.exit(1) + pp.pprint(client.get_partition_by_name(args[0], args[1], args[2],)) + +elif cmd == 'get_partitions': + if len(args) != 3: + print('get_partitions requires 3 args') + sys.exit(1) + pp.pprint(client.get_partitions(args[0], args[1], eval(args[2]),)) + +elif cmd == 'get_partitions_req': + if len(args) != 1: + print('get_partitions_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_req(eval(args[0]),)) + +elif cmd == 'get_partitions_with_auth': + if len(args) != 5: + print('get_partitions_with_auth requires 5 args') + sys.exit(1) + pp.pprint(client.get_partitions_with_auth(args[0], args[1], eval(args[2]), args[3], eval(args[4]),)) + +elif cmd == 'get_partitions_pspec': + if len(args) != 3: + print('get_partitions_pspec requires 3 args') + sys.exit(1) + pp.pprint(client.get_partitions_pspec(args[0], args[1], eval(args[2]),)) + +elif cmd == 'get_partition_names': + if len(args) != 3: + print('get_partition_names requires 3 args') + sys.exit(1) + pp.pprint(client.get_partition_names(args[0], args[1], eval(args[2]),)) + +elif cmd == 'fetch_partition_names_req': + if len(args) != 1: + print('fetch_partition_names_req requires 1 args') + sys.exit(1) + pp.pprint(client.fetch_partition_names_req(eval(args[0]),)) + +elif cmd == 'get_partition_values': + if len(args) != 1: + print('get_partition_values requires 1 args') + sys.exit(1) + pp.pprint(client.get_partition_values(eval(args[0]),)) + +elif cmd == 'get_partitions_ps': + if len(args) != 4: + print('get_partitions_ps requires 4 args') + sys.exit(1) + pp.pprint(client.get_partitions_ps(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'get_partitions_ps_with_auth': + if len(args) != 6: + print('get_partitions_ps_with_auth requires 6 args') + sys.exit(1) + pp.pprint(client.get_partitions_ps_with_auth(args[0], args[1], eval(args[2]), eval(args[3]), args[4], eval(args[5]),)) + +elif cmd == 'get_partitions_ps_with_auth_req': + if len(args) != 1: + print('get_partitions_ps_with_auth_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_ps_with_auth_req(eval(args[0]),)) + +elif cmd == 'get_partition_names_ps': + if len(args) != 4: + print('get_partition_names_ps requires 4 args') + sys.exit(1) + pp.pprint(client.get_partition_names_ps(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'get_partition_names_ps_req': + if len(args) != 1: + print('get_partition_names_ps_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partition_names_ps_req(eval(args[0]),)) + +elif cmd == 'get_partition_names_req': + if len(args) != 1: + print('get_partition_names_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partition_names_req(eval(args[0]),)) + +elif cmd == 'get_partitions_by_filter': + if len(args) != 4: + print('get_partitions_by_filter requires 4 args') + sys.exit(1) + pp.pprint(client.get_partitions_by_filter(args[0], args[1], args[2], eval(args[3]),)) + +elif cmd == 'get_partitions_by_filter_req': + if len(args) != 1: + print('get_partitions_by_filter_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_by_filter_req(eval(args[0]),)) + +elif cmd == 'get_part_specs_by_filter': + if len(args) != 4: + print('get_part_specs_by_filter requires 4 args') + sys.exit(1) + pp.pprint(client.get_part_specs_by_filter(args[0], args[1], args[2], eval(args[3]),)) + +elif cmd == 'get_partitions_by_expr': + if len(args) != 1: + print('get_partitions_by_expr requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_by_expr(eval(args[0]),)) + +elif cmd == 'get_partitions_spec_by_expr': + if len(args) != 1: + print('get_partitions_spec_by_expr requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_spec_by_expr(eval(args[0]),)) + +elif cmd == 'get_num_partitions_by_filter': + if len(args) != 3: + print('get_num_partitions_by_filter requires 3 args') + sys.exit(1) + pp.pprint(client.get_num_partitions_by_filter(args[0], args[1], args[2],)) + +elif cmd == 'get_partitions_by_names': + if len(args) != 3: + print('get_partitions_by_names requires 3 args') + sys.exit(1) + pp.pprint(client.get_partitions_by_names(args[0], args[1], eval(args[2]),)) + +elif cmd == 'get_partitions_by_names_req': + if len(args) != 1: + print('get_partitions_by_names_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_by_names_req(eval(args[0]),)) + +elif cmd == 'get_properties': + if len(args) != 1: + print('get_properties requires 1 args') + sys.exit(1) + pp.pprint(client.get_properties(eval(args[0]),)) + +elif cmd == 'set_properties': + if len(args) != 1: + print('set_properties requires 1 args') + sys.exit(1) + pp.pprint(client.set_properties(eval(args[0]),)) + +elif cmd == 'alter_partition': + if len(args) != 3: + print('alter_partition requires 3 args') + sys.exit(1) + pp.pprint(client.alter_partition(args[0], args[1], eval(args[2]),)) + +elif cmd == 'alter_partitions': + if len(args) != 3: + print('alter_partitions requires 3 args') + sys.exit(1) + pp.pprint(client.alter_partitions(args[0], args[1], eval(args[2]),)) + +elif cmd == 'alter_partitions_with_environment_context': + if len(args) != 4: + print('alter_partitions_with_environment_context requires 4 args') + sys.exit(1) + pp.pprint(client.alter_partitions_with_environment_context(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'alter_partitions_req': + if len(args) != 1: + print('alter_partitions_req requires 1 args') + sys.exit(1) + pp.pprint(client.alter_partitions_req(eval(args[0]),)) + +elif cmd == 'alter_partition_with_environment_context': + if len(args) != 4: + print('alter_partition_with_environment_context requires 4 args') + sys.exit(1) + pp.pprint(client.alter_partition_with_environment_context(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'rename_partition': + if len(args) != 4: + print('rename_partition requires 4 args') + sys.exit(1) + pp.pprint(client.rename_partition(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'rename_partition_req': + if len(args) != 1: + print('rename_partition_req requires 1 args') + sys.exit(1) + pp.pprint(client.rename_partition_req(eval(args[0]),)) + +elif cmd == 'partition_name_has_valid_characters': + if len(args) != 2: + print('partition_name_has_valid_characters requires 2 args') + sys.exit(1) + pp.pprint(client.partition_name_has_valid_characters(eval(args[0]), eval(args[1]),)) + +elif cmd == 'get_config_value': + if len(args) != 2: + print('get_config_value requires 2 args') + sys.exit(1) + pp.pprint(client.get_config_value(args[0], args[1],)) + +elif cmd == 'partition_name_to_vals': + if len(args) != 1: + print('partition_name_to_vals requires 1 args') + sys.exit(1) + pp.pprint(client.partition_name_to_vals(args[0],)) + +elif cmd == 'partition_name_to_spec': + if len(args) != 1: + print('partition_name_to_spec requires 1 args') + sys.exit(1) + pp.pprint(client.partition_name_to_spec(args[0],)) + +elif cmd == 'markPartitionForEvent': + if len(args) != 4: + print('markPartitionForEvent requires 4 args') + sys.exit(1) + pp.pprint(client.markPartitionForEvent(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'isPartitionMarkedForEvent': + if len(args) != 4: + print('isPartitionMarkedForEvent requires 4 args') + sys.exit(1) + pp.pprint(client.isPartitionMarkedForEvent(args[0], args[1], eval(args[2]), eval(args[3]),)) + +elif cmd == 'get_primary_keys': + if len(args) != 1: + print('get_primary_keys requires 1 args') + sys.exit(1) + pp.pprint(client.get_primary_keys(eval(args[0]),)) + +elif cmd == 'get_foreign_keys': + if len(args) != 1: + print('get_foreign_keys requires 1 args') + sys.exit(1) + pp.pprint(client.get_foreign_keys(eval(args[0]),)) + +elif cmd == 'get_unique_constraints': + if len(args) != 1: + print('get_unique_constraints requires 1 args') + sys.exit(1) + pp.pprint(client.get_unique_constraints(eval(args[0]),)) + +elif cmd == 'get_not_null_constraints': + if len(args) != 1: + print('get_not_null_constraints requires 1 args') + sys.exit(1) + pp.pprint(client.get_not_null_constraints(eval(args[0]),)) + +elif cmd == 'get_default_constraints': + if len(args) != 1: + print('get_default_constraints requires 1 args') + sys.exit(1) + pp.pprint(client.get_default_constraints(eval(args[0]),)) + +elif cmd == 'get_check_constraints': + if len(args) != 1: + print('get_check_constraints requires 1 args') + sys.exit(1) + pp.pprint(client.get_check_constraints(eval(args[0]),)) + +elif cmd == 'get_all_table_constraints': + if len(args) != 1: + print('get_all_table_constraints requires 1 args') + sys.exit(1) + pp.pprint(client.get_all_table_constraints(eval(args[0]),)) + +elif cmd == 'update_table_column_statistics': + if len(args) != 1: + print('update_table_column_statistics requires 1 args') + sys.exit(1) + pp.pprint(client.update_table_column_statistics(eval(args[0]),)) + +elif cmd == 'update_partition_column_statistics': + if len(args) != 1: + print('update_partition_column_statistics requires 1 args') + sys.exit(1) + pp.pprint(client.update_partition_column_statistics(eval(args[0]),)) + +elif cmd == 'update_table_column_statistics_req': + if len(args) != 1: + print('update_table_column_statistics_req requires 1 args') + sys.exit(1) + pp.pprint(client.update_table_column_statistics_req(eval(args[0]),)) + +elif cmd == 'update_partition_column_statistics_req': + if len(args) != 1: + print('update_partition_column_statistics_req requires 1 args') + sys.exit(1) + pp.pprint(client.update_partition_column_statistics_req(eval(args[0]),)) + +elif cmd == 'update_transaction_statistics': + if len(args) != 1: + print('update_transaction_statistics requires 1 args') + sys.exit(1) + pp.pprint(client.update_transaction_statistics(eval(args[0]),)) + +elif cmd == 'get_table_column_statistics': + if len(args) != 3: + print('get_table_column_statistics requires 3 args') + sys.exit(1) + pp.pprint(client.get_table_column_statistics(args[0], args[1], args[2],)) + +elif cmd == 'get_partition_column_statistics': + if len(args) != 4: + print('get_partition_column_statistics requires 4 args') + sys.exit(1) + pp.pprint(client.get_partition_column_statistics(args[0], args[1], args[2], args[3],)) + +elif cmd == 'get_table_statistics_req': + if len(args) != 1: + print('get_table_statistics_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_table_statistics_req(eval(args[0]),)) + +elif cmd == 'get_partitions_statistics_req': + if len(args) != 1: + print('get_partitions_statistics_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_statistics_req(eval(args[0]),)) + +elif cmd == 'get_aggr_stats_for': + if len(args) != 1: + print('get_aggr_stats_for requires 1 args') + sys.exit(1) + pp.pprint(client.get_aggr_stats_for(eval(args[0]),)) + +elif cmd == 'set_aggr_stats_for': + if len(args) != 1: + print('set_aggr_stats_for requires 1 args') + sys.exit(1) + pp.pprint(client.set_aggr_stats_for(eval(args[0]),)) + +elif cmd == 'delete_partition_column_statistics': + if len(args) != 5: + print('delete_partition_column_statistics requires 5 args') + sys.exit(1) + pp.pprint(client.delete_partition_column_statistics(args[0], args[1], args[2], args[3], args[4],)) + +elif cmd == 'delete_table_column_statistics': + if len(args) != 4: + print('delete_table_column_statistics requires 4 args') + sys.exit(1) + pp.pprint(client.delete_table_column_statistics(args[0], args[1], args[2], args[3],)) + +elif cmd == 'delete_column_statistics_req': + if len(args) != 1: + print('delete_column_statistics_req requires 1 args') + sys.exit(1) + pp.pprint(client.delete_column_statistics_req(eval(args[0]),)) + +elif cmd == 'create_function': + if len(args) != 1: + print('create_function requires 1 args') + sys.exit(1) + pp.pprint(client.create_function(eval(args[0]),)) + +elif cmd == 'drop_function': + if len(args) != 2: + print('drop_function requires 2 args') + sys.exit(1) + pp.pprint(client.drop_function(args[0], args[1],)) + +elif cmd == 'alter_function': + if len(args) != 3: + print('alter_function requires 3 args') + sys.exit(1) + pp.pprint(client.alter_function(args[0], args[1], eval(args[2]),)) + +elif cmd == 'get_functions': + if len(args) != 2: + print('get_functions requires 2 args') + sys.exit(1) + pp.pprint(client.get_functions(args[0], args[1],)) + +elif cmd == 'get_functions_req': + if len(args) != 1: + print('get_functions_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_functions_req(eval(args[0]),)) + +elif cmd == 'get_function': + if len(args) != 2: + print('get_function requires 2 args') + sys.exit(1) + pp.pprint(client.get_function(args[0], args[1],)) + +elif cmd == 'get_all_functions': + if len(args) != 0: + print('get_all_functions requires 0 args') + sys.exit(1) + pp.pprint(client.get_all_functions()) + +elif cmd == 'create_role': + if len(args) != 1: + print('create_role requires 1 args') + sys.exit(1) + pp.pprint(client.create_role(eval(args[0]),)) + +elif cmd == 'drop_role': + if len(args) != 1: + print('drop_role requires 1 args') + sys.exit(1) + pp.pprint(client.drop_role(args[0],)) + +elif cmd == 'get_role_names': + if len(args) != 0: + print('get_role_names requires 0 args') + sys.exit(1) + pp.pprint(client.get_role_names()) + +elif cmd == 'grant_role': + if len(args) != 6: + print('grant_role requires 6 args') + sys.exit(1) + pp.pprint(client.grant_role(args[0], args[1], eval(args[2]), args[3], eval(args[4]), eval(args[5]),)) + +elif cmd == 'revoke_role': + if len(args) != 3: + print('revoke_role requires 3 args') + sys.exit(1) + pp.pprint(client.revoke_role(args[0], args[1], eval(args[2]),)) + +elif cmd == 'list_roles': + if len(args) != 2: + print('list_roles requires 2 args') + sys.exit(1) + pp.pprint(client.list_roles(args[0], eval(args[1]),)) + +elif cmd == 'grant_revoke_role': + if len(args) != 1: + print('grant_revoke_role requires 1 args') + sys.exit(1) + pp.pprint(client.grant_revoke_role(eval(args[0]),)) + +elif cmd == 'get_principals_in_role': + if len(args) != 1: + print('get_principals_in_role requires 1 args') + sys.exit(1) + pp.pprint(client.get_principals_in_role(eval(args[0]),)) + +elif cmd == 'get_role_grants_for_principal': + if len(args) != 1: + print('get_role_grants_for_principal requires 1 args') + sys.exit(1) + pp.pprint(client.get_role_grants_for_principal(eval(args[0]),)) + +elif cmd == 'get_privilege_set': + if len(args) != 3: + print('get_privilege_set requires 3 args') + sys.exit(1) + pp.pprint(client.get_privilege_set(eval(args[0]), args[1], eval(args[2]),)) + +elif cmd == 'list_privileges': + if len(args) != 3: + print('list_privileges requires 3 args') + sys.exit(1) + pp.pprint(client.list_privileges(args[0], eval(args[1]), eval(args[2]),)) + +elif cmd == 'grant_privileges': + if len(args) != 1: + print('grant_privileges requires 1 args') + sys.exit(1) + pp.pprint(client.grant_privileges(eval(args[0]),)) + +elif cmd == 'revoke_privileges': + if len(args) != 1: + print('revoke_privileges requires 1 args') + sys.exit(1) + pp.pprint(client.revoke_privileges(eval(args[0]),)) + +elif cmd == 'grant_revoke_privileges': + if len(args) != 1: + print('grant_revoke_privileges requires 1 args') + sys.exit(1) + pp.pprint(client.grant_revoke_privileges(eval(args[0]),)) + +elif cmd == 'refresh_privileges': + if len(args) != 3: + print('refresh_privileges requires 3 args') + sys.exit(1) + pp.pprint(client.refresh_privileges(eval(args[0]), args[1], eval(args[2]),)) + +elif cmd == 'set_ugi': + if len(args) != 2: + print('set_ugi requires 2 args') + sys.exit(1) + pp.pprint(client.set_ugi(args[0], eval(args[1]),)) + +elif cmd == 'get_delegation_token': + if len(args) != 2: + print('get_delegation_token requires 2 args') + sys.exit(1) + pp.pprint(client.get_delegation_token(args[0], args[1],)) + +elif cmd == 'renew_delegation_token': + if len(args) != 1: + print('renew_delegation_token requires 1 args') + sys.exit(1) + pp.pprint(client.renew_delegation_token(args[0],)) + +elif cmd == 'cancel_delegation_token': + if len(args) != 1: + print('cancel_delegation_token requires 1 args') + sys.exit(1) + pp.pprint(client.cancel_delegation_token(args[0],)) + +elif cmd == 'add_token': + if len(args) != 2: + print('add_token requires 2 args') + sys.exit(1) + pp.pprint(client.add_token(args[0], args[1],)) + +elif cmd == 'remove_token': + if len(args) != 1: + print('remove_token requires 1 args') + sys.exit(1) + pp.pprint(client.remove_token(args[0],)) + +elif cmd == 'get_token': + if len(args) != 1: + print('get_token requires 1 args') + sys.exit(1) + pp.pprint(client.get_token(args[0],)) + +elif cmd == 'get_all_token_identifiers': + if len(args) != 0: + print('get_all_token_identifiers requires 0 args') + sys.exit(1) + pp.pprint(client.get_all_token_identifiers()) + +elif cmd == 'add_master_key': + if len(args) != 1: + print('add_master_key requires 1 args') + sys.exit(1) + pp.pprint(client.add_master_key(args[0],)) + +elif cmd == 'update_master_key': + if len(args) != 2: + print('update_master_key requires 2 args') + sys.exit(1) + pp.pprint(client.update_master_key(eval(args[0]), args[1],)) + +elif cmd == 'remove_master_key': + if len(args) != 1: + print('remove_master_key requires 1 args') + sys.exit(1) + pp.pprint(client.remove_master_key(eval(args[0]),)) + +elif cmd == 'get_master_keys': + if len(args) != 0: + print('get_master_keys requires 0 args') + sys.exit(1) + pp.pprint(client.get_master_keys()) + +elif cmd == 'get_open_txns': + if len(args) != 0: + print('get_open_txns requires 0 args') + sys.exit(1) + pp.pprint(client.get_open_txns()) + +elif cmd == 'get_open_txns_info': + if len(args) != 0: + print('get_open_txns_info requires 0 args') + sys.exit(1) + pp.pprint(client.get_open_txns_info()) + +elif cmd == 'open_txns': + if len(args) != 1: + print('open_txns requires 1 args') + sys.exit(1) + pp.pprint(client.open_txns(eval(args[0]),)) + +elif cmd == 'abort_txn': + if len(args) != 1: + print('abort_txn requires 1 args') + sys.exit(1) + pp.pprint(client.abort_txn(eval(args[0]),)) + +elif cmd == 'abort_txns': + if len(args) != 1: + print('abort_txns requires 1 args') + sys.exit(1) + pp.pprint(client.abort_txns(eval(args[0]),)) + +elif cmd == 'commit_txn': + if len(args) != 1: + print('commit_txn requires 1 args') + sys.exit(1) + pp.pprint(client.commit_txn(eval(args[0]),)) + +elif cmd == 'get_latest_txnid_in_conflict': + if len(args) != 1: + print('get_latest_txnid_in_conflict requires 1 args') + sys.exit(1) + pp.pprint(client.get_latest_txnid_in_conflict(eval(args[0]),)) + +elif cmd == 'repl_tbl_writeid_state': + if len(args) != 1: + print('repl_tbl_writeid_state requires 1 args') + sys.exit(1) + pp.pprint(client.repl_tbl_writeid_state(eval(args[0]),)) + +elif cmd == 'get_valid_write_ids': + if len(args) != 1: + print('get_valid_write_ids requires 1 args') + sys.exit(1) + pp.pprint(client.get_valid_write_ids(eval(args[0]),)) + +elif cmd == 'add_write_ids_to_min_history': + if len(args) != 2: + print('add_write_ids_to_min_history requires 2 args') + sys.exit(1) + pp.pprint(client.add_write_ids_to_min_history(eval(args[0]), eval(args[1]),)) + +elif cmd == 'allocate_table_write_ids': + if len(args) != 1: + print('allocate_table_write_ids requires 1 args') + sys.exit(1) + pp.pprint(client.allocate_table_write_ids(eval(args[0]),)) + +elif cmd == 'get_max_allocated_table_write_id': + if len(args) != 1: + print('get_max_allocated_table_write_id requires 1 args') + sys.exit(1) + pp.pprint(client.get_max_allocated_table_write_id(eval(args[0]),)) + +elif cmd == 'seed_write_id': + if len(args) != 1: + print('seed_write_id requires 1 args') + sys.exit(1) + pp.pprint(client.seed_write_id(eval(args[0]),)) + +elif cmd == 'seed_txn_id': + if len(args) != 1: + print('seed_txn_id requires 1 args') + sys.exit(1) + pp.pprint(client.seed_txn_id(eval(args[0]),)) + +elif cmd == 'lock': + if len(args) != 1: + print('lock requires 1 args') + sys.exit(1) + pp.pprint(client.lock(eval(args[0]),)) + +elif cmd == 'check_lock': + if len(args) != 1: + print('check_lock requires 1 args') + sys.exit(1) + pp.pprint(client.check_lock(eval(args[0]),)) + +elif cmd == 'unlock': + if len(args) != 1: + print('unlock requires 1 args') + sys.exit(1) + pp.pprint(client.unlock(eval(args[0]),)) + +elif cmd == 'show_locks': + if len(args) != 1: + print('show_locks requires 1 args') + sys.exit(1) + pp.pprint(client.show_locks(eval(args[0]),)) + +elif cmd == 'heartbeat': + if len(args) != 1: + print('heartbeat requires 1 args') + sys.exit(1) + pp.pprint(client.heartbeat(eval(args[0]),)) + +elif cmd == 'heartbeat_txn_range': + if len(args) != 1: + print('heartbeat_txn_range requires 1 args') + sys.exit(1) + pp.pprint(client.heartbeat_txn_range(eval(args[0]),)) + +elif cmd == 'compact': + if len(args) != 1: + print('compact requires 1 args') + sys.exit(1) + pp.pprint(client.compact(eval(args[0]),)) + +elif cmd == 'compact2': + if len(args) != 1: + print('compact2 requires 1 args') + sys.exit(1) + pp.pprint(client.compact2(eval(args[0]),)) + +elif cmd == 'show_compact': + if len(args) != 1: + print('show_compact requires 1 args') + sys.exit(1) + pp.pprint(client.show_compact(eval(args[0]),)) + +elif cmd == 'submit_for_cleanup': + if len(args) != 3: + print('submit_for_cleanup requires 3 args') + sys.exit(1) + pp.pprint(client.submit_for_cleanup(eval(args[0]), eval(args[1]), eval(args[2]),)) + +elif cmd == 'add_dynamic_partitions': + if len(args) != 1: + print('add_dynamic_partitions requires 1 args') + sys.exit(1) + pp.pprint(client.add_dynamic_partitions(eval(args[0]),)) + +elif cmd == 'find_next_compact': + if len(args) != 1: + print('find_next_compact requires 1 args') + sys.exit(1) + pp.pprint(client.find_next_compact(args[0],)) + +elif cmd == 'find_next_compact2': + if len(args) != 1: + print('find_next_compact2 requires 1 args') + sys.exit(1) + pp.pprint(client.find_next_compact2(eval(args[0]),)) + +elif cmd == 'update_compactor_state': + if len(args) != 2: + print('update_compactor_state requires 2 args') + sys.exit(1) + pp.pprint(client.update_compactor_state(eval(args[0]), eval(args[1]),)) + +elif cmd == 'find_columns_with_stats': + if len(args) != 1: + print('find_columns_with_stats requires 1 args') + sys.exit(1) + pp.pprint(client.find_columns_with_stats(eval(args[0]),)) + +elif cmd == 'mark_cleaned': + if len(args) != 1: + print('mark_cleaned requires 1 args') + sys.exit(1) + pp.pprint(client.mark_cleaned(eval(args[0]),)) + +elif cmd == 'mark_compacted': + if len(args) != 1: + print('mark_compacted requires 1 args') + sys.exit(1) + pp.pprint(client.mark_compacted(eval(args[0]),)) + +elif cmd == 'mark_failed': + if len(args) != 1: + print('mark_failed requires 1 args') + sys.exit(1) + pp.pprint(client.mark_failed(eval(args[0]),)) + +elif cmd == 'mark_refused': + if len(args) != 1: + print('mark_refused requires 1 args') + sys.exit(1) + pp.pprint(client.mark_refused(eval(args[0]),)) + +elif cmd == 'update_compaction_metrics_data': + if len(args) != 1: + print('update_compaction_metrics_data requires 1 args') + sys.exit(1) + pp.pprint(client.update_compaction_metrics_data(eval(args[0]),)) + +elif cmd == 'remove_compaction_metrics_data': + if len(args) != 1: + print('remove_compaction_metrics_data requires 1 args') + sys.exit(1) + pp.pprint(client.remove_compaction_metrics_data(eval(args[0]),)) + +elif cmd == 'set_hadoop_jobid': + if len(args) != 2: + print('set_hadoop_jobid requires 2 args') + sys.exit(1) + pp.pprint(client.set_hadoop_jobid(args[0], eval(args[1]),)) + +elif cmd == 'get_latest_committed_compaction_info': + if len(args) != 1: + print('get_latest_committed_compaction_info requires 1 args') + sys.exit(1) + pp.pprint(client.get_latest_committed_compaction_info(eval(args[0]),)) + +elif cmd == 'get_next_notification': + if len(args) != 1: + print('get_next_notification requires 1 args') + sys.exit(1) + pp.pprint(client.get_next_notification(eval(args[0]),)) + +elif cmd == 'get_current_notificationEventId': + if len(args) != 0: + print('get_current_notificationEventId requires 0 args') + sys.exit(1) + pp.pprint(client.get_current_notificationEventId()) + +elif cmd == 'get_notification_events_count': + if len(args) != 1: + print('get_notification_events_count requires 1 args') + sys.exit(1) + pp.pprint(client.get_notification_events_count(eval(args[0]),)) + +elif cmd == 'fire_listener_event': + if len(args) != 1: + print('fire_listener_event requires 1 args') + sys.exit(1) + pp.pprint(client.fire_listener_event(eval(args[0]),)) + +elif cmd == 'flushCache': + if len(args) != 0: + print('flushCache requires 0 args') + sys.exit(1) + pp.pprint(client.flushCache()) + +elif cmd == 'add_write_notification_log': + if len(args) != 1: + print('add_write_notification_log requires 1 args') + sys.exit(1) + pp.pprint(client.add_write_notification_log(eval(args[0]),)) + +elif cmd == 'add_write_notification_log_in_batch': + if len(args) != 1: + print('add_write_notification_log_in_batch requires 1 args') + sys.exit(1) + pp.pprint(client.add_write_notification_log_in_batch(eval(args[0]),)) + +elif cmd == 'cm_recycle': + if len(args) != 1: + print('cm_recycle requires 1 args') + sys.exit(1) + pp.pprint(client.cm_recycle(eval(args[0]),)) + +elif cmd == 'get_file_metadata_by_expr': + if len(args) != 1: + print('get_file_metadata_by_expr requires 1 args') + sys.exit(1) + pp.pprint(client.get_file_metadata_by_expr(eval(args[0]),)) + +elif cmd == 'get_file_metadata': + if len(args) != 1: + print('get_file_metadata requires 1 args') + sys.exit(1) + pp.pprint(client.get_file_metadata(eval(args[0]),)) + +elif cmd == 'put_file_metadata': + if len(args) != 1: + print('put_file_metadata requires 1 args') + sys.exit(1) + pp.pprint(client.put_file_metadata(eval(args[0]),)) + +elif cmd == 'clear_file_metadata': + if len(args) != 1: + print('clear_file_metadata requires 1 args') + sys.exit(1) + pp.pprint(client.clear_file_metadata(eval(args[0]),)) + +elif cmd == 'cache_file_metadata': + if len(args) != 1: + print('cache_file_metadata requires 1 args') + sys.exit(1) + pp.pprint(client.cache_file_metadata(eval(args[0]),)) + +elif cmd == 'get_metastore_db_uuid': + if len(args) != 0: + print('get_metastore_db_uuid requires 0 args') + sys.exit(1) + pp.pprint(client.get_metastore_db_uuid()) + +elif cmd == 'create_resource_plan': + if len(args) != 1: + print('create_resource_plan requires 1 args') + sys.exit(1) + pp.pprint(client.create_resource_plan(eval(args[0]),)) + +elif cmd == 'get_resource_plan': + if len(args) != 1: + print('get_resource_plan requires 1 args') + sys.exit(1) + pp.pprint(client.get_resource_plan(eval(args[0]),)) + +elif cmd == 'get_active_resource_plan': + if len(args) != 1: + print('get_active_resource_plan requires 1 args') + sys.exit(1) + pp.pprint(client.get_active_resource_plan(eval(args[0]),)) + +elif cmd == 'get_all_resource_plans': + if len(args) != 1: + print('get_all_resource_plans requires 1 args') + sys.exit(1) + pp.pprint(client.get_all_resource_plans(eval(args[0]),)) + +elif cmd == 'alter_resource_plan': + if len(args) != 1: + print('alter_resource_plan requires 1 args') + sys.exit(1) + pp.pprint(client.alter_resource_plan(eval(args[0]),)) + +elif cmd == 'validate_resource_plan': + if len(args) != 1: + print('validate_resource_plan requires 1 args') + sys.exit(1) + pp.pprint(client.validate_resource_plan(eval(args[0]),)) + +elif cmd == 'drop_resource_plan': + if len(args) != 1: + print('drop_resource_plan requires 1 args') + sys.exit(1) + pp.pprint(client.drop_resource_plan(eval(args[0]),)) + +elif cmd == 'create_wm_trigger': + if len(args) != 1: + print('create_wm_trigger requires 1 args') + sys.exit(1) + pp.pprint(client.create_wm_trigger(eval(args[0]),)) + +elif cmd == 'alter_wm_trigger': + if len(args) != 1: + print('alter_wm_trigger requires 1 args') + sys.exit(1) + pp.pprint(client.alter_wm_trigger(eval(args[0]),)) + +elif cmd == 'drop_wm_trigger': + if len(args) != 1: + print('drop_wm_trigger requires 1 args') + sys.exit(1) + pp.pprint(client.drop_wm_trigger(eval(args[0]),)) + +elif cmd == 'get_triggers_for_resourceplan': + if len(args) != 1: + print('get_triggers_for_resourceplan requires 1 args') + sys.exit(1) + pp.pprint(client.get_triggers_for_resourceplan(eval(args[0]),)) + +elif cmd == 'create_wm_pool': + if len(args) != 1: + print('create_wm_pool requires 1 args') + sys.exit(1) + pp.pprint(client.create_wm_pool(eval(args[0]),)) + +elif cmd == 'alter_wm_pool': + if len(args) != 1: + print('alter_wm_pool requires 1 args') + sys.exit(1) + pp.pprint(client.alter_wm_pool(eval(args[0]),)) + +elif cmd == 'drop_wm_pool': + if len(args) != 1: + print('drop_wm_pool requires 1 args') + sys.exit(1) + pp.pprint(client.drop_wm_pool(eval(args[0]),)) + +elif cmd == 'create_or_update_wm_mapping': + if len(args) != 1: + print('create_or_update_wm_mapping requires 1 args') + sys.exit(1) + pp.pprint(client.create_or_update_wm_mapping(eval(args[0]),)) + +elif cmd == 'drop_wm_mapping': + if len(args) != 1: + print('drop_wm_mapping requires 1 args') + sys.exit(1) + pp.pprint(client.drop_wm_mapping(eval(args[0]),)) + +elif cmd == 'create_or_drop_wm_trigger_to_pool_mapping': + if len(args) != 1: + print('create_or_drop_wm_trigger_to_pool_mapping requires 1 args') + sys.exit(1) + pp.pprint(client.create_or_drop_wm_trigger_to_pool_mapping(eval(args[0]),)) + +elif cmd == 'create_ischema': + if len(args) != 1: + print('create_ischema requires 1 args') + sys.exit(1) + pp.pprint(client.create_ischema(eval(args[0]),)) + +elif cmd == 'alter_ischema': + if len(args) != 1: + print('alter_ischema requires 1 args') + sys.exit(1) + pp.pprint(client.alter_ischema(eval(args[0]),)) + +elif cmd == 'get_ischema': + if len(args) != 1: + print('get_ischema requires 1 args') + sys.exit(1) + pp.pprint(client.get_ischema(eval(args[0]),)) + +elif cmd == 'drop_ischema': + if len(args) != 1: + print('drop_ischema requires 1 args') + sys.exit(1) + pp.pprint(client.drop_ischema(eval(args[0]),)) + +elif cmd == 'add_schema_version': + if len(args) != 1: + print('add_schema_version requires 1 args') + sys.exit(1) + pp.pprint(client.add_schema_version(eval(args[0]),)) + +elif cmd == 'get_schema_version': + if len(args) != 1: + print('get_schema_version requires 1 args') + sys.exit(1) + pp.pprint(client.get_schema_version(eval(args[0]),)) + +elif cmd == 'get_schema_latest_version': + if len(args) != 1: + print('get_schema_latest_version requires 1 args') + sys.exit(1) + pp.pprint(client.get_schema_latest_version(eval(args[0]),)) + +elif cmd == 'get_schema_all_versions': + if len(args) != 1: + print('get_schema_all_versions requires 1 args') + sys.exit(1) + pp.pprint(client.get_schema_all_versions(eval(args[0]),)) + +elif cmd == 'drop_schema_version': + if len(args) != 1: + print('drop_schema_version requires 1 args') + sys.exit(1) + pp.pprint(client.drop_schema_version(eval(args[0]),)) + +elif cmd == 'get_schemas_by_cols': + if len(args) != 1: + print('get_schemas_by_cols requires 1 args') + sys.exit(1) + pp.pprint(client.get_schemas_by_cols(eval(args[0]),)) + +elif cmd == 'map_schema_version_to_serde': + if len(args) != 1: + print('map_schema_version_to_serde requires 1 args') + sys.exit(1) + pp.pprint(client.map_schema_version_to_serde(eval(args[0]),)) + +elif cmd == 'set_schema_version_state': + if len(args) != 1: + print('set_schema_version_state requires 1 args') + sys.exit(1) + pp.pprint(client.set_schema_version_state(eval(args[0]),)) + +elif cmd == 'add_serde': + if len(args) != 1: + print('add_serde requires 1 args') + sys.exit(1) + pp.pprint(client.add_serde(eval(args[0]),)) + +elif cmd == 'get_serde': + if len(args) != 1: + print('get_serde requires 1 args') + sys.exit(1) + pp.pprint(client.get_serde(eval(args[0]),)) + +elif cmd == 'get_lock_materialization_rebuild': + if len(args) != 3: + print('get_lock_materialization_rebuild requires 3 args') + sys.exit(1) + pp.pprint(client.get_lock_materialization_rebuild(args[0], args[1], eval(args[2]),)) + +elif cmd == 'heartbeat_lock_materialization_rebuild': + if len(args) != 3: + print('heartbeat_lock_materialization_rebuild requires 3 args') + sys.exit(1) + pp.pprint(client.heartbeat_lock_materialization_rebuild(args[0], args[1], eval(args[2]),)) + +elif cmd == 'add_runtime_stats': + if len(args) != 1: + print('add_runtime_stats requires 1 args') + sys.exit(1) + pp.pprint(client.add_runtime_stats(eval(args[0]),)) + +elif cmd == 'get_runtime_stats': + if len(args) != 1: + print('get_runtime_stats requires 1 args') + sys.exit(1) + pp.pprint(client.get_runtime_stats(eval(args[0]),)) + +elif cmd == 'get_partitions_with_specs': + if len(args) != 1: + print('get_partitions_with_specs requires 1 args') + sys.exit(1) + pp.pprint(client.get_partitions_with_specs(eval(args[0]),)) + +elif cmd == 'scheduled_query_poll': + if len(args) != 1: + print('scheduled_query_poll requires 1 args') + sys.exit(1) + pp.pprint(client.scheduled_query_poll(eval(args[0]),)) + +elif cmd == 'scheduled_query_maintenance': + if len(args) != 1: + print('scheduled_query_maintenance requires 1 args') + sys.exit(1) + pp.pprint(client.scheduled_query_maintenance(eval(args[0]),)) + +elif cmd == 'scheduled_query_progress': + if len(args) != 1: + print('scheduled_query_progress requires 1 args') + sys.exit(1) + pp.pprint(client.scheduled_query_progress(eval(args[0]),)) + +elif cmd == 'get_scheduled_query': + if len(args) != 1: + print('get_scheduled_query requires 1 args') + sys.exit(1) + pp.pprint(client.get_scheduled_query(eval(args[0]),)) + +elif cmd == 'add_replication_metrics': + if len(args) != 1: + print('add_replication_metrics requires 1 args') + sys.exit(1) + pp.pprint(client.add_replication_metrics(eval(args[0]),)) + +elif cmd == 'get_replication_metrics': + if len(args) != 1: + print('get_replication_metrics requires 1 args') + sys.exit(1) + pp.pprint(client.get_replication_metrics(eval(args[0]),)) + +elif cmd == 'get_open_txns_req': + if len(args) != 1: + print('get_open_txns_req requires 1 args') + sys.exit(1) + pp.pprint(client.get_open_txns_req(eval(args[0]),)) + +elif cmd == 'create_stored_procedure': + if len(args) != 1: + print('create_stored_procedure requires 1 args') + sys.exit(1) + pp.pprint(client.create_stored_procedure(eval(args[0]),)) + +elif cmd == 'get_stored_procedure': + if len(args) != 1: + print('get_stored_procedure requires 1 args') + sys.exit(1) + pp.pprint(client.get_stored_procedure(eval(args[0]),)) + +elif cmd == 'drop_stored_procedure': + if len(args) != 1: + print('drop_stored_procedure requires 1 args') + sys.exit(1) + pp.pprint(client.drop_stored_procedure(eval(args[0]),)) + +elif cmd == 'get_all_stored_procedures': + if len(args) != 1: + print('get_all_stored_procedures requires 1 args') + sys.exit(1) + pp.pprint(client.get_all_stored_procedures(eval(args[0]),)) + +elif cmd == 'find_package': + if len(args) != 1: + print('find_package requires 1 args') + sys.exit(1) + pp.pprint(client.find_package(eval(args[0]),)) + +elif cmd == 'add_package': + if len(args) != 1: + print('add_package requires 1 args') + sys.exit(1) + pp.pprint(client.add_package(eval(args[0]),)) + +elif cmd == 'get_all_packages': + if len(args) != 1: + print('get_all_packages requires 1 args') + sys.exit(1) + pp.pprint(client.get_all_packages(eval(args[0]),)) + +elif cmd == 'drop_package': + if len(args) != 1: + print('drop_package requires 1 args') + sys.exit(1) + pp.pprint(client.drop_package(eval(args[0]),)) + +elif cmd == 'get_all_write_event_info': + if len(args) != 1: + print('get_all_write_event_info requires 1 args') + sys.exit(1) + pp.pprint(client.get_all_write_event_info(eval(args[0]),)) + +elif cmd == 'get_replayed_txns_for_policy': + if len(args) != 1: + print('get_replayed_txns_for_policy requires 1 args') + sys.exit(1) + pp.pprint(client.get_replayed_txns_for_policy(args[0],)) + +elif cmd == 'getName': + if len(args) != 0: + print('getName requires 0 args') + sys.exit(1) + pp.pprint(client.getName()) + +elif cmd == 'getVersion': + if len(args) != 0: + print('getVersion requires 0 args') + sys.exit(1) + pp.pprint(client.getVersion()) + +elif cmd == 'getStatus': + if len(args) != 0: + print('getStatus requires 0 args') + sys.exit(1) + pp.pprint(client.getStatus()) + +elif cmd == 'getStatusDetails': + if len(args) != 0: + print('getStatusDetails requires 0 args') + sys.exit(1) + pp.pprint(client.getStatusDetails()) + +elif cmd == 'getCounters': + if len(args) != 0: + print('getCounters requires 0 args') + sys.exit(1) + pp.pprint(client.getCounters()) + +elif cmd == 'getCounter': + if len(args) != 1: + print('getCounter requires 1 args') + sys.exit(1) + pp.pprint(client.getCounter(args[0],)) + +elif cmd == 'setOption': + if len(args) != 2: + print('setOption requires 2 args') + sys.exit(1) + pp.pprint(client.setOption(args[0], args[1],)) + +elif cmd == 'getOption': + if len(args) != 1: + print('getOption requires 1 args') + sys.exit(1) + pp.pprint(client.getOption(args[0],)) + +elif cmd == 'getOptions': + if len(args) != 0: + print('getOptions requires 0 args') + sys.exit(1) + pp.pprint(client.getOptions()) + +elif cmd == 'getCpuProfile': + if len(args) != 1: + print('getCpuProfile requires 1 args') + sys.exit(1) + pp.pprint(client.getCpuProfile(eval(args[0]),)) + +elif cmd == 'aliveSince': + if len(args) != 0: + print('aliveSince requires 0 args') + sys.exit(1) + pp.pprint(client.aliveSince()) + +elif cmd == 'reinitialize': + if len(args) != 0: + print('reinitialize requires 0 args') + sys.exit(1) + pp.pprint(client.reinitialize()) + +elif cmd == 'shutdown': + if len(args) != 0: + print('shutdown requires 0 args') + sys.exit(1) + pp.pprint(client.shutdown()) + +else: + print('Unrecognized method %s' % cmd) + sys.exit(1) + +transport.close() diff --git a/vendor/hive_metastore/ThriftHiveMetastore.py b/vendor/hive_metastore/ThriftHiveMetastore.py index 4d25c087c7..7b38e73828 100644 --- a/vendor/hive_metastore/ThriftHiveMetastore.py +++ b/vendor/hive_metastore/ThriftHiveMetastore.py @@ -1,42 +1,22 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Autogenerated by Thrift Compiler (0.16.0) +# Autogenerated by Thrift Compiler (0.22.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # -import logging -import sys - -import fb303.FacebookService -from thrift.Thrift import ( - TApplicationException, - TMessageType, - TProcessor, - TType, -) -from thrift.transport import TTransport +from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException +from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec +from uuid import UUID +import sys +import fb303.FacebookService +import logging from .ttypes import * - +from thrift.Thrift import TProcessor +from thrift.transport import TTransport all_structs = [] @@ -45,6 +25,13 @@ class Iface(fb303.FacebookService.Iface): This interface is live. """ + def abort_Compactions(self, rqst): + """ + Parameters: + - rqst + + """ + pass def getMetaConf(self, key): """ @@ -106,6 +93,14 @@ def create_database(self, database): """ pass + def create_database_req(self, createDatabaseRequest): + """ + Parameters: + - createDatabaseRequest + + """ + pass + def get_database(self, name): """ Parameters: @@ -151,6 +146,14 @@ def get_databases(self, pattern): def get_all_databases(self): pass + def get_databases_req(self, request): + """ + Parameters: + - request + + """ + pass + def alter_database(self, dbname, db): """ Parameters: @@ -160,10 +163,18 @@ def alter_database(self, dbname, db): """ pass - def create_dataconnector(self, connector): + def alter_database_req(self, alterDbReq): """ Parameters: - - connector + - alterDbReq + + """ + pass + + def create_dataconnector_req(self, connectorReq): + """ + Parameters: + - connectorReq """ pass @@ -176,12 +187,10 @@ def get_dataconnector_req(self, request): """ pass - def drop_dataconnector(self, name, ifNotExists, checkReferences): + def drop_dataconnector_req(self, dropDcReq): """ Parameters: - - name - - ifNotExists - - checkReferences + - dropDcReq """ pass @@ -189,11 +198,10 @@ def drop_dataconnector(self, name, ifNotExists, checkReferences): def get_dataconnectors(self): pass - def alter_dataconnector(self, name, connector): + def alter_dataconnector_req(self, alterReq): """ Parameters: - - name - - connector + - alterReq """ pass @@ -301,9 +309,7 @@ def create_table_with_environment_context(self, tbl, environment_context): """ pass - def create_table_with_constraints( - self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints - ): + def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints): """ Parameters: - tbl @@ -410,6 +416,14 @@ def drop_table_with_environment_context(self, dbname, name, deleteData, environm """ pass + def drop_table_req(self, dropTableReq): + """ + Parameters: + - dropTableReq + + """ + pass + def truncate_table(self, dbName, tableName, partNames): """ Parameters: @@ -476,24 +490,6 @@ def get_all_tables(self, db_name): """ pass - def get_table(self, dbname, tbl_name): - """ - Parameters: - - dbname - - tbl_name - - """ - pass - - def get_table_objects_by_name(self, dbname, tbl_names): - """ - Parameters: - - dbname - - tbl_names - - """ - pass - def get_tables_ext(self, req): """ Parameters: @@ -650,6 +646,14 @@ def append_partition_with_environment_context(self, db_name, tbl_name, part_vals """ pass + def append_partition_req(self, appendPartitionsReq): + """ + Parameters: + - appendPartitionsReq + + """ + pass + def append_partition_by_name(self, db_name, tbl_name, part_name): """ Parameters: @@ -694,6 +698,14 @@ def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, """ pass + def drop_partition_req(self, dropPartitionReq): + """ + Parameters: + - dropPartitionReq + + """ + pass + def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData): """ Parameters: @@ -839,6 +851,14 @@ def get_partition_names(self, db_name, tbl_name, max_parts): """ pass + def fetch_partition_names_req(self, partitionReq): + """ + Parameters: + - partitionReq + + """ + pass + def get_partition_values(self, request): """ Parameters: @@ -917,6 +937,14 @@ def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts): """ pass + def get_partitions_by_filter_req(self, req): + """ + Parameters: + - req + + """ + pass + def get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts): """ Parameters: @@ -972,6 +1000,22 @@ def get_partitions_by_names_req(self, req): """ pass + def get_properties(self, req): + """ + Parameters: + - req + + """ + pass + + def set_properties(self, req): + """ + Parameters: + - req + + """ + pass + def alter_partition(self, db_name, tbl_name, new_part): """ Parameters: @@ -1269,6 +1313,14 @@ def delete_table_column_statistics(self, db_name, tbl_name, col_name, engine): """ pass + def delete_column_statistics_req(self, req): + """ + Parameters: + - req + + """ + pass + def create_function(self, func): """ Parameters: @@ -1305,6 +1357,14 @@ def get_functions(self, dbName, pattern): """ pass + def get_functions_req(self, request): + """ + Parameters: + - request + + """ + pass + def get_function(self, dbName, funcName): """ Parameters: @@ -1598,6 +1658,15 @@ def get_valid_write_ids(self, rqst): """ pass + def add_write_ids_to_min_history(self, txnId, writeIds): + """ + Parameters: + - txnId + - writeIds + + """ + pass + def allocate_table_write_ids(self, rqst): """ Parameters: @@ -1702,6 +1771,16 @@ def show_compact(self, rqst): """ pass + def submit_for_cleanup(self, o1, o2, o3): + """ + Parameters: + - o1 + - o2 + - o3 + + """ + pass + def add_dynamic_partitions(self, rqst): """ Parameters: @@ -2325,16 +2404,55 @@ def get_all_write_event_info(self, request): """ pass + def get_replayed_txns_for_policy(self, policyName): + """ + Parameters: + - policyName + + """ + pass + class Client(fb303.FacebookService.Client, Iface): """ This interface is live. """ - def __init__(self, iprot, oprot=None): fb303.FacebookService.Client.__init__(self, iprot, oprot) + def abort_Compactions(self, rqst): + """ + Parameters: + - rqst + + """ + self.send_abort_Compactions(rqst) + return self.recv_abort_Compactions() + + def send_abort_Compactions(self, rqst): + self._oprot.writeMessageBegin('abort_Compactions', TMessageType.CALL, self._seqid) + args = abort_Compactions_args() + args.rqst = rqst + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_abort_Compactions(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = abort_Compactions_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "abort_Compactions failed: unknown result") + def getMetaConf(self, key): """ Parameters: @@ -2345,7 +2463,7 @@ def getMetaConf(self, key): return self.recv_getMetaConf() def send_getMetaConf(self, key): - self._oprot.writeMessageBegin("getMetaConf", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('getMetaConf', TMessageType.CALL, self._seqid) args = getMetaConf_args() args.key = key args.write(self._oprot) @@ -2380,7 +2498,7 @@ def setMetaConf(self, key, value): self.recv_setMetaConf() def send_setMetaConf(self, key, value): - self._oprot.writeMessageBegin("setMetaConf", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('setMetaConf', TMessageType.CALL, self._seqid) args = setMetaConf_args() args.key = key args.value = value @@ -2413,7 +2531,7 @@ def create_catalog(self, catalog): self.recv_create_catalog() def send_create_catalog(self, catalog): - self._oprot.writeMessageBegin("create_catalog", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_catalog', TMessageType.CALL, self._seqid) args = create_catalog_args() args.catalog = catalog args.write(self._oprot) @@ -2449,7 +2567,7 @@ def alter_catalog(self, rqst): self.recv_alter_catalog() def send_alter_catalog(self, rqst): - self._oprot.writeMessageBegin("alter_catalog", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_catalog', TMessageType.CALL, self._seqid) args = alter_catalog_args() args.rqst = rqst args.write(self._oprot) @@ -2485,7 +2603,7 @@ def get_catalog(self, catName): return self.recv_get_catalog() def send_get_catalog(self, catName): - self._oprot.writeMessageBegin("get_catalog", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_catalog', TMessageType.CALL, self._seqid) args = get_catalog_args() args.catName = catName args.write(self._oprot) @@ -2516,7 +2634,7 @@ def get_catalogs(self): return self.recv_get_catalogs() def send_get_catalogs(self): - self._oprot.writeMessageBegin("get_catalogs", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_catalogs', TMessageType.CALL, self._seqid) args = get_catalogs_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2549,7 +2667,7 @@ def drop_catalog(self, catName): self.recv_drop_catalog() def send_drop_catalog(self, catName): - self._oprot.writeMessageBegin("drop_catalog", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_catalog', TMessageType.CALL, self._seqid) args = drop_catalog_args() args.catName = catName args.write(self._oprot) @@ -2585,7 +2703,7 @@ def create_database(self, database): self.recv_create_database() def send_create_database(self, database): - self._oprot.writeMessageBegin("create_database", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_database', TMessageType.CALL, self._seqid) args = create_database_args() args.database = database args.write(self._oprot) @@ -2611,6 +2729,42 @@ def recv_create_database(self): raise result.o3 return + def create_database_req(self, createDatabaseRequest): + """ + Parameters: + - createDatabaseRequest + + """ + self.send_create_database_req(createDatabaseRequest) + self.recv_create_database_req() + + def send_create_database_req(self, createDatabaseRequest): + self._oprot.writeMessageBegin('create_database_req', TMessageType.CALL, self._seqid) + args = create_database_req_args() + args.createDatabaseRequest = createDatabaseRequest + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_create_database_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = create_database_req_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_database(self, name): """ Parameters: @@ -2621,7 +2775,7 @@ def get_database(self, name): return self.recv_get_database() def send_get_database(self, name): - self._oprot.writeMessageBegin("get_database", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_database', TMessageType.CALL, self._seqid) args = get_database_args() args.name = name args.write(self._oprot) @@ -2657,7 +2811,7 @@ def get_database_req(self, request): return self.recv_get_database_req() def send_get_database_req(self, request): - self._oprot.writeMessageBegin("get_database_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_database_req', TMessageType.CALL, self._seqid) args = get_database_req_args() args.request = request args.write(self._oprot) @@ -2695,7 +2849,7 @@ def drop_database(self, name, deleteData, cascade): self.recv_drop_database() def send_drop_database(self, name, deleteData, cascade): - self._oprot.writeMessageBegin("drop_database", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_database', TMessageType.CALL, self._seqid) args = drop_database_args() args.name = name args.deleteData = deleteData @@ -2733,7 +2887,7 @@ def drop_database_req(self, req): self.recv_drop_database_req() def send_drop_database_req(self, req): - self._oprot.writeMessageBegin("drop_database_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_database_req', TMessageType.CALL, self._seqid) args = drop_database_req_args() args.req = req args.write(self._oprot) @@ -2769,7 +2923,7 @@ def get_databases(self, pattern): return self.recv_get_databases() def send_get_databases(self, pattern): - self._oprot.writeMessageBegin("get_databases", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_databases', TMessageType.CALL, self._seqid) args = get_databases_args() args.pattern = pattern args.write(self._oprot) @@ -2798,7 +2952,7 @@ def get_all_databases(self): return self.recv_get_all_databases() def send_get_all_databases(self): - self._oprot.writeMessageBegin("get_all_databases", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_databases', TMessageType.CALL, self._seqid) args = get_all_databases_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2821,6 +2975,40 @@ def recv_get_all_databases(self): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result") + def get_databases_req(self, request): + """ + Parameters: + - request + + """ + self.send_get_databases_req(request) + return self.recv_get_databases_req() + + def send_get_databases_req(self, request): + self._oprot.writeMessageBegin('get_databases_req', TMessageType.CALL, self._seqid) + args = get_databases_req_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_databases_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_databases_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases_req failed: unknown result") + def alter_database(self, dbname, db): """ Parameters: @@ -2832,7 +3020,7 @@ def alter_database(self, dbname, db): self.recv_alter_database() def send_alter_database(self, dbname, db): - self._oprot.writeMessageBegin("alter_database", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_database', TMessageType.CALL, self._seqid) args = alter_database_args() args.dbname = dbname args.db = db @@ -2857,24 +3045,24 @@ def recv_alter_database(self): raise result.o2 return - def create_dataconnector(self, connector): + def alter_database_req(self, alterDbReq): """ Parameters: - - connector + - alterDbReq """ - self.send_create_dataconnector(connector) - self.recv_create_dataconnector() + self.send_alter_database_req(alterDbReq) + self.recv_alter_database_req() - def send_create_dataconnector(self, connector): - self._oprot.writeMessageBegin("create_dataconnector", TMessageType.CALL, self._seqid) - args = create_dataconnector_args() - args.connector = connector + def send_alter_database_req(self, alterDbReq): + self._oprot.writeMessageBegin('alter_database_req', TMessageType.CALL, self._seqid) + args = alter_database_req_args() + args.alterDbReq = alterDbReq args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_dataconnector(self): + def recv_alter_database_req(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -2882,7 +3070,41 @@ def recv_create_dataconnector(self): x.read(iprot) iprot.readMessageEnd() raise x - result = create_dataconnector_result() + result = alter_database_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + return + + def create_dataconnector_req(self, connectorReq): + """ + Parameters: + - connectorReq + + """ + self.send_create_dataconnector_req(connectorReq) + self.recv_create_dataconnector_req() + + def send_create_dataconnector_req(self, connectorReq): + self._oprot.writeMessageBegin('create_dataconnector_req', TMessageType.CALL, self._seqid) + args = create_dataconnector_req_args() + args.connectorReq = connectorReq + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_create_dataconnector_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = create_dataconnector_req_result() result.read(iprot) iprot.readMessageEnd() if result.o1 is not None: @@ -2903,7 +3125,7 @@ def get_dataconnector_req(self, request): return self.recv_get_dataconnector_req() def send_get_dataconnector_req(self, request): - self._oprot.writeMessageBegin("get_dataconnector_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_dataconnector_req', TMessageType.CALL, self._seqid) args = get_dataconnector_req_args() args.request = request args.write(self._oprot) @@ -2929,28 +3151,24 @@ def recv_get_dataconnector_req(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_dataconnector_req failed: unknown result") - def drop_dataconnector(self, name, ifNotExists, checkReferences): + def drop_dataconnector_req(self, dropDcReq): """ Parameters: - - name - - ifNotExists - - checkReferences + - dropDcReq """ - self.send_drop_dataconnector(name, ifNotExists, checkReferences) - self.recv_drop_dataconnector() + self.send_drop_dataconnector_req(dropDcReq) + self.recv_drop_dataconnector_req() - def send_drop_dataconnector(self, name, ifNotExists, checkReferences): - self._oprot.writeMessageBegin("drop_dataconnector", TMessageType.CALL, self._seqid) - args = drop_dataconnector_args() - args.name = name - args.ifNotExists = ifNotExists - args.checkReferences = checkReferences + def send_drop_dataconnector_req(self, dropDcReq): + self._oprot.writeMessageBegin('drop_dataconnector_req', TMessageType.CALL, self._seqid) + args = drop_dataconnector_req_args() + args.dropDcReq = dropDcReq args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_dataconnector(self): + def recv_drop_dataconnector_req(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -2958,7 +3176,7 @@ def recv_drop_dataconnector(self): x.read(iprot) iprot.readMessageEnd() raise x - result = drop_dataconnector_result() + result = drop_dataconnector_req_result() result.read(iprot) iprot.readMessageEnd() if result.o1 is not None: @@ -2974,7 +3192,7 @@ def get_dataconnectors(self): return self.recv_get_dataconnectors() def send_get_dataconnectors(self): - self._oprot.writeMessageBegin("get_dataconnectors", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_dataconnectors', TMessageType.CALL, self._seqid) args = get_dataconnectors_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2997,26 +3215,24 @@ def recv_get_dataconnectors(self): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_dataconnectors failed: unknown result") - def alter_dataconnector(self, name, connector): + def alter_dataconnector_req(self, alterReq): """ Parameters: - - name - - connector + - alterReq """ - self.send_alter_dataconnector(name, connector) - self.recv_alter_dataconnector() + self.send_alter_dataconnector_req(alterReq) + self.recv_alter_dataconnector_req() - def send_alter_dataconnector(self, name, connector): - self._oprot.writeMessageBegin("alter_dataconnector", TMessageType.CALL, self._seqid) - args = alter_dataconnector_args() - args.name = name - args.connector = connector + def send_alter_dataconnector_req(self, alterReq): + self._oprot.writeMessageBegin('alter_dataconnector_req', TMessageType.CALL, self._seqid) + args = alter_dataconnector_req_args() + args.alterReq = alterReq args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_dataconnector(self): + def recv_alter_dataconnector_req(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3024,7 +3240,7 @@ def recv_alter_dataconnector(self): x.read(iprot) iprot.readMessageEnd() raise x - result = alter_dataconnector_result() + result = alter_dataconnector_req_result() result.read(iprot) iprot.readMessageEnd() if result.o1 is not None: @@ -3043,7 +3259,7 @@ def get_type(self, name): return self.recv_get_type() def send_get_type(self, name): - self._oprot.writeMessageBegin("get_type", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_type', TMessageType.CALL, self._seqid) args = get_type_args() args.name = name args.write(self._oprot) @@ -3079,7 +3295,7 @@ def create_type(self, type): return self.recv_create_type() def send_create_type(self, type): - self._oprot.writeMessageBegin("create_type", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_type', TMessageType.CALL, self._seqid) args = create_type_args() args.type = type args.write(self._oprot) @@ -3117,7 +3333,7 @@ def drop_type(self, type): return self.recv_drop_type() def send_drop_type(self, type): - self._oprot.writeMessageBegin("drop_type", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_type', TMessageType.CALL, self._seqid) args = drop_type_args() args.type = type args.write(self._oprot) @@ -3153,7 +3369,7 @@ def get_type_all(self, name): return self.recv_get_type_all() def send_get_type_all(self, name): - self._oprot.writeMessageBegin("get_type_all", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_type_all', TMessageType.CALL, self._seqid) args = get_type_all_args() args.name = name args.write(self._oprot) @@ -3188,7 +3404,7 @@ def get_fields(self, db_name, table_name): return self.recv_get_fields() def send_get_fields(self, db_name, table_name): - self._oprot.writeMessageBegin("get_fields", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_fields', TMessageType.CALL, self._seqid) args = get_fields_args() args.db_name = db_name args.table_name = table_name @@ -3229,7 +3445,7 @@ def get_fields_with_environment_context(self, db_name, table_name, environment_c return self.recv_get_fields_with_environment_context() def send_get_fields_with_environment_context(self, db_name, table_name, environment_context): - self._oprot.writeMessageBegin("get_fields_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_fields_with_environment_context', TMessageType.CALL, self._seqid) args = get_fields_with_environment_context_args() args.db_name = db_name args.table_name = table_name @@ -3257,9 +3473,7 @@ def recv_get_fields_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_fields_with_environment_context failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields_with_environment_context failed: unknown result") def get_fields_req(self, req): """ @@ -3271,7 +3485,7 @@ def get_fields_req(self, req): return self.recv_get_fields_req() def send_get_fields_req(self, req): - self._oprot.writeMessageBegin("get_fields_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_fields_req', TMessageType.CALL, self._seqid) args = get_fields_req_args() args.req = req args.write(self._oprot) @@ -3310,7 +3524,7 @@ def get_schema(self, db_name, table_name): return self.recv_get_schema() def send_get_schema(self, db_name, table_name): - self._oprot.writeMessageBegin("get_schema", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_schema', TMessageType.CALL, self._seqid) args = get_schema_args() args.db_name = db_name args.table_name = table_name @@ -3351,7 +3565,7 @@ def get_schema_with_environment_context(self, db_name, table_name, environment_c return self.recv_get_schema_with_environment_context() def send_get_schema_with_environment_context(self, db_name, table_name, environment_context): - self._oprot.writeMessageBegin("get_schema_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_schema_with_environment_context', TMessageType.CALL, self._seqid) args = get_schema_with_environment_context_args() args.db_name = db_name args.table_name = table_name @@ -3379,9 +3593,7 @@ def recv_get_schema_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_schema_with_environment_context failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema_with_environment_context failed: unknown result") def get_schema_req(self, req): """ @@ -3393,7 +3605,7 @@ def get_schema_req(self, req): return self.recv_get_schema_req() def send_get_schema_req(self, req): - self._oprot.writeMessageBegin("get_schema_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_schema_req', TMessageType.CALL, self._seqid) args = get_schema_req_args() args.req = req args.write(self._oprot) @@ -3431,7 +3643,7 @@ def create_table(self, tbl): self.recv_create_table() def send_create_table(self, tbl): - self._oprot.writeMessageBegin("create_table", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_table', TMessageType.CALL, self._seqid) args = create_table_args() args.tbl = tbl args.write(self._oprot) @@ -3470,7 +3682,7 @@ def create_table_with_environment_context(self, tbl, environment_context): self.recv_create_table_with_environment_context() def send_create_table_with_environment_context(self, tbl, environment_context): - self._oprot.writeMessageBegin("create_table_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_table_with_environment_context', TMessageType.CALL, self._seqid) args = create_table_with_environment_context_args() args.tbl = tbl args.environment_context = environment_context @@ -3499,9 +3711,7 @@ def recv_create_table_with_environment_context(self): raise result.o4 return - def create_table_with_constraints( - self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints - ): + def create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints): """ Parameters: - tbl @@ -3513,15 +3723,11 @@ def create_table_with_constraints( - checkConstraints """ - self.send_create_table_with_constraints( - tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints - ) + self.send_create_table_with_constraints(tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints) self.recv_create_table_with_constraints() - def send_create_table_with_constraints( - self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints - ): - self._oprot.writeMessageBegin("create_table_with_constraints", TMessageType.CALL, self._seqid) + def send_create_table_with_constraints(self, tbl, primaryKeys, foreignKeys, uniqueConstraints, notNullConstraints, defaultConstraints, checkConstraints): + self._oprot.writeMessageBegin('create_table_with_constraints', TMessageType.CALL, self._seqid) args = create_table_with_constraints_args() args.tbl = tbl args.primaryKeys = primaryKeys @@ -3565,7 +3771,7 @@ def create_table_req(self, request): self.recv_create_table_req() def send_create_table_req(self, request): - self._oprot.writeMessageBegin("create_table_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_table_req', TMessageType.CALL, self._seqid) args = create_table_req_args() args.request = request args.write(self._oprot) @@ -3603,7 +3809,7 @@ def drop_constraint(self, req): self.recv_drop_constraint() def send_drop_constraint(self, req): - self._oprot.writeMessageBegin("drop_constraint", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_constraint', TMessageType.CALL, self._seqid) args = drop_constraint_args() args.req = req args.write(self._oprot) @@ -3637,7 +3843,7 @@ def add_primary_key(self, req): self.recv_add_primary_key() def send_add_primary_key(self, req): - self._oprot.writeMessageBegin("add_primary_key", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_primary_key', TMessageType.CALL, self._seqid) args = add_primary_key_args() args.req = req args.write(self._oprot) @@ -3671,7 +3877,7 @@ def add_foreign_key(self, req): self.recv_add_foreign_key() def send_add_foreign_key(self, req): - self._oprot.writeMessageBegin("add_foreign_key", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_foreign_key', TMessageType.CALL, self._seqid) args = add_foreign_key_args() args.req = req args.write(self._oprot) @@ -3705,7 +3911,7 @@ def add_unique_constraint(self, req): self.recv_add_unique_constraint() def send_add_unique_constraint(self, req): - self._oprot.writeMessageBegin("add_unique_constraint", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_unique_constraint', TMessageType.CALL, self._seqid) args = add_unique_constraint_args() args.req = req args.write(self._oprot) @@ -3739,7 +3945,7 @@ def add_not_null_constraint(self, req): self.recv_add_not_null_constraint() def send_add_not_null_constraint(self, req): - self._oprot.writeMessageBegin("add_not_null_constraint", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_not_null_constraint', TMessageType.CALL, self._seqid) args = add_not_null_constraint_args() args.req = req args.write(self._oprot) @@ -3773,7 +3979,7 @@ def add_default_constraint(self, req): self.recv_add_default_constraint() def send_add_default_constraint(self, req): - self._oprot.writeMessageBegin("add_default_constraint", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_default_constraint', TMessageType.CALL, self._seqid) args = add_default_constraint_args() args.req = req args.write(self._oprot) @@ -3807,7 +4013,7 @@ def add_check_constraint(self, req): self.recv_add_check_constraint() def send_add_check_constraint(self, req): - self._oprot.writeMessageBegin("add_check_constraint", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_check_constraint', TMessageType.CALL, self._seqid) args = add_check_constraint_args() args.req = req args.write(self._oprot) @@ -3841,7 +4047,7 @@ def translate_table_dryrun(self, request): return self.recv_translate_table_dryrun() def send_translate_table_dryrun(self, request): - self._oprot.writeMessageBegin("translate_table_dryrun", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('translate_table_dryrun', TMessageType.CALL, self._seqid) args = translate_table_dryrun_args() args.request = request args.write(self._oprot) @@ -3883,7 +4089,7 @@ def drop_table(self, dbname, name, deleteData): self.recv_drop_table() def send_drop_table(self, dbname, name, deleteData): - self._oprot.writeMessageBegin("drop_table", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_table', TMessageType.CALL, self._seqid) args = drop_table_args() args.dbname = dbname args.name = name @@ -3922,7 +4128,7 @@ def drop_table_with_environment_context(self, dbname, name, deleteData, environm self.recv_drop_table_with_environment_context() def send_drop_table_with_environment_context(self, dbname, name, deleteData, environment_context): - self._oprot.writeMessageBegin("drop_table_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_table_with_environment_context', TMessageType.CALL, self._seqid) args = drop_table_with_environment_context_args() args.dbname = dbname args.name = name @@ -3949,6 +4155,40 @@ def recv_drop_table_with_environment_context(self): raise result.o3 return + def drop_table_req(self, dropTableReq): + """ + Parameters: + - dropTableReq + + """ + self.send_drop_table_req(dropTableReq) + self.recv_drop_table_req() + + def send_drop_table_req(self, dropTableReq): + self._oprot.writeMessageBegin('drop_table_req', TMessageType.CALL, self._seqid) + args = drop_table_req_args() + args.dropTableReq = dropTableReq + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_drop_table_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = drop_table_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + if result.o3 is not None: + raise result.o3 + return + def truncate_table(self, dbName, tableName, partNames): """ Parameters: @@ -3961,7 +4201,7 @@ def truncate_table(self, dbName, tableName, partNames): self.recv_truncate_table() def send_truncate_table(self, dbName, tableName, partNames): - self._oprot.writeMessageBegin("truncate_table", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('truncate_table', TMessageType.CALL, self._seqid) args = truncate_table_args() args.dbName = dbName args.tableName = tableName @@ -3995,7 +4235,7 @@ def truncate_table_req(self, req): return self.recv_truncate_table_req() def send_truncate_table_req(self, req): - self._oprot.writeMessageBegin("truncate_table_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('truncate_table_req', TMessageType.CALL, self._seqid) args = truncate_table_req_args() args.req = req args.write(self._oprot) @@ -4030,7 +4270,7 @@ def get_tables(self, db_name, pattern): return self.recv_get_tables() def send_get_tables(self, db_name, pattern): - self._oprot.writeMessageBegin("get_tables", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_tables', TMessageType.CALL, self._seqid) args = get_tables_args() args.db_name = db_name args.pattern = pattern @@ -4067,7 +4307,7 @@ def get_tables_by_type(self, db_name, pattern, tableType): return self.recv_get_tables_by_type() def send_get_tables_by_type(self, db_name, pattern, tableType): - self._oprot.writeMessageBegin("get_tables_by_type", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_tables_by_type', TMessageType.CALL, self._seqid) args = get_tables_by_type_args() args.db_name = db_name args.pattern = pattern @@ -4098,7 +4338,7 @@ def get_all_materialized_view_objects_for_rewriting(self): return self.recv_get_all_materialized_view_objects_for_rewriting() def send_get_all_materialized_view_objects_for_rewriting(self): - self._oprot.writeMessageBegin("get_all_materialized_view_objects_for_rewriting", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_materialized_view_objects_for_rewriting', TMessageType.CALL, self._seqid) args = get_all_materialized_view_objects_for_rewriting_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -4119,9 +4359,7 @@ def recv_get_all_materialized_view_objects_for_rewriting(self): return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_all_materialized_view_objects_for_rewriting failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_materialized_view_objects_for_rewriting failed: unknown result") def get_materialized_views_for_rewriting(self, db_name): """ @@ -4133,7 +4371,7 @@ def get_materialized_views_for_rewriting(self, db_name): return self.recv_get_materialized_views_for_rewriting() def send_get_materialized_views_for_rewriting(self, db_name): - self._oprot.writeMessageBegin("get_materialized_views_for_rewriting", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_materialized_views_for_rewriting', TMessageType.CALL, self._seqid) args = get_materialized_views_for_rewriting_args() args.db_name = db_name args.write(self._oprot) @@ -4155,9 +4393,7 @@ def recv_get_materialized_views_for_rewriting(self): return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_materialized_views_for_rewriting failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_materialized_views_for_rewriting failed: unknown result") def get_table_meta(self, db_patterns, tbl_patterns, tbl_types): """ @@ -4171,7 +4407,7 @@ def get_table_meta(self, db_patterns, tbl_patterns, tbl_types): return self.recv_get_table_meta() def send_get_table_meta(self, db_patterns, tbl_patterns, tbl_types): - self._oprot.writeMessageBegin("get_table_meta", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_table_meta', TMessageType.CALL, self._seqid) args = get_table_meta_args() args.db_patterns = db_patterns args.tbl_patterns = tbl_patterns @@ -4207,7 +4443,7 @@ def get_all_tables(self, db_name): return self.recv_get_all_tables() def send_get_all_tables(self, db_name): - self._oprot.writeMessageBegin("get_all_tables", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_tables', TMessageType.CALL, self._seqid) args = get_all_tables_args() args.db_name = db_name args.write(self._oprot) @@ -4231,78 +4467,6 @@ def recv_get_all_tables(self): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result") - def get_table(self, dbname, tbl_name): - """ - Parameters: - - dbname - - tbl_name - - """ - self.send_get_table(dbname, tbl_name) - return self.recv_get_table() - - def send_get_table(self, dbname, tbl_name): - self._oprot.writeMessageBegin("get_table", TMessageType.CALL, self._seqid) - args = get_table_args() - args.dbname = dbname - args.tbl_name = tbl_name - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_get_table(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = get_table_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.o1 is not None: - raise result.o1 - if result.o2 is not None: - raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result") - - def get_table_objects_by_name(self, dbname, tbl_names): - """ - Parameters: - - dbname - - tbl_names - - """ - self.send_get_table_objects_by_name(dbname, tbl_names) - return self.recv_get_table_objects_by_name() - - def send_get_table_objects_by_name(self, dbname, tbl_names): - self._oprot.writeMessageBegin("get_table_objects_by_name", TMessageType.CALL, self._seqid) - args = get_table_objects_by_name_args() - args.dbname = dbname - args.tbl_names = tbl_names - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_get_table_objects_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = get_table_objects_by_name_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result") - def get_tables_ext(self, req): """ Parameters: @@ -4313,7 +4477,7 @@ def get_tables_ext(self, req): return self.recv_get_tables_ext() def send_get_tables_ext(self, req): - self._oprot.writeMessageBegin("get_tables_ext", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_tables_ext', TMessageType.CALL, self._seqid) args = get_tables_ext_args() args.req = req args.write(self._oprot) @@ -4347,7 +4511,7 @@ def get_table_req(self, req): return self.recv_get_table_req() def send_get_table_req(self, req): - self._oprot.writeMessageBegin("get_table_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_table_req', TMessageType.CALL, self._seqid) args = get_table_req_args() args.req = req args.write(self._oprot) @@ -4383,7 +4547,7 @@ def get_table_objects_by_name_req(self, req): return self.recv_get_table_objects_by_name_req() def send_get_table_objects_by_name_req(self, req): - self._oprot.writeMessageBegin("get_table_objects_by_name_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_table_objects_by_name_req', TMessageType.CALL, self._seqid) args = get_table_objects_by_name_req_args() args.req = req args.write(self._oprot) @@ -4422,7 +4586,7 @@ def get_materialization_invalidation_info(self, creation_metadata, validTxnList) return self.recv_get_materialization_invalidation_info() def send_get_materialization_invalidation_info(self, creation_metadata, validTxnList): - self._oprot.writeMessageBegin("get_materialization_invalidation_info", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_materialization_invalidation_info', TMessageType.CALL, self._seqid) args = get_materialization_invalidation_info_args() args.creation_metadata = creation_metadata args.validTxnList = validTxnList @@ -4449,9 +4613,7 @@ def recv_get_materialization_invalidation_info(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_materialization_invalidation_info failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_materialization_invalidation_info failed: unknown result") def update_creation_metadata(self, catName, dbname, tbl_name, creation_metadata): """ @@ -4466,7 +4628,7 @@ def update_creation_metadata(self, catName, dbname, tbl_name, creation_metadata) self.recv_update_creation_metadata() def send_update_creation_metadata(self, catName, dbname, tbl_name, creation_metadata): - self._oprot.writeMessageBegin("update_creation_metadata", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('update_creation_metadata', TMessageType.CALL, self._seqid) args = update_creation_metadata_args() args.catName = catName args.dbname = dbname @@ -4507,7 +4669,7 @@ def get_table_names_by_filter(self, dbname, filter, max_tables): return self.recv_get_table_names_by_filter() def send_get_table_names_by_filter(self, dbname, filter, max_tables): - self._oprot.writeMessageBegin("get_table_names_by_filter", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_table_names_by_filter', TMessageType.CALL, self._seqid) args = get_table_names_by_filter_args() args.dbname = dbname args.filter = filter @@ -4549,7 +4711,7 @@ def alter_table(self, dbname, tbl_name, new_tbl): self.recv_alter_table() def send_alter_table(self, dbname, tbl_name, new_tbl): - self._oprot.writeMessageBegin("alter_table", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_table', TMessageType.CALL, self._seqid) args = alter_table_args() args.dbname = dbname args.tbl_name = tbl_name @@ -4588,7 +4750,7 @@ def alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, enviro self.recv_alter_table_with_environment_context() def send_alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, environment_context): - self._oprot.writeMessageBegin("alter_table_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_table_with_environment_context', TMessageType.CALL, self._seqid) args = alter_table_with_environment_context_args() args.dbname = dbname args.tbl_name = tbl_name @@ -4628,7 +4790,7 @@ def alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade): self.recv_alter_table_with_cascade() def send_alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade): - self._oprot.writeMessageBegin("alter_table_with_cascade", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_table_with_cascade', TMessageType.CALL, self._seqid) args = alter_table_with_cascade_args() args.dbname = dbname args.tbl_name = tbl_name @@ -4665,7 +4827,7 @@ def alter_table_req(self, req): return self.recv_alter_table_req() def send_alter_table_req(self, req): - self._oprot.writeMessageBegin("alter_table_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_table_req', TMessageType.CALL, self._seqid) args = alter_table_req_args() args.req = req args.write(self._oprot) @@ -4701,7 +4863,7 @@ def add_partition(self, new_part): return self.recv_add_partition() def send_add_partition(self, new_part): - self._oprot.writeMessageBegin("add_partition", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_partition', TMessageType.CALL, self._seqid) args = add_partition_args() args.new_part = new_part args.write(self._oprot) @@ -4740,7 +4902,7 @@ def add_partition_with_environment_context(self, new_part, environment_context): return self.recv_add_partition_with_environment_context() def send_add_partition_with_environment_context(self, new_part, environment_context): - self._oprot.writeMessageBegin("add_partition_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_partition_with_environment_context', TMessageType.CALL, self._seqid) args = add_partition_with_environment_context_args() args.new_part = new_part args.environment_context = environment_context @@ -4767,9 +4929,7 @@ def recv_add_partition_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "add_partition_with_environment_context failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition_with_environment_context failed: unknown result") def add_partitions(self, new_parts): """ @@ -4781,7 +4941,7 @@ def add_partitions(self, new_parts): return self.recv_add_partitions() def send_add_partitions(self, new_parts): - self._oprot.writeMessageBegin("add_partitions", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_partitions', TMessageType.CALL, self._seqid) args = add_partitions_args() args.new_parts = new_parts args.write(self._oprot) @@ -4819,7 +4979,7 @@ def add_partitions_pspec(self, new_parts): return self.recv_add_partitions_pspec() def send_add_partitions_pspec(self, new_parts): - self._oprot.writeMessageBegin("add_partitions_pspec", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_partitions_pspec', TMessageType.CALL, self._seqid) args = add_partitions_pspec_args() args.new_parts = new_parts args.write(self._oprot) @@ -4859,7 +5019,7 @@ def append_partition(self, db_name, tbl_name, part_vals): return self.recv_append_partition() def send_append_partition(self, db_name, tbl_name, part_vals): - self._oprot.writeMessageBegin("append_partition", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('append_partition', TMessageType.CALL, self._seqid) args = append_partition_args() args.db_name = db_name args.tbl_name = tbl_name @@ -4899,7 +5059,7 @@ def add_partitions_req(self, request): return self.recv_add_partitions_req() def send_add_partitions_req(self, request): - self._oprot.writeMessageBegin("add_partitions_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_partitions_req', TMessageType.CALL, self._seqid) args = add_partitions_req_args() args.request = request args.write(self._oprot) @@ -4940,7 +5100,7 @@ def append_partition_with_environment_context(self, db_name, tbl_name, part_vals return self.recv_append_partition_with_environment_context() def send_append_partition_with_environment_context(self, db_name, tbl_name, part_vals, environment_context): - self._oprot.writeMessageBegin("append_partition_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('append_partition_with_environment_context', TMessageType.CALL, self._seqid) args = append_partition_with_environment_context_args() args.db_name = db_name args.tbl_name = tbl_name @@ -4969,9 +5129,45 @@ def recv_append_partition_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "append_partition_with_environment_context failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_with_environment_context failed: unknown result") + + def append_partition_req(self, appendPartitionsReq): + """ + Parameters: + - appendPartitionsReq + + """ + self.send_append_partition_req(appendPartitionsReq) + return self.recv_append_partition_req() + + def send_append_partition_req(self, appendPartitionsReq): + self._oprot.writeMessageBegin('append_partition_req', TMessageType.CALL, self._seqid) + args = append_partition_req_args() + args.appendPartitionsReq = appendPartitionsReq + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_append_partition_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = append_partition_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + 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 + raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_req failed: unknown result") def append_partition_by_name(self, db_name, tbl_name, part_name): """ @@ -4985,7 +5181,7 @@ def append_partition_by_name(self, db_name, tbl_name, part_name): return self.recv_append_partition_by_name() def send_append_partition_by_name(self, db_name, tbl_name, part_name): - self._oprot.writeMessageBegin("append_partition_by_name", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('append_partition_by_name', TMessageType.CALL, self._seqid) args = append_partition_by_name_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5028,7 +5224,7 @@ def append_partition_by_name_with_environment_context(self, db_name, tbl_name, p return self.recv_append_partition_by_name_with_environment_context() def send_append_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, environment_context): - self._oprot.writeMessageBegin("append_partition_by_name_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('append_partition_by_name_with_environment_context', TMessageType.CALL, self._seqid) args = append_partition_by_name_with_environment_context_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5057,9 +5253,7 @@ def recv_append_partition_by_name_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result") def drop_partition(self, db_name, tbl_name, part_vals, deleteData): """ @@ -5074,7 +5268,7 @@ def drop_partition(self, db_name, tbl_name, part_vals, deleteData): return self.recv_drop_partition() def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData): - self._oprot.writeMessageBegin("drop_partition", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_partition', TMessageType.CALL, self._seqid) args = drop_partition_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5117,7 +5311,7 @@ def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, return self.recv_drop_partition_with_environment_context() def send_drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context): - self._oprot.writeMessageBegin("drop_partition_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_partition_with_environment_context', TMessageType.CALL, self._seqid) args = drop_partition_with_environment_context_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5145,9 +5339,43 @@ def recv_drop_partition_with_environment_context(self): raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result") + + def drop_partition_req(self, dropPartitionReq): + """ + Parameters: + - dropPartitionReq + + """ + self.send_drop_partition_req(dropPartitionReq) + return self.recv_drop_partition_req() + + def send_drop_partition_req(self, dropPartitionReq): + self._oprot.writeMessageBegin('drop_partition_req', TMessageType.CALL, self._seqid) + args = drop_partition_req_args() + args.dropPartitionReq = dropPartitionReq + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_drop_partition_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = drop_partition_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_req failed: unknown result") def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData): """ @@ -5162,7 +5390,7 @@ def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData): return self.recv_drop_partition_by_name() def send_drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData): - self._oprot.writeMessageBegin("drop_partition_by_name", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_partition_by_name', TMessageType.CALL, self._seqid) args = drop_partition_by_name_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5205,7 +5433,7 @@ def drop_partition_by_name_with_environment_context(self, db_name, tbl_name, par return self.recv_drop_partition_by_name_with_environment_context() def send_drop_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, deleteData, environment_context): - self._oprot.writeMessageBegin("drop_partition_by_name_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_partition_by_name_with_environment_context', TMessageType.CALL, self._seqid) args = drop_partition_by_name_with_environment_context_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5233,9 +5461,7 @@ def recv_drop_partition_by_name_with_environment_context(self): raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "drop_partition_by_name_with_environment_context failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name_with_environment_context failed: unknown result") def drop_partitions_req(self, req): """ @@ -5247,7 +5473,7 @@ def drop_partitions_req(self, req): return self.recv_drop_partitions_req() def send_drop_partitions_req(self, req): - self._oprot.writeMessageBegin("drop_partitions_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_partitions_req', TMessageType.CALL, self._seqid) args = drop_partitions_req_args() args.req = req args.write(self._oprot) @@ -5285,7 +5511,7 @@ def get_partition(self, db_name, tbl_name, part_vals): return self.recv_get_partition() def send_get_partition(self, db_name, tbl_name, part_vals): - self._oprot.writeMessageBegin("get_partition", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition', TMessageType.CALL, self._seqid) args = get_partition_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5323,7 +5549,7 @@ def get_partition_req(self, req): return self.recv_get_partition_req() def send_get_partition_req(self, req): - self._oprot.writeMessageBegin("get_partition_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition_req', TMessageType.CALL, self._seqid) args = get_partition_req_args() args.req = req args.write(self._oprot) @@ -5363,7 +5589,7 @@ def exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_ return self.recv_exchange_partition() def send_exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name): - self._oprot.writeMessageBegin("exchange_partition", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('exchange_partition', TMessageType.CALL, self._seqid) args = exchange_partition_args() args.partitionSpecs = partitionSpecs args.source_db = source_db @@ -5411,7 +5637,7 @@ def exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest return self.recv_exchange_partitions() def send_exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name): - self._oprot.writeMessageBegin("exchange_partitions", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('exchange_partitions', TMessageType.CALL, self._seqid) args = exchange_partitions_args() args.partitionSpecs = partitionSpecs args.source_db = source_db @@ -5459,7 +5685,7 @@ def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group return self.recv_get_partition_with_auth() def send_get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names): - self._oprot.writeMessageBegin("get_partition_with_auth", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition_with_auth', TMessageType.CALL, self._seqid) args = get_partition_with_auth_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5501,7 +5727,7 @@ def get_partition_by_name(self, db_name, tbl_name, part_name): return self.recv_get_partition_by_name() def send_get_partition_by_name(self, db_name, tbl_name, part_name): - self._oprot.writeMessageBegin("get_partition_by_name", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition_by_name', TMessageType.CALL, self._seqid) args = get_partition_by_name_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5541,7 +5767,7 @@ def get_partitions(self, db_name, tbl_name, max_parts): return self.recv_get_partitions() def send_get_partitions(self, db_name, tbl_name, max_parts): - self._oprot.writeMessageBegin("get_partitions", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions', TMessageType.CALL, self._seqid) args = get_partitions_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5579,7 +5805,7 @@ def get_partitions_req(self, req): return self.recv_get_partitions_req() def send_get_partitions_req(self, req): - self._oprot.writeMessageBegin("get_partitions_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_req', TMessageType.CALL, self._seqid) args = get_partitions_req_args() args.req = req args.write(self._oprot) @@ -5619,7 +5845,7 @@ def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, grou return self.recv_get_partitions_with_auth() def send_get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names): - self._oprot.writeMessageBegin("get_partitions_with_auth", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_with_auth', TMessageType.CALL, self._seqid) args = get_partitions_with_auth_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5661,7 +5887,7 @@ def get_partitions_pspec(self, db_name, tbl_name, max_parts): return self.recv_get_partitions_pspec() def send_get_partitions_pspec(self, db_name, tbl_name, max_parts): - self._oprot.writeMessageBegin("get_partitions_pspec", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_pspec', TMessageType.CALL, self._seqid) args = get_partitions_pspec_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5701,7 +5927,7 @@ def get_partition_names(self, db_name, tbl_name, max_parts): return self.recv_get_partition_names() def send_get_partition_names(self, db_name, tbl_name, max_parts): - self._oprot.writeMessageBegin("get_partition_names", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition_names', TMessageType.CALL, self._seqid) args = get_partition_names_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5729,6 +5955,42 @@ def recv_get_partition_names(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result") + def fetch_partition_names_req(self, partitionReq): + """ + Parameters: + - partitionReq + + """ + self.send_fetch_partition_names_req(partitionReq) + return self.recv_fetch_partition_names_req() + + def send_fetch_partition_names_req(self, partitionReq): + self._oprot.writeMessageBegin('fetch_partition_names_req', TMessageType.CALL, self._seqid) + args = fetch_partition_names_req_args() + args.partitionReq = partitionReq + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_fetch_partition_names_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = fetch_partition_names_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "fetch_partition_names_req failed: unknown result") + def get_partition_values(self, request): """ Parameters: @@ -5739,7 +6001,7 @@ def get_partition_values(self, request): return self.recv_get_partition_values() def send_get_partition_values(self, request): - self._oprot.writeMessageBegin("get_partition_values", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition_values', TMessageType.CALL, self._seqid) args = get_partition_values_args() args.request = request args.write(self._oprot) @@ -5778,7 +6040,7 @@ def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts): return self.recv_get_partitions_ps() def send_get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts): - self._oprot.writeMessageBegin("get_partitions_ps", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_ps', TMessageType.CALL, self._seqid) args = get_partitions_ps_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5822,7 +6084,7 @@ def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, u return self.recv_get_partitions_ps_with_auth() def send_get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names): - self._oprot.writeMessageBegin("get_partitions_ps_with_auth", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_ps_with_auth', TMessageType.CALL, self._seqid) args = get_partitions_ps_with_auth_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5863,7 +6125,7 @@ def get_partitions_ps_with_auth_req(self, req): return self.recv_get_partitions_ps_with_auth_req() def send_get_partitions_ps_with_auth_req(self, req): - self._oprot.writeMessageBegin("get_partitions_ps_with_auth_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_ps_with_auth_req', TMessageType.CALL, self._seqid) args = get_partitions_ps_with_auth_req_args() args.req = req args.write(self._oprot) @@ -5887,9 +6149,7 @@ def recv_get_partitions_ps_with_auth_req(self): raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth_req failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth_req failed: unknown result") def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts): """ @@ -5904,7 +6164,7 @@ def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts): return self.recv_get_partition_names_ps() def send_get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts): - self._oprot.writeMessageBegin("get_partition_names_ps", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition_names_ps', TMessageType.CALL, self._seqid) args = get_partition_names_ps_args() args.db_name = db_name args.tbl_name = tbl_name @@ -5943,7 +6203,7 @@ def get_partition_names_ps_req(self, req): return self.recv_get_partition_names_ps_req() def send_get_partition_names_ps_req(self, req): - self._oprot.writeMessageBegin("get_partition_names_ps_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition_names_ps_req', TMessageType.CALL, self._seqid) args = get_partition_names_ps_req_args() args.req = req args.write(self._oprot) @@ -5979,7 +6239,7 @@ def get_partition_names_req(self, req): return self.recv_get_partition_names_req() def send_get_partition_names_req(self, req): - self._oprot.writeMessageBegin("get_partition_names_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition_names_req', TMessageType.CALL, self._seqid) args = get_partition_names_req_args() args.req = req args.write(self._oprot) @@ -6018,7 +6278,7 @@ def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts): return self.recv_get_partitions_by_filter() def send_get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts): - self._oprot.writeMessageBegin("get_partitions_by_filter", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_by_filter', TMessageType.CALL, self._seqid) args = get_partitions_by_filter_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6047,6 +6307,42 @@ def recv_get_partitions_by_filter(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result") + def get_partitions_by_filter_req(self, req): + """ + Parameters: + - req + + """ + self.send_get_partitions_by_filter_req(req) + return self.recv_get_partitions_by_filter_req() + + def send_get_partitions_by_filter_req(self, req): + self._oprot.writeMessageBegin('get_partitions_by_filter_req', TMessageType.CALL, self._seqid) + args = get_partitions_by_filter_req_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_partitions_by_filter_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_partitions_by_filter_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter_req failed: unknown result") + def get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts): """ Parameters: @@ -6060,7 +6356,7 @@ def get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts): return self.recv_get_part_specs_by_filter() def send_get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts): - self._oprot.writeMessageBegin("get_part_specs_by_filter", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_part_specs_by_filter', TMessageType.CALL, self._seqid) args = get_part_specs_by_filter_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6099,7 +6395,7 @@ def get_partitions_by_expr(self, req): return self.recv_get_partitions_by_expr() def send_get_partitions_by_expr(self, req): - self._oprot.writeMessageBegin("get_partitions_by_expr", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_by_expr', TMessageType.CALL, self._seqid) args = get_partitions_by_expr_args() args.req = req args.write(self._oprot) @@ -6135,7 +6431,7 @@ def get_partitions_spec_by_expr(self, req): return self.recv_get_partitions_spec_by_expr() def send_get_partitions_spec_by_expr(self, req): - self._oprot.writeMessageBegin("get_partitions_spec_by_expr", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_spec_by_expr', TMessageType.CALL, self._seqid) args = get_partitions_spec_by_expr_args() args.req = req args.write(self._oprot) @@ -6173,7 +6469,7 @@ def get_num_partitions_by_filter(self, db_name, tbl_name, filter): return self.recv_get_num_partitions_by_filter() def send_get_num_partitions_by_filter(self, db_name, tbl_name, filter): - self._oprot.writeMessageBegin("get_num_partitions_by_filter", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_num_partitions_by_filter', TMessageType.CALL, self._seqid) args = get_num_partitions_by_filter_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6213,7 +6509,7 @@ def get_partitions_by_names(self, db_name, tbl_name, names): return self.recv_get_partitions_by_names() def send_get_partitions_by_names(self, db_name, tbl_name, names): - self._oprot.writeMessageBegin("get_partitions_by_names", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_by_names', TMessageType.CALL, self._seqid) args = get_partitions_by_names_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6239,6 +6535,8 @@ def recv_get_partitions_by_names(self): raise result.o1 if result.o2 is not None: raise result.o2 + if result.o3 is not None: + raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_names failed: unknown result") def get_partitions_by_names_req(self, req): @@ -6251,7 +6549,7 @@ def get_partitions_by_names_req(self, req): return self.recv_get_partitions_by_names_req() def send_get_partitions_by_names_req(self, req): - self._oprot.writeMessageBegin("get_partitions_by_names_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_by_names_req', TMessageType.CALL, self._seqid) args = get_partitions_by_names_req_args() args.req = req args.write(self._oprot) @@ -6275,8 +6573,82 @@ def recv_get_partitions_by_names_req(self): raise result.o1 if result.o2 is not None: raise result.o2 + if result.o3 is not None: + raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_names_req failed: unknown result") + def get_properties(self, req): + """ + Parameters: + - req + + """ + self.send_get_properties(req) + return self.recv_get_properties() + + def send_get_properties(self, req): + self._oprot.writeMessageBegin('get_properties', TMessageType.CALL, self._seqid) + args = get_properties_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_properties(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_properties_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.e1 is not None: + raise result.e1 + if result.e2 is not None: + raise result.e2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_properties failed: unknown result") + + def set_properties(self, req): + """ + Parameters: + - req + + """ + self.send_set_properties(req) + return self.recv_set_properties() + + def send_set_properties(self, req): + self._oprot.writeMessageBegin('set_properties', TMessageType.CALL, self._seqid) + args = set_properties_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_set_properties(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = set_properties_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.e1 is not None: + raise result.e1 + if result.e2 is not None: + raise result.e2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "set_properties failed: unknown result") + def alter_partition(self, db_name, tbl_name, new_part): """ Parameters: @@ -6289,7 +6661,7 @@ def alter_partition(self, db_name, tbl_name, new_part): self.recv_alter_partition() def send_alter_partition(self, db_name, tbl_name, new_part): - self._oprot.writeMessageBegin("alter_partition", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_partition', TMessageType.CALL, self._seqid) args = alter_partition_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6327,7 +6699,7 @@ def alter_partitions(self, db_name, tbl_name, new_parts): self.recv_alter_partitions() def send_alter_partitions(self, db_name, tbl_name, new_parts): - self._oprot.writeMessageBegin("alter_partitions", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_partitions', TMessageType.CALL, self._seqid) args = alter_partitions_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6366,7 +6738,7 @@ def alter_partitions_with_environment_context(self, db_name, tbl_name, new_parts self.recv_alter_partitions_with_environment_context() def send_alter_partitions_with_environment_context(self, db_name, tbl_name, new_parts, environment_context): - self._oprot.writeMessageBegin("alter_partitions_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_partitions_with_environment_context', TMessageType.CALL, self._seqid) args = alter_partitions_with_environment_context_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6403,7 +6775,7 @@ def alter_partitions_req(self, req): return self.recv_alter_partitions_req() def send_alter_partitions_req(self, req): - self._oprot.writeMessageBegin("alter_partitions_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_partitions_req', TMessageType.CALL, self._seqid) args = alter_partitions_req_args() args.req = req args.write(self._oprot) @@ -6442,7 +6814,7 @@ def alter_partition_with_environment_context(self, db_name, tbl_name, new_part, self.recv_alter_partition_with_environment_context() def send_alter_partition_with_environment_context(self, db_name, tbl_name, new_part, environment_context): - self._oprot.writeMessageBegin("alter_partition_with_environment_context", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_partition_with_environment_context', TMessageType.CALL, self._seqid) args = alter_partition_with_environment_context_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6482,7 +6854,7 @@ def rename_partition(self, db_name, tbl_name, part_vals, new_part): self.recv_rename_partition() def send_rename_partition(self, db_name, tbl_name, part_vals, new_part): - self._oprot.writeMessageBegin("rename_partition", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('rename_partition', TMessageType.CALL, self._seqid) args = rename_partition_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6519,7 +6891,7 @@ def rename_partition_req(self, req): return self.recv_rename_partition_req() def send_rename_partition_req(self, req): - self._oprot.writeMessageBegin("rename_partition_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('rename_partition_req', TMessageType.CALL, self._seqid) args = rename_partition_req_args() args.req = req args.write(self._oprot) @@ -6556,7 +6928,7 @@ def partition_name_has_valid_characters(self, part_vals, throw_exception): return self.recv_partition_name_has_valid_characters() def send_partition_name_has_valid_characters(self, part_vals, throw_exception): - self._oprot.writeMessageBegin("partition_name_has_valid_characters", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('partition_name_has_valid_characters', TMessageType.CALL, self._seqid) args = partition_name_has_valid_characters_args() args.part_vals = part_vals args.throw_exception = throw_exception @@ -6579,9 +6951,7 @@ def recv_partition_name_has_valid_characters(self): return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "partition_name_has_valid_characters failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_has_valid_characters failed: unknown result") def get_config_value(self, name, defaultValue): """ @@ -6594,7 +6964,7 @@ def get_config_value(self, name, defaultValue): return self.recv_get_config_value() def send_get_config_value(self, name, defaultValue): - self._oprot.writeMessageBegin("get_config_value", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_config_value', TMessageType.CALL, self._seqid) args = get_config_value_args() args.name = name args.defaultValue = defaultValue @@ -6629,7 +6999,7 @@ def partition_name_to_vals(self, part_name): return self.recv_partition_name_to_vals() def send_partition_name_to_vals(self, part_name): - self._oprot.writeMessageBegin("partition_name_to_vals", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('partition_name_to_vals', TMessageType.CALL, self._seqid) args = partition_name_to_vals_args() args.part_name = part_name args.write(self._oprot) @@ -6663,7 +7033,7 @@ def partition_name_to_spec(self, part_name): return self.recv_partition_name_to_spec() def send_partition_name_to_spec(self, part_name): - self._oprot.writeMessageBegin("partition_name_to_spec", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('partition_name_to_spec', TMessageType.CALL, self._seqid) args = partition_name_to_spec_args() args.part_name = part_name args.write(self._oprot) @@ -6700,7 +7070,7 @@ def markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType): self.recv_markPartitionForEvent() def send_markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType): - self._oprot.writeMessageBegin("markPartitionForEvent", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('markPartitionForEvent', TMessageType.CALL, self._seqid) args = markPartitionForEvent_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6748,7 +7118,7 @@ def isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType): return self.recv_isPartitionMarkedForEvent() def send_isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType): - self._oprot.writeMessageBegin("isPartitionMarkedForEvent", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('isPartitionMarkedForEvent', TMessageType.CALL, self._seqid) args = isPartitionMarkedForEvent_args() args.db_name = db_name args.tbl_name = tbl_name @@ -6795,7 +7165,7 @@ def get_primary_keys(self, request): return self.recv_get_primary_keys() def send_get_primary_keys(self, request): - self._oprot.writeMessageBegin("get_primary_keys", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_primary_keys', TMessageType.CALL, self._seqid) args = get_primary_keys_args() args.request = request args.write(self._oprot) @@ -6831,7 +7201,7 @@ def get_foreign_keys(self, request): return self.recv_get_foreign_keys() def send_get_foreign_keys(self, request): - self._oprot.writeMessageBegin("get_foreign_keys", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_foreign_keys', TMessageType.CALL, self._seqid) args = get_foreign_keys_args() args.request = request args.write(self._oprot) @@ -6867,7 +7237,7 @@ def get_unique_constraints(self, request): return self.recv_get_unique_constraints() def send_get_unique_constraints(self, request): - self._oprot.writeMessageBegin("get_unique_constraints", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_unique_constraints', TMessageType.CALL, self._seqid) args = get_unique_constraints_args() args.request = request args.write(self._oprot) @@ -6903,7 +7273,7 @@ def get_not_null_constraints(self, request): return self.recv_get_not_null_constraints() def send_get_not_null_constraints(self, request): - self._oprot.writeMessageBegin("get_not_null_constraints", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_not_null_constraints', TMessageType.CALL, self._seqid) args = get_not_null_constraints_args() args.request = request args.write(self._oprot) @@ -6939,7 +7309,7 @@ def get_default_constraints(self, request): return self.recv_get_default_constraints() def send_get_default_constraints(self, request): - self._oprot.writeMessageBegin("get_default_constraints", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_default_constraints', TMessageType.CALL, self._seqid) args = get_default_constraints_args() args.request = request args.write(self._oprot) @@ -6975,7 +7345,7 @@ def get_check_constraints(self, request): return self.recv_get_check_constraints() def send_get_check_constraints(self, request): - self._oprot.writeMessageBegin("get_check_constraints", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_check_constraints', TMessageType.CALL, self._seqid) args = get_check_constraints_args() args.request = request args.write(self._oprot) @@ -7011,7 +7381,7 @@ def get_all_table_constraints(self, request): return self.recv_get_all_table_constraints() def send_get_all_table_constraints(self, request): - self._oprot.writeMessageBegin("get_all_table_constraints", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_table_constraints', TMessageType.CALL, self._seqid) args = get_all_table_constraints_args() args.request = request args.write(self._oprot) @@ -7047,7 +7417,7 @@ def update_table_column_statistics(self, stats_obj): return self.recv_update_table_column_statistics() def send_update_table_column_statistics(self, stats_obj): - self._oprot.writeMessageBegin("update_table_column_statistics", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('update_table_column_statistics', TMessageType.CALL, self._seqid) args = update_table_column_statistics_args() args.stats_obj = stats_obj args.write(self._oprot) @@ -7087,7 +7457,7 @@ def update_partition_column_statistics(self, stats_obj): return self.recv_update_partition_column_statistics() def send_update_partition_column_statistics(self, stats_obj): - self._oprot.writeMessageBegin("update_partition_column_statistics", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('update_partition_column_statistics', TMessageType.CALL, self._seqid) args = update_partition_column_statistics_args() args.stats_obj = stats_obj args.write(self._oprot) @@ -7115,9 +7485,7 @@ def recv_update_partition_column_statistics(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "update_partition_column_statistics failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "update_partition_column_statistics failed: unknown result") def update_table_column_statistics_req(self, req): """ @@ -7129,7 +7497,7 @@ def update_table_column_statistics_req(self, req): return self.recv_update_table_column_statistics_req() def send_update_table_column_statistics_req(self, req): - self._oprot.writeMessageBegin("update_table_column_statistics_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('update_table_column_statistics_req', TMessageType.CALL, self._seqid) args = update_table_column_statistics_req_args() args.req = req args.write(self._oprot) @@ -7157,9 +7525,7 @@ def recv_update_table_column_statistics_req(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "update_table_column_statistics_req failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "update_table_column_statistics_req failed: unknown result") def update_partition_column_statistics_req(self, req): """ @@ -7171,7 +7537,7 @@ def update_partition_column_statistics_req(self, req): return self.recv_update_partition_column_statistics_req() def send_update_partition_column_statistics_req(self, req): - self._oprot.writeMessageBegin("update_partition_column_statistics_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('update_partition_column_statistics_req', TMessageType.CALL, self._seqid) args = update_partition_column_statistics_req_args() args.req = req args.write(self._oprot) @@ -7199,9 +7565,7 @@ def recv_update_partition_column_statistics_req(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "update_partition_column_statistics_req failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "update_partition_column_statistics_req failed: unknown result") def update_transaction_statistics(self, req): """ @@ -7213,7 +7577,7 @@ def update_transaction_statistics(self, req): self.recv_update_transaction_statistics() def send_update_transaction_statistics(self, req): - self._oprot.writeMessageBegin("update_transaction_statistics", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('update_transaction_statistics', TMessageType.CALL, self._seqid) args = update_transaction_statistics_args() args.req = req args.write(self._oprot) @@ -7247,7 +7611,7 @@ def get_table_column_statistics(self, db_name, tbl_name, col_name): return self.recv_get_table_column_statistics() def send_get_table_column_statistics(self, db_name, tbl_name, col_name): - self._oprot.writeMessageBegin("get_table_column_statistics", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_table_column_statistics', TMessageType.CALL, self._seqid) args = get_table_column_statistics_args() args.db_name = db_name args.tbl_name = tbl_name @@ -7292,7 +7656,7 @@ def get_partition_column_statistics(self, db_name, tbl_name, part_name, col_name return self.recv_get_partition_column_statistics() def send_get_partition_column_statistics(self, db_name, tbl_name, part_name, col_name): - self._oprot.writeMessageBegin("get_partition_column_statistics", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partition_column_statistics', TMessageType.CALL, self._seqid) args = get_partition_column_statistics_args() args.db_name = db_name args.tbl_name = tbl_name @@ -7323,9 +7687,7 @@ def recv_get_partition_column_statistics(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_partition_column_statistics failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_column_statistics failed: unknown result") def get_table_statistics_req(self, request): """ @@ -7337,7 +7699,7 @@ def get_table_statistics_req(self, request): return self.recv_get_table_statistics_req() def send_get_table_statistics_req(self, request): - self._oprot.writeMessageBegin("get_table_statistics_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_table_statistics_req', TMessageType.CALL, self._seqid) args = get_table_statistics_req_args() args.request = request args.write(self._oprot) @@ -7373,7 +7735,7 @@ def get_partitions_statistics_req(self, request): return self.recv_get_partitions_statistics_req() def send_get_partitions_statistics_req(self, request): - self._oprot.writeMessageBegin("get_partitions_statistics_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_statistics_req', TMessageType.CALL, self._seqid) args = get_partitions_statistics_req_args() args.request = request args.write(self._oprot) @@ -7409,7 +7771,7 @@ def get_aggr_stats_for(self, request): return self.recv_get_aggr_stats_for() def send_get_aggr_stats_for(self, request): - self._oprot.writeMessageBegin("get_aggr_stats_for", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_aggr_stats_for', TMessageType.CALL, self._seqid) args = get_aggr_stats_for_args() args.request = request args.write(self._oprot) @@ -7445,7 +7807,7 @@ def set_aggr_stats_for(self, request): return self.recv_set_aggr_stats_for() def send_set_aggr_stats_for(self, request): - self._oprot.writeMessageBegin("set_aggr_stats_for", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('set_aggr_stats_for', TMessageType.CALL, self._seqid) args = set_aggr_stats_for_args() args.request = request args.write(self._oprot) @@ -7489,7 +7851,7 @@ def delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_n return self.recv_delete_partition_column_statistics() def send_delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name, engine): - self._oprot.writeMessageBegin("delete_partition_column_statistics", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('delete_partition_column_statistics', TMessageType.CALL, self._seqid) args = delete_partition_column_statistics_args() args.db_name = db_name args.tbl_name = tbl_name @@ -7521,9 +7883,7 @@ def recv_delete_partition_column_statistics(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "delete_partition_column_statistics failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_partition_column_statistics failed: unknown result") def delete_table_column_statistics(self, db_name, tbl_name, col_name, engine): """ @@ -7538,7 +7898,7 @@ def delete_table_column_statistics(self, db_name, tbl_name, col_name, engine): return self.recv_delete_table_column_statistics() def send_delete_table_column_statistics(self, db_name, tbl_name, col_name, engine): - self._oprot.writeMessageBegin("delete_table_column_statistics", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('delete_table_column_statistics', TMessageType.CALL, self._seqid) args = delete_table_column_statistics_args() args.db_name = db_name args.tbl_name = tbl_name @@ -7571,6 +7931,46 @@ def recv_delete_table_column_statistics(self): raise result.o4 raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_table_column_statistics failed: unknown result") + def delete_column_statistics_req(self, req): + """ + Parameters: + - req + + """ + self.send_delete_column_statistics_req(req) + return self.recv_delete_column_statistics_req() + + def send_delete_column_statistics_req(self, req): + self._oprot.writeMessageBegin('delete_column_statistics_req', TMessageType.CALL, self._seqid) + args = delete_column_statistics_req_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_delete_column_statistics_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = delete_column_statistics_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + 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 + if result.o4 is not None: + raise result.o4 + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_column_statistics_req failed: unknown result") + def create_function(self, func): """ Parameters: @@ -7581,7 +7981,7 @@ def create_function(self, func): self.recv_create_function() def send_create_function(self, func): - self._oprot.writeMessageBegin("create_function", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_function', TMessageType.CALL, self._seqid) args = create_function_args() args.func = func args.write(self._oprot) @@ -7620,7 +8020,7 @@ def drop_function(self, dbName, funcName): self.recv_drop_function() def send_drop_function(self, dbName, funcName): - self._oprot.writeMessageBegin("drop_function", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_function', TMessageType.CALL, self._seqid) args = drop_function_args() args.dbName = dbName args.funcName = funcName @@ -7657,7 +8057,7 @@ def alter_function(self, dbName, funcName, newFunc): self.recv_alter_function() def send_alter_function(self, dbName, funcName, newFunc): - self._oprot.writeMessageBegin("alter_function", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_function', TMessageType.CALL, self._seqid) args = alter_function_args() args.dbName = dbName args.funcName = funcName @@ -7694,7 +8094,7 @@ def get_functions(self, dbName, pattern): return self.recv_get_functions() def send_get_functions(self, dbName, pattern): - self._oprot.writeMessageBegin("get_functions", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_functions', TMessageType.CALL, self._seqid) args = get_functions_args() args.dbName = dbName args.pattern = pattern @@ -7719,6 +8119,40 @@ def recv_get_functions(self): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_functions failed: unknown result") + def get_functions_req(self, request): + """ + Parameters: + - request + + """ + self.send_get_functions_req(request) + return self.recv_get_functions_req() + + def send_get_functions_req(self, request): + self._oprot.writeMessageBegin('get_functions_req', TMessageType.CALL, self._seqid) + args = get_functions_req_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_functions_req(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_functions_req_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_functions_req failed: unknown result") + def get_function(self, dbName, funcName): """ Parameters: @@ -7730,7 +8164,7 @@ def get_function(self, dbName, funcName): return self.recv_get_function() def send_get_function(self, dbName, funcName): - self._oprot.writeMessageBegin("get_function", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_function', TMessageType.CALL, self._seqid) args = get_function_args() args.dbName = dbName args.funcName = funcName @@ -7762,7 +8196,7 @@ def get_all_functions(self): return self.recv_get_all_functions() def send_get_all_functions(self): - self._oprot.writeMessageBegin("get_all_functions", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_functions', TMessageType.CALL, self._seqid) args = get_all_functions_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -7795,7 +8229,7 @@ def create_role(self, role): return self.recv_create_role() def send_create_role(self, role): - self._oprot.writeMessageBegin("create_role", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_role', TMessageType.CALL, self._seqid) args = create_role_args() args.role = role args.write(self._oprot) @@ -7829,7 +8263,7 @@ def drop_role(self, role_name): return self.recv_drop_role() def send_drop_role(self, role_name): - self._oprot.writeMessageBegin("drop_role", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_role', TMessageType.CALL, self._seqid) args = drop_role_args() args.role_name = role_name args.write(self._oprot) @@ -7858,7 +8292,7 @@ def get_role_names(self): return self.recv_get_role_names() def send_get_role_names(self): - self._oprot.writeMessageBegin("get_role_names", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_role_names', TMessageType.CALL, self._seqid) args = get_role_names_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -7896,7 +8330,7 @@ def grant_role(self, role_name, principal_name, principal_type, grantor, grantor return self.recv_grant_role() def send_grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option): - self._oprot.writeMessageBegin("grant_role", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('grant_role', TMessageType.CALL, self._seqid) args = grant_role_args() args.role_name = role_name args.principal_name = principal_name @@ -7937,7 +8371,7 @@ def revoke_role(self, role_name, principal_name, principal_type): return self.recv_revoke_role() def send_revoke_role(self, role_name, principal_name, principal_type): - self._oprot.writeMessageBegin("revoke_role", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('revoke_role', TMessageType.CALL, self._seqid) args = revoke_role_args() args.role_name = role_name args.principal_name = principal_name @@ -7974,7 +8408,7 @@ def list_roles(self, principal_name, principal_type): return self.recv_list_roles() def send_list_roles(self, principal_name, principal_type): - self._oprot.writeMessageBegin("list_roles", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('list_roles', TMessageType.CALL, self._seqid) args = list_roles_args() args.principal_name = principal_name args.principal_type = principal_type @@ -8009,7 +8443,7 @@ def grant_revoke_role(self, request): return self.recv_grant_revoke_role() def send_grant_revoke_role(self, request): - self._oprot.writeMessageBegin("grant_revoke_role", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('grant_revoke_role', TMessageType.CALL, self._seqid) args = grant_revoke_role_args() args.request = request args.write(self._oprot) @@ -8043,7 +8477,7 @@ def get_principals_in_role(self, request): return self.recv_get_principals_in_role() def send_get_principals_in_role(self, request): - self._oprot.writeMessageBegin("get_principals_in_role", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_principals_in_role', TMessageType.CALL, self._seqid) args = get_principals_in_role_args() args.request = request args.write(self._oprot) @@ -8077,7 +8511,7 @@ def get_role_grants_for_principal(self, request): return self.recv_get_role_grants_for_principal() def send_get_role_grants_for_principal(self, request): - self._oprot.writeMessageBegin("get_role_grants_for_principal", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_role_grants_for_principal', TMessageType.CALL, self._seqid) args = get_role_grants_for_principal_args() args.request = request args.write(self._oprot) @@ -8113,7 +8547,7 @@ def get_privilege_set(self, hiveObject, user_name, group_names): return self.recv_get_privilege_set() def send_get_privilege_set(self, hiveObject, user_name, group_names): - self._oprot.writeMessageBegin("get_privilege_set", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_privilege_set', TMessageType.CALL, self._seqid) args = get_privilege_set_args() args.hiveObject = hiveObject args.user_name = user_name @@ -8151,7 +8585,7 @@ def list_privileges(self, principal_name, principal_type, hiveObject): return self.recv_list_privileges() def send_list_privileges(self, principal_name, principal_type, hiveObject): - self._oprot.writeMessageBegin("list_privileges", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('list_privileges', TMessageType.CALL, self._seqid) args = list_privileges_args() args.principal_name = principal_name args.principal_type = principal_type @@ -8187,7 +8621,7 @@ def grant_privileges(self, privileges): return self.recv_grant_privileges() def send_grant_privileges(self, privileges): - self._oprot.writeMessageBegin("grant_privileges", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('grant_privileges', TMessageType.CALL, self._seqid) args = grant_privileges_args() args.privileges = privileges args.write(self._oprot) @@ -8221,7 +8655,7 @@ def revoke_privileges(self, privileges): return self.recv_revoke_privileges() def send_revoke_privileges(self, privileges): - self._oprot.writeMessageBegin("revoke_privileges", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('revoke_privileges', TMessageType.CALL, self._seqid) args = revoke_privileges_args() args.privileges = privileges args.write(self._oprot) @@ -8255,7 +8689,7 @@ def grant_revoke_privileges(self, request): return self.recv_grant_revoke_privileges() def send_grant_revoke_privileges(self, request): - self._oprot.writeMessageBegin("grant_revoke_privileges", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('grant_revoke_privileges', TMessageType.CALL, self._seqid) args = grant_revoke_privileges_args() args.request = request args.write(self._oprot) @@ -8291,7 +8725,7 @@ def refresh_privileges(self, objToRefresh, authorizer, grantRequest): return self.recv_refresh_privileges() def send_refresh_privileges(self, objToRefresh, authorizer, grantRequest): - self._oprot.writeMessageBegin("refresh_privileges", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('refresh_privileges', TMessageType.CALL, self._seqid) args = refresh_privileges_args() args.objToRefresh = objToRefresh args.authorizer = authorizer @@ -8328,7 +8762,7 @@ def set_ugi(self, user_name, group_names): return self.recv_set_ugi() def send_set_ugi(self, user_name, group_names): - self._oprot.writeMessageBegin("set_ugi", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('set_ugi', TMessageType.CALL, self._seqid) args = set_ugi_args() args.user_name = user_name args.group_names = group_names @@ -8364,7 +8798,7 @@ def get_delegation_token(self, token_owner, renewer_kerberos_principal_name): return self.recv_get_delegation_token() def send_get_delegation_token(self, token_owner, renewer_kerberos_principal_name): - self._oprot.writeMessageBegin("get_delegation_token", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_delegation_token', TMessageType.CALL, self._seqid) args = get_delegation_token_args() args.token_owner = token_owner args.renewer_kerberos_principal_name = renewer_kerberos_principal_name @@ -8399,7 +8833,7 @@ def renew_delegation_token(self, token_str_form): return self.recv_renew_delegation_token() def send_renew_delegation_token(self, token_str_form): - self._oprot.writeMessageBegin("renew_delegation_token", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('renew_delegation_token', TMessageType.CALL, self._seqid) args = renew_delegation_token_args() args.token_str_form = token_str_form args.write(self._oprot) @@ -8433,7 +8867,7 @@ def cancel_delegation_token(self, token_str_form): self.recv_cancel_delegation_token() def send_cancel_delegation_token(self, token_str_form): - self._oprot.writeMessageBegin("cancel_delegation_token", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('cancel_delegation_token', TMessageType.CALL, self._seqid) args = cancel_delegation_token_args() args.token_str_form = token_str_form args.write(self._oprot) @@ -8466,7 +8900,7 @@ def add_token(self, token_identifier, delegation_token): return self.recv_add_token() def send_add_token(self, token_identifier, delegation_token): - self._oprot.writeMessageBegin("add_token", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_token', TMessageType.CALL, self._seqid) args = add_token_args() args.token_identifier = token_identifier args.delegation_token = delegation_token @@ -8499,7 +8933,7 @@ def remove_token(self, token_identifier): return self.recv_remove_token() def send_remove_token(self, token_identifier): - self._oprot.writeMessageBegin("remove_token", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('remove_token', TMessageType.CALL, self._seqid) args = remove_token_args() args.token_identifier = token_identifier args.write(self._oprot) @@ -8531,7 +8965,7 @@ def get_token(self, token_identifier): return self.recv_get_token() def send_get_token(self, token_identifier): - self._oprot.writeMessageBegin("get_token", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_token', TMessageType.CALL, self._seqid) args = get_token_args() args.token_identifier = token_identifier args.write(self._oprot) @@ -8558,7 +8992,7 @@ def get_all_token_identifiers(self): return self.recv_get_all_token_identifiers() def send_get_all_token_identifiers(self): - self._oprot.writeMessageBegin("get_all_token_identifiers", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_token_identifiers', TMessageType.CALL, self._seqid) args = get_all_token_identifiers_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -8589,7 +9023,7 @@ def add_master_key(self, key): return self.recv_add_master_key() def send_add_master_key(self, key): - self._oprot.writeMessageBegin("add_master_key", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_master_key', TMessageType.CALL, self._seqid) args = add_master_key_args() args.key = key args.write(self._oprot) @@ -8624,7 +9058,7 @@ def update_master_key(self, seq_number, key): self.recv_update_master_key() def send_update_master_key(self, seq_number, key): - self._oprot.writeMessageBegin("update_master_key", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('update_master_key', TMessageType.CALL, self._seqid) args = update_master_key_args() args.seq_number = seq_number args.key = key @@ -8659,7 +9093,7 @@ def remove_master_key(self, key_seq): return self.recv_remove_master_key() def send_remove_master_key(self, key_seq): - self._oprot.writeMessageBegin("remove_master_key", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('remove_master_key', TMessageType.CALL, self._seqid) args = remove_master_key_args() args.key_seq = key_seq args.write(self._oprot) @@ -8686,7 +9120,7 @@ def get_master_keys(self): return self.recv_get_master_keys() def send_get_master_keys(self): - self._oprot.writeMessageBegin("get_master_keys", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_master_keys', TMessageType.CALL, self._seqid) args = get_master_keys_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -8712,7 +9146,7 @@ def get_open_txns(self): return self.recv_get_open_txns() def send_get_open_txns(self): - self._oprot.writeMessageBegin("get_open_txns", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_open_txns', TMessageType.CALL, self._seqid) args = get_open_txns_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -8738,7 +9172,7 @@ def get_open_txns_info(self): return self.recv_get_open_txns_info() def send_get_open_txns_info(self): - self._oprot.writeMessageBegin("get_open_txns_info", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_open_txns_info', TMessageType.CALL, self._seqid) args = get_open_txns_info_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -8769,7 +9203,7 @@ def open_txns(self, rqst): return self.recv_open_txns() def send_open_txns(self, rqst): - self._oprot.writeMessageBegin("open_txns", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('open_txns', TMessageType.CALL, self._seqid) args = open_txns_args() args.rqst = rqst args.write(self._oprot) @@ -8801,7 +9235,7 @@ def abort_txn(self, rqst): self.recv_abort_txn() def send_abort_txn(self, rqst): - self._oprot.writeMessageBegin("abort_txn", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('abort_txn', TMessageType.CALL, self._seqid) args = abort_txn_args() args.rqst = rqst args.write(self._oprot) @@ -8833,7 +9267,7 @@ def abort_txns(self, rqst): self.recv_abort_txns() def send_abort_txns(self, rqst): - self._oprot.writeMessageBegin("abort_txns", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('abort_txns', TMessageType.CALL, self._seqid) args = abort_txns_args() args.rqst = rqst args.write(self._oprot) @@ -8865,7 +9299,7 @@ def commit_txn(self, rqst): self.recv_commit_txn() def send_commit_txn(self, rqst): - self._oprot.writeMessageBegin("commit_txn", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('commit_txn', TMessageType.CALL, self._seqid) args = commit_txn_args() args.rqst = rqst args.write(self._oprot) @@ -8899,7 +9333,7 @@ def get_latest_txnid_in_conflict(self, txnId): return self.recv_get_latest_txnid_in_conflict() def send_get_latest_txnid_in_conflict(self, txnId): - self._oprot.writeMessageBegin("get_latest_txnid_in_conflict", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_latest_txnid_in_conflict', TMessageType.CALL, self._seqid) args = get_latest_txnid_in_conflict_args() args.txnId = txnId args.write(self._oprot) @@ -8933,7 +9367,7 @@ def repl_tbl_writeid_state(self, rqst): self.recv_repl_tbl_writeid_state() def send_repl_tbl_writeid_state(self, rqst): - self._oprot.writeMessageBegin("repl_tbl_writeid_state", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('repl_tbl_writeid_state', TMessageType.CALL, self._seqid) args = repl_tbl_writeid_state_args() args.rqst = rqst args.write(self._oprot) @@ -8963,7 +9397,7 @@ def get_valid_write_ids(self, rqst): return self.recv_get_valid_write_ids() def send_get_valid_write_ids(self, rqst): - self._oprot.writeMessageBegin("get_valid_write_ids", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_valid_write_ids', TMessageType.CALL, self._seqid) args = get_valid_write_ids_args() args.rqst = rqst args.write(self._oprot) @@ -8989,6 +9423,40 @@ def recv_get_valid_write_ids(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_valid_write_ids failed: unknown result") + def add_write_ids_to_min_history(self, txnId, writeIds): + """ + Parameters: + - txnId + - writeIds + + """ + self.send_add_write_ids_to_min_history(txnId, writeIds) + self.recv_add_write_ids_to_min_history() + + def send_add_write_ids_to_min_history(self, txnId, writeIds): + self._oprot.writeMessageBegin('add_write_ids_to_min_history', TMessageType.CALL, self._seqid) + args = add_write_ids_to_min_history_args() + args.txnId = txnId + args.writeIds = writeIds + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_add_write_ids_to_min_history(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = add_write_ids_to_min_history_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o2 is not None: + raise result.o2 + return + def allocate_table_write_ids(self, rqst): """ Parameters: @@ -8999,7 +9467,7 @@ def allocate_table_write_ids(self, rqst): return self.recv_allocate_table_write_ids() def send_allocate_table_write_ids(self, rqst): - self._oprot.writeMessageBegin("allocate_table_write_ids", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('allocate_table_write_ids', TMessageType.CALL, self._seqid) args = allocate_table_write_ids_args() args.rqst = rqst args.write(self._oprot) @@ -9037,7 +9505,7 @@ def get_max_allocated_table_write_id(self, rqst): return self.recv_get_max_allocated_table_write_id() def send_get_max_allocated_table_write_id(self, rqst): - self._oprot.writeMessageBegin("get_max_allocated_table_write_id", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_max_allocated_table_write_id', TMessageType.CALL, self._seqid) args = get_max_allocated_table_write_id_args() args.rqst = rqst args.write(self._oprot) @@ -9059,9 +9527,7 @@ def recv_get_max_allocated_table_write_id(self): return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_max_allocated_table_write_id failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_max_allocated_table_write_id failed: unknown result") def seed_write_id(self, rqst): """ @@ -9073,7 +9539,7 @@ def seed_write_id(self, rqst): self.recv_seed_write_id() def send_seed_write_id(self, rqst): - self._oprot.writeMessageBegin("seed_write_id", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('seed_write_id', TMessageType.CALL, self._seqid) args = seed_write_id_args() args.rqst = rqst args.write(self._oprot) @@ -9105,7 +9571,7 @@ def seed_txn_id(self, rqst): self.recv_seed_txn_id() def send_seed_txn_id(self, rqst): - self._oprot.writeMessageBegin("seed_txn_id", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('seed_txn_id', TMessageType.CALL, self._seqid) args = seed_txn_id_args() args.rqst = rqst args.write(self._oprot) @@ -9137,7 +9603,7 @@ def lock(self, rqst): return self.recv_lock() def send_lock(self, rqst): - self._oprot.writeMessageBegin("lock", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('lock', TMessageType.CALL, self._seqid) args = lock_args() args.rqst = rqst args.write(self._oprot) @@ -9173,7 +9639,7 @@ def check_lock(self, rqst): return self.recv_check_lock() def send_check_lock(self, rqst): - self._oprot.writeMessageBegin("check_lock", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('check_lock', TMessageType.CALL, self._seqid) args = check_lock_args() args.rqst = rqst args.write(self._oprot) @@ -9211,7 +9677,7 @@ def unlock(self, rqst): self.recv_unlock() def send_unlock(self, rqst): - self._oprot.writeMessageBegin("unlock", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('unlock', TMessageType.CALL, self._seqid) args = unlock_args() args.rqst = rqst args.write(self._oprot) @@ -9245,7 +9711,7 @@ def show_locks(self, rqst): return self.recv_show_locks() def send_show_locks(self, rqst): - self._oprot.writeMessageBegin("show_locks", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('show_locks', TMessageType.CALL, self._seqid) args = show_locks_args() args.rqst = rqst args.write(self._oprot) @@ -9277,7 +9743,7 @@ def heartbeat(self, ids): self.recv_heartbeat() def send_heartbeat(self, ids): - self._oprot.writeMessageBegin("heartbeat", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('heartbeat', TMessageType.CALL, self._seqid) args = heartbeat_args() args.ids = ids args.write(self._oprot) @@ -9313,7 +9779,7 @@ def heartbeat_txn_range(self, txns): return self.recv_heartbeat_txn_range() def send_heartbeat_txn_range(self, txns): - self._oprot.writeMessageBegin("heartbeat_txn_range", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('heartbeat_txn_range', TMessageType.CALL, self._seqid) args = heartbeat_txn_range_args() args.txns = txns args.write(self._oprot) @@ -9345,7 +9811,7 @@ def compact(self, rqst): self.recv_compact() def send_compact(self, rqst): - self._oprot.writeMessageBegin("compact", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('compact', TMessageType.CALL, self._seqid) args = compact_args() args.rqst = rqst args.write(self._oprot) @@ -9375,7 +9841,7 @@ def compact2(self, rqst): return self.recv_compact2() def send_compact2(self, rqst): - self._oprot.writeMessageBegin("compact2", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('compact2', TMessageType.CALL, self._seqid) args = compact2_args() args.rqst = rqst args.write(self._oprot) @@ -9407,7 +9873,7 @@ def show_compact(self, rqst): return self.recv_show_compact() def send_show_compact(self, rqst): - self._oprot.writeMessageBegin("show_compact", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('show_compact', TMessageType.CALL, self._seqid) args = show_compact_args() args.rqst = rqst args.write(self._oprot) @@ -9429,6 +9895,44 @@ def recv_show_compact(self): return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "show_compact failed: unknown result") + def submit_for_cleanup(self, o1, o2, o3): + """ + Parameters: + - o1 + - o2 + - o3 + + """ + self.send_submit_for_cleanup(o1, o2, o3) + return self.recv_submit_for_cleanup() + + def send_submit_for_cleanup(self, o1, o2, o3): + self._oprot.writeMessageBegin('submit_for_cleanup', TMessageType.CALL, self._seqid) + args = submit_for_cleanup_args() + args.o1 = o1 + args.o2 = o2 + args.o3 = o3 + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_submit_for_cleanup(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = submit_for_cleanup_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + raise TApplicationException(TApplicationException.MISSING_RESULT, "submit_for_cleanup failed: unknown result") + def add_dynamic_partitions(self, rqst): """ Parameters: @@ -9439,7 +9943,7 @@ def add_dynamic_partitions(self, rqst): self.recv_add_dynamic_partitions() def send_add_dynamic_partitions(self, rqst): - self._oprot.writeMessageBegin("add_dynamic_partitions", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_dynamic_partitions', TMessageType.CALL, self._seqid) args = add_dynamic_partitions_args() args.rqst = rqst args.write(self._oprot) @@ -9473,7 +9977,7 @@ def find_next_compact(self, workerId): return self.recv_find_next_compact() def send_find_next_compact(self, workerId): - self._oprot.writeMessageBegin("find_next_compact", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('find_next_compact', TMessageType.CALL, self._seqid) args = find_next_compact_args() args.workerId = workerId args.write(self._oprot) @@ -9507,7 +10011,7 @@ def find_next_compact2(self, rqst): return self.recv_find_next_compact2() def send_find_next_compact2(self, rqst): - self._oprot.writeMessageBegin("find_next_compact2", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('find_next_compact2', TMessageType.CALL, self._seqid) args = find_next_compact2_args() args.rqst = rqst args.write(self._oprot) @@ -9542,7 +10046,7 @@ def update_compactor_state(self, cr, txn_id): self.recv_update_compactor_state() def send_update_compactor_state(self, cr, txn_id): - self._oprot.writeMessageBegin("update_compactor_state", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('update_compactor_state', TMessageType.CALL, self._seqid) args = update_compactor_state_args() args.cr = cr args.txn_id = txn_id @@ -9573,7 +10077,7 @@ def find_columns_with_stats(self, cr): return self.recv_find_columns_with_stats() def send_find_columns_with_stats(self, cr): - self._oprot.writeMessageBegin("find_columns_with_stats", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('find_columns_with_stats', TMessageType.CALL, self._seqid) args = find_columns_with_stats_args() args.cr = cr args.write(self._oprot) @@ -9605,7 +10109,7 @@ def mark_cleaned(self, cr): self.recv_mark_cleaned() def send_mark_cleaned(self, cr): - self._oprot.writeMessageBegin("mark_cleaned", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('mark_cleaned', TMessageType.CALL, self._seqid) args = mark_cleaned_args() args.cr = cr args.write(self._oprot) @@ -9637,7 +10141,7 @@ def mark_compacted(self, cr): self.recv_mark_compacted() def send_mark_compacted(self, cr): - self._oprot.writeMessageBegin("mark_compacted", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('mark_compacted', TMessageType.CALL, self._seqid) args = mark_compacted_args() args.cr = cr args.write(self._oprot) @@ -9669,7 +10173,7 @@ def mark_failed(self, cr): self.recv_mark_failed() def send_mark_failed(self, cr): - self._oprot.writeMessageBegin("mark_failed", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('mark_failed', TMessageType.CALL, self._seqid) args = mark_failed_args() args.cr = cr args.write(self._oprot) @@ -9701,7 +10205,7 @@ def mark_refused(self, cr): self.recv_mark_refused() def send_mark_refused(self, cr): - self._oprot.writeMessageBegin("mark_refused", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('mark_refused', TMessageType.CALL, self._seqid) args = mark_refused_args() args.cr = cr args.write(self._oprot) @@ -9733,7 +10237,7 @@ def update_compaction_metrics_data(self, data): return self.recv_update_compaction_metrics_data() def send_update_compaction_metrics_data(self, data): - self._oprot.writeMessageBegin("update_compaction_metrics_data", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('update_compaction_metrics_data', TMessageType.CALL, self._seqid) args = update_compaction_metrics_data_args() args.data = data args.write(self._oprot) @@ -9767,7 +10271,7 @@ def remove_compaction_metrics_data(self, request): self.recv_remove_compaction_metrics_data() def send_remove_compaction_metrics_data(self, request): - self._oprot.writeMessageBegin("remove_compaction_metrics_data", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('remove_compaction_metrics_data', TMessageType.CALL, self._seqid) args = remove_compaction_metrics_data_args() args.request = request args.write(self._oprot) @@ -9800,7 +10304,7 @@ def set_hadoop_jobid(self, jobId, cq_id): self.recv_set_hadoop_jobid() def send_set_hadoop_jobid(self, jobId, cq_id): - self._oprot.writeMessageBegin("set_hadoop_jobid", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('set_hadoop_jobid', TMessageType.CALL, self._seqid) args = set_hadoop_jobid_args() args.jobId = jobId args.cq_id = cq_id @@ -9831,7 +10335,7 @@ def get_latest_committed_compaction_info(self, rqst): return self.recv_get_latest_committed_compaction_info() def send_get_latest_committed_compaction_info(self, rqst): - self._oprot.writeMessageBegin("get_latest_committed_compaction_info", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_latest_committed_compaction_info', TMessageType.CALL, self._seqid) args = get_latest_committed_compaction_info_args() args.rqst = rqst args.write(self._oprot) @@ -9851,9 +10355,7 @@ def recv_get_latest_committed_compaction_info(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_latest_committed_compaction_info failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_latest_committed_compaction_info failed: unknown result") def get_next_notification(self, rqst): """ @@ -9865,7 +10367,7 @@ def get_next_notification(self, rqst): return self.recv_get_next_notification() def send_get_next_notification(self, rqst): - self._oprot.writeMessageBegin("get_next_notification", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_next_notification', TMessageType.CALL, self._seqid) args = get_next_notification_args() args.rqst = rqst args.write(self._oprot) @@ -9892,7 +10394,7 @@ def get_current_notificationEventId(self): return self.recv_get_current_notificationEventId() def send_get_current_notificationEventId(self): - self._oprot.writeMessageBegin("get_current_notificationEventId", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_current_notificationEventId', TMessageType.CALL, self._seqid) args = get_current_notificationEventId_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -9911,9 +10413,7 @@ def recv_get_current_notificationEventId(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_current_notificationEventId failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_current_notificationEventId failed: unknown result") def get_notification_events_count(self, rqst): """ @@ -9925,7 +10425,7 @@ def get_notification_events_count(self, rqst): return self.recv_get_notification_events_count() def send_get_notification_events_count(self, rqst): - self._oprot.writeMessageBegin("get_notification_events_count", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_notification_events_count', TMessageType.CALL, self._seqid) args = get_notification_events_count_args() args.rqst = rqst args.write(self._oprot) @@ -9957,7 +10457,7 @@ def fire_listener_event(self, rqst): return self.recv_fire_listener_event() def send_fire_listener_event(self, rqst): - self._oprot.writeMessageBegin("fire_listener_event", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('fire_listener_event', TMessageType.CALL, self._seqid) args = fire_listener_event_args() args.rqst = rqst args.write(self._oprot) @@ -9984,7 +10484,7 @@ def flushCache(self): self.recv_flushCache() def send_flushCache(self): - self._oprot.writeMessageBegin("flushCache", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('flushCache', TMessageType.CALL, self._seqid) args = flushCache_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -10013,7 +10513,7 @@ def add_write_notification_log(self, rqst): return self.recv_add_write_notification_log() def send_add_write_notification_log(self, rqst): - self._oprot.writeMessageBegin("add_write_notification_log", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_write_notification_log', TMessageType.CALL, self._seqid) args = add_write_notification_log_args() args.rqst = rqst args.write(self._oprot) @@ -10045,7 +10545,7 @@ def add_write_notification_log_in_batch(self, rqst): return self.recv_add_write_notification_log_in_batch() def send_add_write_notification_log_in_batch(self, rqst): - self._oprot.writeMessageBegin("add_write_notification_log_in_batch", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_write_notification_log_in_batch', TMessageType.CALL, self._seqid) args = add_write_notification_log_in_batch_args() args.rqst = rqst args.write(self._oprot) @@ -10065,9 +10565,7 @@ def recv_add_write_notification_log_in_batch(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "add_write_notification_log_in_batch failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_write_notification_log_in_batch failed: unknown result") def cm_recycle(self, request): """ @@ -10079,7 +10577,7 @@ def cm_recycle(self, request): return self.recv_cm_recycle() def send_cm_recycle(self, request): - self._oprot.writeMessageBegin("cm_recycle", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('cm_recycle', TMessageType.CALL, self._seqid) args = cm_recycle_args() args.request = request args.write(self._oprot) @@ -10113,7 +10611,7 @@ def get_file_metadata_by_expr(self, req): return self.recv_get_file_metadata_by_expr() def send_get_file_metadata_by_expr(self, req): - self._oprot.writeMessageBegin("get_file_metadata_by_expr", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_file_metadata_by_expr', TMessageType.CALL, self._seqid) args = get_file_metadata_by_expr_args() args.req = req args.write(self._oprot) @@ -10145,7 +10643,7 @@ def get_file_metadata(self, req): return self.recv_get_file_metadata() def send_get_file_metadata(self, req): - self._oprot.writeMessageBegin("get_file_metadata", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_file_metadata', TMessageType.CALL, self._seqid) args = get_file_metadata_args() args.req = req args.write(self._oprot) @@ -10177,7 +10675,7 @@ def put_file_metadata(self, req): return self.recv_put_file_metadata() def send_put_file_metadata(self, req): - self._oprot.writeMessageBegin("put_file_metadata", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('put_file_metadata', TMessageType.CALL, self._seqid) args = put_file_metadata_args() args.req = req args.write(self._oprot) @@ -10209,7 +10707,7 @@ def clear_file_metadata(self, req): return self.recv_clear_file_metadata() def send_clear_file_metadata(self, req): - self._oprot.writeMessageBegin("clear_file_metadata", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('clear_file_metadata', TMessageType.CALL, self._seqid) args = clear_file_metadata_args() args.req = req args.write(self._oprot) @@ -10241,7 +10739,7 @@ def cache_file_metadata(self, req): return self.recv_cache_file_metadata() def send_cache_file_metadata(self, req): - self._oprot.writeMessageBegin("cache_file_metadata", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('cache_file_metadata', TMessageType.CALL, self._seqid) args = cache_file_metadata_args() args.req = req args.write(self._oprot) @@ -10268,7 +10766,7 @@ def get_metastore_db_uuid(self): return self.recv_get_metastore_db_uuid() def send_get_metastore_db_uuid(self): - self._oprot.writeMessageBegin("get_metastore_db_uuid", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_metastore_db_uuid', TMessageType.CALL, self._seqid) args = get_metastore_db_uuid_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -10301,7 +10799,7 @@ def create_resource_plan(self, request): return self.recv_create_resource_plan() def send_create_resource_plan(self, request): - self._oprot.writeMessageBegin("create_resource_plan", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_resource_plan', TMessageType.CALL, self._seqid) args = create_resource_plan_args() args.request = request args.write(self._oprot) @@ -10339,7 +10837,7 @@ def get_resource_plan(self, request): return self.recv_get_resource_plan() def send_get_resource_plan(self, request): - self._oprot.writeMessageBegin("get_resource_plan", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_resource_plan', TMessageType.CALL, self._seqid) args = get_resource_plan_args() args.request = request args.write(self._oprot) @@ -10375,7 +10873,7 @@ def get_active_resource_plan(self, request): return self.recv_get_active_resource_plan() def send_get_active_resource_plan(self, request): - self._oprot.writeMessageBegin("get_active_resource_plan", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_active_resource_plan', TMessageType.CALL, self._seqid) args = get_active_resource_plan_args() args.request = request args.write(self._oprot) @@ -10409,7 +10907,7 @@ def get_all_resource_plans(self, request): return self.recv_get_all_resource_plans() def send_get_all_resource_plans(self, request): - self._oprot.writeMessageBegin("get_all_resource_plans", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_resource_plans', TMessageType.CALL, self._seqid) args = get_all_resource_plans_args() args.request = request args.write(self._oprot) @@ -10443,7 +10941,7 @@ def alter_resource_plan(self, request): return self.recv_alter_resource_plan() def send_alter_resource_plan(self, request): - self._oprot.writeMessageBegin("alter_resource_plan", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_resource_plan', TMessageType.CALL, self._seqid) args = alter_resource_plan_args() args.request = request args.write(self._oprot) @@ -10481,7 +10979,7 @@ def validate_resource_plan(self, request): return self.recv_validate_resource_plan() def send_validate_resource_plan(self, request): - self._oprot.writeMessageBegin("validate_resource_plan", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('validate_resource_plan', TMessageType.CALL, self._seqid) args = validate_resource_plan_args() args.request = request args.write(self._oprot) @@ -10517,7 +11015,7 @@ def drop_resource_plan(self, request): return self.recv_drop_resource_plan() def send_drop_resource_plan(self, request): - self._oprot.writeMessageBegin("drop_resource_plan", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_resource_plan', TMessageType.CALL, self._seqid) args = drop_resource_plan_args() args.request = request args.write(self._oprot) @@ -10555,7 +11053,7 @@ def create_wm_trigger(self, request): return self.recv_create_wm_trigger() def send_create_wm_trigger(self, request): - self._oprot.writeMessageBegin("create_wm_trigger", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_wm_trigger', TMessageType.CALL, self._seqid) args = create_wm_trigger_args() args.request = request args.write(self._oprot) @@ -10595,7 +11093,7 @@ def alter_wm_trigger(self, request): return self.recv_alter_wm_trigger() def send_alter_wm_trigger(self, request): - self._oprot.writeMessageBegin("alter_wm_trigger", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_wm_trigger', TMessageType.CALL, self._seqid) args = alter_wm_trigger_args() args.request = request args.write(self._oprot) @@ -10633,7 +11131,7 @@ def drop_wm_trigger(self, request): return self.recv_drop_wm_trigger() def send_drop_wm_trigger(self, request): - self._oprot.writeMessageBegin("drop_wm_trigger", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_wm_trigger', TMessageType.CALL, self._seqid) args = drop_wm_trigger_args() args.request = request args.write(self._oprot) @@ -10671,7 +11169,7 @@ def get_triggers_for_resourceplan(self, request): return self.recv_get_triggers_for_resourceplan() def send_get_triggers_for_resourceplan(self, request): - self._oprot.writeMessageBegin("get_triggers_for_resourceplan", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_triggers_for_resourceplan', TMessageType.CALL, self._seqid) args = get_triggers_for_resourceplan_args() args.request = request args.write(self._oprot) @@ -10707,7 +11205,7 @@ def create_wm_pool(self, request): return self.recv_create_wm_pool() def send_create_wm_pool(self, request): - self._oprot.writeMessageBegin("create_wm_pool", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_wm_pool', TMessageType.CALL, self._seqid) args = create_wm_pool_args() args.request = request args.write(self._oprot) @@ -10747,7 +11245,7 @@ def alter_wm_pool(self, request): return self.recv_alter_wm_pool() def send_alter_wm_pool(self, request): - self._oprot.writeMessageBegin("alter_wm_pool", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_wm_pool', TMessageType.CALL, self._seqid) args = alter_wm_pool_args() args.request = request args.write(self._oprot) @@ -10787,7 +11285,7 @@ def drop_wm_pool(self, request): return self.recv_drop_wm_pool() def send_drop_wm_pool(self, request): - self._oprot.writeMessageBegin("drop_wm_pool", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_wm_pool', TMessageType.CALL, self._seqid) args = drop_wm_pool_args() args.request = request args.write(self._oprot) @@ -10825,7 +11323,7 @@ def create_or_update_wm_mapping(self, request): return self.recv_create_or_update_wm_mapping() def send_create_or_update_wm_mapping(self, request): - self._oprot.writeMessageBegin("create_or_update_wm_mapping", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_or_update_wm_mapping', TMessageType.CALL, self._seqid) args = create_or_update_wm_mapping_args() args.request = request args.write(self._oprot) @@ -10865,7 +11363,7 @@ def drop_wm_mapping(self, request): return self.recv_drop_wm_mapping() def send_drop_wm_mapping(self, request): - self._oprot.writeMessageBegin("drop_wm_mapping", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_wm_mapping', TMessageType.CALL, self._seqid) args = drop_wm_mapping_args() args.request = request args.write(self._oprot) @@ -10903,7 +11401,7 @@ def create_or_drop_wm_trigger_to_pool_mapping(self, request): return self.recv_create_or_drop_wm_trigger_to_pool_mapping() def send_create_or_drop_wm_trigger_to_pool_mapping(self, request): - self._oprot.writeMessageBegin("create_or_drop_wm_trigger_to_pool_mapping", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_or_drop_wm_trigger_to_pool_mapping', TMessageType.CALL, self._seqid) args = create_or_drop_wm_trigger_to_pool_mapping_args() args.request = request args.write(self._oprot) @@ -10931,9 +11429,7 @@ def recv_create_or_drop_wm_trigger_to_pool_mapping(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException( - TApplicationException.MISSING_RESULT, "create_or_drop_wm_trigger_to_pool_mapping failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "create_or_drop_wm_trigger_to_pool_mapping failed: unknown result") def create_ischema(self, schema): """ @@ -10945,7 +11441,7 @@ def create_ischema(self, schema): self.recv_create_ischema() def send_create_ischema(self, schema): - self._oprot.writeMessageBegin("create_ischema", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_ischema', TMessageType.CALL, self._seqid) args = create_ischema_args() args.schema = schema args.write(self._oprot) @@ -10981,7 +11477,7 @@ def alter_ischema(self, rqst): self.recv_alter_ischema() def send_alter_ischema(self, rqst): - self._oprot.writeMessageBegin("alter_ischema", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('alter_ischema', TMessageType.CALL, self._seqid) args = alter_ischema_args() args.rqst = rqst args.write(self._oprot) @@ -11015,7 +11511,7 @@ def get_ischema(self, name): return self.recv_get_ischema() def send_get_ischema(self, name): - self._oprot.writeMessageBegin("get_ischema", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_ischema', TMessageType.CALL, self._seqid) args = get_ischema_args() args.name = name args.write(self._oprot) @@ -11051,7 +11547,7 @@ def drop_ischema(self, name): self.recv_drop_ischema() def send_drop_ischema(self, name): - self._oprot.writeMessageBegin("drop_ischema", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_ischema', TMessageType.CALL, self._seqid) args = drop_ischema_args() args.name = name args.write(self._oprot) @@ -11087,7 +11583,7 @@ def add_schema_version(self, schemaVersion): self.recv_add_schema_version() def send_add_schema_version(self, schemaVersion): - self._oprot.writeMessageBegin("add_schema_version", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_schema_version', TMessageType.CALL, self._seqid) args = add_schema_version_args() args.schemaVersion = schemaVersion args.write(self._oprot) @@ -11123,7 +11619,7 @@ def get_schema_version(self, schemaVersion): return self.recv_get_schema_version() def send_get_schema_version(self, schemaVersion): - self._oprot.writeMessageBegin("get_schema_version", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_schema_version', TMessageType.CALL, self._seqid) args = get_schema_version_args() args.schemaVersion = schemaVersion args.write(self._oprot) @@ -11159,7 +11655,7 @@ def get_schema_latest_version(self, schemaName): return self.recv_get_schema_latest_version() def send_get_schema_latest_version(self, schemaName): - self._oprot.writeMessageBegin("get_schema_latest_version", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_schema_latest_version', TMessageType.CALL, self._seqid) args = get_schema_latest_version_args() args.schemaName = schemaName args.write(self._oprot) @@ -11195,7 +11691,7 @@ def get_schema_all_versions(self, schemaName): return self.recv_get_schema_all_versions() def send_get_schema_all_versions(self, schemaName): - self._oprot.writeMessageBegin("get_schema_all_versions", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_schema_all_versions', TMessageType.CALL, self._seqid) args = get_schema_all_versions_args() args.schemaName = schemaName args.write(self._oprot) @@ -11231,7 +11727,7 @@ def drop_schema_version(self, schemaVersion): self.recv_drop_schema_version() def send_drop_schema_version(self, schemaVersion): - self._oprot.writeMessageBegin("drop_schema_version", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_schema_version', TMessageType.CALL, self._seqid) args = drop_schema_version_args() args.schemaVersion = schemaVersion args.write(self._oprot) @@ -11265,7 +11761,7 @@ def get_schemas_by_cols(self, rqst): return self.recv_get_schemas_by_cols() def send_get_schemas_by_cols(self, rqst): - self._oprot.writeMessageBegin("get_schemas_by_cols", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_schemas_by_cols', TMessageType.CALL, self._seqid) args = get_schemas_by_cols_args() args.rqst = rqst args.write(self._oprot) @@ -11299,7 +11795,7 @@ def map_schema_version_to_serde(self, rqst): self.recv_map_schema_version_to_serde() def send_map_schema_version_to_serde(self, rqst): - self._oprot.writeMessageBegin("map_schema_version_to_serde", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('map_schema_version_to_serde', TMessageType.CALL, self._seqid) args = map_schema_version_to_serde_args() args.rqst = rqst args.write(self._oprot) @@ -11333,7 +11829,7 @@ def set_schema_version_state(self, rqst): self.recv_set_schema_version_state() def send_set_schema_version_state(self, rqst): - self._oprot.writeMessageBegin("set_schema_version_state", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('set_schema_version_state', TMessageType.CALL, self._seqid) args = set_schema_version_state_args() args.rqst = rqst args.write(self._oprot) @@ -11369,7 +11865,7 @@ def add_serde(self, serde): self.recv_add_serde() def send_add_serde(self, serde): - self._oprot.writeMessageBegin("add_serde", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_serde', TMessageType.CALL, self._seqid) args = add_serde_args() args.serde = serde args.write(self._oprot) @@ -11403,7 +11899,7 @@ def get_serde(self, rqst): return self.recv_get_serde() def send_get_serde(self, rqst): - self._oprot.writeMessageBegin("get_serde", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_serde', TMessageType.CALL, self._seqid) args = get_serde_args() args.rqst = rqst args.write(self._oprot) @@ -11441,7 +11937,7 @@ def get_lock_materialization_rebuild(self, dbName, tableName, txnId): return self.recv_get_lock_materialization_rebuild() def send_get_lock_materialization_rebuild(self, dbName, tableName, txnId): - self._oprot.writeMessageBegin("get_lock_materialization_rebuild", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_lock_materialization_rebuild', TMessageType.CALL, self._seqid) args = get_lock_materialization_rebuild_args() args.dbName = dbName args.tableName = tableName @@ -11463,9 +11959,7 @@ def recv_get_lock_materialization_rebuild(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_lock_materialization_rebuild failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_lock_materialization_rebuild failed: unknown result") def heartbeat_lock_materialization_rebuild(self, dbName, tableName, txnId): """ @@ -11479,7 +11973,7 @@ def heartbeat_lock_materialization_rebuild(self, dbName, tableName, txnId): return self.recv_heartbeat_lock_materialization_rebuild() def send_heartbeat_lock_materialization_rebuild(self, dbName, tableName, txnId): - self._oprot.writeMessageBegin("heartbeat_lock_materialization_rebuild", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('heartbeat_lock_materialization_rebuild', TMessageType.CALL, self._seqid) args = heartbeat_lock_materialization_rebuild_args() args.dbName = dbName args.tableName = tableName @@ -11501,9 +11995,7 @@ def recv_heartbeat_lock_materialization_rebuild(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "heartbeat_lock_materialization_rebuild failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "heartbeat_lock_materialization_rebuild failed: unknown result") def add_runtime_stats(self, stat): """ @@ -11515,7 +12007,7 @@ def add_runtime_stats(self, stat): self.recv_add_runtime_stats() def send_add_runtime_stats(self, stat): - self._oprot.writeMessageBegin("add_runtime_stats", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_runtime_stats', TMessageType.CALL, self._seqid) args = add_runtime_stats_args() args.stat = stat args.write(self._oprot) @@ -11547,7 +12039,7 @@ def get_runtime_stats(self, rqst): return self.recv_get_runtime_stats() def send_get_runtime_stats(self, rqst): - self._oprot.writeMessageBegin("get_runtime_stats", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_runtime_stats', TMessageType.CALL, self._seqid) args = get_runtime_stats_args() args.rqst = rqst args.write(self._oprot) @@ -11581,7 +12073,7 @@ def get_partitions_with_specs(self, request): return self.recv_get_partitions_with_specs() def send_get_partitions_with_specs(self, request): - self._oprot.writeMessageBegin("get_partitions_with_specs", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_partitions_with_specs', TMessageType.CALL, self._seqid) args = get_partitions_with_specs_args() args.request = request args.write(self._oprot) @@ -11615,7 +12107,7 @@ def scheduled_query_poll(self, request): return self.recv_scheduled_query_poll() def send_scheduled_query_poll(self, request): - self._oprot.writeMessageBegin("scheduled_query_poll", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('scheduled_query_poll', TMessageType.CALL, self._seqid) args = scheduled_query_poll_args() args.request = request args.write(self._oprot) @@ -11649,7 +12141,7 @@ def scheduled_query_maintenance(self, request): self.recv_scheduled_query_maintenance() def send_scheduled_query_maintenance(self, request): - self._oprot.writeMessageBegin("scheduled_query_maintenance", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('scheduled_query_maintenance', TMessageType.CALL, self._seqid) args = scheduled_query_maintenance_args() args.request = request args.write(self._oprot) @@ -11687,7 +12179,7 @@ def scheduled_query_progress(self, info): self.recv_scheduled_query_progress() def send_scheduled_query_progress(self, info): - self._oprot.writeMessageBegin("scheduled_query_progress", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('scheduled_query_progress', TMessageType.CALL, self._seqid) args = scheduled_query_progress_args() args.info = info args.write(self._oprot) @@ -11721,7 +12213,7 @@ def get_scheduled_query(self, scheduleKey): return self.recv_get_scheduled_query() def send_get_scheduled_query(self, scheduleKey): - self._oprot.writeMessageBegin("get_scheduled_query", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_scheduled_query', TMessageType.CALL, self._seqid) args = get_scheduled_query_args() args.scheduleKey = scheduleKey args.write(self._oprot) @@ -11757,7 +12249,7 @@ def add_replication_metrics(self, replicationMetricList): self.recv_add_replication_metrics() def send_add_replication_metrics(self, replicationMetricList): - self._oprot.writeMessageBegin("add_replication_metrics", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_replication_metrics', TMessageType.CALL, self._seqid) args = add_replication_metrics_args() args.replicationMetricList = replicationMetricList args.write(self._oprot) @@ -11789,7 +12281,7 @@ def get_replication_metrics(self, rqst): return self.recv_get_replication_metrics() def send_get_replication_metrics(self, rqst): - self._oprot.writeMessageBegin("get_replication_metrics", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_replication_metrics', TMessageType.CALL, self._seqid) args = get_replication_metrics_args() args.rqst = rqst args.write(self._oprot) @@ -11823,7 +12315,7 @@ def get_open_txns_req(self, getOpenTxnsRequest): return self.recv_get_open_txns_req() def send_get_open_txns_req(self, getOpenTxnsRequest): - self._oprot.writeMessageBegin("get_open_txns_req", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_open_txns_req', TMessageType.CALL, self._seqid) args = get_open_txns_req_args() args.getOpenTxnsRequest = getOpenTxnsRequest args.write(self._oprot) @@ -11855,7 +12347,7 @@ def create_stored_procedure(self, proc): self.recv_create_stored_procedure() def send_create_stored_procedure(self, proc): - self._oprot.writeMessageBegin("create_stored_procedure", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_stored_procedure', TMessageType.CALL, self._seqid) args = create_stored_procedure_args() args.proc = proc args.write(self._oprot) @@ -11889,7 +12381,7 @@ def get_stored_procedure(self, request): return self.recv_get_stored_procedure() def send_get_stored_procedure(self, request): - self._oprot.writeMessageBegin("get_stored_procedure", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_stored_procedure', TMessageType.CALL, self._seqid) args = get_stored_procedure_args() args.request = request args.write(self._oprot) @@ -11925,7 +12417,7 @@ def drop_stored_procedure(self, request): self.recv_drop_stored_procedure() def send_drop_stored_procedure(self, request): - self._oprot.writeMessageBegin("drop_stored_procedure", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_stored_procedure', TMessageType.CALL, self._seqid) args = drop_stored_procedure_args() args.request = request args.write(self._oprot) @@ -11957,7 +12449,7 @@ def get_all_stored_procedures(self, request): return self.recv_get_all_stored_procedures() def send_get_all_stored_procedures(self, request): - self._oprot.writeMessageBegin("get_all_stored_procedures", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_stored_procedures', TMessageType.CALL, self._seqid) args = get_all_stored_procedures_args() args.request = request args.write(self._oprot) @@ -11991,7 +12483,7 @@ def find_package(self, request): return self.recv_find_package() def send_find_package(self, request): - self._oprot.writeMessageBegin("find_package", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('find_package', TMessageType.CALL, self._seqid) args = find_package_args() args.request = request args.write(self._oprot) @@ -12027,7 +12519,7 @@ def add_package(self, request): self.recv_add_package() def send_add_package(self, request): - self._oprot.writeMessageBegin("add_package", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('add_package', TMessageType.CALL, self._seqid) args = add_package_args() args.request = request args.write(self._oprot) @@ -12059,7 +12551,7 @@ def get_all_packages(self, request): return self.recv_get_all_packages() def send_get_all_packages(self, request): - self._oprot.writeMessageBegin("get_all_packages", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_packages', TMessageType.CALL, self._seqid) args = get_all_packages_args() args.request = request args.write(self._oprot) @@ -12093,7 +12585,7 @@ def drop_package(self, request): self.recv_drop_package() def send_drop_package(self, request): - self._oprot.writeMessageBegin("drop_package", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('drop_package', TMessageType.CALL, self._seqid) args = drop_package_args() args.request = request args.write(self._oprot) @@ -12125,7 +12617,7 @@ def get_all_write_event_info(self, request): return self.recv_get_all_write_event_info() def send_get_all_write_event_info(self, request): - self._oprot.writeMessageBegin("get_all_write_event_info", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_all_write_event_info', TMessageType.CALL, self._seqid) args = get_all_write_event_info_args() args.request = request args.write(self._oprot) @@ -12149,10 +12641,45 @@ def recv_get_all_write_event_info(self): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_write_event_info failed: unknown result") + def get_replayed_txns_for_policy(self, policyName): + """ + Parameters: + - policyName + + """ + self.send_get_replayed_txns_for_policy(policyName) + return self.recv_get_replayed_txns_for_policy() + + def send_get_replayed_txns_for_policy(self, policyName): + self._oprot.writeMessageBegin('get_replayed_txns_for_policy', TMessageType.CALL, self._seqid) + args = get_replayed_txns_for_policy_args() + args.policyName = policyName + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_replayed_txns_for_policy(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_replayed_txns_for_policy_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_replayed_txns_for_policy failed: unknown result") + class Processor(fb303.FacebookService.Processor, Iface, TProcessor): def __init__(self, handler): fb303.FacebookService.Processor.__init__(self, handler) + self._processMap["abort_Compactions"] = Processor.process_abort_Compactions self._processMap["getMetaConf"] = Processor.process_getMetaConf self._processMap["setMetaConf"] = Processor.process_setMetaConf self._processMap["create_catalog"] = Processor.process_create_catalog @@ -12161,18 +12688,21 @@ def __init__(self, handler): self._processMap["get_catalogs"] = Processor.process_get_catalogs self._processMap["drop_catalog"] = Processor.process_drop_catalog self._processMap["create_database"] = Processor.process_create_database + self._processMap["create_database_req"] = Processor.process_create_database_req self._processMap["get_database"] = Processor.process_get_database self._processMap["get_database_req"] = Processor.process_get_database_req self._processMap["drop_database"] = Processor.process_drop_database self._processMap["drop_database_req"] = Processor.process_drop_database_req self._processMap["get_databases"] = Processor.process_get_databases self._processMap["get_all_databases"] = Processor.process_get_all_databases + self._processMap["get_databases_req"] = Processor.process_get_databases_req self._processMap["alter_database"] = Processor.process_alter_database - self._processMap["create_dataconnector"] = Processor.process_create_dataconnector + self._processMap["alter_database_req"] = Processor.process_alter_database_req + self._processMap["create_dataconnector_req"] = Processor.process_create_dataconnector_req self._processMap["get_dataconnector_req"] = Processor.process_get_dataconnector_req - self._processMap["drop_dataconnector"] = Processor.process_drop_dataconnector + self._processMap["drop_dataconnector_req"] = Processor.process_drop_dataconnector_req self._processMap["get_dataconnectors"] = Processor.process_get_dataconnectors - self._processMap["alter_dataconnector"] = Processor.process_alter_dataconnector + self._processMap["alter_dataconnector_req"] = Processor.process_alter_dataconnector_req self._processMap["get_type"] = Processor.process_get_type self._processMap["create_type"] = Processor.process_create_type self._processMap["drop_type"] = Processor.process_drop_type @@ -12197,18 +12727,15 @@ def __init__(self, handler): self._processMap["translate_table_dryrun"] = Processor.process_translate_table_dryrun self._processMap["drop_table"] = Processor.process_drop_table self._processMap["drop_table_with_environment_context"] = Processor.process_drop_table_with_environment_context + self._processMap["drop_table_req"] = Processor.process_drop_table_req self._processMap["truncate_table"] = Processor.process_truncate_table self._processMap["truncate_table_req"] = Processor.process_truncate_table_req self._processMap["get_tables"] = Processor.process_get_tables self._processMap["get_tables_by_type"] = Processor.process_get_tables_by_type - self._processMap[ - "get_all_materialized_view_objects_for_rewriting" - ] = Processor.process_get_all_materialized_view_objects_for_rewriting + self._processMap["get_all_materialized_view_objects_for_rewriting"] = Processor.process_get_all_materialized_view_objects_for_rewriting self._processMap["get_materialized_views_for_rewriting"] = Processor.process_get_materialized_views_for_rewriting self._processMap["get_table_meta"] = Processor.process_get_table_meta self._processMap["get_all_tables"] = Processor.process_get_all_tables - self._processMap["get_table"] = Processor.process_get_table - self._processMap["get_table_objects_by_name"] = Processor.process_get_table_objects_by_name self._processMap["get_tables_ext"] = Processor.process_get_tables_ext self._processMap["get_table_req"] = Processor.process_get_table_req self._processMap["get_table_objects_by_name_req"] = Processor.process_get_table_objects_by_name_req @@ -12225,19 +12752,15 @@ def __init__(self, handler): self._processMap["add_partitions_pspec"] = Processor.process_add_partitions_pspec self._processMap["append_partition"] = Processor.process_append_partition self._processMap["add_partitions_req"] = Processor.process_add_partitions_req - self._processMap[ - "append_partition_with_environment_context" - ] = Processor.process_append_partition_with_environment_context + self._processMap["append_partition_with_environment_context"] = Processor.process_append_partition_with_environment_context + self._processMap["append_partition_req"] = Processor.process_append_partition_req self._processMap["append_partition_by_name"] = Processor.process_append_partition_by_name - self._processMap[ - "append_partition_by_name_with_environment_context" - ] = Processor.process_append_partition_by_name_with_environment_context + self._processMap["append_partition_by_name_with_environment_context"] = Processor.process_append_partition_by_name_with_environment_context self._processMap["drop_partition"] = Processor.process_drop_partition self._processMap["drop_partition_with_environment_context"] = Processor.process_drop_partition_with_environment_context + self._processMap["drop_partition_req"] = Processor.process_drop_partition_req self._processMap["drop_partition_by_name"] = Processor.process_drop_partition_by_name - self._processMap[ - "drop_partition_by_name_with_environment_context" - ] = Processor.process_drop_partition_by_name_with_environment_context + self._processMap["drop_partition_by_name_with_environment_context"] = Processor.process_drop_partition_by_name_with_environment_context self._processMap["drop_partitions_req"] = Processor.process_drop_partitions_req self._processMap["get_partition"] = Processor.process_get_partition self._processMap["get_partition_req"] = Processor.process_get_partition_req @@ -12250,6 +12773,7 @@ def __init__(self, handler): self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth self._processMap["get_partitions_pspec"] = Processor.process_get_partitions_pspec self._processMap["get_partition_names"] = Processor.process_get_partition_names + self._processMap["fetch_partition_names_req"] = Processor.process_fetch_partition_names_req self._processMap["get_partition_values"] = Processor.process_get_partition_values self._processMap["get_partitions_ps"] = Processor.process_get_partitions_ps self._processMap["get_partitions_ps_with_auth"] = Processor.process_get_partitions_ps_with_auth @@ -12258,17 +12782,18 @@ def __init__(self, handler): self._processMap["get_partition_names_ps_req"] = Processor.process_get_partition_names_ps_req self._processMap["get_partition_names_req"] = Processor.process_get_partition_names_req self._processMap["get_partitions_by_filter"] = Processor.process_get_partitions_by_filter + self._processMap["get_partitions_by_filter_req"] = Processor.process_get_partitions_by_filter_req self._processMap["get_part_specs_by_filter"] = Processor.process_get_part_specs_by_filter self._processMap["get_partitions_by_expr"] = Processor.process_get_partitions_by_expr self._processMap["get_partitions_spec_by_expr"] = Processor.process_get_partitions_spec_by_expr self._processMap["get_num_partitions_by_filter"] = Processor.process_get_num_partitions_by_filter self._processMap["get_partitions_by_names"] = Processor.process_get_partitions_by_names self._processMap["get_partitions_by_names_req"] = Processor.process_get_partitions_by_names_req + self._processMap["get_properties"] = Processor.process_get_properties + self._processMap["set_properties"] = Processor.process_set_properties self._processMap["alter_partition"] = Processor.process_alter_partition self._processMap["alter_partitions"] = Processor.process_alter_partitions - self._processMap[ - "alter_partitions_with_environment_context" - ] = Processor.process_alter_partitions_with_environment_context + self._processMap["alter_partitions_with_environment_context"] = Processor.process_alter_partitions_with_environment_context self._processMap["alter_partitions_req"] = Processor.process_alter_partitions_req self._processMap["alter_partition_with_environment_context"] = Processor.process_alter_partition_with_environment_context self._processMap["rename_partition"] = Processor.process_rename_partition @@ -12299,10 +12824,12 @@ def __init__(self, handler): self._processMap["set_aggr_stats_for"] = Processor.process_set_aggr_stats_for self._processMap["delete_partition_column_statistics"] = Processor.process_delete_partition_column_statistics self._processMap["delete_table_column_statistics"] = Processor.process_delete_table_column_statistics + self._processMap["delete_column_statistics_req"] = Processor.process_delete_column_statistics_req self._processMap["create_function"] = Processor.process_create_function self._processMap["drop_function"] = Processor.process_drop_function self._processMap["alter_function"] = Processor.process_alter_function self._processMap["get_functions"] = Processor.process_get_functions + self._processMap["get_functions_req"] = Processor.process_get_functions_req self._processMap["get_function"] = Processor.process_get_function self._processMap["get_all_functions"] = Processor.process_get_all_functions self._processMap["create_role"] = Processor.process_create_role @@ -12341,6 +12868,7 @@ def __init__(self, handler): self._processMap["get_latest_txnid_in_conflict"] = Processor.process_get_latest_txnid_in_conflict self._processMap["repl_tbl_writeid_state"] = Processor.process_repl_tbl_writeid_state self._processMap["get_valid_write_ids"] = Processor.process_get_valid_write_ids + self._processMap["add_write_ids_to_min_history"] = Processor.process_add_write_ids_to_min_history self._processMap["allocate_table_write_ids"] = Processor.process_allocate_table_write_ids self._processMap["get_max_allocated_table_write_id"] = Processor.process_get_max_allocated_table_write_id self._processMap["seed_write_id"] = Processor.process_seed_write_id @@ -12354,6 +12882,7 @@ def __init__(self, handler): self._processMap["compact"] = Processor.process_compact self._processMap["compact2"] = Processor.process_compact2 self._processMap["show_compact"] = Processor.process_show_compact + self._processMap["submit_for_cleanup"] = Processor.process_submit_for_cleanup self._processMap["add_dynamic_partitions"] = Processor.process_add_dynamic_partitions self._processMap["find_next_compact"] = Processor.process_find_next_compact self._processMap["find_next_compact2"] = Processor.process_find_next_compact2 @@ -12397,9 +12926,7 @@ def __init__(self, handler): self._processMap["drop_wm_pool"] = Processor.process_drop_wm_pool self._processMap["create_or_update_wm_mapping"] = Processor.process_create_or_update_wm_mapping self._processMap["drop_wm_mapping"] = Processor.process_drop_wm_mapping - self._processMap[ - "create_or_drop_wm_trigger_to_pool_mapping" - ] = Processor.process_create_or_drop_wm_trigger_to_pool_mapping + self._processMap["create_or_drop_wm_trigger_to_pool_mapping"] = Processor.process_create_or_drop_wm_trigger_to_pool_mapping self._processMap["create_ischema"] = Processor.process_create_ischema self._processMap["alter_ischema"] = Processor.process_alter_ischema self._processMap["get_ischema"] = Processor.process_get_ischema @@ -12435,6 +12962,7 @@ def __init__(self, handler): self._processMap["get_all_packages"] = Processor.process_get_all_packages self._processMap["drop_package"] = Processor.process_drop_package self._processMap["get_all_write_event_info"] = Processor.process_get_all_write_event_info + self._processMap["get_replayed_txns_for_policy"] = Processor.process_get_replayed_txns_for_policy self._on_message_begin = None def on_message_begin(self, func): @@ -12447,7 +12975,7 @@ def process(self, iprot, oprot): if name not in self._processMap: iprot.skip(TType.STRUCT) iprot.readMessageEnd() - x = TApplicationException(TApplicationException.UNKNOWN_METHOD, "Unknown function %s" % (name)) + x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) x.write(oprot) oprot.writeMessageEnd() @@ -12457,6 +12985,29 @@ def process(self, iprot, oprot): self._processMap[name](self, seqid, iprot, oprot) return True + def process_abort_Compactions(self, seqid, iprot, oprot): + args = abort_Compactions_args() + args.read(iprot) + iprot.readMessageEnd() + result = abort_Compactions_result() + try: + result.success = self._handler.abort_Compactions(args.rqst) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("abort_Compactions", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_getMetaConf(self, seqid, iprot, oprot): args = getMetaConf_args() args.read(iprot) @@ -12471,13 +13022,13 @@ def process_getMetaConf(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("getMetaConf", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12497,13 +13048,13 @@ def process_setMetaConf(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("setMetaConf", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12529,13 +13080,13 @@ def process_create_catalog(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_catalog", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12561,13 +13112,13 @@ def process_alter_catalog(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_catalog", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12590,13 +13141,13 @@ def process_get_catalog(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_catalog", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12616,13 +13167,13 @@ def process_get_catalogs(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_catalogs", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12648,13 +13199,13 @@ def process_drop_catalog(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_catalog", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12680,18 +13231,50 @@ def process_create_database(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_database", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_create_database_req(self, seqid, iprot, oprot): + args = create_database_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = create_database_req_result() + try: + self._handler.create_database_req(args.createDatabaseRequest) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except AlreadyExistsException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except InvalidObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except MetaException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("create_database_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_database(self, seqid, iprot, oprot): args = get_database_args() args.read(iprot) @@ -12709,13 +13292,13 @@ def process_get_database(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_database", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12738,13 +13321,13 @@ def process_get_database_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_database_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12770,13 +13353,13 @@ def process_drop_database(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_database", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12802,13 +13385,13 @@ def process_drop_database_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_database_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12828,13 +13411,13 @@ def process_get_databases(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_databases", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -12854,18 +13437,44 @@ def process_get_all_databases(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_databases", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_get_databases_req(self, seqid, iprot, oprot): + args = get_databases_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_databases_req_result() + try: + result.success = self._handler.get_databases_req(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_databases_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_alter_database(self, seqid, iprot, oprot): args = alter_database_args() args.read(iprot) @@ -12883,25 +13492,54 @@ def process_alter_database(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_database", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() - def process_create_dataconnector(self, seqid, iprot, oprot): - args = create_dataconnector_args() + def process_alter_database_req(self, seqid, iprot, oprot): + args = alter_database_req_args() args.read(iprot) iprot.readMessageEnd() - result = create_dataconnector_result() + result = alter_database_req_result() try: - self._handler.create_dataconnector(args.connector) + self._handler.alter_database_req(args.alterDbReq) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("alter_database_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_create_dataconnector_req(self, seqid, iprot, oprot): + args = create_dataconnector_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = create_dataconnector_req_result() + try: + self._handler.create_dataconnector_req(args.connectorReq) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -12915,14 +13553,14 @@ def process_create_dataconnector(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") - oprot.writeMessageBegin("create_dataconnector", msg_type, seqid) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("create_dataconnector_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -12944,25 +13582,25 @@ def process_get_dataconnector_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_dataconnector_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() - def process_drop_dataconnector(self, seqid, iprot, oprot): - args = drop_dataconnector_args() + def process_drop_dataconnector_req(self, seqid, iprot, oprot): + args = drop_dataconnector_req_args() args.read(iprot) iprot.readMessageEnd() - result = drop_dataconnector_result() + result = drop_dataconnector_req_result() try: - self._handler.drop_dataconnector(args.name, args.ifNotExists, args.checkReferences) + self._handler.drop_dataconnector_req(args.dropDcReq) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -12976,14 +13614,14 @@ def process_drop_dataconnector(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") - oprot.writeMessageBegin("drop_dataconnector", msg_type, seqid) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("drop_dataconnector_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -13002,25 +13640,25 @@ def process_get_dataconnectors(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_dataconnectors", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() - def process_alter_dataconnector(self, seqid, iprot, oprot): - args = alter_dataconnector_args() + def process_alter_dataconnector_req(self, seqid, iprot, oprot): + args = alter_dataconnector_req_args() args.read(iprot) iprot.readMessageEnd() - result = alter_dataconnector_result() + result = alter_dataconnector_req_result() try: - self._handler.alter_dataconnector(args.name, args.connector) + self._handler.alter_dataconnector_req(args.alterReq) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -13031,14 +13669,14 @@ def process_alter_dataconnector(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") - oprot.writeMessageBegin("alter_dataconnector", msg_type, seqid) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("alter_dataconnector_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -13060,13 +13698,13 @@ def process_get_type(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_type", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13092,13 +13730,13 @@ def process_create_type(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_type", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13121,13 +13759,13 @@ def process_drop_type(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_type", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13147,13 +13785,13 @@ def process_get_type_all(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_type_all", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13179,13 +13817,13 @@ def process_get_fields(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_fields", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13197,9 +13835,7 @@ def process_get_fields_with_environment_context(self, seqid, iprot, oprot): iprot.readMessageEnd() result = get_fields_with_environment_context_result() try: - result.success = self._handler.get_fields_with_environment_context( - args.db_name, args.table_name, args.environment_context - ) + result.success = self._handler.get_fields_with_environment_context(args.db_name, args.table_name, args.environment_context) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -13213,13 +13849,13 @@ def process_get_fields_with_environment_context(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_fields_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13245,13 +13881,13 @@ def process_get_fields_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_fields_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13277,13 +13913,13 @@ def process_get_schema(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_schema", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13295,9 +13931,7 @@ def process_get_schema_with_environment_context(self, seqid, iprot, oprot): iprot.readMessageEnd() result = get_schema_with_environment_context_result() try: - result.success = self._handler.get_schema_with_environment_context( - args.db_name, args.table_name, args.environment_context - ) + result.success = self._handler.get_schema_with_environment_context(args.db_name, args.table_name, args.environment_context) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -13311,13 +13945,13 @@ def process_get_schema_with_environment_context(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_schema_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13343,13 +13977,13 @@ def process_get_schema_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_schema_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13378,13 +14012,13 @@ def process_create_table(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_table", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13413,13 +14047,13 @@ def process_create_table_with_environment_context(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_table_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13431,15 +14065,7 @@ def process_create_table_with_constraints(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_table_with_constraints_result() try: - self._handler.create_table_with_constraints( - args.tbl, - args.primaryKeys, - args.foreignKeys, - args.uniqueConstraints, - args.notNullConstraints, - args.defaultConstraints, - args.checkConstraints, - ) + self._handler.create_table_with_constraints(args.tbl, args.primaryKeys, args.foreignKeys, args.uniqueConstraints, args.notNullConstraints, args.defaultConstraints, args.checkConstraints) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -13456,13 +14082,13 @@ def process_create_table_with_constraints(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_table_with_constraints", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13491,13 +14117,13 @@ def process_create_table_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_table_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13520,13 +14146,13 @@ def process_drop_constraint(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_constraint", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13549,13 +14175,13 @@ def process_add_primary_key(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_primary_key", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13578,13 +14204,13 @@ def process_add_foreign_key(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_foreign_key", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13607,13 +14233,13 @@ def process_add_unique_constraint(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_unique_constraint", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13636,13 +14262,13 @@ def process_add_not_null_constraint(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_not_null_constraint", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13665,13 +14291,13 @@ def process_add_default_constraint(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_default_constraint", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13694,13 +14320,13 @@ def process_add_check_constraint(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_check_constraint", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13729,13 +14355,13 @@ def process_translate_table_dryrun(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("translate_table_dryrun", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13758,13 +14384,13 @@ def process_drop_table(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_table", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13787,18 +14413,47 @@ def process_drop_table_with_environment_context(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_table_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_drop_table_req(self, seqid, iprot, oprot): + args = drop_table_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = drop_table_req_result() + try: + self._handler.drop_table_req(args.dropTableReq) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except NoSuchObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except MetaException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("drop_table_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_truncate_table(self, seqid, iprot, oprot): args = truncate_table_args() args.read(iprot) @@ -13813,13 +14468,13 @@ def process_truncate_table(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("truncate_table", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13839,13 +14494,13 @@ def process_truncate_table_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("truncate_table_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13865,13 +14520,13 @@ def process_get_tables(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_tables", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13891,13 +14546,13 @@ def process_get_tables_by_type(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_tables_by_type", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13917,13 +14572,13 @@ def process_get_all_materialized_view_objects_for_rewriting(self, seqid, iprot, msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_materialized_view_objects_for_rewriting", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13943,13 +14598,13 @@ def process_get_materialized_views_for_rewriting(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_materialized_views_for_rewriting", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13969,13 +14624,13 @@ def process_get_table_meta(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_table_meta", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -13995,70 +14650,18 @@ def process_get_all_tables(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_tables", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() - def process_get_table(self, seqid, iprot, oprot): - args = get_table_args() - args.read(iprot) - iprot.readMessageEnd() - result = get_table_result() - try: - result.success = self._handler.get_table(args.dbname, args.tbl_name) - msg_type = TMessageType.REPLY - except TTransport.TTransportException: - raise - except MetaException as o1: - msg_type = TMessageType.REPLY - result.o1 = o1 - except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY - result.o2 = o2 - except TApplicationException as ex: - logging.exception("TApplication exception in handler") - msg_type = TMessageType.EXCEPTION - result = ex - except Exception: - logging.exception("Unexpected exception in handler") - msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") - oprot.writeMessageBegin("get_table", msg_type, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_get_table_objects_by_name(self, seqid, iprot, oprot): - args = get_table_objects_by_name_args() - args.read(iprot) - iprot.readMessageEnd() - result = get_table_objects_by_name_result() - try: - result.success = self._handler.get_table_objects_by_name(args.dbname, args.tbl_names) - msg_type = TMessageType.REPLY - except TTransport.TTransportException: - raise - except TApplicationException as ex: - logging.exception("TApplication exception in handler") - msg_type = TMessageType.EXCEPTION - result = ex - except Exception: - logging.exception("Unexpected exception in handler") - msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") - oprot.writeMessageBegin("get_table_objects_by_name", msg_type, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - def process_get_tables_ext(self, seqid, iprot, oprot): args = get_tables_ext_args() args.read(iprot) @@ -14073,13 +14676,13 @@ def process_get_tables_ext(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_tables_ext", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14102,13 +14705,13 @@ def process_get_table_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_table_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14134,13 +14737,13 @@ def process_get_table_objects_by_name_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_table_objects_by_name_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14166,13 +14769,13 @@ def process_get_materialization_invalidation_info(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_materialization_invalidation_info", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14198,13 +14801,13 @@ def process_update_creation_metadata(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("update_creation_metadata", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14230,13 +14833,13 @@ def process_get_table_names_by_filter(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_table_names_by_filter", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14259,13 +14862,13 @@ def process_alter_table(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_table", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14288,13 +14891,13 @@ def process_alter_table_with_environment_context(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_table_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14317,13 +14920,13 @@ def process_alter_table_with_cascade(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_table_with_cascade", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14346,13 +14949,13 @@ def process_alter_table_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_table_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14378,13 +14981,13 @@ def process_add_partition(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_partition", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14410,13 +15013,13 @@ def process_add_partition_with_environment_context(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_partition_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14442,13 +15045,13 @@ def process_add_partitions(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_partitions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14474,13 +15077,13 @@ def process_add_partitions_pspec(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_partitions_pspec", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14506,13 +15109,13 @@ def process_append_partition(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("append_partition", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14538,13 +15141,13 @@ def process_add_partitions_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_partitions_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14556,9 +15159,7 @@ def process_append_partition_with_environment_context(self, seqid, iprot, oprot) iprot.readMessageEnd() result = append_partition_with_environment_context_result() try: - result.success = self._handler.append_partition_with_environment_context( - args.db_name, args.tbl_name, args.part_vals, args.environment_context - ) + result.success = self._handler.append_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.environment_context) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -14572,18 +15173,50 @@ def process_append_partition_with_environment_context(self, seqid, iprot, oprot) msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("append_partition_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_append_partition_req(self, seqid, iprot, oprot): + args = append_partition_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = append_partition_req_result() + try: + result.success = self._handler.append_partition_req(args.appendPartitionsReq) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except InvalidObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except AlreadyExistsException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except MetaException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("append_partition_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_append_partition_by_name(self, seqid, iprot, oprot): args = append_partition_by_name_args() args.read(iprot) @@ -14604,13 +15237,13 @@ def process_append_partition_by_name(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("append_partition_by_name", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14622,9 +15255,7 @@ def process_append_partition_by_name_with_environment_context(self, seqid, iprot iprot.readMessageEnd() result = append_partition_by_name_with_environment_context_result() try: - result.success = self._handler.append_partition_by_name_with_environment_context( - args.db_name, args.tbl_name, args.part_name, args.environment_context - ) + result.success = self._handler.append_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.environment_context) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -14638,13 +15269,13 @@ def process_append_partition_by_name_with_environment_context(self, seqid, iprot msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("append_partition_by_name_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14667,13 +15298,13 @@ def process_drop_partition(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_partition", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14685,9 +15316,7 @@ def process_drop_partition_with_environment_context(self, seqid, iprot, oprot): iprot.readMessageEnd() result = drop_partition_with_environment_context_result() try: - result.success = self._handler.drop_partition_with_environment_context( - args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context - ) + result.success = self._handler.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -14698,18 +15327,47 @@ def process_drop_partition_with_environment_context(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_partition_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_drop_partition_req(self, seqid, iprot, oprot): + args = drop_partition_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = drop_partition_req_result() + try: + result.success = self._handler.drop_partition_req(args.dropPartitionReq) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except NoSuchObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except MetaException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("drop_partition_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_drop_partition_by_name(self, seqid, iprot, oprot): args = drop_partition_by_name_args() args.read(iprot) @@ -14727,13 +15385,13 @@ def process_drop_partition_by_name(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_partition_by_name", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14745,9 +15403,7 @@ def process_drop_partition_by_name_with_environment_context(self, seqid, iprot, iprot.readMessageEnd() result = drop_partition_by_name_with_environment_context_result() try: - result.success = self._handler.drop_partition_by_name_with_environment_context( - args.db_name, args.tbl_name, args.part_name, args.deleteData, args.environment_context - ) + result.success = self._handler.drop_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.deleteData, args.environment_context) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -14758,13 +15414,13 @@ def process_drop_partition_by_name_with_environment_context(self, seqid, iprot, msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_partition_by_name_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14787,13 +15443,13 @@ def process_drop_partitions_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_partitions_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14816,13 +15472,13 @@ def process_get_partition(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14845,13 +15501,13 @@ def process_get_partition_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14863,9 +15519,7 @@ def process_exchange_partition(self, seqid, iprot, oprot): iprot.readMessageEnd() result = exchange_partition_result() try: - result.success = self._handler.exchange_partition( - args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name - ) + result.success = self._handler.exchange_partition(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -14882,13 +15536,13 @@ def process_exchange_partition(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("exchange_partition", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14900,9 +15554,7 @@ def process_exchange_partitions(self, seqid, iprot, oprot): iprot.readMessageEnd() result = exchange_partitions_result() try: - result.success = self._handler.exchange_partitions( - args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name - ) + result.success = self._handler.exchange_partitions(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -14919,13 +15571,13 @@ def process_exchange_partitions(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("exchange_partitions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14937,9 +15589,7 @@ def process_get_partition_with_auth(self, seqid, iprot, oprot): iprot.readMessageEnd() result = get_partition_with_auth_result() try: - result.success = self._handler.get_partition_with_auth( - args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names - ) + result.success = self._handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -14950,13 +15600,13 @@ def process_get_partition_with_auth(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition_with_auth", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -14979,13 +15629,13 @@ def process_get_partition_by_name(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition_by_name", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15008,13 +15658,13 @@ def process_get_partitions(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15037,13 +15687,13 @@ def process_get_partitions_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15055,9 +15705,7 @@ def process_get_partitions_with_auth(self, seqid, iprot, oprot): iprot.readMessageEnd() result = get_partitions_with_auth_result() try: - result.success = self._handler.get_partitions_with_auth( - args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names - ) + result.success = self._handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -15068,13 +15716,13 @@ def process_get_partitions_with_auth(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_with_auth", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15097,13 +15745,13 @@ def process_get_partitions_pspec(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_pspec", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15126,18 +15774,47 @@ def process_get_partition_names(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition_names", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_fetch_partition_names_req(self, seqid, iprot, oprot): + args = fetch_partition_names_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = fetch_partition_names_req_result() + try: + result.success = self._handler.fetch_partition_names_req(args.partitionReq) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except NoSuchObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except MetaException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("fetch_partition_names_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_partition_values(self, seqid, iprot, oprot): args = get_partition_values_args() args.read(iprot) @@ -15155,13 +15832,13 @@ def process_get_partition_values(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition_values", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15184,13 +15861,13 @@ def process_get_partitions_ps(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_ps", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15202,9 +15879,7 @@ def process_get_partitions_ps_with_auth(self, seqid, iprot, oprot): iprot.readMessageEnd() result = get_partitions_ps_with_auth_result() try: - result.success = self._handler.get_partitions_ps_with_auth( - args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names - ) + result.success = self._handler.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -15215,13 +15890,13 @@ def process_get_partitions_ps_with_auth(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_ps_with_auth", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15244,13 +15919,13 @@ def process_get_partitions_ps_with_auth_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_ps_with_auth_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15273,13 +15948,13 @@ def process_get_partition_names_ps(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition_names_ps", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15302,13 +15977,13 @@ def process_get_partition_names_ps_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition_names_ps_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15331,13 +16006,13 @@ def process_get_partition_names_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition_names_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15360,18 +16035,47 @@ def process_get_partitions_by_filter(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_by_filter", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_get_partitions_by_filter_req(self, seqid, iprot, oprot): + args = get_partitions_by_filter_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_partitions_by_filter_req_result() + try: + result.success = self._handler.get_partitions_by_filter_req(args.req) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_partitions_by_filter_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_part_specs_by_filter(self, seqid, iprot, oprot): args = get_part_specs_by_filter_args() args.read(iprot) @@ -15389,13 +16093,13 @@ def process_get_part_specs_by_filter(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_part_specs_by_filter", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15418,13 +16122,13 @@ def process_get_partitions_by_expr(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_by_expr", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15447,13 +16151,13 @@ def process_get_partitions_spec_by_expr(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_spec_by_expr", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15476,13 +16180,13 @@ def process_get_num_partitions_by_filter(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_num_partitions_by_filter", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15504,14 +16208,17 @@ def process_get_partitions_by_names(self, seqid, iprot, oprot): except NoSuchObjectException as o2: msg_type = TMessageType.REPLY result.o2 = o2 + except InvalidObjectException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_by_names", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15533,19 +16240,80 @@ def process_get_partitions_by_names_req(self, seqid, iprot, oprot): except NoSuchObjectException as o2: msg_type = TMessageType.REPLY result.o2 = o2 + except InvalidObjectException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_by_names_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_get_properties(self, seqid, iprot, oprot): + args = get_properties_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_properties_result() + try: + result.success = self._handler.get_properties(args.req) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as e1: + msg_type = TMessageType.REPLY + result.e1 = e1 + except NoSuchObjectException as e2: + msg_type = TMessageType.REPLY + result.e2 = e2 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_properties", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_set_properties(self, seqid, iprot, oprot): + args = set_properties_args() + args.read(iprot) + iprot.readMessageEnd() + result = set_properties_result() + try: + result.success = self._handler.set_properties(args.req) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as e1: + msg_type = TMessageType.REPLY + result.e1 = e1 + except NoSuchObjectException as e2: + msg_type = TMessageType.REPLY + result.e2 = e2 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("set_properties", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_alter_partition(self, seqid, iprot, oprot): args = alter_partition_args() args.read(iprot) @@ -15563,13 +16331,13 @@ def process_alter_partition(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_partition", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15592,13 +16360,13 @@ def process_alter_partitions(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_partitions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15610,9 +16378,7 @@ def process_alter_partitions_with_environment_context(self, seqid, iprot, oprot) iprot.readMessageEnd() result = alter_partitions_with_environment_context_result() try: - self._handler.alter_partitions_with_environment_context( - args.db_name, args.tbl_name, args.new_parts, args.environment_context - ) + self._handler.alter_partitions_with_environment_context(args.db_name, args.tbl_name, args.new_parts, args.environment_context) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -15623,13 +16389,13 @@ def process_alter_partitions_with_environment_context(self, seqid, iprot, oprot) msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_partitions_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15652,13 +16418,13 @@ def process_alter_partitions_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_partitions_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15670,9 +16436,7 @@ def process_alter_partition_with_environment_context(self, seqid, iprot, oprot): iprot.readMessageEnd() result = alter_partition_with_environment_context_result() try: - self._handler.alter_partition_with_environment_context( - args.db_name, args.tbl_name, args.new_part, args.environment_context - ) + self._handler.alter_partition_with_environment_context(args.db_name, args.tbl_name, args.new_part, args.environment_context) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -15683,13 +16447,13 @@ def process_alter_partition_with_environment_context(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_partition_with_environment_context", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15712,13 +16476,13 @@ def process_rename_partition(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("rename_partition", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15741,13 +16505,13 @@ def process_rename_partition_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("rename_partition_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15767,13 +16531,13 @@ def process_partition_name_has_valid_characters(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("partition_name_has_valid_characters", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15793,13 +16557,13 @@ def process_get_config_value(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_config_value", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15819,13 +16583,13 @@ def process_partition_name_to_vals(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("partition_name_to_vals", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15845,13 +16609,13 @@ def process_partition_name_to_spec(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("partition_name_to_spec", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15886,13 +16650,13 @@ def process_markPartitionForEvent(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o6 = o6 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("markPartitionForEvent", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15927,13 +16691,13 @@ def process_isPartitionMarkedForEvent(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o6 = o6 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("isPartitionMarkedForEvent", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15956,13 +16720,13 @@ def process_get_primary_keys(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_primary_keys", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -15985,13 +16749,13 @@ def process_get_foreign_keys(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_foreign_keys", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16014,13 +16778,13 @@ def process_get_unique_constraints(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_unique_constraints", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16043,13 +16807,13 @@ def process_get_not_null_constraints(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_not_null_constraints", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16072,13 +16836,13 @@ def process_get_default_constraints(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_default_constraints", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16101,13 +16865,13 @@ def process_get_check_constraints(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_check_constraints", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16130,13 +16894,13 @@ def process_get_all_table_constraints(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_table_constraints", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16165,13 +16929,13 @@ def process_update_table_column_statistics(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("update_table_column_statistics", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16200,13 +16964,13 @@ def process_update_partition_column_statistics(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("update_partition_column_statistics", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16235,13 +16999,13 @@ def process_update_table_column_statistics_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("update_table_column_statistics_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16270,13 +17034,13 @@ def process_update_partition_column_statistics_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("update_partition_column_statistics_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16296,13 +17060,13 @@ def process_update_transaction_statistics(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("update_transaction_statistics", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16331,13 +17095,13 @@ def process_get_table_column_statistics(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_table_column_statistics", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16349,9 +17113,7 @@ def process_get_partition_column_statistics(self, seqid, iprot, oprot): iprot.readMessageEnd() result = get_partition_column_statistics_result() try: - result.success = self._handler.get_partition_column_statistics( - args.db_name, args.tbl_name, args.part_name, args.col_name - ) + result.success = self._handler.get_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -16368,13 +17130,13 @@ def process_get_partition_column_statistics(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partition_column_statistics", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16397,13 +17159,13 @@ def process_get_table_statistics_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_table_statistics_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16426,13 +17188,13 @@ def process_get_partitions_statistics_req(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_statistics_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16455,13 +17217,13 @@ def process_get_aggr_stats_for(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_aggr_stats_for", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16490,13 +17252,13 @@ def process_set_aggr_stats_for(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("set_aggr_stats_for", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16508,9 +17270,7 @@ def process_delete_partition_column_statistics(self, seqid, iprot, oprot): iprot.readMessageEnd() result = delete_partition_column_statistics_result() try: - result.success = self._handler.delete_partition_column_statistics( - args.db_name, args.tbl_name, args.part_name, args.col_name, args.engine - ) + result.success = self._handler.delete_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name, args.engine) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -16527,13 +17287,13 @@ def process_delete_partition_column_statistics(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("delete_partition_column_statistics", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16562,18 +17322,53 @@ def process_delete_table_column_statistics(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("delete_table_column_statistics", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_delete_column_statistics_req(self, seqid, iprot, oprot): + args = delete_column_statistics_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = delete_column_statistics_req_result() + try: + result.success = self._handler.delete_column_statistics_req(args.req) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except NoSuchObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except MetaException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except InvalidObjectException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 + except InvalidInputException as o4: + msg_type = TMessageType.REPLY + result.o4 = o4 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("delete_column_statistics_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_create_function(self, seqid, iprot, oprot): args = create_function_args() args.read(iprot) @@ -16597,13 +17392,13 @@ def process_create_function(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_function", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16626,13 +17421,13 @@ def process_drop_function(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_function", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16655,13 +17450,13 @@ def process_alter_function(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_function", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16681,18 +17476,44 @@ def process_get_functions(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_functions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_get_functions_req(self, seqid, iprot, oprot): + args = get_functions_req_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_functions_req_result() + try: + result.success = self._handler.get_functions_req(args.request) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_functions_req", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_function(self, seqid, iprot, oprot): args = get_function_args() args.read(iprot) @@ -16710,13 +17531,13 @@ def process_get_function(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_function", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16736,13 +17557,13 @@ def process_get_all_functions(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_functions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16762,13 +17583,13 @@ def process_create_role(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_role", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16788,13 +17609,13 @@ def process_drop_role(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_role", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16814,13 +17635,13 @@ def process_get_role_names(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_role_names", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16832,9 +17653,7 @@ def process_grant_role(self, seqid, iprot, oprot): iprot.readMessageEnd() result = grant_role_result() try: - result.success = self._handler.grant_role( - args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option - ) + result.success = self._handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -16842,13 +17661,13 @@ def process_grant_role(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("grant_role", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16868,13 +17687,13 @@ def process_revoke_role(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("revoke_role", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16894,13 +17713,13 @@ def process_list_roles(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("list_roles", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16920,13 +17739,13 @@ def process_grant_revoke_role(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("grant_revoke_role", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16946,13 +17765,13 @@ def process_get_principals_in_role(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_principals_in_role", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16972,13 +17791,13 @@ def process_get_role_grants_for_principal(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_role_grants_for_principal", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -16998,13 +17817,13 @@ def process_get_privilege_set(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_privilege_set", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17024,13 +17843,13 @@ def process_list_privileges(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("list_privileges", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17050,13 +17869,13 @@ def process_grant_privileges(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("grant_privileges", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17076,13 +17895,13 @@ def process_revoke_privileges(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("revoke_privileges", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17102,13 +17921,13 @@ def process_grant_revoke_privileges(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("grant_revoke_privileges", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17128,13 +17947,13 @@ def process_refresh_privileges(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("refresh_privileges", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17154,13 +17973,13 @@ def process_set_ugi(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("set_ugi", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17180,13 +17999,13 @@ def process_get_delegation_token(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_delegation_token", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17206,13 +18025,13 @@ def process_renew_delegation_token(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("renew_delegation_token", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17232,13 +18051,13 @@ def process_cancel_delegation_token(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("cancel_delegation_token", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17255,13 +18074,13 @@ def process_add_token(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_token", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17278,13 +18097,13 @@ def process_remove_token(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("remove_token", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17301,13 +18120,13 @@ def process_get_token(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_token", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17324,13 +18143,13 @@ def process_get_all_token_identifiers(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_token_identifiers", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17350,13 +18169,13 @@ def process_add_master_key(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_master_key", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17379,13 +18198,13 @@ def process_update_master_key(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("update_master_key", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17402,13 +18221,13 @@ def process_remove_master_key(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("remove_master_key", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17425,13 +18244,13 @@ def process_get_master_keys(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_master_keys", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17448,13 +18267,13 @@ def process_get_open_txns(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_open_txns", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17471,13 +18290,13 @@ def process_get_open_txns_info(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_open_txns_info", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17494,13 +18313,13 @@ def process_open_txns(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("open_txns", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17520,13 +18339,13 @@ def process_abort_txn(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("abort_txn", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17546,13 +18365,13 @@ def process_abort_txns(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("abort_txns", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17575,13 +18394,13 @@ def process_commit_txn(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("commit_txn", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17601,13 +18420,13 @@ def process_get_latest_txnid_in_conflict(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_latest_txnid_in_conflict", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17624,13 +18443,13 @@ def process_repl_tbl_writeid_state(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("repl_tbl_writeid_state", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17653,18 +18472,44 @@ def process_get_valid_write_ids(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_valid_write_ids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_add_write_ids_to_min_history(self, seqid, iprot, oprot): + args = add_write_ids_to_min_history_args() + args.read(iprot) + iprot.readMessageEnd() + result = add_write_ids_to_min_history_result() + try: + self._handler.add_write_ids_to_min_history(args.txnId, args.writeIds) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("add_write_ids_to_min_history", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_allocate_table_write_ids(self, seqid, iprot, oprot): args = allocate_table_write_ids_args() args.read(iprot) @@ -17685,13 +18530,13 @@ def process_allocate_table_write_ids(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("allocate_table_write_ids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17711,13 +18556,13 @@ def process_get_max_allocated_table_write_id(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_max_allocated_table_write_id", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17737,13 +18582,13 @@ def process_seed_write_id(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("seed_write_id", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17763,13 +18608,13 @@ def process_seed_txn_id(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("seed_txn_id", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17792,13 +18637,13 @@ def process_lock(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("lock", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17824,13 +18669,13 @@ def process_check_lock(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("check_lock", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17853,13 +18698,13 @@ def process_unlock(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("unlock", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17876,13 +18721,13 @@ def process_show_locks(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("show_locks", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17908,13 +18753,13 @@ def process_heartbeat(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("heartbeat", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17931,13 +18776,13 @@ def process_heartbeat_txn_range(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("heartbeat_txn_range", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17954,13 +18799,13 @@ def process_compact(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("compact", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -17977,13 +18822,13 @@ def process_compact2(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("compact2", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18000,18 +18845,44 @@ def process_show_compact(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("show_compact", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_submit_for_cleanup(self, seqid, iprot, oprot): + args = submit_for_cleanup_args() + args.read(iprot) + iprot.readMessageEnd() + result = submit_for_cleanup_result() + try: + result.success = self._handler.submit_for_cleanup(args.o1, args.o2, args.o3) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("submit_for_cleanup", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_add_dynamic_partitions(self, seqid, iprot, oprot): args = add_dynamic_partitions_args() args.read(iprot) @@ -18029,13 +18900,13 @@ def process_add_dynamic_partitions(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_dynamic_partitions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18055,13 +18926,13 @@ def process_find_next_compact(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("find_next_compact", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18081,13 +18952,13 @@ def process_find_next_compact2(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("find_next_compact2", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18104,13 +18975,13 @@ def process_update_compactor_state(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("update_compactor_state", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18127,13 +18998,13 @@ def process_find_columns_with_stats(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("find_columns_with_stats", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18153,13 +19024,13 @@ def process_mark_cleaned(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("mark_cleaned", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18179,13 +19050,13 @@ def process_mark_compacted(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("mark_compacted", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18205,13 +19076,13 @@ def process_mark_failed(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("mark_failed", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18231,13 +19102,13 @@ def process_mark_refused(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("mark_refused", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18257,13 +19128,13 @@ def process_update_compaction_metrics_data(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("update_compaction_metrics_data", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18283,13 +19154,13 @@ def process_remove_compaction_metrics_data(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("remove_compaction_metrics_data", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18306,13 +19177,13 @@ def process_set_hadoop_jobid(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("set_hadoop_jobid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18329,13 +19200,13 @@ def process_get_latest_committed_compaction_info(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_latest_committed_compaction_info", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18352,13 +19223,13 @@ def process_get_next_notification(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_next_notification", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18375,13 +19246,13 @@ def process_get_current_notificationEventId(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_current_notificationEventId", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18398,13 +19269,13 @@ def process_get_notification_events_count(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_notification_events_count", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18421,13 +19292,13 @@ def process_fire_listener_event(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("fire_listener_event", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18444,13 +19315,13 @@ def process_flushCache(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("flushCache", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18467,13 +19338,13 @@ def process_add_write_notification_log(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_write_notification_log", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18490,13 +19361,13 @@ def process_add_write_notification_log_in_batch(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_write_notification_log_in_batch", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18516,13 +19387,13 @@ def process_cm_recycle(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("cm_recycle", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18539,13 +19410,13 @@ def process_get_file_metadata_by_expr(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_file_metadata_by_expr", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18562,13 +19433,13 @@ def process_get_file_metadata(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_file_metadata", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18585,13 +19456,13 @@ def process_put_file_metadata(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("put_file_metadata", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18608,13 +19479,13 @@ def process_clear_file_metadata(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("clear_file_metadata", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18631,13 +19502,13 @@ def process_cache_file_metadata(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("cache_file_metadata", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18657,13 +19528,13 @@ def process_get_metastore_db_uuid(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_metastore_db_uuid", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18689,13 +19560,13 @@ def process_create_resource_plan(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_resource_plan", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18718,13 +19589,13 @@ def process_get_resource_plan(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_resource_plan", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18744,13 +19615,13 @@ def process_get_active_resource_plan(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_active_resource_plan", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18770,13 +19641,13 @@ def process_get_all_resource_plans(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_resource_plans", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18802,13 +19673,13 @@ def process_alter_resource_plan(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_resource_plan", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18831,13 +19702,13 @@ def process_validate_resource_plan(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("validate_resource_plan", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18863,13 +19734,13 @@ def process_drop_resource_plan(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_resource_plan", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18898,13 +19769,13 @@ def process_create_wm_trigger(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_wm_trigger", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18930,13 +19801,13 @@ def process_alter_wm_trigger(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_wm_trigger", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18962,13 +19833,13 @@ def process_drop_wm_trigger(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_wm_trigger", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -18991,13 +19862,13 @@ def process_get_triggers_for_resourceplan(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_triggers_for_resourceplan", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19026,13 +19897,13 @@ def process_create_wm_pool(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_wm_pool", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19061,13 +19932,13 @@ def process_alter_wm_pool(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_wm_pool", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19093,13 +19964,13 @@ def process_drop_wm_pool(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_wm_pool", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19128,13 +19999,13 @@ def process_create_or_update_wm_mapping(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_or_update_wm_mapping", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19160,13 +20031,13 @@ def process_drop_wm_mapping(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_wm_mapping", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19195,13 +20066,13 @@ def process_create_or_drop_wm_trigger_to_pool_mapping(self, seqid, iprot, oprot) msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_or_drop_wm_trigger_to_pool_mapping", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19227,13 +20098,13 @@ def process_create_ischema(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_ischema", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19256,13 +20127,13 @@ def process_alter_ischema(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("alter_ischema", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19285,13 +20156,13 @@ def process_get_ischema(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_ischema", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19317,13 +20188,13 @@ def process_drop_ischema(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_ischema", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19349,13 +20220,13 @@ def process_add_schema_version(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_schema_version", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19378,13 +20249,13 @@ def process_get_schema_version(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_schema_version", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19407,13 +20278,13 @@ def process_get_schema_latest_version(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_schema_latest_version", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19436,13 +20307,13 @@ def process_get_schema_all_versions(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_schema_all_versions", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19465,13 +20336,13 @@ def process_drop_schema_version(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_schema_version", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19491,13 +20362,13 @@ def process_get_schemas_by_cols(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_schemas_by_cols", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19520,13 +20391,13 @@ def process_map_schema_version_to_serde(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("map_schema_version_to_serde", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19552,13 +20423,13 @@ def process_set_schema_version_state(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o3 = o3 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("set_schema_version_state", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19581,13 +20452,13 @@ def process_add_serde(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_serde", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19610,13 +20481,13 @@ def process_get_serde(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_serde", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19633,13 +20504,13 @@ def process_get_lock_materialization_rebuild(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_lock_materialization_rebuild", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19656,13 +20527,13 @@ def process_heartbeat_lock_materialization_rebuild(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("heartbeat_lock_materialization_rebuild", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19682,13 +20553,13 @@ def process_add_runtime_stats(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_runtime_stats", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19708,13 +20579,13 @@ def process_get_runtime_stats(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_runtime_stats", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19734,13 +20605,13 @@ def process_get_partitions_with_specs(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_partitions_with_specs", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19760,13 +20631,13 @@ def process_scheduled_query_poll(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("scheduled_query_poll", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19795,13 +20666,13 @@ def process_scheduled_query_maintenance(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o4 = o4 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("scheduled_query_maintenance", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19824,13 +20695,13 @@ def process_scheduled_query_progress(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("scheduled_query_progress", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19853,13 +20724,13 @@ def process_get_scheduled_query(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_scheduled_query", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19879,13 +20750,13 @@ def process_add_replication_metrics(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_replication_metrics", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19905,13 +20776,13 @@ def process_get_replication_metrics(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_replication_metrics", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19928,13 +20799,13 @@ def process_get_open_txns_req(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_open_txns_req", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19957,13 +20828,13 @@ def process_create_stored_procedure(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_stored_procedure", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -19986,13 +20857,13 @@ def process_get_stored_procedure(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_stored_procedure", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -20012,13 +20883,13 @@ def process_drop_stored_procedure(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_stored_procedure", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -20038,13 +20909,13 @@ def process_get_all_stored_procedures(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_stored_procedures", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -20067,13 +20938,13 @@ def process_find_package(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o2 = o2 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("find_package", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -20093,13 +20964,13 @@ def process_add_package(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_package", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -20119,13 +20990,13 @@ def process_get_all_packages(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_packages", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -20145,13 +21016,13 @@ def process_drop_package(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("drop_package", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -20171,41 +21042,190 @@ def process_get_all_write_event_info(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o1 = o1 except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error") + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_all_write_event_info", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_get_replayed_txns_for_policy(self, seqid, iprot, oprot): + args = get_replayed_txns_for_policy_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_replayed_txns_for_policy_result() + try: + result.success = self._handler.get_replayed_txns_for_policy(args.policyName) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_replayed_txns_for_policy", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() # HELPER FUNCTIONS AND STRUCTURES -class getMetaConf_args: +class abort_Compactions_args(object): + """ + Attributes: + - rqst + + """ + thrift_spec = None + + + def __init__(self, rqst = None,): + self.rqst = rqst + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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 = AbortCompactionRequest() + self.rqst.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('abort_Compactions_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 __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(abort_Compactions_args) +abort_Compactions_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', [AbortCompactionRequest, None], None, ), # 1 +) + + +class abort_Compactions_result(object): + """ + Attributes: + - success + + """ + thrift_spec = None + + + def __init__(self, success = None,): + self.success = success + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = AbortCompactResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('abort_Compactions_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(abort_Compactions_result) +abort_Compactions_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [AbortCompactResponse, None], None, ), # 0 +) + + +class getMetaConf_args(object): """ Attributes: - key """ + thrift_spec = None + - def __init__( - self, - key=None, - ): + def __init__(self, key = None,): self.key = key def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20215,9 +21235,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.key = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.key = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -20226,13 +21244,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getMetaConf_args") + oprot.writeStructBegin('getMetaConf_args') if self.key is not None: - oprot.writeFieldBegin("key", TType.STRING, 1) - oprot.writeString(self.key.encode("utf-8") if sys.version_info[0] == 2 else self.key) + oprot.writeFieldBegin('key', TType.STRING, 1) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20241,51 +21260,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getMetaConf_args) getMetaConf_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "key", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'key', 'UTF8', None, ), # 1 ) -class getMetaConf_result: +class getMetaConf_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20295,9 +21301,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 1: @@ -20311,16 +21315,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("getMetaConf_result") + oprot.writeStructBegin('getMetaConf_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20330,57 +21335,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(getMetaConf_result) getMetaConf_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class setMetaConf_args: +class setMetaConf_args(object): """ Attributes: - key - value """ + thrift_spec = None - def __init__( - self, - key=None, - value=None, - ): + + def __init__(self, key = None, value = None,): self.key = key self.value = value def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20390,16 +21376,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.key = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.key = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.value = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.value = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -20408,17 +21390,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("setMetaConf_args") + oprot.writeStructBegin('setMetaConf_args') if self.key is not None: - oprot.writeFieldBegin("key", TType.STRING, 1) - oprot.writeString(self.key.encode("utf-8") if sys.version_info[0] == 2 else self.key) + oprot.writeFieldBegin('key', TType.STRING, 1) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) oprot.writeFieldEnd() if self.value is not None: - oprot.writeFieldBegin("value", TType.STRING, 2) - oprot.writeString(self.value.encode("utf-8") if sys.version_info[0] == 2 else self.value) + oprot.writeFieldBegin('value', TType.STRING, 2) + oprot.writeString(self.value.encode('utf-8') if sys.version_info[0] == 2 else self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -20427,55 +21410,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(setMetaConf_args) setMetaConf_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "key", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "value", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'key', 'UTF8', None, ), # 1 + (2, TType.STRING, 'value', 'UTF8', None, ), # 2 ) -class setMetaConf_result: +class setMetaConf_result(object): """ Attributes: - o1 """ + thrift_spec = None - def __init__( - self, - o1=None, - ): + + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20494,12 +21459,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("setMetaConf_result") + oprot.writeStructBegin('setMetaConf_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20509,48 +21475,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(setMetaConf_result) setMetaConf_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class create_catalog_args: +class create_catalog_args(object): """ Attributes: - catalog """ + thrift_spec = None + - def __init__( - self, - catalog=None, - ): + def __init__(self, catalog = None,): self.catalog = catalog def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20570,12 +21524,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_catalog_args") + oprot.writeStructBegin('create_catalog_args') if self.catalog is not None: - oprot.writeFieldBegin("catalog", TType.STRUCT, 1) + oprot.writeFieldBegin('catalog', TType.STRUCT, 1) self.catalog.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20585,30 +21540,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_catalog_args) create_catalog_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "catalog", - [CreateCatalogRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'catalog', [CreateCatalogRequest, None], None, ), # 1 ) -class create_catalog_result: +class create_catalog_result(object): """ Attributes: - o1 @@ -20616,23 +21564,16 @@ class create_catalog_result: - o3 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20661,20 +21602,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_catalog_result") + oprot.writeStructBegin('create_catalog_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20684,62 +21626,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_catalog_result) create_catalog_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class alter_catalog_args: + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class alter_catalog_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20759,12 +21677,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_catalog_args") + oprot.writeStructBegin('alter_catalog_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20774,30 +21693,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_catalog_args) alter_catalog_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [AlterCatalogRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [AlterCatalogRequest, None], None, ), # 1 ) -class alter_catalog_result: +class alter_catalog_result(object): """ Attributes: - o1 @@ -20805,23 +21717,16 @@ class alter_catalog_result: - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20850,20 +21755,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_catalog_result") + oprot.writeStructBegin('alter_catalog_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20873,62 +21779,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_catalog_result) alter_catalog_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class get_catalog_args: + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class get_catalog_args(object): """ Attributes: - catName """ + thrift_spec = None + - def __init__( - self, - catName=None, - ): + def __init__(self, catName = None,): self.catName = catName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20948,12 +21830,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_catalog_args") + oprot.writeStructBegin('get_catalog_args') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRUCT, 1) + oprot.writeFieldBegin('catName', TType.STRUCT, 1) self.catName.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20963,30 +21846,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_catalog_args) get_catalog_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "catName", - [GetCatalogRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'catName', [GetCatalogRequest, None], None, ), # 1 ) -class get_catalog_result: +class get_catalog_result(object): """ Attributes: - success @@ -20994,23 +21870,16 @@ class get_catalog_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21040,20 +21909,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_catalog_result") + oprot.writeStructBegin('get_catalog_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21063,49 +21933,29 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_catalog_result) get_catalog_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetCatalogResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (0, TType.STRUCT, 'success', [GetCatalogResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class get_catalogs_args: +class get_catalogs_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21119,10 +21969,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_catalogs_args") + oprot.writeStructBegin('get_catalogs_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -21130,42 +21981,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_catalogs_args) -get_catalogs_args.thrift_spec = () +get_catalogs_args.thrift_spec = ( +) -class get_catalogs_result: +class get_catalogs_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21190,16 +22035,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_catalogs_result") + oprot.writeStructBegin('get_catalogs_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21209,54 +22055,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_catalogs_result) get_catalogs_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetCatalogsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [GetCatalogsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class drop_catalog_args: +class drop_catalog_args(object): """ Attributes: - catName """ + thrift_spec = None - def __init__( - self, - catName=None, - ): + + def __init__(self, catName = None,): self.catName = catName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21276,12 +22104,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_catalog_args") + oprot.writeStructBegin('drop_catalog_args') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRUCT, 1) + oprot.writeFieldBegin('catName', TType.STRUCT, 1) self.catName.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21291,30 +22120,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_catalog_args) drop_catalog_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "catName", - [DropCatalogRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'catName', [DropCatalogRequest, None], None, ), # 1 ) -class drop_catalog_result: +class drop_catalog_result(object): """ Attributes: - o1 @@ -21322,23 +22144,16 @@ class drop_catalog_result: - o3 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21367,20 +22182,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_catalog_result") + oprot.writeStructBegin('drop_catalog_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21390,62 +22206,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_catalog_result) drop_catalog_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class create_database_args: + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class create_database_args(object): """ Attributes: - database """ + thrift_spec = None + - def __init__( - self, - database=None, - ): + def __init__(self, database = None,): self.database = database def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21465,12 +22257,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_database_args") + oprot.writeStructBegin('create_database_args') if self.database is not None: - oprot.writeFieldBegin("database", TType.STRUCT, 1) + oprot.writeFieldBegin('database', TType.STRUCT, 1) self.database.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21480,30 +22273,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_database_args) create_database_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "database", - [Database, None], - None, - ), # 1 + (1, TType.STRUCT, 'database', [Database, None], None, ), # 1 ) -class create_database_result: +class create_database_result(object): """ Attributes: - o1 @@ -21511,23 +22297,16 @@ class create_database_result: - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21556,20 +22335,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_database_result") + oprot.writeStructBegin('create_database_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21579,62 +22359,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_database_result) create_database_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class get_database_args: + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class create_database_req_args(object): """ Attributes: - - name + - createDatabaseRequest """ + thrift_spec = None - def __init__( - self, - name=None, - ): - self.name = name + + def __init__(self, createDatabaseRequest = None,): + self.createDatabaseRequest = createDatabaseRequest def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21643,10 +22399,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.STRUCT: + self.createDatabaseRequest = CreateDatabaseRequest() + self.createDatabaseRequest.read(iprot) else: iprot.skip(ftype) else: @@ -21655,13 +22410,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_database_args") - if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeStructBegin('create_database_req_args') + if self.createDatabaseRequest is not None: + oprot.writeFieldBegin('createDatabaseRequest', TType.STRUCT, 1) + self.createDatabaseRequest.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -21670,54 +22426,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_database_args) -get_database_args.thrift_spec = ( +all_structs.append(create_database_req_args) +create_database_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 + (1, TType.STRUCT, 'createDatabaseRequest', [CreateDatabaseRequest, None], None, ), # 1 ) -class get_database_result: +class create_database_req_result(object): """ Attributes: - - success - o1 - o2 + - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): - self.success = success + + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 + self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21725,20 +22467,19 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: + if fid == 1: if ftype == TType.STRUCT: - self.success = Database() - self.success.read(iprot) + self.o1 = AlreadyExistsException.read(iprot) else: iprot.skip(ftype) - elif fid == 1: + elif fid == 2: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException.read(iprot) + self.o2 = InvalidObjectException.read(iprot) else: iprot.skip(ftype) - elif fid == 2: + elif fid == 3: if ftype == TType.STRUCT: - self.o2 = MetaException.read(iprot) + self.o3 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -21747,22 +22488,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_database_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('create_database_req_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + 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() @@ -21770,61 +22512,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(create_database_req_result) +create_database_req_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(get_database_result) -get_database_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Database, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_database_req_args: +class get_database_args(object): """ Attributes: - - request + - name """ + thrift_spec = None - def __init__( - self, - request=None, - ): - self.request = request + + def __init__(self, name = None,): + self.name = name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21833,9 +22552,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.request = GetDatabaseRequest() - self.request.read(iprot) + if ftype == TType.STRING: + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -21844,13 +22562,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_database_req_args") - if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('get_database_args') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -21859,30 +22578,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_database_req_args) -get_database_req_args.thrift_spec = ( +all_structs.append(get_database_args) +get_database_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [GetDatabaseRequest, None], - None, - ), # 1 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 ) -class get_database_req_result: +class get_database_result(object): """ Attributes: - success @@ -21890,23 +22602,16 @@ class get_database_req_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21936,20 +22641,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_database_req_result") + oprot.writeStructBegin('get_database_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21959,67 +22665,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_database_result) +get_database_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Database, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(get_database_req_result) -get_database_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Database, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class drop_database_args: +class get_database_req_args(object): """ Attributes: - - name - - deleteData - - cascade + - request """ + thrift_spec = None - def __init__( - self, - name=None, - deleteData=None, - cascade=None, - ): - self.name = name - self.deleteData = deleteData - self.cascade = cascade + + def __init__(self, request = None,): + self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22028,20 +22704,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.BOOL: - self.deleteData = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.BOOL: - self.cascade = iprot.readBool() + if ftype == TType.STRUCT: + self.request = GetDatabaseRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -22050,21 +22715,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_database_args") - if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) - oprot.writeFieldEnd() - if self.deleteData is not None: - oprot.writeFieldBegin("deleteData", TType.BOOL, 2) - oprot.writeBool(self.deleteData) - oprot.writeFieldEnd() - if self.cascade is not None: - oprot.writeFieldBegin("cascade", TType.BOOL, 3) - oprot.writeBool(self.cascade) + oprot.writeStructBegin('get_database_req_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -22073,68 +22731,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_database_req_args) +get_database_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetDatabaseRequest, None], None, ), # 1 +) -all_structs.append(drop_database_args) -drop_database_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.BOOL, - "deleteData", - None, - None, - ), # 2 - ( - 3, - TType.BOOL, - "cascade", - None, - None, - ), # 3 -) - - -class drop_database_result: +class get_database_req_result(object): """ Attributes: + - success - o1 - o2 - - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): + self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22142,19 +22772,20 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException.read(iprot) + self.success = Database() + self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 2: + elif fid == 1: if ftype == TType.STRUCT: - self.o2 = InvalidOperationException.read(iprot) + self.o1 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) - elif fid == 3: + elif fid == 2: if ftype == TType.STRUCT: - self.o3 = MetaException.read(iprot) + self.o2 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -22163,22 +22794,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_database_result") + oprot.writeStructBegin('get_database_req_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + 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() @@ -22186,62 +22818,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_database_req_result) +get_database_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Database, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(drop_database_result) -drop_database_result.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class drop_database_req_args: +class drop_database_args(object): """ Attributes: - - req + - name + - deleteData + - cascade """ + thrift_spec = None - def __init__( - self, - req=None, - ): - self.req = req + + def __init__(self, name = None, deleteData = None, cascade = None,): + self.name = name + self.deleteData = deleteData + self.cascade = cascade def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22250,9 +22861,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.req = DropDatabaseRequest() - self.req.read(iprot) + if ftype == TType.STRING: + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.deleteData = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.cascade = iprot.readBool() else: iprot.skip(ftype) else: @@ -22261,13 +22881,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_database_req_args") - if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('drop_database_args') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.deleteData is not None: + oprot.writeFieldBegin('deleteData', TType.BOOL, 2) + oprot.writeBool(self.deleteData) + oprot.writeFieldEnd() + if self.cascade is not None: + oprot.writeFieldBegin('cascade', TType.BOOL, 3) + oprot.writeBool(self.cascade) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -22276,30 +22905,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(drop_database_req_args) -drop_database_req_args.thrift_spec = ( +all_structs.append(drop_database_args) +drop_database_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [DropDatabaseRequest, None], - None, - ), # 1 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.BOOL, 'deleteData', None, None, ), # 2 + (3, TType.BOOL, 'cascade', None, None, ), # 3 ) -class drop_database_req_result: +class drop_database_result(object): """ Attributes: - o1 @@ -22307,23 +22931,16 @@ class drop_database_req_result: - o3 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22352,20 +22969,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_database_req_result") + oprot.writeStructBegin('drop_database_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22375,62 +22993,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_database_result) +drop_database_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(drop_database_req_result) -drop_database_req_result.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class get_databases_args: +class drop_database_req_args(object): """ Attributes: - - pattern + - req """ + thrift_spec = None - def __init__( - self, - pattern=None, - ): - self.pattern = pattern + + def __init__(self, req = None,): + self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22439,10 +23033,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.pattern = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.STRUCT: + self.req = DropDatabaseRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -22451,13 +23044,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_databases_args") - if self.pattern is not None: - oprot.writeFieldBegin("pattern", TType.STRING, 1) - oprot.writeString(self.pattern.encode("utf-8") if sys.version_info[0] == 2 else self.pattern) + oprot.writeStructBegin('drop_database_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -22466,51 +23060,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_databases_args) -get_databases_args.thrift_spec = ( +all_structs.append(drop_database_req_args) +drop_database_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "pattern", - "UTF8", - None, - ), # 1 + (1, TType.STRUCT, 'req', [DropDatabaseRequest, None], None, ), # 1 ) -class get_databases_result: +class drop_database_req_result(object): """ Attributes: - - success - o1 + - o2 + - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): - self.success = success + + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 + self.o2 = o2 + self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22518,23 +23101,19 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1252, _size1249) = iprot.readListBegin() - for _i1253 in range(_size1249): - _elem1254 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1254) - iprot.readListEnd() + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) - elif fid == 1: + elif fid == 2: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.o2 = InvalidOperationException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -22543,21 +23122,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_databases_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1255 in self.success: - oprot.writeString(iter1255.encode("utf-8") if sys.version_info[0] == 2 else iter1255) - oprot.writeListEnd() - oprot.writeFieldEnd() + oprot.writeStructBegin('drop_database_req_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + 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() @@ -22565,42 +23146,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_database_req_result) +drop_database_req_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(get_databases_result) -get_databases_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 -) +class get_databases_args(object): + """ + Attributes: + - pattern + + """ + thrift_spec = None -class get_all_databases_args: + def __init__(self, pattern = None,): + self.pattern = pattern + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22608,16 +23185,26 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRING: + self.pattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_databases_args") + oprot.writeStructBegin('get_databases_args') + if self.pattern is not None: + oprot.writeFieldBegin('pattern', TType.STRING, 1) + oprot.writeString(self.pattern.encode('utf-8') if sys.version_info[0] == 2 else self.pattern) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -22625,42 +23212,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_databases_args) +get_databases_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'pattern', 'UTF8', None, ), # 1 +) -all_structs.append(get_all_databases_args) -get_all_databases_args.thrift_spec = () - - -class get_all_databases_result: +class get_databases_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22671,14 +23254,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1259, _size1256) = iprot.readListBegin() - for _i1260 in range(_size1256): - _elem1261 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1261) + (_etype1432, _size1429) = iprot.readListBegin() + for _i1433 in range(_size1429): + _elem1434 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1434) iprot.readListEnd() else: iprot.skip(ftype) @@ -22693,19 +23272,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_databases_result") + oprot.writeStructBegin('get_databases_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1262 in self.success: - oprot.writeString(iter1262.encode("utf-8") if sys.version_info[0] == 2 else iter1262) + for iter1435 in self.success: + oprot.writeString(iter1435.encode('utf-8') if sys.version_info[0] == 2 else iter1435) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22715,57 +23295,28 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_all_databases_result) -get_all_databases_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(get_databases_result) +get_databases_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class alter_database_args: - """ - Attributes: - - dbname - - db - - """ +class get_all_databases_args(object): + thrift_spec = None - def __init__( - self, - dbname=None, - db=None, - ): - self.dbname = dbname - self.db = db def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22773,37 +23324,17 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.db = Database() - self.db.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_database_args") - if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) - oprot.writeFieldEnd() - if self.db is not None: - oprot.writeFieldBegin("db", TType.STRUCT, 2) - self.db.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('get_all_databases_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -22811,58 +23342,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(alter_database_args) -alter_database_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRUCT, - "db", - [Database, None], - None, - ), # 2 +all_structs.append(get_all_databases_args) +get_all_databases_args.thrift_spec = ( ) -class alter_database_result: +class get_all_databases_result(object): """ Attributes: + - success - o1 - - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None,): + self.success = success self.o1 = o1 - self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22870,14 +23379,19 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1439, _size1436) = iprot.readListBegin() + for _i1440 in range(_size1436): + _elem1441 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1441) + iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 2: + elif fid == 1: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -22886,18 +23400,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_database_result") + oprot.writeStructBegin('get_all_databases_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1442 in self.success: + oprot.writeString(iter1442.encode('utf-8') if sys.version_info[0] == 2 else iter1442) + oprot.writeListEnd() + oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + 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() oprot.writeFieldStop() oprot.writeStructEnd() @@ -22905,55 +23423,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(alter_database_result) -alter_database_result.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 +all_structs.append(get_all_databases_result) +get_all_databases_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class create_dataconnector_args: +class get_databases_req_args(object): """ Attributes: - - connector + - request """ + thrift_spec = None + - def __init__( - self, - connector=None, - ): - self.connector = connector + def __init__(self, request = None,): + self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22963,8 +23462,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.connector = DataConnector() - self.connector.read(iprot) + self.request = GetDatabaseObjectsRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -22973,13 +23472,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_dataconnector_args") - if self.connector is not None: - oprot.writeFieldBegin("connector", TType.STRUCT, 1) - self.connector.write(oprot) + oprot.writeStructBegin('get_databases_req_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -22988,54 +23488,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(create_dataconnector_args) -create_dataconnector_args.thrift_spec = ( +all_structs.append(get_databases_req_args) +get_databases_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "connector", - [DataConnector, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [GetDatabaseObjectsRequest, None], None, ), # 1 ) -class create_dataconnector_result: +class get_databases_req_result(object): """ Attributes: + - success - o1 - - o2 - - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None,): + self.success = success self.o1 = o1 - self.o2 = o2 - self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23043,19 +23527,15 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: + if fid == 0: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException.read(iprot) + self.success = GetDatabaseObjectsResponse() + self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 3: + elif fid == 1: if ftype == TType.STRUCT: - self.o3 = MetaException.read(iprot) + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -23064,22 +23544,19 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_dataconnector_result") + oprot.writeStructBegin('get_databases_req_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + 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() @@ -23087,62 +23564,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_databases_req_result) +get_databases_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetDatabaseObjectsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 +) -all_structs.append(create_dataconnector_result) -create_dataconnector_result.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class get_dataconnector_req_args: +class alter_database_args(object): """ Attributes: - - request + - dbname + - db """ + thrift_spec = None - def __init__( - self, - request=None, - ): - self.request = request + + def __init__(self, dbname = None, db = None,): + self.dbname = dbname + self.db = db def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23151,9 +23604,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.STRING: + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.STRUCT: - self.request = GetDataConnectorRequest() - self.request.read(iprot) + self.db = Database() + self.db.read(iprot) else: iprot.skip(ftype) else: @@ -23162,13 +23620,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_dataconnector_req_args") - if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('alter_database_args') + if self.dbname is not None: + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldEnd() + if self.db is not None: + oprot.writeFieldBegin('db', TType.STRUCT, 2) + self.db.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -23177,54 +23640,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_dataconnector_req_args) -get_dataconnector_req_args.thrift_spec = ( +all_structs.append(alter_database_args) +alter_database_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [GetDataConnectorRequest, None], - None, - ), # 1 + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'db', [Database, None], None, ), # 2 ) -class get_dataconnector_req_result: +class alter_database_result(object): """ Attributes: - - success - o1 - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): - self.success = success + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23232,20 +23680,14 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = DataConnector() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException.read(iprot) + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException.read(iprot) + self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -23254,20 +23696,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_dataconnector_req_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('alter_database_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23277,67 +23716,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(alter_database_result) +alter_database_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_dataconnector_req_result) -get_dataconnector_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [DataConnector, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class drop_dataconnector_args: +class alter_database_req_args(object): """ Attributes: - - name - - ifNotExists - - checkReferences + - alterDbReq """ + thrift_spec = None - def __init__( - self, - name=None, - ifNotExists=None, - checkReferences=None, - ): - self.name = name - self.ifNotExists = ifNotExists - self.checkReferences = checkReferences + + def __init__(self, alterDbReq = None,): + self.alterDbReq = alterDbReq def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23346,20 +23755,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == -1: - if ftype == TType.BOOL: - self.ifNotExists = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == -2: - if ftype == TType.BOOL: - self.checkReferences = iprot.readBool() + if ftype == TType.STRUCT: + self.alterDbReq = AlterDatabaseRequest() + self.alterDbReq.read(iprot) else: iprot.skip(ftype) else: @@ -23368,21 +23766,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_dataconnector_args") - if self.checkReferences is not None: - oprot.writeFieldBegin("checkReferences", TType.BOOL, -2) - oprot.writeBool(self.checkReferences) - oprot.writeFieldEnd() - if self.ifNotExists is not None: - oprot.writeFieldBegin("ifNotExists", TType.BOOL, -1) - oprot.writeBool(self.ifNotExists) - oprot.writeFieldEnd() - if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeStructBegin('alter_database_req_args') + if self.alterDbReq is not None: + oprot.writeFieldBegin('alterDbReq', TType.STRUCT, 1) + self.alterDbReq.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -23391,45 +23782,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(alter_database_req_args) +alter_database_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'alterDbReq', [AlterDatabaseRequest, None], None, ), # 1 +) -all_structs.append(drop_dataconnector_args) -drop_dataconnector_args.thrift_spec = () - - -class drop_dataconnector_result: +class alter_database_req_result(object): """ Attributes: - o1 - o2 - - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 - self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23439,17 +23823,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException.read(iprot) + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidOperationException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = MetaException.read(iprot) + self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -23458,22 +23837,19 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_dataconnector_result") + oprot.writeStructBegin('alter_database_req_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + 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() @@ -23481,215 +23857,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(drop_dataconnector_result) -drop_dataconnector_result.thrift_spec = ( +all_structs.append(alter_database_req_result) +alter_database_req_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 ) -class get_dataconnectors_args: - def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): - iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) - return - oprot.writeStructBegin("get_dataconnectors_args") - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(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) - - -all_structs.append(get_dataconnectors_args) -get_dataconnectors_args.thrift_spec = () - - -class get_dataconnectors_result: +class create_dataconnector_req_args(object): """ Attributes: - - success - - o1 - - """ - - def __init__( - self, - success=None, - o1=None, - ): - self.success = success - self.o1 = o1 - - def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): - iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1266, _size1263) = iprot.readListBegin() - for _i1267 in range(_size1263): - _elem1268 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1268) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() + - connectorReq - def write(self, oprot): - if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) - return - oprot.writeStructBegin("get_dataconnectors_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1269 in self.success: - oprot.writeString(iter1269.encode("utf-8") if sys.version_info[0] == 2 else iter1269) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(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) - - -all_structs.append(get_dataconnectors_result) -get_dataconnectors_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 -) - - -class alter_dataconnector_args: """ - Attributes: - - name - - connector + thrift_spec = None - """ - def __init__( - self, - name=None, - connector=None, - ): - self.name = name - self.connector = connector + def __init__(self, connectorReq = None,): + self.connectorReq = connectorReq def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23698,16 +23896,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: if ftype == TType.STRUCT: - self.connector = DataConnector() - self.connector.read(iprot) + self.connectorReq = CreateDataConnectorRequest() + self.connectorReq.read(iprot) else: iprot.skip(ftype) else: @@ -23716,17 +23907,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_dataconnector_args") - if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) - oprot.writeFieldEnd() - if self.connector is not None: - oprot.writeFieldBegin("connector", TType.STRUCT, 2) - self.connector.write(oprot) + oprot.writeStructBegin('create_dataconnector_req_args') + if self.connectorReq is not None: + oprot.writeFieldBegin('connectorReq', TType.STRUCT, 1) + self.connectorReq.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -23735,58 +23923,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(alter_dataconnector_args) -alter_dataconnector_args.thrift_spec = ( +all_structs.append(create_dataconnector_req_args) +create_dataconnector_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRUCT, - "connector", - [DataConnector, None], - None, - ), # 2 + (1, TType.STRUCT, 'connectorReq', [CreateDataConnectorRequest, None], None, ), # 1 ) -class alter_dataconnector_result: +class create_dataconnector_req_result(object): """ Attributes: - o1 - o2 + - o3 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 + self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23796,12 +23966,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.o1 = AlreadyExistsException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) + self.o2 = InvalidObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -23810,18 +23985,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_dataconnector_result") + oprot.writeStructBegin('create_dataconnector_req_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + 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() @@ -23829,55 +24009,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(alter_dataconnector_result) -alter_dataconnector_result.thrift_spec = ( +all_structs.append(create_dataconnector_req_result) +create_dataconnector_req_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 ) -class get_type_args: +class get_dataconnector_req_args(object): """ Attributes: - - name + - request """ + thrift_spec = None - def __init__( - self, - name=None, - ): - self.name = name + + def __init__(self, request = None,): + self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23886,10 +24049,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.STRUCT: + self.request = GetDataConnectorRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -23898,13 +24060,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_type_args") - if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeStructBegin('get_dataconnector_req_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -23913,30 +24076,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_type_args) -get_type_args.thrift_spec = ( +all_structs.append(get_dataconnector_req_args) +get_dataconnector_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 + (1, TType.STRUCT, 'request', [GetDataConnectorRequest, None], None, ), # 1 ) -class get_type_result: +class get_dataconnector_req_result(object): """ Attributes: - success @@ -23944,23 +24100,16 @@ class get_type_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23970,18 +24119,18 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = Type() + self.success = DataConnector() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.o1 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) + self.o2 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -23990,20 +24139,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_type_result") + oprot.writeStructBegin('get_dataconnector_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24013,61 +24163,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_dataconnector_req_result) +get_dataconnector_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [DataConnector, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(get_type_result) -get_type_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Type, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class create_type_args: +class drop_dataconnector_req_args(object): """ Attributes: - - type + - dropDcReq """ + thrift_spec = None - def __init__( - self, - type=None, - ): - self.type = type + + def __init__(self, dropDcReq = None,): + self.dropDcReq = dropDcReq def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24077,8 +24203,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.type = Type() - self.type.read(iprot) + self.dropDcReq = DropDataConnectorRequest() + self.dropDcReq.read(iprot) else: iprot.skip(ftype) else: @@ -24087,13 +24213,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_type_args") - if self.type is not None: - oprot.writeFieldBegin("type", TType.STRUCT, 1) - self.type.write(oprot) + oprot.writeStructBegin('drop_dataconnector_req_args') + if self.dropDcReq is not None: + oprot.writeFieldBegin('dropDcReq', TType.STRUCT, 1) + self.dropDcReq.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24102,57 +24229,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(create_type_args) -create_type_args.thrift_spec = ( +all_structs.append(drop_dataconnector_req_args) +drop_dataconnector_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "type", - [Type, None], - None, - ), # 1 + (1, TType.STRUCT, 'dropDcReq', [DropDataConnectorRequest, None], None, ), # 1 ) -class create_type_result: +class drop_dataconnector_req_result(object): """ Attributes: - - success - o1 - o2 - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): - self.success = success + + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24160,19 +24270,14 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException.read(iprot) + self.o1 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException.read(iprot) + self.o2 = InvalidOperationException.read(iprot) else: iprot.skip(ftype) elif fid == 3: @@ -24186,24 +24291,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_type_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) - oprot.writeBool(self.success) - oprot.writeFieldEnd() + oprot.writeStructBegin('drop_dataconnector_req_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24213,68 +24315,30 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_dataconnector_req_result) +drop_dataconnector_req_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(create_type_result) -create_type_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class drop_type_args: - """ - Attributes: - - type - - """ +class get_dataconnectors_args(object): + thrift_spec = None - def __init__( - self, - type=None, - ): - self.type = type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24282,27 +24346,17 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRING: - self.type = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_type_args") - if self.type is not None: - oprot.writeFieldBegin("type", TType.STRING, 1) - oprot.writeString(self.type.encode("utf-8") if sys.version_info[0] == 2 else self.type) - oprot.writeFieldEnd() + oprot.writeStructBegin('get_dataconnectors_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -24310,54 +24364,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(drop_type_args) -drop_type_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "type", - "UTF8", - None, - ), # 1 +all_structs.append(get_dataconnectors_args) +get_dataconnectors_args.thrift_spec = ( ) -class drop_type_result: +class get_dataconnectors_result(object): """ Attributes: - success - o1 - - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 - self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24366,8 +24402,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool() + if ftype == TType.LIST: + self.success = [] + (_etype1446, _size1443) = iprot.readListBegin() + for _i1447 in range(_size1443): + _elem1448 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1448) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -24375,33 +24416,28 @@ def read(self, iprot): self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_type_result") + oprot.writeStructBegin('get_dataconnectors_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1449 in self.success: + oprot.writeString(iter1449.encode('utf-8') if sys.version_info[0] == 2 else iter1449) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + 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() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24409,61 +24445,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_dataconnectors_result) +get_dataconnectors_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 +) -all_structs.append(drop_type_result) -drop_type_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_type_all_args: +class alter_dataconnector_req_args(object): """ Attributes: - - name + - alterReq """ + thrift_spec = None - def __init__( - self, - name=None, - ): - self.name = name + + def __init__(self, alterReq = None,): + self.alterReq = alterReq def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24472,10 +24483,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.STRUCT: + self.alterReq = AlterDataConnectorRequest() + self.alterReq.read(iprot) else: iprot.skip(ftype) else: @@ -24484,13 +24494,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_type_all_args") - if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeStructBegin('alter_dataconnector_req_args') + if self.alterReq is not None: + oprot.writeFieldBegin('alterReq', TType.STRUCT, 1) + self.alterReq.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24499,51 +24510,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_type_all_args) -get_type_all_args.thrift_spec = ( +all_structs.append(alter_dataconnector_req_args) +alter_dataconnector_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 + (1, TType.STRUCT, 'alterReq', [AlterDataConnectorRequest, None], None, ), # 1 ) -class get_type_all_result: +class alter_dataconnector_req_result(object): """ Attributes: - - success + - o1 - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o2=None, - ): - self.success = success + + def __init__(self, o1 = None, o2 = None,): + self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24551,25 +24549,14 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.MAP: - self.success = {} - (_ktype1271, _vtype1272, _size1270) = iprot.readMapBegin() - for _i1274 in range(_size1270): - _key1275 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val1276 = Type() - _val1276.read(iprot) - self.success[_key1275] = _val1276 - iprot.readMapEnd() + if fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) - elif fid == 1: + elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException.read(iprot) + self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -24578,20 +24565,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_type_all_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) - oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter1277, viter1278 in self.success.items(): - oprot.writeString(kiter1277.encode("utf-8") if sys.version_info[0] == 2 else kiter1277) - viter1278.write(oprot) - oprot.writeMapEnd() + oprot.writeStructBegin('alter_dataconnector_req_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, 1) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24601,57 +24585,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_type_all_result) -get_type_all_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRUCT, [Type, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 1 +all_structs.append(alter_dataconnector_req_result) +alter_dataconnector_req_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 ) -class get_fields_args: +class get_type_args(object): """ Attributes: - - db_name - - table_name + - name """ + thrift_spec = None - def __init__( - self, - db_name=None, - table_name=None, - ): - self.db_name = db_name - self.table_name = table_name + + def __init__(self, name = None,): + self.name = name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24661,16 +24625,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -24679,17 +24634,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_fields_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.table_name is not None: - oprot.writeFieldBegin("table_name", TType.STRING, 2) - oprot.writeString(self.table_name.encode("utf-8") if sys.version_info[0] == 2 else self.table_name) + oprot.writeStructBegin('get_type_args') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24698,64 +24650,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_fields_args) -get_fields_args.thrift_spec = ( +all_structs.append(get_type_args) +get_type_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "table_name", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 ) -class get_fields_result: +class get_type_result(object): """ Attributes: - success - o1 - o2 - - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24764,14 +24692,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1282, _size1279) = iprot.readListBegin() - for _i1283 in range(_size1279): - _elem1284 = FieldSchema() - _elem1284.read(iprot) - self.success.append(_elem1284) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = Type() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -24781,12 +24704,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = UnknownTableException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = UnknownDBException.read(iprot) + self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -24795,29 +24713,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_fields_result") + oprot.writeStructBegin('get_type_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1285 in self.success: - iter1285.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + 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() @@ -24825,74 +24737,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_type_result) +get_type_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Type, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_fields_result) -get_fields_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [UnknownTableException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class get_fields_with_environment_context_args: +class create_type_args(object): """ Attributes: - - db_name - - table_name - - environment_context + - type """ + thrift_spec = None - def __init__( - self, - db_name=None, - table_name=None, - environment_context=None, - ): - self.db_name = db_name - self.table_name = table_name - self.environment_context = environment_context + + def __init__(self, type = None,): + self.type = type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24901,23 +24776,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: if ftype == TType.STRUCT: - self.environment_context = EnvironmentContext() - self.environment_context.read(iprot) + self.type = Type() + self.type.read(iprot) else: iprot.skip(ftype) else: @@ -24926,21 +24787,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_fields_with_environment_context_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.table_name is not None: - oprot.writeFieldBegin("table_name", TType.STRING, 2) - oprot.writeString(self.table_name.encode("utf-8") if sys.version_info[0] == 2 else self.table_name) - oprot.writeFieldEnd() - if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 3) - self.environment_context.write(oprot) + oprot.writeStructBegin('create_type_args') + if self.type is not None: + oprot.writeFieldBegin('type', TType.STRUCT, 1) + self.type.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24949,44 +24803,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(create_type_args) +create_type_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'type', [Type, None], None, ), # 1 +) -all_structs.append(get_fields_with_environment_context_args) -get_fields_with_environment_context_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "table_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 3 -) - - -class get_fields_with_environment_context_result: +class create_type_result(object): """ Attributes: - success @@ -24995,25 +24828,17 @@ class get_fields_with_environment_context_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25022,29 +24847,23 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1289, _size1286) = iprot.readListBegin() - for _i1290 in range(_size1286): - _elem1291 = FieldSchema() - _elem1291.read(iprot) - self.success.append(_elem1291) - iprot.readListEnd() + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.o1 = AlreadyExistsException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = UnknownTableException.read(iprot) + self.o2 = InvalidObjectException.read(iprot) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRUCT: - self.o3 = UnknownDBException.read(iprot) + self.o3 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -25053,27 +24872,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_fields_with_environment_context_result") + oprot.writeStructBegin('create_type_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1292 in self.success: - iter1292.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25083,68 +24900,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(create_type_result) +create_type_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(get_fields_with_environment_context_result) -get_fields_with_environment_context_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [UnknownTableException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class get_fields_req_args: +class drop_type_args(object): """ Attributes: - - req + - type """ + thrift_spec = None - def __init__( - self, - req=None, - ): - self.req = req + + def __init__(self, type = None,): + self.type = type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25153,9 +24940,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.req = GetFieldsRequest() - self.req.read(iprot) + if ftype == TType.STRING: + self.type = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -25164,13 +24950,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_fields_req_args") - if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('drop_type_args') + if self.type is not None: + oprot.writeFieldBegin('type', TType.STRING, 1) + oprot.writeString(self.type.encode('utf-8') if sys.version_info[0] == 2 else self.type) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -25179,57 +24966,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_fields_req_args) -get_fields_req_args.thrift_spec = ( +all_structs.append(drop_type_args) +drop_type_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetFieldsRequest, None], - None, - ), # 1 + (1, TType.STRING, 'type', 'UTF8', None, ), # 1 ) -class get_fields_req_result: +class drop_type_result(object): """ Attributes: - success - o1 - o2 - - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25238,9 +25008,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = GetFieldsResponse() - self.success.read(iprot) + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: @@ -25250,12 +25019,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = UnknownTableException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = UnknownDBException.read(iprot) + self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -25264,26 +25028,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_fields_req_result") + oprot.writeStructBegin('drop_type_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + 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() @@ -25291,71 +25052,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_type_result) +drop_type_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_fields_req_result) -get_fields_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetFieldsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [UnknownTableException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class get_schema_args: +class get_type_all_args(object): """ Attributes: - - db_name - - table_name + - name """ + thrift_spec = None - def __init__( - self, - db_name=None, - table_name=None, - ): - self.db_name = db_name - self.table_name = table_name + + def __init__(self, name = None,): + self.name = name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25365,16 +25092,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -25383,17 +25101,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.table_name is not None: - oprot.writeFieldBegin("table_name", TType.STRING, 2) - oprot.writeString(self.table_name.encode("utf-8") if sys.version_info[0] == 2 else self.table_name) + oprot.writeStructBegin('get_type_all_args') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -25402,64 +25117,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_schema_args) -get_schema_args.thrift_spec = ( +all_structs.append(get_type_all_args) +get_type_all_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "table_name", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 ) -class get_schema_result: +class get_type_all_result(object): """ Attributes: - success - - o1 - o2 - - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o2 = None,): self.success = success - self.o1 = o1 self.o2 = o2 - self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25468,29 +25157,20 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1296, _size1293) = iprot.readListBegin() - for _i1297 in range(_size1293): - _elem1298 = FieldSchema() - _elem1298.read(iprot) - self.success.append(_elem1298) - iprot.readListEnd() + if ftype == TType.MAP: + self.success = {} + (_ktype1451, _vtype1452, _size1450) = iprot.readMapBegin() + for _i1454 in range(_size1450): + _key1455 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val1456 = Type() + _val1456.read(iprot) + self.success[_key1455] = _val1456 + iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = UnknownTableException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = UnknownDBException.read(iprot) + self.o2 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -25499,29 +25179,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_result") + oprot.writeStructBegin('get_type_all_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1299 in self.success: - iter1299.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) - self.o1.write(oprot) + oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) + for kiter1457, viter1458 in self.success.items(): + oprot.writeString(kiter1457.encode('utf-8') if sys.version_info[0] == 2 else kiter1457) + viter1458.write(oprot) + oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 1) 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() @@ -25529,74 +25203,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_type_all_result) +get_type_all_result.thrift_spec = ( + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRUCT, [Type, None], False), None, ), # 0 + (1, TType.STRUCT, 'o2', [MetaException, None], None, ), # 1 +) -all_structs.append(get_schema_result) -get_schema_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [UnknownTableException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class get_schema_with_environment_context_args: +class get_fields_args(object): """ Attributes: - db_name - table_name - - environment_context """ + thrift_spec = None + - def __init__( - self, - db_name=None, - table_name=None, - environment_context=None, - ): + def __init__(self, db_name = None, table_name = None,): self.db_name = db_name self.table_name = table_name - self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25606,22 +25244,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.environment_context = EnvironmentContext() - self.environment_context.read(iprot) + self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -25630,21 +25258,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_with_environment_context_args") + oprot.writeStructBegin('get_fields_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.table_name is not None: - oprot.writeFieldBegin("table_name", TType.STRING, 2) - oprot.writeString(self.table_name.encode("utf-8") if sys.version_info[0] == 2 else self.table_name) - oprot.writeFieldEnd() - if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 3) - self.environment_context.write(oprot) + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -25653,44 +25278,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_fields_args) +get_fields_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2 +) -all_structs.append(get_schema_with_environment_context_args) -get_schema_with_environment_context_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "table_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 3 -) - - -class get_schema_with_environment_context_result: +class get_fields_result(object): """ Attributes: - success @@ -25699,25 +25304,17 @@ class get_schema_with_environment_context_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25728,11 +25325,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1303, _size1300) = iprot.readListBegin() - for _i1304 in range(_size1300): - _elem1305 = FieldSchema() - _elem1305.read(iprot) - self.success.append(_elem1305) + (_etype1462, _size1459) = iprot.readListBegin() + for _i1463 in range(_size1459): + _elem1464 = FieldSchema() + _elem1464.read(iprot) + self.success.append(_elem1464) iprot.readListEnd() else: iprot.skip(ftype) @@ -25757,27 +25354,28 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_with_environment_context_result") + oprot.writeStructBegin('get_fields_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1306 in self.success: - iter1306.write(oprot) + for iter1465 in self.success: + iter1465.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25787,68 +25385,235 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_fields_result) +get_fields_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [FieldSchema, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) -all_structs.append(get_schema_with_environment_context_result) -get_schema_with_environment_context_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [UnknownTableException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class get_schema_req_args: +class get_fields_with_environment_context_args(object): + """ + Attributes: + - db_name + - table_name + - environment_context + + """ + thrift_spec = None + + + def __init__(self, db_name = None, table_name = None, environment_context = None,): + self.db_name = db_name + self.table_name = table_name + self.environment_context = environment_context + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.environment_context = EnvironmentContext() + self.environment_context.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_fields_with_environment_context_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.table_name is not None: + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name) + oprot.writeFieldEnd() + if self.environment_context is not None: + oprot.writeFieldBegin('environment_context', TType.STRUCT, 3) + self.environment_context.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_fields_with_environment_context_args) +get_fields_with_environment_context_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 3 +) + + +class get_fields_with_environment_context_result(object): + """ + Attributes: + - success + - o1 + - o2 + - o3 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1469, _size1466) = iprot.readListBegin() + for _i1470 in range(_size1466): + _elem1471 = FieldSchema() + _elem1471.read(iprot) + self.success.append(_elem1471) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = UnknownTableException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = UnknownDBException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_fields_with_environment_context_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1472 in self.success: + iter1472.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + 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 __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_fields_with_environment_context_result) +get_fields_with_environment_context_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [FieldSchema, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) + + +class get_fields_req_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25858,7 +25623,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetSchemaRequest() + self.req = GetFieldsRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -25868,12 +25633,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_req_args") + oprot.writeStructBegin('get_fields_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25883,30 +25649,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_schema_req_args) -get_schema_req_args.thrift_spec = ( +all_structs.append(get_fields_req_args) +get_fields_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetSchemaRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [GetFieldsRequest, None], None, ), # 1 ) -class get_schema_req_result: +class get_fields_req_result(object): """ Attributes: - success @@ -25915,25 +25674,17 @@ class get_schema_req_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25943,7 +25694,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetSchemaResponse() + self.success = GetFieldsResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -25968,24 +25719,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_req_result") + oprot.writeStructBegin('get_fields_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25995,68 +25747,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_fields_req_result) +get_fields_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetFieldsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) -all_structs.append(get_schema_req_result) -get_schema_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetSchemaResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [UnknownTableException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class create_table_args: +class get_schema_args(object): """ Attributes: - - tbl + - db_name + - table_name """ + thrift_spec = None - def __init__( - self, - tbl=None, - ): - self.tbl = tbl + + def __init__(self, db_name = None, table_name = None,): + self.db_name = db_name + self.table_name = table_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26065,9 +25789,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.tbl = Table() - self.tbl.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -26076,13 +25804,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_table_args") - if self.tbl is not None: - oprot.writeFieldBegin("tbl", TType.STRUCT, 1) - self.tbl.write(oprot) + oprot.writeStructBegin('get_schema_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.table_name is not None: + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26091,57 +25824,43 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(create_table_args) -create_table_args.thrift_spec = ( +all_structs.append(get_schema_args) +get_schema_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "tbl", - [Table, None], - None, - ), # 1 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2 ) -class create_table_result: +class get_schema_result(object): """ Attributes: + - success - o1 - o2 - o3 - - o4 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): + self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 - self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26149,24 +25868,30 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = AlreadyExistsException.read(iprot) + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1476, _size1473) = iprot.readListBegin() + for _i1477 in range(_size1473): + _elem1478 = FieldSchema() + _elem1478.read(iprot) + self.success.append(_elem1478) + iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 2: + elif fid == 1: if ftype == TType.STRUCT: - self.o2 = InvalidObjectException.read(iprot) + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) - elif fid == 3: + elif fid == 2: if ftype == TType.STRUCT: - self.o3 = MetaException.read(iprot) + self.o2 = UnknownTableException.read(iprot) else: iprot.skip(ftype) - elif fid == 4: + elif fid == 3: if ftype == TType.STRUCT: - self.o4 = NoSuchObjectException.read(iprot) + self.o3 = UnknownDBException.read(iprot) else: iprot.skip(ftype) else: @@ -26175,26 +25900,30 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_table_result") + oprot.writeStructBegin('get_schema_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1479 in self.success: + iter1479.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() - if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26202,72 +25931,42 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_schema_result) +get_schema_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [FieldSchema, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) -all_structs.append(create_table_result) -create_table_result.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [NoSuchObjectException, None], - None, - ), # 4 -) - - -class create_table_with_environment_context_args: +class get_schema_with_environment_context_args(object): """ Attributes: - - tbl + - db_name + - table_name - environment_context """ + thrift_spec = None - def __init__( - self, - tbl=None, - environment_context=None, - ): - self.tbl = tbl + + def __init__(self, db_name = None, table_name = None, environment_context = None,): + self.db_name = db_name + self.table_name = table_name self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26276,12 +25975,16 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.tbl = Table() - self.tbl.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: + if ftype == TType.STRING: + self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: if ftype == TType.STRUCT: self.environment_context = EnvironmentContext() self.environment_context.read(iprot) @@ -26293,16 +25996,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_table_with_environment_context_args") - if self.tbl is not None: - oprot.writeFieldBegin("tbl", TType.STRUCT, 1) - self.tbl.write(oprot) + oprot.writeStructBegin('get_schema_with_environment_context_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.table_name is not None: + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name) oprot.writeFieldEnd() if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 2) + oprot.writeFieldBegin('environment_context', TType.STRUCT, 3) self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26312,37 +26020,363 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_schema_with_environment_context_args) +get_schema_with_environment_context_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 3 +) -all_structs.append(create_table_with_environment_context_args) -create_table_with_environment_context_args.thrift_spec = ( +class get_schema_with_environment_context_result(object): + """ + Attributes: + - success + - o1 + - o2 + - o3 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1483, _size1480) = iprot.readListBegin() + for _i1484 in range(_size1480): + _elem1485 = FieldSchema() + _elem1485.read(iprot) + self.success.append(_elem1485) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = UnknownTableException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = UnknownDBException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_schema_with_environment_context_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1486 in self.success: + iter1486.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + 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 __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_schema_with_environment_context_result) +get_schema_with_environment_context_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [FieldSchema, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) + + +class get_schema_req_args(object): + """ + Attributes: + - req + + """ + thrift_spec = None + + + def __init__(self, req = None,): + self.req = req + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.req = GetSchemaRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_schema_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_schema_req_args) +get_schema_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [GetSchemaRequest, None], None, ), # 1 +) + + +class get_schema_req_result(object): + """ + Attributes: + - success + - o1 + - o2 + - o3 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = GetSchemaResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = UnknownTableException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = UnknownDBException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_schema_req_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + 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 __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_schema_req_result) +get_schema_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSchemaResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [UnknownTableException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) + + +class create_table_args(object): + """ + Attributes: + - tbl + + """ + thrift_spec = None + + + def __init__(self, tbl = None,): + self.tbl = tbl + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.tbl = Table() + self.tbl.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('create_table_args') + if self.tbl is not None: + oprot.writeFieldBegin('tbl', TType.STRUCT, 1) + self.tbl.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(create_table_args) +create_table_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "tbl", - [Table, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 2 + (1, TType.STRUCT, 'tbl', [Table, None], None, ), # 1 ) -class create_table_with_environment_context_result: +class create_table_result(object): """ Attributes: - o1 @@ -26351,25 +26385,17 @@ class create_table_with_environment_context_result: - o4 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, o1 = None, o2 = None, o3 = None, o4 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26403,24 +26429,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_table_with_environment_context_result") + oprot.writeStructBegin('create_table_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26430,87 +26457,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(create_table_result) +create_table_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4 +) -all_structs.append(create_table_with_environment_context_result) -create_table_with_environment_context_result.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [NoSuchObjectException, None], - None, - ), # 4 -) - - -class create_table_with_constraints_args: +class create_table_with_environment_context_args(object): """ Attributes: - tbl - - primaryKeys - - foreignKeys - - uniqueConstraints - - notNullConstraints - - defaultConstraints - - checkConstraints + - environment_context """ + thrift_spec = None + - def __init__( - self, - tbl=None, - primaryKeys=None, - foreignKeys=None, - uniqueConstraints=None, - notNullConstraints=None, - defaultConstraints=None, - checkConstraints=None, - ): + def __init__(self, tbl = None, environment_context = None,): self.tbl = tbl - self.primaryKeys = primaryKeys - self.foreignKeys = foreignKeys - self.uniqueConstraints = uniqueConstraints - self.notNullConstraints = notNullConstraints - self.defaultConstraints = defaultConstraints - self.checkConstraints = checkConstraints + self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26525,69 +26506,9 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.LIST: - self.primaryKeys = [] - (_etype1310, _size1307) = iprot.readListBegin() - for _i1311 in range(_size1307): - _elem1312 = SQLPrimaryKey() - _elem1312.read(iprot) - self.primaryKeys.append(_elem1312) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.foreignKeys = [] - (_etype1316, _size1313) = iprot.readListBegin() - for _i1317 in range(_size1313): - _elem1318 = SQLForeignKey() - _elem1318.read(iprot) - self.foreignKeys.append(_elem1318) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.LIST: - self.uniqueConstraints = [] - (_etype1322, _size1319) = iprot.readListBegin() - for _i1323 in range(_size1319): - _elem1324 = SQLUniqueConstraint() - _elem1324.read(iprot) - self.uniqueConstraints.append(_elem1324) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.LIST: - self.notNullConstraints = [] - (_etype1328, _size1325) = iprot.readListBegin() - for _i1329 in range(_size1325): - _elem1330 = SQLNotNullConstraint() - _elem1330.read(iprot) - self.notNullConstraints.append(_elem1330) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.LIST: - self.defaultConstraints = [] - (_etype1334, _size1331) = iprot.readListBegin() - for _i1335 in range(_size1331): - _elem1336 = SQLDefaultConstraint() - _elem1336.read(iprot) - self.defaultConstraints.append(_elem1336) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 7: - if ftype == TType.LIST: - self.checkConstraints = [] - (_etype1340, _size1337) = iprot.readListBegin() - for _i1341 in range(_size1337): - _elem1342 = SQLCheckConstraint() - _elem1342.read(iprot) - self.checkConstraints.append(_elem1342) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.environment_context = EnvironmentContext() + self.environment_context.read(iprot) else: iprot.skip(ftype) else: @@ -26596,55 +26517,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_table_with_constraints_args") + oprot.writeStructBegin('create_table_with_environment_context_args') if self.tbl is not None: - oprot.writeFieldBegin("tbl", TType.STRUCT, 1) + oprot.writeFieldBegin('tbl', TType.STRUCT, 1) self.tbl.write(oprot) oprot.writeFieldEnd() - if self.primaryKeys is not None: - oprot.writeFieldBegin("primaryKeys", TType.LIST, 2) - oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter1343 in self.primaryKeys: - iter1343.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.foreignKeys is not None: - oprot.writeFieldBegin("foreignKeys", TType.LIST, 3) - oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter1344 in self.foreignKeys: - iter1344.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.uniqueConstraints is not None: - oprot.writeFieldBegin("uniqueConstraints", TType.LIST, 4) - oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter1345 in self.uniqueConstraints: - iter1345.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.notNullConstraints is not None: - oprot.writeFieldBegin("notNullConstraints", TType.LIST, 5) - oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter1346 in self.notNullConstraints: - iter1346.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.defaultConstraints is not None: - oprot.writeFieldBegin("defaultConstraints", TType.LIST, 6) - oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) - for iter1347 in self.defaultConstraints: - iter1347.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.checkConstraints is not None: - oprot.writeFieldBegin("checkConstraints", TType.LIST, 7) - oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) - for iter1348 in self.checkConstraints: - iter1348.write(oprot) - oprot.writeListEnd() + if self.environment_context is not None: + oprot.writeFieldBegin('environment_context', TType.STRUCT, 2) + self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26653,72 +26537,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(create_table_with_environment_context_args) +create_table_with_environment_context_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'tbl', [Table, None], None, ), # 1 + (2, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 2 +) -all_structs.append(create_table_with_constraints_args) -create_table_with_constraints_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "tbl", - [Table, None], - None, - ), # 1 - ( - 2, - TType.LIST, - "primaryKeys", - (TType.STRUCT, [SQLPrimaryKey, None], False), - None, - ), # 2 - ( - 3, - TType.LIST, - "foreignKeys", - (TType.STRUCT, [SQLForeignKey, None], False), - None, - ), # 3 - ( - 4, - TType.LIST, - "uniqueConstraints", - (TType.STRUCT, [SQLUniqueConstraint, None], False), - None, - ), # 4 - ( - 5, - TType.LIST, - "notNullConstraints", - (TType.STRUCT, [SQLNotNullConstraint, None], False), - None, - ), # 5 - ( - 6, - TType.LIST, - "defaultConstraints", - (TType.STRUCT, [SQLDefaultConstraint, None], False), - None, - ), # 6 - ( - 7, - TType.LIST, - "checkConstraints", - (TType.STRUCT, [SQLCheckConstraint, None], False), - None, - ), # 7 -) - - -class create_table_with_constraints_result: +class create_table_with_environment_context_result(object): """ Attributes: - o1 @@ -26727,25 +26563,17 @@ class create_table_with_constraints_result: - o4 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None, o4 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26779,24 +26607,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_table_with_constraints_result") + oprot.writeStructBegin('create_table_with_environment_context_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26806,69 +26635,330 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(create_table_with_environment_context_result) +create_table_with_environment_context_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4 +) + + +class create_table_with_constraints_args(object): + """ + Attributes: + - tbl + - primaryKeys + - foreignKeys + - uniqueConstraints + - notNullConstraints + - defaultConstraints + - checkConstraints + + """ + thrift_spec = None + + + def __init__(self, tbl = None, primaryKeys = None, foreignKeys = None, uniqueConstraints = None, notNullConstraints = None, defaultConstraints = None, checkConstraints = None,): + self.tbl = tbl + self.primaryKeys = primaryKeys + self.foreignKeys = foreignKeys + self.uniqueConstraints = uniqueConstraints + self.notNullConstraints = notNullConstraints + self.defaultConstraints = defaultConstraints + self.checkConstraints = checkConstraints + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.tbl = Table() + self.tbl.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.primaryKeys = [] + (_etype1490, _size1487) = iprot.readListBegin() + for _i1491 in range(_size1487): + _elem1492 = SQLPrimaryKey() + _elem1492.read(iprot) + self.primaryKeys.append(_elem1492) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.foreignKeys = [] + (_etype1496, _size1493) = iprot.readListBegin() + for _i1497 in range(_size1493): + _elem1498 = SQLForeignKey() + _elem1498.read(iprot) + self.foreignKeys.append(_elem1498) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.uniqueConstraints = [] + (_etype1502, _size1499) = iprot.readListBegin() + for _i1503 in range(_size1499): + _elem1504 = SQLUniqueConstraint() + _elem1504.read(iprot) + self.uniqueConstraints.append(_elem1504) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.notNullConstraints = [] + (_etype1508, _size1505) = iprot.readListBegin() + for _i1509 in range(_size1505): + _elem1510 = SQLNotNullConstraint() + _elem1510.read(iprot) + self.notNullConstraints.append(_elem1510) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.defaultConstraints = [] + (_etype1514, _size1511) = iprot.readListBegin() + for _i1515 in range(_size1511): + _elem1516 = SQLDefaultConstraint() + _elem1516.read(iprot) + self.defaultConstraints.append(_elem1516) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.LIST: + self.checkConstraints = [] + (_etype1520, _size1517) = iprot.readListBegin() + for _i1521 in range(_size1517): + _elem1522 = SQLCheckConstraint() + _elem1522.read(iprot) + self.checkConstraints.append(_elem1522) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('create_table_with_constraints_args') + if self.tbl is not None: + oprot.writeFieldBegin('tbl', TType.STRUCT, 1) + self.tbl.write(oprot) + oprot.writeFieldEnd() + if self.primaryKeys is not None: + oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) + for iter1523 in self.primaryKeys: + iter1523.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.foreignKeys is not None: + oprot.writeFieldBegin('foreignKeys', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) + for iter1524 in self.foreignKeys: + iter1524.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.uniqueConstraints is not None: + oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 4) + oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) + for iter1525 in self.uniqueConstraints: + iter1525.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.notNullConstraints is not None: + oprot.writeFieldBegin('notNullConstraints', TType.LIST, 5) + oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) + for iter1526 in self.notNullConstraints: + iter1526.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.defaultConstraints is not None: + oprot.writeFieldBegin('defaultConstraints', TType.LIST, 6) + oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) + for iter1527 in self.defaultConstraints: + iter1527.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.checkConstraints is not None: + oprot.writeFieldBegin('checkConstraints', TType.LIST, 7) + oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) + for iter1528 in self.checkConstraints: + iter1528.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(create_table_with_constraints_args) +create_table_with_constraints_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'tbl', [Table, None], None, ), # 1 + (2, TType.LIST, 'primaryKeys', (TType.STRUCT, [SQLPrimaryKey, None], False), None, ), # 2 + (3, TType.LIST, 'foreignKeys', (TType.STRUCT, [SQLForeignKey, None], False), None, ), # 3 + (4, TType.LIST, 'uniqueConstraints', (TType.STRUCT, [SQLUniqueConstraint, None], False), None, ), # 4 + (5, TType.LIST, 'notNullConstraints', (TType.STRUCT, [SQLNotNullConstraint, None], False), None, ), # 5 + (6, TType.LIST, 'defaultConstraints', (TType.STRUCT, [SQLDefaultConstraint, None], False), None, ), # 6 + (7, TType.LIST, 'checkConstraints', (TType.STRUCT, [SQLCheckConstraint, None], False), None, ), # 7 +) + + +class create_table_with_constraints_result(object): + """ + Attributes: + - o1 + - o2 + - o3 + - o4 + + """ + thrift_spec = None + def __init__(self, o1 = None, o2 = None, o3 = None, o4 = None,): + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + self.o4 = o4 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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 = AlreadyExistsException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = InvalidObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = NoSuchObjectException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('create_table_with_constraints_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() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) all_structs.append(create_table_with_constraints_result) create_table_with_constraints_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [NoSuchObjectException, None], - None, - ), # 4 -) - - -class create_table_req_args: + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4 +) + + +class create_table_req_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26888,12 +26978,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_table_req_args") + oprot.writeStructBegin('create_table_req_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26903,30 +26994,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_table_req_args) create_table_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [CreateTableRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [CreateTableRequest, None], None, ), # 1 ) -class create_table_req_result: +class create_table_req_result(object): """ Attributes: - o1 @@ -26935,25 +27019,17 @@ class create_table_req_result: - o4 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, o1 = None, o2 = None, o3 = None, o4 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26987,24 +27063,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_table_req_result") + oprot.writeStructBegin('create_table_req_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27014,69 +27091,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_table_req_result) create_table_req_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [NoSuchObjectException, None], - None, - ), # 4 -) - - -class drop_constraint_args: + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4 +) + + +class drop_constraint_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27096,12 +27143,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_constraint_args") + oprot.writeStructBegin('drop_constraint_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27111,51 +27159,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_constraint_args) drop_constraint_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [DropConstraintRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [DropConstraintRequest, None], None, ), # 1 ) -class drop_constraint_result: +class drop_constraint_result(object): """ Attributes: - o1 - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o3=None, - ): + + def __init__(self, o1 = None, o3 = None,): self.o1 = o1 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27179,16 +27214,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_constraint_result") + oprot.writeStructBegin('drop_constraint_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 2) + oprot.writeFieldBegin('o3', TType.STRUCT, 2) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27198,55 +27234,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_constraint_result) drop_constraint_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o3', [MetaException, None], None, ), # 2 ) -class add_primary_key_args: +class add_primary_key_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27266,12 +27284,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_primary_key_args") + oprot.writeStructBegin('add_primary_key_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27281,51 +27300,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_primary_key_args) add_primary_key_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [AddPrimaryKeyRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [AddPrimaryKeyRequest, None], None, ), # 1 ) -class add_primary_key_result: +class add_primary_key_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27349,16 +27355,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_primary_key_result") + oprot.writeStructBegin('add_primary_key_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27368,55 +27375,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_primary_key_result) add_primary_key_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class add_foreign_key_args: +class add_foreign_key_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27436,12 +27425,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_foreign_key_args") + oprot.writeStructBegin('add_foreign_key_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27451,51 +27441,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_foreign_key_args) add_foreign_key_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [AddForeignKeyRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [AddForeignKeyRequest, None], None, ), # 1 ) -class add_foreign_key_result: +class add_foreign_key_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27519,16 +27496,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_foreign_key_result") + oprot.writeStructBegin('add_foreign_key_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27538,55 +27516,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_foreign_key_result) add_foreign_key_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class add_unique_constraint_args: +class add_unique_constraint_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27606,12 +27566,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_unique_constraint_args") + oprot.writeStructBegin('add_unique_constraint_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27621,51 +27582,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_unique_constraint_args) add_unique_constraint_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [AddUniqueConstraintRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [AddUniqueConstraintRequest, None], None, ), # 1 ) -class add_unique_constraint_result: +class add_unique_constraint_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27689,16 +27637,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_unique_constraint_result") + oprot.writeStructBegin('add_unique_constraint_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27708,55 +27657,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_unique_constraint_result) add_unique_constraint_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class add_not_null_constraint_args: +class add_not_null_constraint_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27776,12 +27707,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_not_null_constraint_args") + oprot.writeStructBegin('add_not_null_constraint_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27791,51 +27723,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_not_null_constraint_args) add_not_null_constraint_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [AddNotNullConstraintRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [AddNotNullConstraintRequest, None], None, ), # 1 ) -class add_not_null_constraint_result: +class add_not_null_constraint_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27859,16 +27778,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_not_null_constraint_result") + oprot.writeStructBegin('add_not_null_constraint_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27878,55 +27798,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_not_null_constraint_result) add_not_null_constraint_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class add_default_constraint_args: +class add_default_constraint_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27946,12 +27848,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_default_constraint_args") + oprot.writeStructBegin('add_default_constraint_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27961,51 +27864,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_default_constraint_args) add_default_constraint_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [AddDefaultConstraintRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [AddDefaultConstraintRequest, None], None, ), # 1 ) -class add_default_constraint_result: +class add_default_constraint_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28029,16 +27919,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_default_constraint_result") + oprot.writeStructBegin('add_default_constraint_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28048,55 +27939,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_default_constraint_result) add_default_constraint_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class add_check_constraint_args: +class add_check_constraint_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28116,12 +27989,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_check_constraint_args") + oprot.writeStructBegin('add_check_constraint_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28131,51 +28005,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_check_constraint_args) add_check_constraint_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [AddCheckConstraintRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [AddCheckConstraintRequest, None], None, ), # 1 ) -class add_check_constraint_result: +class add_check_constraint_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28199,16 +28060,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_check_constraint_result") + oprot.writeStructBegin('add_check_constraint_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28218,55 +28080,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_check_constraint_result) add_check_constraint_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class translate_table_dryrun_args: +class translate_table_dryrun_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28286,12 +28130,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("translate_table_dryrun_args") + oprot.writeStructBegin('translate_table_dryrun_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28301,30 +28146,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(translate_table_dryrun_args) translate_table_dryrun_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [CreateTableRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [CreateTableRequest, None], None, ), # 1 ) -class translate_table_dryrun_result: +class translate_table_dryrun_result(object): """ Attributes: - success @@ -28334,15 +28172,10 @@ class translate_table_dryrun_result: - o4 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -28350,11 +28183,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28394,28 +28223,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("translate_table_dryrun_result") + oprot.writeStructBegin('translate_table_dryrun_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28425,57 +28255,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(translate_table_dryrun_result) translate_table_dryrun_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Table, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [NoSuchObjectException, None], - None, - ), # 4 -) - - -class drop_table_args: + (0, TType.STRUCT, 'success', [Table, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4 +) + + +class drop_table_args(object): """ Attributes: - dbname @@ -28483,23 +28282,16 @@ class drop_table_args: - deleteData """ + thrift_spec = None - def __init__( - self, - dbname=None, - name=None, - deleteData=None, - ): + + def __init__(self, dbname = None, name = None, deleteData = None,): self.dbname = dbname self.name = name self.deleteData = deleteData def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28509,16 +28301,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -28532,20 +28320,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_table_args") + oprot.writeStructBegin('drop_table_args') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 2) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.deleteData is not None: - oprot.writeFieldBegin("deleteData", TType.BOOL, 3) + oprot.writeFieldBegin('deleteData', TType.BOOL, 3) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28555,65 +28344,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_table_args) drop_table_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.BOOL, - "deleteData", - None, - None, - ), # 3 -) - - -class drop_table_result: + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.BOOL, 'deleteData', None, None, ), # 3 +) + + +class drop_table_result(object): """ Attributes: - o1 - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o3=None, - ): + + def __init__(self, o1 = None, o3 = None,): self.o1 = o1 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28637,16 +28401,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_table_result") + oprot.writeStructBegin('drop_table_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 2) + oprot.writeFieldBegin('o3', TType.STRUCT, 2) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28656,37 +28421,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_table_result) drop_table_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o3', [MetaException, None], None, ), # 2 ) -class drop_table_with_environment_context_args: +class drop_table_with_environment_context_args(object): """ Attributes: - dbname @@ -28695,25 +28447,17 @@ class drop_table_with_environment_context_args: - environment_context """ + thrift_spec = None + - def __init__( - self, - dbname=None, - name=None, - deleteData=None, - environment_context=None, - ): + def __init__(self, dbname = None, name = None, deleteData = None, environment_context = None,): self.dbname = dbname self.name = name self.deleteData = deleteData self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28723,16 +28467,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -28752,24 +28492,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_table_with_environment_context_args") + oprot.writeStructBegin('drop_table_with_environment_context_args') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 2) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.deleteData is not None: - oprot.writeFieldBegin("deleteData", TType.BOOL, 3) + oprot.writeFieldBegin('deleteData', TType.BOOL, 3) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 4) + oprot.writeFieldBegin('environment_context', TType.STRUCT, 4) self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28779,72 +28520,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_table_with_environment_context_args) drop_table_with_environment_context_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.BOOL, - "deleteData", - None, - None, - ), # 3 - ( - 4, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 4 -) - - -class drop_table_with_environment_context_result: + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.BOOL, 'deleteData', None, None, ), # 3 + (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4 +) + + +class drop_table_with_environment_context_result(object): """ Attributes: - o1 - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o3=None, - ): + + def __init__(self, o1 = None, o3 = None,): self.o1 = o1 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28868,16 +28578,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_table_with_environment_context_result") + oprot.writeStructBegin('drop_table_with_environment_context_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 2) + oprot.writeFieldBegin('o3', TType.STRUCT, 2) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28887,61 +28598,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_table_with_environment_context_result) drop_table_with_environment_context_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o3', [MetaException, None], None, ), # 2 ) -class truncate_table_args: +class drop_table_req_args(object): """ Attributes: - - dbName - - tableName - - partNames + - dropTableReq """ + thrift_spec = None - def __init__( - self, - dbName=None, - tableName=None, - partNames=None, - ): - self.dbName = dbName - self.tableName = tableName - self.partNames = partNames + + def __init__(self, dropTableReq = None,): + self.dropTableReq = dropTableReq def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28950,31 +28637,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.partNames = [] - (_etype1352, _size1349) = iprot.readListBegin() - for _i1353 in range(_size1349): - _elem1354 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partNames.append(_elem1354) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.dropTableReq = DropTableRequest() + self.dropTableReq.read(iprot) else: iprot.skip(ftype) else: @@ -28983,24 +28648,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("truncate_table_args") - if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) - oprot.writeFieldEnd() - if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 2) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) - oprot.writeFieldEnd() - if self.partNames is not None: - oprot.writeFieldBegin("partNames", TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter1355 in self.partNames: - oprot.writeString(iter1355.encode("utf-8") if sys.version_info[0] == 2 else iter1355) - oprot.writeListEnd() + oprot.writeStructBegin('drop_table_req_args') + if self.dropTableReq is not None: + oprot.writeFieldBegin('dropTableReq', TType.STRUCT, 1) + self.dropTableReq.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29009,62 +28664,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_table_req_args) +drop_table_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'dropTableReq', [DropTableRequest, None], None, ), # 1 +) -all_structs.append(truncate_table_args) -truncate_table_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "partNames", - (TType.STRING, "UTF8", False), - None, - ), # 3 -) - - -class truncate_table_result: +class drop_table_req_result(object): """ Attributes: - o1 + - o3 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None, o3 = None,): self.o1 = o1 + self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29074,7 +28705,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.o1 = NoSuchObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o3 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -29083,14 +28719,19 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("truncate_table_result") + oprot.writeStructBegin('drop_table_req_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 2) + self.o3.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29098,48 +28739,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(truncate_table_result) -truncate_table_result.thrift_spec = ( +all_structs.append(drop_table_req_result) +drop_table_req_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o3', [MetaException, None], None, ), # 2 ) -class truncate_table_req_args: +class truncate_table_args(object): """ Attributes: - - req + - dbName + - tableName + - partNames """ + thrift_spec = None - def __init__( - self, - req=None, - ): - self.req = req + + def __init__(self, dbName = None, tableName = None, partNames = None,): + self.dbName = dbName + self.tableName = tableName + self.partNames = partNames def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29148,9 +28782,23 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.req = TruncateTableRequest() - self.req.read(iprot) + if ftype == TType.STRING: + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.partNames = [] + (_etype1532, _size1529) = iprot.readListBegin() + for _i1533 in range(_size1529): + _elem1534 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partNames.append(_elem1534) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -29159,13 +28807,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("truncate_table_req_args") - if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('truncate_table_args') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldEnd() + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldEnd() + if self.partNames is not None: + oprot.writeFieldBegin('partNames', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.partNames)) + for iter1535 in self.partNames: + oprot.writeString(iter1535.encode('utf-8') if sys.version_info[0] == 2 else iter1535) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29174,51 +28834,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(truncate_table_req_args) -truncate_table_req_args.thrift_spec = ( +all_structs.append(truncate_table_args) +truncate_table_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [TruncateTableRequest, None], - None, - ), # 1 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.LIST, 'partNames', (TType.STRING, 'UTF8', False), None, ), # 3 ) -class truncate_table_req_result: +class truncate_table_result(object): """ Attributes: - - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): - self.success = success + + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29226,13 +28873,7 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = TruncateTableResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: + if fid == 1: if ftype == TType.STRUCT: self.o1 = MetaException.read(iprot) else: @@ -29243,16 +28884,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("truncate_table_req_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('truncate_table_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29262,57 +28900,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(truncate_table_req_result) -truncate_table_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [TruncateTableResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(truncate_table_result) +truncate_table_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_tables_args: +class truncate_table_req_args(object): """ Attributes: - - db_name - - pattern + - req """ + thrift_spec = None - def __init__( - self, - db_name=None, - pattern=None, - ): - self.db_name = db_name - self.pattern = pattern + + def __init__(self, req = None,): + self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29321,17 +28938,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.pattern = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.STRUCT: + self.req = TruncateTableRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -29340,17 +28949,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_tables_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.pattern is not None: - oprot.writeFieldBegin("pattern", TType.STRING, 2) - oprot.writeString(self.pattern.encode("utf-8") if sys.version_info[0] == 2 else self.pattern) + oprot.writeStructBegin('truncate_table_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29359,58 +28965,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_tables_args) -get_tables_args.thrift_spec = ( +all_structs.append(truncate_table_req_args) +truncate_table_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "pattern", - "UTF8", - None, - ), # 2 + (1, TType.STRUCT, 'req', [TruncateTableRequest, None], None, ), # 1 ) -class get_tables_result: +class truncate_table_req_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29419,17 +29005,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1359, _size1356) = iprot.readListBegin() - for _i1360 in range(_size1356): - _elem1361 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1361) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = TruncateTableResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -29443,19 +29021,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_tables_result") + oprot.writeStructBegin('truncate_table_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1362 in self.success: - oprot.writeString(iter1362.encode("utf-8") if sys.version_info[0] == 2 else iter1362) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29465,60 +29041,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_tables_result) -get_tables_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(truncate_table_req_result) +truncate_table_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [TruncateTableResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_tables_by_type_args: +class get_tables_args(object): """ Attributes: - db_name - pattern - - tableType """ + thrift_spec = None + - def __init__( - self, - db_name=None, - pattern=None, - tableType=None, - ): + def __init__(self, db_name = None, pattern = None,): self.db_name = db_name self.pattern = pattern - self.tableType = tableType def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29528,23 +29082,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.pattern = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.tableType = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.pattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -29553,21 +29096,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_tables_by_type_args") + oprot.writeStructBegin('get_tables_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.pattern is not None: - oprot.writeFieldBegin("pattern", TType.STRING, 2) - oprot.writeString(self.pattern.encode("utf-8") if sys.version_info[0] == 2 else self.pattern) - oprot.writeFieldEnd() - if self.tableType is not None: - oprot.writeFieldBegin("tableType", TType.STRING, 3) - oprot.writeString(self.tableType.encode("utf-8") if sys.version_info[0] == 2 else self.tableType) + oprot.writeFieldBegin('pattern', TType.STRING, 2) + oprot.writeString(self.pattern.encode('utf-8') if sys.version_info[0] == 2 else self.pattern) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29576,215 +29116,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_tables_by_type_args) -get_tables_by_type_args.thrift_spec = ( +all_structs.append(get_tables_args) +get_tables_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "pattern", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tableType", - "UTF8", - None, - ), # 3 -) - - -class get_tables_by_type_result: - """ - Attributes: - - success - - o1 - - """ - - def __init__( - self, - success=None, - o1=None, - ): - self.success = success - self.o1 = o1 - - def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): - iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1366, _size1363) = iprot.readListBegin() - for _i1367 in range(_size1363): - _elem1368 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1368) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) - return - oprot.writeStructBegin("get_tables_by_type_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1369 in self.success: - oprot.writeString(iter1369.encode("utf-8") if sys.version_info[0] == 2 else iter1369) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(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) - - -all_structs.append(get_tables_by_type_result) -get_tables_by_type_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'pattern', 'UTF8', None, ), # 2 ) -class get_all_materialized_view_objects_for_rewriting_args: - def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): - iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) - return - oprot.writeStructBegin("get_all_materialized_view_objects_for_rewriting_args") - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(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) - - -all_structs.append(get_all_materialized_view_objects_for_rewriting_args) -get_all_materialized_view_objects_for_rewriting_args.thrift_spec = () - - -class get_all_materialized_view_objects_for_rewriting_result: +class get_tables_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29795,11 +29159,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1373, _size1370) = iprot.readListBegin() - for _i1374 in range(_size1370): - _elem1375 = Table() - _elem1375.read(iprot) - self.success.append(_elem1375) + (_etype1539, _size1536) = iprot.readListBegin() + for _i1540 in range(_size1536): + _elem1541 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1541) iprot.readListEnd() else: iprot.skip(ftype) @@ -29814,19 +29177,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_materialized_view_objects_for_rewriting_result") + oprot.writeStructBegin('get_tables_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1376 in self.success: - iter1376.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1542 in self.success: + oprot.writeString(iter1542.encode('utf-8') if sys.version_info[0] == 2 else iter1542) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29836,54 +29200,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_all_materialized_view_objects_for_rewriting_result) -get_all_materialized_view_objects_for_rewriting_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Table, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(get_tables_result) +get_tables_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_materialized_views_for_rewriting_args: +class get_tables_by_type_args(object): """ Attributes: - db_name + - pattern + - tableType """ + thrift_spec = None + - def __init__( - self, - db_name=None, - ): + def __init__(self, db_name = None, pattern = None, tableType = None,): self.db_name = db_name + self.pattern = pattern + self.tableType = tableType def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29893,9 +29243,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.pattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tableType = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -29904,13 +29262,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_materialized_views_for_rewriting_args") + oprot.writeStructBegin('get_tables_by_type_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.pattern is not None: + oprot.writeFieldBegin('pattern', TType.STRING, 2) + oprot.writeString(self.pattern.encode('utf-8') if sys.version_info[0] == 2 else self.pattern) + oprot.writeFieldEnd() + if self.tableType is not None: + oprot.writeFieldBegin('tableType', TType.STRING, 3) + oprot.writeString(self.tableType.encode('utf-8') if sys.version_info[0] == 2 else self.tableType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29919,51 +29286,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_materialized_views_for_rewriting_args) -get_materialized_views_for_rewriting_args.thrift_spec = ( +all_structs.append(get_tables_by_type_args) +get_tables_by_type_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'pattern', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableType', 'UTF8', None, ), # 3 ) -class get_materialized_views_for_rewriting_result: +class get_tables_by_type_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29974,14 +29330,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1380, _size1377) = iprot.readListBegin() - for _i1381 in range(_size1377): - _elem1382 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1382) + (_etype1546, _size1543) = iprot.readListBegin() + for _i1547 in range(_size1543): + _elem1548 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1548) iprot.readListEnd() else: iprot.skip(ftype) @@ -29996,19 +29348,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_materialized_views_for_rewriting_result") + oprot.writeStructBegin('get_tables_by_type_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1383 in self.success: - oprot.writeString(iter1383.encode("utf-8") if sys.version_info[0] == 2 else iter1383) + for iter1549 in self.success: + oprot.writeString(iter1549.encode('utf-8') if sys.version_info[0] == 2 else iter1549) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30018,60 +29371,28 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_materialized_views_for_rewriting_result) -get_materialized_views_for_rewriting_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(get_tables_by_type_result) +get_tables_by_type_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_table_meta_args: - """ - Attributes: - - db_patterns - - tbl_patterns - - tbl_types +class get_all_materialized_view_objects_for_rewriting_args(object): + thrift_spec = None - """ - - def __init__( - self, - db_patterns=None, - tbl_patterns=None, - tbl_types=None, - ): - self.db_patterns = db_patterns - self.tbl_patterns = tbl_patterns - self.tbl_types = tbl_types def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30079,59 +29400,17 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRING: - self.db_patterns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_patterns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.tbl_types = [] - (_etype1387, _size1384) = iprot.readListBegin() - for _i1388 in range(_size1384): - _elem1389 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.tbl_types.append(_elem1389) - iprot.readListEnd() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_meta_args") - if self.db_patterns is not None: - oprot.writeFieldBegin("db_patterns", TType.STRING, 1) - oprot.writeString(self.db_patterns.encode("utf-8") if sys.version_info[0] == 2 else self.db_patterns) - oprot.writeFieldEnd() - if self.tbl_patterns is not None: - oprot.writeFieldBegin("tbl_patterns", TType.STRING, 2) - oprot.writeString(self.tbl_patterns.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_patterns) - oprot.writeFieldEnd() - if self.tbl_types is not None: - oprot.writeFieldBegin("tbl_types", TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.tbl_types)) - for iter1390 in self.tbl_types: - oprot.writeString(iter1390.encode("utf-8") if sys.version_info[0] == 2 else iter1390) - oprot.writeListEnd() - oprot.writeFieldEnd() + oprot.writeStructBegin('get_all_materialized_view_objects_for_rewriting_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -30139,65 +29418,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_all_materialized_view_objects_for_rewriting_args) +get_all_materialized_view_objects_for_rewriting_args.thrift_spec = ( +) -all_structs.append(get_table_meta_args) -get_table_meta_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_patterns", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_patterns", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "tbl_types", - (TType.STRING, "UTF8", False), - None, - ), # 3 -) - - -class get_table_meta_result: +class get_all_materialized_view_objects_for_rewriting_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30208,11 +29458,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1394, _size1391) = iprot.readListBegin() - for _i1395 in range(_size1391): - _elem1396 = TableMeta() - _elem1396.read(iprot) - self.success.append(_elem1396) + (_etype1553, _size1550) = iprot.readListBegin() + for _i1554 in range(_size1550): + _elem1555 = Table() + _elem1555.read(iprot) + self.success.append(_elem1555) iprot.readListEnd() else: iprot.skip(ftype) @@ -30227,19 +29477,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_meta_result") + oprot.writeStructBegin('get_all_materialized_view_objects_for_rewriting_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1397 in self.success: - iter1397.write(oprot) + for iter1556 in self.success: + iter1556.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30249,54 +29500,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_table_meta_result) -get_table_meta_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [TableMeta, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(get_all_materialized_view_objects_for_rewriting_result) +get_all_materialized_view_objects_for_rewriting_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Table, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_all_tables_args: +class get_materialized_views_for_rewriting_args(object): """ Attributes: - db_name """ + thrift_spec = None - def __init__( - self, - db_name=None, - ): + + def __init__(self, db_name = None,): self.db_name = db_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30306,9 +29539,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -30317,13 +29548,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_tables_args") + oprot.writeStructBegin('get_materialized_views_for_rewriting_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -30332,51 +29564,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_all_tables_args) -get_all_tables_args.thrift_spec = ( +all_structs.append(get_materialized_views_for_rewriting_args) +get_materialized_views_for_rewriting_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 ) -class get_all_tables_result: +class get_materialized_views_for_rewriting_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30387,14 +29606,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1401, _size1398) = iprot.readListBegin() - for _i1402 in range(_size1398): - _elem1403 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1403) + (_etype1560, _size1557) = iprot.readListBegin() + for _i1561 in range(_size1557): + _elem1562 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1562) iprot.readListEnd() else: iprot.skip(ftype) @@ -30409,19 +29624,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_tables_result") + oprot.writeStructBegin('get_materialized_views_for_rewriting_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1404 in self.success: - oprot.writeString(iter1404.encode("utf-8") if sys.version_info[0] == 2 else iter1404) + for iter1563 in self.success: + oprot.writeString(iter1563.encode('utf-8') if sys.version_info[0] == 2 else iter1563) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30431,57 +29647,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_all_tables_result) -get_all_tables_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(get_materialized_views_for_rewriting_result) +get_materialized_views_for_rewriting_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_table_args: +class get_table_meta_args(object): """ Attributes: - - dbname - - tbl_name + - db_patterns + - tbl_patterns + - tbl_types """ + thrift_spec = None - def __init__( - self, - dbname=None, - tbl_name=None, - ): - self.dbname = dbname - self.tbl_name = tbl_name + + def __init__(self, db_patterns = None, tbl_patterns = None, tbl_types = None,): + self.db_patterns = db_patterns + self.tbl_patterns = tbl_patterns + self.tbl_types = tbl_types def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30491,16 +29690,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_patterns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_patterns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.tbl_types = [] + (_etype1567, _size1564) = iprot.readListBegin() + for _i1568 in range(_size1564): + _elem1569 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.tbl_types.append(_elem1569) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -30509,17 +29714,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_args") - if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeStructBegin('get_table_meta_args') + if self.db_patterns is not None: + oprot.writeFieldBegin('db_patterns', TType.STRING, 1) + oprot.writeString(self.db_patterns.encode('utf-8') if sys.version_info[0] == 2 else self.db_patterns) oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + if self.tbl_patterns is not None: + oprot.writeFieldBegin('tbl_patterns', TType.STRING, 2) + oprot.writeString(self.tbl_patterns.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_patterns) + oprot.writeFieldEnd() + if self.tbl_types is not None: + oprot.writeFieldBegin('tbl_types', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.tbl_types)) + for iter1570 in self.tbl_types: + oprot.writeString(iter1570.encode('utf-8') if sys.version_info[0] == 2 else iter1570) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -30528,61 +29741,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_table_args) -get_table_args.thrift_spec = ( +all_structs.append(get_table_meta_args) +get_table_meta_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'db_patterns', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_patterns', 'UTF8', None, ), # 2 + (3, TType.LIST, 'tbl_types', (TType.STRING, 'UTF8', False), None, ), # 3 ) -class get_table_result: +class get_table_meta_result(object): """ Attributes: - success - o1 - - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 - self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30591,9 +29783,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = Table() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1574, _size1571) = iprot.readListBegin() + for _i1575 in range(_size1571): + _elem1576 = TableMeta() + _elem1576.read(iprot) + self.success.append(_elem1576) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -30601,33 +29798,28 @@ def read(self, iprot): self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_result") + oprot.writeStructBegin('get_table_meta_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1577 in self.success: + iter1577.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + 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() oprot.writeFieldStop() oprot.writeStructEnd() @@ -30635,64 +29827,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_table_result) -get_table_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Table, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 +all_structs.append(get_table_meta_result) +get_table_meta_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [TableMeta, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_table_objects_by_name_args: +class get_all_tables_args(object): """ Attributes: - - dbname - - tbl_names + - db_name """ + thrift_spec = None - def __init__( - self, - dbname=None, - tbl_names=None, - ): - self.dbname = dbname - self.tbl_names = tbl_names + + def __init__(self, db_name = None,): + self.db_name = db_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30702,23 +29866,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.LIST: - self.tbl_names = [] - (_etype1408, _size1405) = iprot.readListBegin() - for _i1409 in range(_size1405): - _elem1410 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.tbl_names.append(_elem1410) - iprot.readListEnd() + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -30727,20 +29875,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_objects_by_name_args") - if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) - oprot.writeFieldEnd() - if self.tbl_names is not None: - oprot.writeFieldBegin("tbl_names", TType.LIST, 2) - oprot.writeListBegin(TType.STRING, len(self.tbl_names)) - for iter1411 in self.tbl_names: - oprot.writeString(iter1411.encode("utf-8") if sys.version_info[0] == 2 else iter1411) - oprot.writeListEnd() + oprot.writeStructBegin('get_all_tables_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -30749,55 +29891,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_table_objects_by_name_args) -get_table_objects_by_name_args.thrift_spec = ( +all_structs.append(get_all_tables_args) +get_all_tables_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.LIST, - "tbl_names", - (TType.STRING, "UTF8", False), - None, - ), # 2 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 ) -class get_table_objects_by_name_result: +class get_all_tables_result(object): """ Attributes: - success + - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success + self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30808,31 +29933,40 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1415, _size1412) = iprot.readListBegin() - for _i1416 in range(_size1412): - _elem1417 = Table() - _elem1417.read(iprot) - self.success.append(_elem1417) + (_etype1581, _size1578) = iprot.readListBegin() + for _i1582 in range(_size1578): + _elem1583 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1583) iprot.readListEnd() else: iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_objects_by_name_result") + oprot.writeStructBegin('get_all_tables_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1418 in self.success: - iter1418.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1584 in self.success: + oprot.writeString(iter1584.encode('utf-8') if sys.version_info[0] == 2 else iter1584) oprot.writeListEnd() oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -30840,47 +29974,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_table_objects_by_name_result) -get_table_objects_by_name_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Table, None], False), - None, - ), # 0 +all_structs.append(get_all_tables_result) +get_all_tables_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_tables_ext_args: +class get_tables_ext_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30900,12 +30023,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_tables_ext_args") + oprot.writeStructBegin('get_tables_ext_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30915,51 +30039,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_tables_ext_args) get_tables_ext_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetTablesExtRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [GetTablesExtRequest, None], None, ), # 1 ) -class get_tables_ext_result: +class get_tables_ext_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30970,11 +30081,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1422, _size1419) = iprot.readListBegin() - for _i1423 in range(_size1419): - _elem1424 = ExtendedTableInfo() - _elem1424.read(iprot) - self.success.append(_elem1424) + (_etype1588, _size1585) = iprot.readListBegin() + for _i1589 in range(_size1585): + _elem1590 = ExtendedTableInfo() + _elem1590.read(iprot) + self.success.append(_elem1590) iprot.readListEnd() else: iprot.skip(ftype) @@ -30989,19 +30100,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_tables_ext_result") + oprot.writeStructBegin('get_tables_ext_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1425 in self.success: - iter1425.write(oprot) + for iter1591 in self.success: + iter1591.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31011,54 +30123,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_tables_ext_result) get_tables_ext_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [ExtendedTableInfo, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRUCT, [ExtendedTableInfo, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_table_req_args: +class get_table_req_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31078,12 +30172,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_req_args") + oprot.writeStructBegin('get_table_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31093,30 +30188,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_req_args) get_table_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetTableRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [GetTableRequest, None], None, ), # 1 ) -class get_table_req_result: +class get_table_req_result(object): """ Attributes: - success @@ -31124,23 +30212,16 @@ class get_table_req_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31170,20 +30251,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_req_result") + oprot.writeStructBegin('get_table_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31193,61 +30275,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_req_result) get_table_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetTableResult, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_table_objects_by_name_req_args: + (0, TType.STRUCT, 'success', [GetTableResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_table_objects_by_name_req_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31267,12 +30325,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_objects_by_name_req_args") + oprot.writeStructBegin('get_table_objects_by_name_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31282,30 +30341,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_objects_by_name_req_args) get_table_objects_by_name_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetTablesRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [GetTablesRequest, None], None, ), # 1 ) -class get_table_objects_by_name_req_result: +class get_table_objects_by_name_req_result(object): """ Attributes: - success @@ -31314,25 +30366,17 @@ class get_table_objects_by_name_req_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31367,24 +30411,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_objects_by_name_req_result") + oprot.writeStructBegin('get_table_objects_by_name_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31394,71 +30439,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_objects_by_name_req_result) get_table_objects_by_name_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetTablesResult, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class get_materialization_invalidation_info_args: + (0, TType.STRUCT, 'success', [GetTablesResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) + + +class get_materialization_invalidation_info_args(object): """ Attributes: - creation_metadata - validTxnList """ + thrift_spec = None + - def __init__( - self, - creation_metadata=None, - validTxnList=None, - ): + def __init__(self, creation_metadata = None, validTxnList = None,): self.creation_metadata = creation_metadata self.validTxnList = validTxnList def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31474,9 +30488,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.validTxnList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validTxnList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31485,17 +30497,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_materialization_invalidation_info_args") + oprot.writeStructBegin('get_materialization_invalidation_info_args') if self.creation_metadata is not None: - oprot.writeFieldBegin("creation_metadata", TType.STRUCT, 1) + oprot.writeFieldBegin('creation_metadata', TType.STRUCT, 1) self.creation_metadata.write(oprot) oprot.writeFieldEnd() if self.validTxnList is not None: - oprot.writeFieldBegin("validTxnList", TType.STRING, 2) - oprot.writeString(self.validTxnList.encode("utf-8") if sys.version_info[0] == 2 else self.validTxnList) + oprot.writeFieldBegin('validTxnList', TType.STRING, 2) + oprot.writeString(self.validTxnList.encode('utf-8') if sys.version_info[0] == 2 else self.validTxnList) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -31504,37 +30517,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_materialization_invalidation_info_args) get_materialization_invalidation_info_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "creation_metadata", - [CreationMetadata, None], - None, - ), # 1 - ( - 2, - TType.STRING, - "validTxnList", - "UTF8", - None, - ), # 2 + (1, TType.STRUCT, 'creation_metadata', [CreationMetadata, None], None, ), # 1 + (2, TType.STRING, 'validTxnList', 'UTF8', None, ), # 2 ) -class get_materialization_invalidation_info_result: +class get_materialization_invalidation_info_result(object): """ Attributes: - success @@ -31543,25 +30543,17 @@ class get_materialization_invalidation_info_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31596,24 +30588,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_materialization_invalidation_info_result") + oprot.writeStructBegin('get_materialization_invalidation_info_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31623,50 +30616,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_materialization_invalidation_info_result) get_materialization_invalidation_info_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Materialization, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class update_creation_metadata_args: + (0, TType.STRUCT, 'success', [Materialization, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) + + +class update_creation_metadata_args(object): """ Attributes: - catName @@ -31675,25 +30643,17 @@ class update_creation_metadata_args: - creation_metadata """ + thrift_spec = None - def __init__( - self, - catName=None, - dbname=None, - tbl_name=None, - creation_metadata=None, - ): + + def __init__(self, catName = None, dbname = None, tbl_name = None, creation_metadata = None,): self.catName = catName self.dbname = dbname self.tbl_name = tbl_name self.creation_metadata = creation_metadata def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31703,23 +30663,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -31734,24 +30688,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_creation_metadata_args") + oprot.writeStructBegin('update_creation_metadata_args') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 2) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 2) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 3) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 3) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.creation_metadata is not None: - oprot.writeFieldBegin("creation_metadata", TType.STRUCT, 4) + oprot.writeFieldBegin('creation_metadata', TType.STRUCT, 4) self.creation_metadata.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31761,51 +30716,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_creation_metadata_args) update_creation_metadata_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRUCT, - "creation_metadata", - [CreationMetadata, None], - None, - ), # 4 -) - - -class update_creation_metadata_result: + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbname', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tbl_name', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'creation_metadata', [CreationMetadata, None], None, ), # 4 +) + + +class update_creation_metadata_result(object): """ Attributes: - o1 @@ -31813,23 +30743,16 @@ class update_creation_metadata_result: - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31858,20 +30781,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_creation_metadata_result") + oprot.writeStructBegin('update_creation_metadata_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31881,44 +30805,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_creation_metadata_result) update_creation_metadata_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class get_table_names_by_filter_args: + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) + + +class get_table_names_by_filter_args(object): """ Attributes: - dbname @@ -31926,23 +30831,16 @@ class get_table_names_by_filter_args: - max_tables """ + thrift_spec = None - def __init__( - self, - dbname=None, - filter=None, - max_tables=-1, - ): + + def __init__(self, dbname = None, filter = None, max_tables = -1,): self.dbname = dbname self.filter = filter self.max_tables = max_tables def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31952,16 +30850,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.filter = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.filter = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -31975,20 +30869,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_names_by_filter_args") + oprot.writeStructBegin('get_table_names_by_filter_args') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.filter is not None: - oprot.writeFieldBegin("filter", TType.STRING, 2) - oprot.writeString(self.filter.encode("utf-8") if sys.version_info[0] == 2 else self.filter) + oprot.writeFieldBegin('filter', TType.STRING, 2) + oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter) oprot.writeFieldEnd() if self.max_tables is not None: - oprot.writeFieldBegin("max_tables", TType.I16, 3) + oprot.writeFieldBegin('max_tables', TType.I16, 3) oprot.writeI16(self.max_tables) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31998,44 +30893,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_names_by_filter_args) get_table_names_by_filter_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "filter", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I16, - "max_tables", - None, - -1, - ), # 3 -) - - -class get_table_names_by_filter_result: + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'filter', 'UTF8', None, ), # 2 + (3, TType.I16, 'max_tables', None, -1, ), # 3 +) + + +class get_table_names_by_filter_result(object): """ Attributes: - success @@ -32044,25 +30920,17 @@ class get_table_names_by_filter_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -32073,14 +30941,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1429, _size1426) = iprot.readListBegin() - for _i1430 in range(_size1426): - _elem1431 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1431) + (_etype1595, _size1592) = iprot.readListBegin() + for _i1596 in range(_size1592): + _elem1597 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1597) iprot.readListEnd() else: iprot.skip(ftype) @@ -32105,27 +30969,28 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_names_by_filter_result") + oprot.writeStructBegin('get_table_names_by_filter_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1432 in self.success: - oprot.writeString(iter1432.encode("utf-8") if sys.version_info[0] == 2 else iter1432) + for iter1598 in self.success: + oprot.writeString(iter1598.encode('utf-8') if sys.version_info[0] == 2 else iter1598) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32135,50 +31000,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_names_by_filter_result) get_table_names_by_filter_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 -) - - -class alter_table_args: + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 +) + + +class alter_table_args(object): """ Attributes: - dbname @@ -32186,23 +31026,16 @@ class alter_table_args: - new_tbl """ + thrift_spec = None + - def __init__( - self, - dbname=None, - tbl_name=None, - new_tbl=None, - ): + def __init__(self, dbname = None, tbl_name = None, new_tbl = None,): self.dbname = dbname self.tbl_name = tbl_name self.new_tbl = new_tbl def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -32212,16 +31045,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -32236,20 +31065,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_table_args") + oprot.writeStructBegin('alter_table_args') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.new_tbl is not None: - oprot.writeFieldBegin("new_tbl", TType.STRUCT, 3) + oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3) self.new_tbl.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32259,65 +31089,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_table_args) alter_table_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "new_tbl", - [Table, None], - None, - ), # 3 -) - - -class alter_table_result: + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'new_tbl', [Table, None], None, ), # 3 +) + + +class alter_table_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -32341,16 +31146,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_table_result") + oprot.writeStructBegin('alter_table_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32360,37 +31166,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_table_result) alter_table_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class alter_table_with_environment_context_args: +class alter_table_with_environment_context_args(object): """ Attributes: - dbname @@ -32399,25 +31192,17 @@ class alter_table_with_environment_context_args: - environment_context """ + thrift_spec = None - def __init__( - self, - dbname=None, - tbl_name=None, - new_tbl=None, - environment_context=None, - ): + + def __init__(self, dbname = None, tbl_name = None, new_tbl = None, environment_context = None,): self.dbname = dbname self.tbl_name = tbl_name self.new_tbl = new_tbl self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -32427,16 +31212,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -32457,24 +31238,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_table_with_environment_context_args") + oprot.writeStructBegin('alter_table_with_environment_context_args') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.new_tbl is not None: - oprot.writeFieldBegin("new_tbl", TType.STRUCT, 3) + oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3) self.new_tbl.write(oprot) oprot.writeFieldEnd() if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 4) + oprot.writeFieldBegin('environment_context', TType.STRUCT, 4) self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32484,72 +31266,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_table_with_environment_context_args) alter_table_with_environment_context_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "new_tbl", - [Table, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 4 -) - - -class alter_table_with_environment_context_result: + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'new_tbl', [Table, None], None, ), # 3 + (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4 +) + + +class alter_table_with_environment_context_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -32573,16 +31324,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_table_with_environment_context_result") + oprot.writeStructBegin('alter_table_with_environment_context_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32592,37 +31344,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_table_with_environment_context_result) alter_table_with_environment_context_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class alter_table_with_cascade_args: +class alter_table_with_cascade_args(object): """ Attributes: - dbname @@ -32631,25 +31370,17 @@ class alter_table_with_cascade_args: - cascade """ + thrift_spec = None + - def __init__( - self, - dbname=None, - tbl_name=None, - new_tbl=None, - cascade=None, - ): + def __init__(self, dbname = None, tbl_name = None, new_tbl = None, cascade = None,): self.dbname = dbname self.tbl_name = tbl_name self.new_tbl = new_tbl self.cascade = cascade def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -32659,16 +31390,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -32688,24 +31415,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_table_with_cascade_args") + oprot.writeStructBegin('alter_table_with_cascade_args') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.new_tbl is not None: - oprot.writeFieldBegin("new_tbl", TType.STRUCT, 3) + oprot.writeFieldBegin('new_tbl', TType.STRUCT, 3) self.new_tbl.write(oprot) oprot.writeFieldEnd() if self.cascade is not None: - oprot.writeFieldBegin("cascade", TType.BOOL, 4) + oprot.writeFieldBegin('cascade', TType.BOOL, 4) oprot.writeBool(self.cascade) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32715,72 +31443,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_table_with_cascade_args) alter_table_with_cascade_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "new_tbl", - [Table, None], - None, - ), # 3 - ( - 4, - TType.BOOL, - "cascade", - None, - None, - ), # 4 -) - - -class alter_table_with_cascade_result: + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'new_tbl', [Table, None], None, ), # 3 + (4, TType.BOOL, 'cascade', None, None, ), # 4 +) + + +class alter_table_with_cascade_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -32804,16 +31501,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_table_with_cascade_result") + oprot.writeStructBegin('alter_table_with_cascade_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32823,55 +31521,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_table_with_cascade_result) alter_table_with_cascade_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class alter_table_req_args: +class alter_table_req_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -32891,12 +31571,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_table_req_args") + oprot.writeStructBegin('alter_table_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32906,30 +31587,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_table_req_args) alter_table_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [AlterTableRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [AlterTableRequest, None], None, ), # 1 ) -class alter_table_req_result: +class alter_table_req_result(object): """ Attributes: - success @@ -32937,23 +31611,16 @@ class alter_table_req_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -32983,20 +31650,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_table_req_result") + oprot.writeStructBegin('alter_table_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33006,61 +31674,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_table_req_result) alter_table_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [AlterTableResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class add_partition_args: + (0, TType.STRUCT, 'success', [AlterTableResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class add_partition_args(object): """ Attributes: - new_part """ + thrift_spec = None - def __init__( - self, - new_part=None, - ): + + def __init__(self, new_part = None,): self.new_part = new_part def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -33080,12 +31724,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partition_args") + oprot.writeStructBegin('add_partition_args') if self.new_part is not None: - oprot.writeFieldBegin("new_part", TType.STRUCT, 1) + oprot.writeFieldBegin('new_part', TType.STRUCT, 1) self.new_part.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33095,30 +31740,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_partition_args) add_partition_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "new_part", - [Partition, None], - None, - ), # 1 + (1, TType.STRUCT, 'new_part', [Partition, None], None, ), # 1 ) -class add_partition_result: +class add_partition_result(object): """ Attributes: - success @@ -33127,25 +31765,17 @@ class add_partition_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -33180,24 +31810,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partition_result") + oprot.writeStructBegin('add_partition_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33207,71 +31838,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_partition_result) add_partition_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [AlreadyExistsException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class add_partition_with_environment_context_args: + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class add_partition_with_environment_context_args(object): """ Attributes: - new_part - environment_context """ + thrift_spec = None + - def __init__( - self, - new_part=None, - environment_context=None, - ): + def __init__(self, new_part = None, environment_context = None,): self.new_part = new_part self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -33297,16 +31897,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partition_with_environment_context_args") + oprot.writeStructBegin('add_partition_with_environment_context_args') if self.new_part is not None: - oprot.writeFieldBegin("new_part", TType.STRUCT, 1) + oprot.writeFieldBegin('new_part', TType.STRUCT, 1) self.new_part.write(oprot) oprot.writeFieldEnd() if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 2) + oprot.writeFieldBegin('environment_context', TType.STRUCT, 2) self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33316,37 +31917,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_partition_with_environment_context_args) add_partition_with_environment_context_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "new_part", - [Partition, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 2 + (1, TType.STRUCT, 'new_part', [Partition, None], None, ), # 1 + (2, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 2 ) -class add_partition_with_environment_context_result: +class add_partition_with_environment_context_result(object): """ Attributes: - success @@ -33355,25 +31943,17 @@ class add_partition_with_environment_context_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -33408,24 +31988,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partition_with_environment_context_result") + oprot.writeStructBegin('add_partition_with_environment_context_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33435,68 +32016,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_partition_with_environment_context_result) add_partition_with_environment_context_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [AlreadyExistsException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class add_partitions_args: + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class add_partitions_args(object): """ Attributes: - new_parts """ + thrift_spec = None + - def __init__( - self, - new_parts=None, - ): + def __init__(self, new_parts = None,): self.new_parts = new_parts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -33507,11 +32058,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1436, _size1433) = iprot.readListBegin() - for _i1437 in range(_size1433): - _elem1438 = Partition() - _elem1438.read(iprot) - self.new_parts.append(_elem1438) + (_etype1602, _size1599) = iprot.readListBegin() + for _i1603 in range(_size1599): + _elem1604 = Partition() + _elem1604.read(iprot) + self.new_parts.append(_elem1604) iprot.readListEnd() else: iprot.skip(ftype) @@ -33521,15 +32072,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partitions_args") + oprot.writeStructBegin('add_partitions_args') if self.new_parts is not None: - oprot.writeFieldBegin("new_parts", TType.LIST, 1) + oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1439 in self.new_parts: - iter1439.write(oprot) + for iter1605 in self.new_parts: + iter1605.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33539,30 +32091,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_partitions_args) add_partitions_args.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "new_parts", - (TType.STRUCT, [Partition, None], False), - None, - ), # 1 + (1, TType.LIST, 'new_parts', (TType.STRUCT, [Partition, None], False), None, ), # 1 ) -class add_partitions_result: +class add_partitions_result(object): """ Attributes: - success @@ -33571,25 +32116,17 @@ class add_partitions_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -33623,24 +32160,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partitions_result") + oprot.writeStructBegin('add_partitions_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I32, 0) + oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33650,68 +32188,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_partitions_result) add_partitions_result.thrift_spec = ( - ( - 0, - TType.I32, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [AlreadyExistsException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class add_partitions_pspec_args: + (0, TType.I32, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class add_partitions_pspec_args(object): """ Attributes: - new_parts """ + thrift_spec = None + - def __init__( - self, - new_parts=None, - ): + def __init__(self, new_parts = None,): self.new_parts = new_parts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -33722,11 +32230,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype1443, _size1440) = iprot.readListBegin() - for _i1444 in range(_size1440): - _elem1445 = PartitionSpec() - _elem1445.read(iprot) - self.new_parts.append(_elem1445) + (_etype1609, _size1606) = iprot.readListBegin() + for _i1610 in range(_size1606): + _elem1611 = PartitionSpec() + _elem1611.read(iprot) + self.new_parts.append(_elem1611) iprot.readListEnd() else: iprot.skip(ftype) @@ -33736,15 +32244,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partitions_pspec_args") + oprot.writeStructBegin('add_partitions_pspec_args') if self.new_parts is not None: - oprot.writeFieldBegin("new_parts", TType.LIST, 1) + oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1446 in self.new_parts: - iter1446.write(oprot) + for iter1612 in self.new_parts: + iter1612.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33754,30 +32263,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_partitions_pspec_args) add_partitions_pspec_args.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "new_parts", - (TType.STRUCT, [PartitionSpec, None], False), - None, - ), # 1 + (1, TType.LIST, 'new_parts', (TType.STRUCT, [PartitionSpec, None], False), None, ), # 1 ) -class add_partitions_pspec_result: +class add_partitions_pspec_result(object): """ Attributes: - success @@ -33786,25 +32288,17 @@ class add_partitions_pspec_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -33838,24 +32332,386 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partitions_pspec_result") + oprot.writeStructBegin('add_partitions_pspec_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I32, 0) + oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + 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 __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(add_partitions_pspec_result) +add_partitions_pspec_result.thrift_spec = ( + (0, TType.I32, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class append_partition_args(object): + """ + Attributes: + - db_name + - tbl_name + - part_vals + + """ + thrift_spec = None + + + def __init__(self, db_name = None, tbl_name = None, part_vals = None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_vals = part_vals + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.part_vals = [] + (_etype1616, _size1613) = iprot.readListBegin() + for _i1617 in range(_size1613): + _elem1618 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1618) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('append_partition_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.part_vals is not None: + oprot.writeFieldBegin('part_vals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.part_vals)) + for iter1619 in self.part_vals: + oprot.writeString(iter1619.encode('utf-8') if sys.version_info[0] == 2 else iter1619) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(append_partition_args) +append_partition_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class append_partition_result(object): + """ + Attributes: + - success + - o1 + - o2 + - o3 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = Partition() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = InvalidObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = AlreadyExistsException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('append_partition_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + 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 __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(append_partition_result) +append_partition_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class add_partitions_req_args(object): + """ + Attributes: + - request + + """ + thrift_spec = None + + + def __init__(self, request = None,): + self.request = request + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.request = AddPartitionsRequest() + self.request.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('add_partitions_req_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(add_partitions_req_args) +add_partitions_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [AddPartitionsRequest, None], None, ), # 1 +) + + +class add_partitions_req_result(object): + """ + Attributes: + - success + - o1 + - o2 + - o3 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = AddPartitionsResult() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = InvalidObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = AlreadyExistsException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('add_partitions_req_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + 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) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33865,74 +32721,44 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(add_partitions_req_result) +add_partitions_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [AddPartitionsResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(add_partitions_pspec_result) -add_partitions_pspec_result.thrift_spec = ( - ( - 0, - TType.I32, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [AlreadyExistsException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class append_partition_args: +class append_partition_with_environment_context_args(object): """ Attributes: - db_name - tbl_name - part_vals + - environment_context """ + thrift_spec = None + - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - ): + def __init__(self, db_name = None, tbl_name = None, part_vals = None, environment_context = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_vals = part_vals + self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -33942,57 +32768,60 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1450, _size1447) = iprot.readListBegin() - for _i1451 in range(_size1447): - _elem1452 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1452) + (_etype1623, _size1620) = iprot.readListBegin() + for _i1624 in range(_size1620): + _elem1625 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1625) iprot.readListEnd() else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.environment_context = EnvironmentContext() + self.environment_context.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("append_partition_args") + oprot.writeStructBegin('append_partition_with_environment_context_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) + oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1453 in self.part_vals: - oprot.writeString(iter1453.encode("utf-8") if sys.version_info[0] == 2 else iter1453) + for iter1626 in self.part_vals: + oprot.writeString(iter1626.encode('utf-8') if sys.version_info[0] == 2 else iter1626) oprot.writeListEnd() oprot.writeFieldEnd() + if self.environment_context is not None: + oprot.writeFieldBegin('environment_context', TType.STRUCT, 4) + self.environment_context.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -34000,44 +32829,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(append_partition_with_environment_context_args) +append_partition_with_environment_context_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4 +) -all_structs.append(append_partition_args) -append_partition_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 -) - - -class append_partition_result: +class append_partition_with_environment_context_result(object): """ Attributes: - success @@ -34046,25 +32857,17 @@ class append_partition_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -34099,24 +32902,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("append_partition_result") + oprot.writeStructBegin('append_partition_with_environment_context_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -34126,68 +32930,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(append_partition_with_environment_context_result) +append_partition_with_environment_context_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(append_partition_result) -append_partition_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [AlreadyExistsException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class add_partitions_req_args: +class append_partition_req_args(object): """ Attributes: - - request + - appendPartitionsReq """ + thrift_spec = None - def __init__( - self, - request=None, - ): - self.request = request + + def __init__(self, appendPartitionsReq = None,): + self.appendPartitionsReq = appendPartitionsReq def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -34197,8 +32971,8 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.request = AddPartitionsRequest() - self.request.read(iprot) + self.appendPartitionsReq = AppendPartitionsRequest() + self.appendPartitionsReq.read(iprot) else: iprot.skip(ftype) else: @@ -34207,13 +32981,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partitions_req_args") - if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('append_partition_req_args') + if self.appendPartitionsReq is not None: + oprot.writeFieldBegin('appendPartitionsReq', TType.STRUCT, 1) + self.appendPartitionsReq.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -34222,30 +32997,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(add_partitions_req_args) -add_partitions_req_args.thrift_spec = ( +all_structs.append(append_partition_req_args) +append_partition_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [AddPartitionsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'appendPartitionsReq', [AppendPartitionsRequest, None], None, ), # 1 ) -class add_partitions_req_result: +class append_partition_req_result(object): """ Attributes: - success @@ -34254,25 +33022,17 @@ class add_partitions_req_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -34282,7 +33042,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AddPartitionsResult() + self.success = Partition() self.success.read(iprot) else: iprot.skip(ftype) @@ -34307,24 +33067,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_partitions_req_result") + oprot.writeStructBegin('append_partition_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -34334,77 +33095,42 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(append_partition_req_result) +append_partition_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(add_partitions_req_result) -add_partitions_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [AddPartitionsResult, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [AlreadyExistsException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class append_partition_with_environment_context_args: +class append_partition_by_name_args(object): """ Attributes: - db_name - tbl_name - - part_vals - - environment_context + - part_name """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - environment_context=None, - ): + + def __init__(self, db_name = None, tbl_name = None, part_name = None,): self.db_name = db_name self.tbl_name = tbl_name - self.part_vals = part_vals - self.environment_context = environment_context + self.part_name = part_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -34414,36 +33140,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.LIST: - self.part_vals = [] - (_etype1457, _size1454) = iprot.readListBegin() - for _i1458 in range(_size1454): - _elem1459 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1459) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.environment_context = EnvironmentContext() - self.environment_context.read(iprot) + if ftype == TType.STRING: + self.part_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -34452,28 +33159,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("append_partition_with_environment_context_args") + oprot.writeStructBegin('append_partition_by_name_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() - if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1460 in self.part_vals: - oprot.writeString(iter1460.encode("utf-8") if sys.version_info[0] == 2 else iter1460) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 4) - self.environment_context.write(oprot) + if self.part_name is not None: + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -34482,51 +33183,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(append_partition_by_name_args) +append_partition_by_name_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3 +) -all_structs.append(append_partition_with_environment_context_args) -append_partition_with_environment_context_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 4 -) - - -class append_partition_with_environment_context_result: +class append_partition_by_name_result(object): """ Attributes: - success @@ -34535,25 +33210,17 @@ class append_partition_with_environment_context_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -34588,24 +33255,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("append_partition_with_environment_context_result") + oprot.writeStructBegin('append_partition_by_name_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -34615,74 +33283,44 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(append_partition_by_name_result) +append_partition_by_name_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(append_partition_with_environment_context_result) -append_partition_with_environment_context_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [AlreadyExistsException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class append_partition_by_name_args: +class append_partition_by_name_with_environment_context_args(object): """ Attributes: - db_name - tbl_name - part_name + - environment_context """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_name=None, - ): + + def __init__(self, db_name = None, tbl_name = None, part_name = None, environment_context = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_name = part_name + self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -34692,23 +33330,23 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.part_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.environment_context = EnvironmentContext() + self.environment_context.read(iprot) else: iprot.skip(ftype) else: @@ -34717,21 +33355,26 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("append_partition_by_name_args") + oprot.writeStructBegin('append_partition_by_name_with_environment_context_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_name is not None: - oprot.writeFieldBegin("part_name", TType.STRING, 3) - oprot.writeString(self.part_name.encode("utf-8") if sys.version_info[0] == 2 else self.part_name) + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name) + oprot.writeFieldEnd() + if self.environment_context is not None: + oprot.writeFieldBegin('environment_context', TType.STRUCT, 4) + self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -34740,44 +33383,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(append_partition_by_name_with_environment_context_args) +append_partition_by_name_with_environment_context_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4 +) -all_structs.append(append_partition_by_name_args) -append_partition_by_name_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "part_name", - "UTF8", - None, - ), # 3 -) - - -class append_partition_by_name_result: +class append_partition_by_name_with_environment_context_result(object): """ Attributes: - success @@ -34786,25 +33411,17 @@ class append_partition_by_name_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -34839,24 +33456,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("append_partition_by_name_result") + oprot.writeStructBegin('append_partition_by_name_with_environment_context_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -34866,77 +33484,44 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(append_partition_by_name_with_environment_context_result) +append_partition_by_name_with_environment_context_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [AlreadyExistsException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) -all_structs.append(append_partition_by_name_result) -append_partition_by_name_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [AlreadyExistsException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class append_partition_by_name_with_environment_context_args: +class drop_partition_args(object): """ Attributes: - db_name - tbl_name - - part_name - - environment_context + - part_vals + - deleteData """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_name=None, - environment_context=None, - ): + + def __init__(self, db_name = None, tbl_name = None, part_vals = None, deleteData = None,): self.db_name = db_name self.tbl_name = tbl_name - self.part_name = part_name - self.environment_context = environment_context + self.part_vals = part_vals + self.deleteData = deleteData def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -34946,29 +33531,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.part_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.LIST: + self.part_vals = [] + (_etype1630, _size1627) = iprot.readListBegin() + for _i1631 in range(_size1627): + _elem1632 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1632) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.STRUCT: - self.environment_context = EnvironmentContext() - self.environment_context.read(iprot) + if ftype == TType.BOOL: + self.deleteData = iprot.readBool() else: iprot.skip(ftype) else: @@ -34977,25 +33560,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("append_partition_by_name_with_environment_context_args") + oprot.writeStructBegin('drop_partition_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() - if self.part_name is not None: - oprot.writeFieldBegin("part_name", TType.STRING, 3) - oprot.writeString(self.part_name.encode("utf-8") if sys.version_info[0] == 2 else self.part_name) + if self.part_vals is not None: + oprot.writeFieldBegin('part_vals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.part_vals)) + for iter1633 in self.part_vals: + oprot.writeString(iter1633.encode('utf-8') if sys.version_info[0] == 2 else iter1633) + oprot.writeListEnd() oprot.writeFieldEnd() - if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 4) - self.environment_context.write(oprot) + if self.deleteData is not None: + oprot.writeFieldBegin('deleteData', TType.BOOL, 4) + oprot.writeBool(self.deleteData) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35004,78 +33591,43 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_partition_args) +drop_partition_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.BOOL, 'deleteData', None, None, ), # 4 +) -all_structs.append(append_partition_by_name_with_environment_context_args) -append_partition_by_name_with_environment_context_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "part_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 4 -) - - -class append_partition_by_name_with_environment_context_result: +class drop_partition_result(object): """ Attributes: - success - o1 - o2 - - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 - self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -35084,24 +33636,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = Partition() - self.success.read(iprot) + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = InvalidObjectException.read(iprot) + self.o1 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = AlreadyExistsException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = MetaException.read(iprot) + self.o2 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -35110,26 +33656,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("append_partition_by_name_with_environment_context_result") + oprot.writeStructBegin('drop_partition_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + 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() @@ -35137,77 +33680,45 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_partition_result) +drop_partition_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(append_partition_by_name_with_environment_context_result) -append_partition_by_name_with_environment_context_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [AlreadyExistsException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class drop_partition_args: +class drop_partition_with_environment_context_args(object): """ Attributes: - db_name - tbl_name - part_vals - deleteData + - environment_context """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - deleteData=None, - ): + + def __init__(self, db_name = None, tbl_name = None, part_vals = None, deleteData = None, environment_context = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_vals = part_vals self.deleteData = deleteData + self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -35217,29 +33728,21 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1464, _size1461) = iprot.readListBegin() - for _i1465 in range(_size1461): - _elem1466 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1466) + (_etype1637, _size1634) = iprot.readListBegin() + for _i1638 in range(_size1634): + _elem1639 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1639) iprot.readListEnd() else: iprot.skip(ftype) @@ -35248,35 +33751,46 @@ def read(self, iprot): self.deleteData = iprot.readBool() else: iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.environment_context = EnvironmentContext() + self.environment_context.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partition_args") + oprot.writeStructBegin('drop_partition_with_environment_context_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) + oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1467 in self.part_vals: - oprot.writeString(iter1467.encode("utf-8") if sys.version_info[0] == 2 else iter1467) + for iter1640 in self.part_vals: + oprot.writeString(iter1640.encode('utf-8') if sys.version_info[0] == 2 else iter1640) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: - oprot.writeFieldBegin("deleteData", TType.BOOL, 4) + oprot.writeFieldBegin('deleteData', TType.BOOL, 4) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() + if self.environment_context is not None: + oprot.writeFieldBegin('environment_context', TType.STRUCT, 5) + self.environment_context.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35284,51 +33798,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_partition_with_environment_context_args) +drop_partition_with_environment_context_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.BOOL, 'deleteData', None, None, ), # 4 + (5, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 5 +) -all_structs.append(drop_partition_args) -drop_partition_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.BOOL, - "deleteData", - None, - None, - ), # 4 -) - - -class drop_partition_result: +class drop_partition_with_environment_context_result(object): """ Attributes: - success @@ -35336,23 +33826,16 @@ class drop_partition_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -35381,20 +33864,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partition_result") + oprot.writeStructBegin('drop_partition_with_environment_context_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -35404,73 +33888,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_partition_with_environment_context_result) +drop_partition_with_environment_context_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(drop_partition_result) -drop_partition_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class drop_partition_with_environment_context_args: +class drop_partition_req_args(object): """ Attributes: - - db_name - - tbl_name - - part_vals - - deleteData - - environment_context + - dropPartitionReq """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - deleteData=None, - environment_context=None, - ): - self.db_name = db_name - self.tbl_name = tbl_name - self.part_vals = part_vals - self.deleteData = deleteData - self.environment_context = environment_context + + def __init__(self, dropPartitionReq = None,): + self.dropPartitionReq = dropPartitionReq def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -35479,42 +33927,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.part_vals = [] - (_etype1471, _size1468) = iprot.readListBegin() - for _i1472 in range(_size1468): - _elem1473 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1473) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.BOOL: - self.deleteData = iprot.readBool() - else: - iprot.skip(ftype) - elif fid == 5: if ftype == TType.STRUCT: - self.environment_context = EnvironmentContext() - self.environment_context.read(iprot) + self.dropPartitionReq = DropPartitionRequest() + self.dropPartitionReq.read(iprot) else: iprot.skip(ftype) else: @@ -35523,32 +33938,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partition_with_environment_context_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) - oprot.writeFieldEnd() - if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1474 in self.part_vals: - oprot.writeString(iter1474.encode("utf-8") if sys.version_info[0] == 2 else iter1474) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.deleteData is not None: - oprot.writeFieldBegin("deleteData", TType.BOOL, 4) - oprot.writeBool(self.deleteData) - oprot.writeFieldEnd() - if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 5) - self.environment_context.write(oprot) + oprot.writeStructBegin('drop_partition_req_args') + if self.dropPartitionReq is not None: + oprot.writeFieldBegin('dropPartitionReq', TType.STRUCT, 1) + self.dropPartitionReq.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -35557,58 +33954,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_partition_req_args) +drop_partition_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'dropPartitionReq', [DropPartitionRequest, None], None, ), # 1 +) -all_structs.append(drop_partition_with_environment_context_args) -drop_partition_with_environment_context_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.BOOL, - "deleteData", - None, - None, - ), # 4 - ( - 5, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 5 -) - - -class drop_partition_with_environment_context_result: +class drop_partition_req_result(object): """ Attributes: - success @@ -35616,23 +33978,16 @@ class drop_partition_with_environment_context_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -35661,20 +34016,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partition_with_environment_context_result") + oprot.writeStructBegin('drop_partition_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -35684,43 +34040,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(drop_partition_req_result) +drop_partition_req_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(drop_partition_with_environment_context_result) -drop_partition_with_environment_context_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class drop_partition_by_name_args: +class drop_partition_by_name_args(object): """ Attributes: - db_name @@ -35729,25 +34066,17 @@ class drop_partition_by_name_args: - deleteData """ + thrift_spec = None + - def __init__( - self, - db_name=None, - tbl_name=None, - part_name=None, - deleteData=None, - ): + def __init__(self, db_name = None, tbl_name = None, part_name = None, deleteData = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_name = part_name self.deleteData = deleteData def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -35757,23 +34086,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.part_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -35787,24 +34110,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partition_by_name_args") + oprot.writeStructBegin('drop_partition_by_name_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_name is not None: - oprot.writeFieldBegin("part_name", TType.STRING, 3) - oprot.writeString(self.part_name.encode("utf-8") if sys.version_info[0] == 2 else self.part_name) + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name) oprot.writeFieldEnd() if self.deleteData is not None: - oprot.writeFieldBegin("deleteData", TType.BOOL, 4) + oprot.writeFieldBegin('deleteData', TType.BOOL, 4) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -35814,51 +34138,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_partition_by_name_args) drop_partition_by_name_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "part_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.BOOL, - "deleteData", - None, - None, - ), # 4 -) - - -class drop_partition_by_name_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'deleteData', None, None, ), # 4 +) + + +class drop_partition_by_name_result(object): """ Attributes: - success @@ -35866,23 +34165,16 @@ class drop_partition_by_name_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -35911,20 +34203,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partition_by_name_result") + oprot.writeStructBegin('drop_partition_by_name_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -35934,43 +34227,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_partition_by_name_result) drop_partition_by_name_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class drop_partition_by_name_with_environment_context_args: + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class drop_partition_by_name_with_environment_context_args(object): """ Attributes: - db_name @@ -35980,15 +34254,10 @@ class drop_partition_by_name_with_environment_context_args: - environment_context """ + thrift_spec = None + - def __init__( - self, - db_name=None, - tbl_name=None, - part_name=None, - deleteData=None, - environment_context=None, - ): + def __init__(self, db_name = None, tbl_name = None, part_name = None, deleteData = None, environment_context = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_name = part_name @@ -35996,11 +34265,7 @@ def __init__( self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -36010,23 +34275,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.part_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -36046,28 +34305,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partition_by_name_with_environment_context_args") + oprot.writeStructBegin('drop_partition_by_name_with_environment_context_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_name is not None: - oprot.writeFieldBegin("part_name", TType.STRING, 3) - oprot.writeString(self.part_name.encode("utf-8") if sys.version_info[0] == 2 else self.part_name) + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name) oprot.writeFieldEnd() if self.deleteData is not None: - oprot.writeFieldBegin("deleteData", TType.BOOL, 4) + oprot.writeFieldBegin('deleteData', TType.BOOL, 4) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 5) + oprot.writeFieldBegin('environment_context', TType.STRUCT, 5) self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36077,58 +34337,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_partition_by_name_with_environment_context_args) drop_partition_by_name_with_environment_context_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "part_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.BOOL, - "deleteData", - None, - None, - ), # 4 - ( - 5, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 5 -) - - -class drop_partition_by_name_with_environment_context_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'deleteData', None, None, ), # 4 + (5, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 5 +) + + +class drop_partition_by_name_with_environment_context_result(object): """ Attributes: - success @@ -36136,23 +34365,16 @@ class drop_partition_by_name_with_environment_context_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -36181,20 +34403,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partition_by_name_with_environment_context_result") + oprot.writeStructBegin('drop_partition_by_name_with_environment_context_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36204,61 +34427,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_partition_by_name_with_environment_context_result) drop_partition_by_name_with_environment_context_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class drop_partitions_req_args: + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class drop_partitions_req_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -36278,12 +34477,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partitions_req_args") + oprot.writeStructBegin('drop_partitions_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36293,30 +34493,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_partitions_req_args) drop_partitions_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [DropPartitionsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [DropPartitionsRequest, None], None, ), # 1 ) -class drop_partitions_req_result: +class drop_partitions_req_result(object): """ Attributes: - success @@ -36324,23 +34517,16 @@ class drop_partitions_req_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -36370,20 +34556,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_partitions_req_result") + oprot.writeStructBegin('drop_partitions_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36393,43 +34580,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_partitions_req_result) drop_partitions_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [DropPartitionsResult, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_partition_args: + (0, TType.STRUCT, 'success', [DropPartitionsResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class get_partition_args(object): """ Attributes: - db_name @@ -36437,23 +34605,16 @@ class get_partition_args: - part_vals """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - ): + + def __init__(self, db_name = None, tbl_name = None, part_vals = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_vals = part_vals def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -36463,29 +34624,21 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1478, _size1475) = iprot.readListBegin() - for _i1479 in range(_size1475): - _elem1480 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1480) + (_etype1644, _size1641) = iprot.readListBegin() + for _i1645 in range(_size1641): + _elem1646 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1646) iprot.readListEnd() else: iprot.skip(ftype) @@ -36495,23 +34648,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_args") + oprot.writeStructBegin('get_partition_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) + oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1481 in self.part_vals: - oprot.writeString(iter1481.encode("utf-8") if sys.version_info[0] == 2 else iter1481) + for iter1647 in self.part_vals: + oprot.writeString(iter1647.encode('utf-8') if sys.version_info[0] == 2 else iter1647) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36521,44 +34675,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partition_args) get_partition_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 -) - - -class get_partition_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class get_partition_result(object): """ Attributes: - success @@ -36566,23 +34701,16 @@ class get_partition_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -36612,20 +34740,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_result") + oprot.writeStructBegin('get_partition_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36635,61 +34764,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partition_result) get_partition_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partition_req_args: + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_partition_req_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -36709,12 +34814,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_req_args") + oprot.writeStructBegin('get_partition_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36724,30 +34830,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partition_req_args) get_partition_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetPartitionRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [GetPartitionRequest, None], None, ), # 1 ) -class get_partition_req_result: +class get_partition_req_result(object): """ Attributes: - success @@ -36755,23 +34854,16 @@ class get_partition_req_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -36801,20 +34893,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_req_result") + oprot.writeStructBegin('get_partition_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36824,43 +34917,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partition_req_result) get_partition_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetPartitionResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class exchange_partition_args: + (0, TType.STRUCT, 'success', [GetPartitionResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class exchange_partition_args(object): """ Attributes: - partitionSpecs @@ -36870,15 +34944,10 @@ class exchange_partition_args: - dest_table_name """ + thrift_spec = None - def __init__( - self, - partitionSpecs=None, - source_db=None, - source_table_name=None, - dest_db=None, - dest_table_name=None, - ): + + def __init__(self, partitionSpecs = None, source_db = None, source_table_name = None, dest_db = None, dest_table_name = None,): self.partitionSpecs = partitionSpecs self.source_db = source_db self.source_table_name = source_table_name @@ -36886,11 +34955,7 @@ def __init__( self.dest_table_name = dest_table_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -36901,48 +34966,32 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1483, _vtype1484, _size1482) = iprot.readMapBegin() - for _i1486 in range(_size1482): - _key1487 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val1488 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partitionSpecs[_key1487] = _val1488 + (_ktype1649, _vtype1650, _size1648) = iprot.readMapBegin() + for _i1652 in range(_size1648): + _key1653 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val1654 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partitionSpecs[_key1653] = _val1654 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.source_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.source_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.source_table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.source_table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.dest_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dest_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.dest_table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dest_table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -36951,33 +35000,34 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("exchange_partition_args") + oprot.writeStructBegin('exchange_partition_args') if self.partitionSpecs is not None: - oprot.writeFieldBegin("partitionSpecs", TType.MAP, 1) + oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter1489, viter1490 in self.partitionSpecs.items(): - oprot.writeString(kiter1489.encode("utf-8") if sys.version_info[0] == 2 else kiter1489) - oprot.writeString(viter1490.encode("utf-8") if sys.version_info[0] == 2 else viter1490) + for kiter1655, viter1656 in self.partitionSpecs.items(): + oprot.writeString(kiter1655.encode('utf-8') if sys.version_info[0] == 2 else kiter1655) + oprot.writeString(viter1656.encode('utf-8') if sys.version_info[0] == 2 else viter1656) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: - oprot.writeFieldBegin("source_db", TType.STRING, 2) - oprot.writeString(self.source_db.encode("utf-8") if sys.version_info[0] == 2 else self.source_db) + oprot.writeFieldBegin('source_db', TType.STRING, 2) + oprot.writeString(self.source_db.encode('utf-8') if sys.version_info[0] == 2 else self.source_db) oprot.writeFieldEnd() if self.source_table_name is not None: - oprot.writeFieldBegin("source_table_name", TType.STRING, 3) - oprot.writeString(self.source_table_name.encode("utf-8") if sys.version_info[0] == 2 else self.source_table_name) + oprot.writeFieldBegin('source_table_name', TType.STRING, 3) + oprot.writeString(self.source_table_name.encode('utf-8') if sys.version_info[0] == 2 else self.source_table_name) oprot.writeFieldEnd() if self.dest_db is not None: - oprot.writeFieldBegin("dest_db", TType.STRING, 4) - oprot.writeString(self.dest_db.encode("utf-8") if sys.version_info[0] == 2 else self.dest_db) + oprot.writeFieldBegin('dest_db', TType.STRING, 4) + oprot.writeString(self.dest_db.encode('utf-8') if sys.version_info[0] == 2 else self.dest_db) oprot.writeFieldEnd() if self.dest_table_name is not None: - oprot.writeFieldBegin("dest_table_name", TType.STRING, 5) - oprot.writeString(self.dest_table_name.encode("utf-8") if sys.version_info[0] == 2 else self.dest_table_name) + oprot.writeFieldBegin('dest_table_name', TType.STRING, 5) + oprot.writeString(self.dest_table_name.encode('utf-8') if sys.version_info[0] == 2 else self.dest_table_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -36986,58 +35036,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(exchange_partition_args) exchange_partition_args.thrift_spec = ( None, # 0 - ( - 1, - TType.MAP, - "partitionSpecs", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.STRING, - "source_db", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "source_table_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "dest_db", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "dest_table_name", - "UTF8", - None, - ), # 5 -) - - -class exchange_partition_result: + (1, TType.MAP, 'partitionSpecs', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.STRING, 'source_db', 'UTF8', None, ), # 2 + (3, TType.STRING, 'source_table_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'dest_db', 'UTF8', None, ), # 4 + (5, TType.STRING, 'dest_table_name', 'UTF8', None, ), # 5 +) + + +class exchange_partition_result(object): """ Attributes: - success @@ -37047,15 +35066,10 @@ class exchange_partition_result: - o4 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -37063,11 +35077,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -37107,28 +35117,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("exchange_partition_result") + oprot.writeStructBegin('exchange_partition_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -37138,57 +35149,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(exchange_partition_result) exchange_partition_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidObjectException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class exchange_partitions_args: + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class exchange_partitions_args(object): """ Attributes: - partitionSpecs @@ -37198,15 +35178,10 @@ class exchange_partitions_args: - dest_table_name """ + thrift_spec = None + - def __init__( - self, - partitionSpecs=None, - source_db=None, - source_table_name=None, - dest_db=None, - dest_table_name=None, - ): + def __init__(self, partitionSpecs = None, source_db = None, source_table_name = None, dest_db = None, dest_table_name = None,): self.partitionSpecs = partitionSpecs self.source_db = source_db self.source_table_name = source_table_name @@ -37214,11 +35189,7 @@ def __init__( self.dest_table_name = dest_table_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -37229,48 +35200,32 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype1492, _vtype1493, _size1491) = iprot.readMapBegin() - for _i1495 in range(_size1491): - _key1496 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val1497 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partitionSpecs[_key1496] = _val1497 + (_ktype1658, _vtype1659, _size1657) = iprot.readMapBegin() + for _i1661 in range(_size1657): + _key1662 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val1663 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partitionSpecs[_key1662] = _val1663 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.source_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.source_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.source_table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.source_table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.dest_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dest_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.dest_table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dest_table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -37279,33 +35234,34 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("exchange_partitions_args") + oprot.writeStructBegin('exchange_partitions_args') if self.partitionSpecs is not None: - oprot.writeFieldBegin("partitionSpecs", TType.MAP, 1) + oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter1498, viter1499 in self.partitionSpecs.items(): - oprot.writeString(kiter1498.encode("utf-8") if sys.version_info[0] == 2 else kiter1498) - oprot.writeString(viter1499.encode("utf-8") if sys.version_info[0] == 2 else viter1499) + for kiter1664, viter1665 in self.partitionSpecs.items(): + oprot.writeString(kiter1664.encode('utf-8') if sys.version_info[0] == 2 else kiter1664) + oprot.writeString(viter1665.encode('utf-8') if sys.version_info[0] == 2 else viter1665) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: - oprot.writeFieldBegin("source_db", TType.STRING, 2) - oprot.writeString(self.source_db.encode("utf-8") if sys.version_info[0] == 2 else self.source_db) + oprot.writeFieldBegin('source_db', TType.STRING, 2) + oprot.writeString(self.source_db.encode('utf-8') if sys.version_info[0] == 2 else self.source_db) oprot.writeFieldEnd() if self.source_table_name is not None: - oprot.writeFieldBegin("source_table_name", TType.STRING, 3) - oprot.writeString(self.source_table_name.encode("utf-8") if sys.version_info[0] == 2 else self.source_table_name) + oprot.writeFieldBegin('source_table_name', TType.STRING, 3) + oprot.writeString(self.source_table_name.encode('utf-8') if sys.version_info[0] == 2 else self.source_table_name) oprot.writeFieldEnd() if self.dest_db is not None: - oprot.writeFieldBegin("dest_db", TType.STRING, 4) - oprot.writeString(self.dest_db.encode("utf-8") if sys.version_info[0] == 2 else self.dest_db) + oprot.writeFieldBegin('dest_db', TType.STRING, 4) + oprot.writeString(self.dest_db.encode('utf-8') if sys.version_info[0] == 2 else self.dest_db) oprot.writeFieldEnd() if self.dest_table_name is not None: - oprot.writeFieldBegin("dest_table_name", TType.STRING, 5) - oprot.writeString(self.dest_table_name.encode("utf-8") if sys.version_info[0] == 2 else self.dest_table_name) + oprot.writeFieldBegin('dest_table_name', TType.STRING, 5) + oprot.writeString(self.dest_table_name.encode('utf-8') if sys.version_info[0] == 2 else self.dest_table_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -37314,58 +35270,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(exchange_partitions_args) exchange_partitions_args.thrift_spec = ( None, # 0 - ( - 1, - TType.MAP, - "partitionSpecs", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.STRING, - "source_db", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "source_table_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "dest_db", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "dest_table_name", - "UTF8", - None, - ), # 5 -) - - -class exchange_partitions_result: + (1, TType.MAP, 'partitionSpecs', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.STRING, 'source_db', 'UTF8', None, ), # 2 + (3, TType.STRING, 'source_table_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'dest_db', 'UTF8', None, ), # 4 + (5, TType.STRING, 'dest_table_name', 'UTF8', None, ), # 5 +) + + +class exchange_partitions_result(object): """ Attributes: - success @@ -37375,15 +35300,10 @@ class exchange_partitions_result: - o4 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -37391,11 +35311,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -37406,11 +35322,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1503, _size1500) = iprot.readListBegin() - for _i1504 in range(_size1500): - _elem1505 = Partition() - _elem1505.read(iprot) - self.success.append(_elem1505) + (_etype1669, _size1666) = iprot.readListBegin() + for _i1670 in range(_size1666): + _elem1671 = Partition() + _elem1671.read(iprot) + self.success.append(_elem1671) iprot.readListEnd() else: iprot.skip(ftype) @@ -37440,31 +35356,32 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("exchange_partitions_result") + oprot.writeStructBegin('exchange_partitions_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1506 in self.success: - iter1506.write(oprot) + for iter1672 in self.success: + iter1672.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -37474,57 +35391,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(exchange_partitions_result) exchange_partitions_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Partition, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidObjectException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class get_partition_with_auth_args: + (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class get_partition_with_auth_args(object): """ Attributes: - db_name @@ -37534,15 +35420,10 @@ class get_partition_with_auth_args: - group_names """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - user_name=None, - group_names=None, - ): + + def __init__(self, db_name = None, tbl_name = None, part_vals = None, user_name = None, group_names = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_vals = part_vals @@ -37550,11 +35431,7 @@ def __init__( self.group_names = group_names def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -37564,50 +35441,36 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1510, _size1507) = iprot.readListBegin() - for _i1511 in range(_size1507): - _elem1512 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1512) + (_etype1676, _size1673) = iprot.readListBegin() + for _i1677 in range(_size1673): + _elem1678 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1678) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.user_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype1516, _size1513) = iprot.readListBegin() - for _i1517 in range(_size1513): - _elem1518 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.group_names.append(_elem1518) + (_etype1682, _size1679) = iprot.readListBegin() + for _i1683 in range(_size1679): + _elem1684 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.group_names.append(_elem1684) iprot.readListEnd() else: iprot.skip(ftype) @@ -37617,34 +35480,35 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_with_auth_args") + oprot.writeStructBegin('get_partition_with_auth_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) + oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1519 in self.part_vals: - oprot.writeString(iter1519.encode("utf-8") if sys.version_info[0] == 2 else iter1519) + for iter1685 in self.part_vals: + oprot.writeString(iter1685.encode('utf-8') if sys.version_info[0] == 2 else iter1685) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: - oprot.writeFieldBegin("user_name", TType.STRING, 4) - oprot.writeString(self.user_name.encode("utf-8") if sys.version_info[0] == 2 else self.user_name) + oprot.writeFieldBegin('user_name', TType.STRING, 4) + oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name) oprot.writeFieldEnd() if self.group_names is not None: - oprot.writeFieldBegin("group_names", TType.LIST, 5) + oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1520 in self.group_names: - oprot.writeString(iter1520.encode("utf-8") if sys.version_info[0] == 2 else iter1520) + for iter1686 in self.group_names: + oprot.writeString(iter1686.encode('utf-8') if sys.version_info[0] == 2 else iter1686) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -37654,58 +35518,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partition_with_auth_args) get_partition_with_auth_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.STRING, - "user_name", - "UTF8", - None, - ), # 4 - ( - 5, - TType.LIST, - "group_names", - (TType.STRING, "UTF8", False), - None, - ), # 5 -) - - -class get_partition_with_auth_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.STRING, 'user_name', 'UTF8', None, ), # 4 + (5, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 5 +) + + +class get_partition_with_auth_result(object): """ Attributes: - success @@ -37713,23 +35546,16 @@ class get_partition_with_auth_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -37759,20 +35585,534 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_partition_with_auth_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + 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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_with_auth_result) +get_partition_with_auth_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_partition_by_name_args(object): + """ + Attributes: + - db_name + - tbl_name + - part_name + + """ + thrift_spec = None + + + def __init__(self, db_name = None, tbl_name = None, part_name = None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_name = part_name + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.part_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_partition_by_name_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.part_name is not None: + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_by_name_args) +get_partition_by_name_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3 +) + + +class get_partition_by_name_result(object): + """ + Attributes: + - success + - o1 + - o2 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = Partition() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_partition_by_name_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + 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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_by_name_result) +get_partition_by_name_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [Partition, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_partitions_args(object): + """ + Attributes: + - db_name + - tbl_name + - max_parts + + """ + thrift_spec = None + + + def __init__(self, db_name = None, tbl_name = None, max_parts = -1,): + self.db_name = db_name + self.tbl_name = tbl_name + self.max_parts = max_parts + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I16: + self.max_parts = iprot.readI16() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_partitions_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I16, 3) + oprot.writeI16(self.max_parts) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_args) +get_partitions_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.I16, 'max_parts', None, -1, ), # 3 +) + + +class get_partitions_result(object): + """ + Attributes: + - success + - o1 + - o2 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype1690, _size1687) = iprot.readListBegin() + for _i1691 in range(_size1687): + _elem1692 = Partition() + _elem1692.read(iprot) + self.success.append(_elem1692) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_partitions_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1693 in self.success: + iter1693.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + 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() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_result) +get_partitions_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class get_partitions_req_args(object): + """ + Attributes: + - req + + """ + thrift_spec = None + + + def __init__(self, req = None,): + self.req = req + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.req = PartitionsRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_partitions_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_req_args) +get_partitions_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [PartitionsRequest, None], None, ), # 1 +) + + +class get_partitions_req_result(object): + """ + Attributes: + - success + - o1 + - o2 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = PartitionsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_with_auth_result") + oprot.writeStructBegin('get_partitions_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -37782,67 +36122,45 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_req_result) +get_partitions_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PartitionsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(get_partition_with_auth_result) -get_partition_with_auth_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partition_by_name_args: +class get_partitions_with_auth_args(object): """ Attributes: - db_name - tbl_name - - part_name + - max_parts + - user_name + - group_names """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_name=None, - ): + + def __init__(self, db_name = None, tbl_name = None, max_parts = -1, user_name = None, group_names = None,): self.db_name = db_name self.tbl_name = tbl_name - self.part_name = part_name + self.max_parts = max_parts + self.user_name = user_name + self.group_names = group_names def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -37852,23 +36170,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: + if ftype == TType.I16: + self.max_parts = iprot.readI16() + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.STRING: - self.part_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.group_names = [] + (_etype1697, _size1694) = iprot.readListBegin() + for _i1698 in range(_size1694): + _elem1699 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.group_names.append(_elem1699) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -37877,21 +36204,33 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_by_name_args") + oprot.writeStructBegin('get_partitions_with_auth_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() - if self.part_name is not None: - oprot.writeFieldBegin("part_name", TType.STRING, 3) - oprot.writeString(self.part_name.encode("utf-8") if sys.version_info[0] == 2 else self.part_name) + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I16, 3) + oprot.writeI16(self.max_parts) + oprot.writeFieldEnd() + if self.user_name is not None: + oprot.writeFieldBegin('user_name', TType.STRING, 4) + oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name) + oprot.writeFieldEnd() + if self.group_names is not None: + oprot.writeFieldBegin('group_names', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.group_names)) + for iter1700 in self.group_names: + oprot.writeString(iter1700.encode('utf-8') if sys.version_info[0] == 2 else iter1700) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -37900,44 +36239,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_with_auth_args) +get_partitions_with_auth_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.I16, 'max_parts', None, -1, ), # 3 + (4, TType.STRING, 'user_name', 'UTF8', None, ), # 4 + (5, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 5 +) -all_structs.append(get_partition_by_name_args) -get_partition_by_name_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "part_name", - "UTF8", - None, - ), # 3 -) - - -class get_partition_by_name_result: +class get_partitions_with_auth_result(object): """ Attributes: - success @@ -37945,23 +36267,16 @@ class get_partition_by_name_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -37970,19 +36285,24 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = Partition() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1704, _size1701) = iprot.readListBegin() + for _i1705 in range(_size1701): + _elem1706 = Partition() + _elem1706.read(iprot) + self.success.append(_elem1706) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.o1 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) + self.o2 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -37991,20 +36311,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_by_name_result") + oprot.writeStructBegin('get_partitions_with_auth_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1707 in self.success: + iter1707.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38014,43 +36338,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_with_auth_result) +get_partitions_with_auth_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(get_partition_by_name_result) -get_partition_by_name_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Partition, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partitions_args: +class get_partitions_pspec_args(object): """ Attributes: - db_name @@ -38058,23 +36363,16 @@ class get_partitions_args: - max_parts """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - max_parts=-1, - ): + + def __init__(self, db_name = None, tbl_name = None, max_parts = -1,): self.db_name = db_name self.tbl_name = tbl_name self.max_parts = max_parts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -38084,21 +36382,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I16: - self.max_parts = iprot.readI16() + if ftype == TType.I32: + self.max_parts = iprot.readI32() else: iprot.skip(ftype) else: @@ -38107,21 +36401,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_args") + oprot.writeStructBegin('get_partitions_pspec_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.max_parts is not None: - oprot.writeFieldBegin("max_parts", TType.I16, 3) - oprot.writeI16(self.max_parts) + oprot.writeFieldBegin('max_parts', TType.I32, 3) + oprot.writeI32(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38130,44 +36425,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_pspec_args) +get_partitions_pspec_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.I32, 'max_parts', None, -1, ), # 3 +) -all_structs.append(get_partitions_args) -get_partitions_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I16, - "max_parts", - None, - -1, - ), # 3 -) - - -class get_partitions_result: +class get_partitions_pspec_result(object): """ Attributes: - success @@ -38175,23 +36451,16 @@ class get_partitions_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -38202,11 +36471,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1524, _size1521) = iprot.readListBegin() - for _i1525 in range(_size1521): - _elem1526 = Partition() - _elem1526.read(iprot) - self.success.append(_elem1526) + (_etype1711, _size1708) = iprot.readListBegin() + for _i1712 in range(_size1708): + _elem1713 = PartitionSpec() + _elem1713.read(iprot) + self.success.append(_elem1713) iprot.readListEnd() else: iprot.skip(ftype) @@ -38226,23 +36495,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_result") + oprot.writeStructBegin('get_partitions_pspec_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1527 in self.success: - iter1527.write(oprot) + for iter1714 in self.success: + iter1714.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38252,61 +36522,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_pspec_result) +get_partitions_pspec_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [PartitionSpec, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(get_partitions_result) -get_partitions_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Partition, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_partitions_req_args: +class get_partition_names_args(object): """ Attributes: - - req + - db_name + - tbl_name + - max_parts """ + thrift_spec = None - def __init__( - self, - req=None, - ): - self.req = req + + def __init__(self, db_name = None, tbl_name = None, max_parts = -1,): + self.db_name = db_name + self.tbl_name = tbl_name + self.max_parts = max_parts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -38315,9 +36565,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.req = PartitionsRequest() - self.req.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I16: + self.max_parts = iprot.readI16() else: iprot.skip(ftype) else: @@ -38326,13 +36585,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_req_args") - if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('get_partition_names_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I16, 3) + oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38341,30 +36609,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_partitions_req_args) -get_partitions_req_args.thrift_spec = ( +all_structs.append(get_partition_names_args) +get_partition_names_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [PartitionsRequest, None], - None, - ), # 1 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.I16, 'max_parts', None, -1, ), # 3 ) -class get_partitions_req_result: +class get_partition_names_result(object): """ Attributes: - success @@ -38372,23 +36635,16 @@ class get_partitions_req_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -38397,9 +36653,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = PartitionsResponse() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1718, _size1715) = iprot.readListBegin() + for _i1719 in range(_size1715): + _elem1720 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1720) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -38418,20 +36678,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_req_result") + oprot.writeStructBegin('get_partition_names_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1721 in self.success: + oprot.writeString(iter1721.encode('utf-8') if sys.version_info[0] == 2 else iter1721) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38441,73 +36705,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_names_result) +get_partition_names_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(get_partitions_req_result) -get_partitions_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [PartitionsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_partitions_with_auth_args: +class fetch_partition_names_req_args(object): """ Attributes: - - db_name - - tbl_name - - max_parts - - user_name - - group_names + - partitionReq """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - max_parts=-1, - user_name=None, - group_names=None, - ): - self.db_name = db_name - self.tbl_name = tbl_name - self.max_parts = max_parts - self.user_name = user_name - self.group_names = group_names + + def __init__(self, partitionReq = None,): + self.partitionReq = partitionReq def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -38516,43 +36744,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I16: - self.max_parts = iprot.readI16() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.user_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.LIST: - self.group_names = [] - (_etype1531, _size1528) = iprot.readListBegin() - for _i1532 in range(_size1528): - _elem1533 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.group_names.append(_elem1533) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.partitionReq = PartitionsRequest() + self.partitionReq.read(iprot) else: iprot.skip(ftype) else: @@ -38561,32 +36755,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_with_auth_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) - oprot.writeFieldEnd() - if self.max_parts is not None: - oprot.writeFieldBegin("max_parts", TType.I16, 3) - oprot.writeI16(self.max_parts) - oprot.writeFieldEnd() - if self.user_name is not None: - oprot.writeFieldBegin("user_name", TType.STRING, 4) - oprot.writeString(self.user_name.encode("utf-8") if sys.version_info[0] == 2 else self.user_name) - oprot.writeFieldEnd() - if self.group_names is not None: - oprot.writeFieldBegin("group_names", TType.LIST, 5) - oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1534 in self.group_names: - oprot.writeString(iter1534.encode("utf-8") if sys.version_info[0] == 2 else iter1534) - oprot.writeListEnd() + oprot.writeStructBegin('fetch_partition_names_req_args') + if self.partitionReq is not None: + oprot.writeFieldBegin('partitionReq', TType.STRUCT, 1) + self.partitionReq.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38595,58 +36771,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(fetch_partition_names_req_args) +fetch_partition_names_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'partitionReq', [PartitionsRequest, None], None, ), # 1 +) -all_structs.append(get_partitions_with_auth_args) -get_partitions_with_auth_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I16, - "max_parts", - None, - -1, - ), # 3 - ( - 4, - TType.STRING, - "user_name", - "UTF8", - None, - ), # 4 - ( - 5, - TType.LIST, - "group_names", - (TType.STRING, "UTF8", False), - None, - ), # 5 -) - - -class get_partitions_with_auth_result: +class fetch_partition_names_req_result(object): """ Attributes: - success @@ -38654,23 +36795,16 @@ class get_partitions_with_auth_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -38681,11 +36815,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1538, _size1535) = iprot.readListBegin() - for _i1539 in range(_size1535): - _elem1540 = Partition() - _elem1540.read(iprot) - self.success.append(_elem1540) + (_etype1725, _size1722) = iprot.readListBegin() + for _i1726 in range(_size1722): + _elem1727 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1727) iprot.readListEnd() else: iprot.skip(ftype) @@ -38705,23 +36838,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_with_auth_result") + oprot.writeStructBegin('fetch_partition_names_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1541 in self.success: - iter1541.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1728 in self.success: + oprot.writeString(iter1728.encode('utf-8') if sys.version_info[0] == 2 else iter1728) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38731,67 +36865,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(fetch_partition_names_req_result) +fetch_partition_names_req_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(get_partitions_with_auth_result) -get_partitions_with_auth_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Partition, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_partitions_pspec_args: +class get_partition_values_args(object): """ Attributes: - - db_name - - tbl_name - - max_parts + - request """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - max_parts=-1, - ): - self.db_name = db_name - self.tbl_name = tbl_name - self.max_parts = max_parts + + def __init__(self, request = None,): + self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -38800,22 +36904,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I32: - self.max_parts = iprot.readI32() + if ftype == TType.STRUCT: + self.request = PartitionValuesRequest() + self.request.read(iprot) else: iprot.skip(ftype) else: @@ -38824,21 +36915,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_pspec_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) - oprot.writeFieldEnd() - if self.max_parts is not None: - oprot.writeFieldBegin("max_parts", TType.I32, 3) - oprot.writeI32(self.max_parts) + oprot.writeStructBegin('get_partition_values_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -38847,44 +36931,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_values_args) +get_partition_values_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [PartitionValuesRequest, None], None, ), # 1 +) -all_structs.append(get_partitions_pspec_args) -get_partitions_pspec_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I32, - "max_parts", - None, - -1, - ), # 3 -) - - -class get_partitions_pspec_result: +class get_partition_values_result(object): """ Attributes: - success @@ -38892,23 +36955,16 @@ class get_partitions_pspec_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -38917,24 +36973,19 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1545, _size1542) = iprot.readListBegin() - for _i1546 in range(_size1542): - _elem1547 = PartitionSpec() - _elem1547.read(iprot) - self.success.append(_elem1547) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = PartitionValuesResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException.read(iprot) + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException.read(iprot) + self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -38943,23 +36994,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_pspec_result") + oprot.writeStructBegin('get_partition_values_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1548 in self.success: - iter1548.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -38969,67 +37018,43 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_values_result) +get_partition_values_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PartitionValuesResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partitions_pspec_result) -get_partitions_pspec_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [PartitionSpec, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_partition_names_args: +class get_partitions_ps_args(object): """ Attributes: - db_name - tbl_name + - part_vals - max_parts """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - max_parts=-1, - ): + + def __init__(self, db_name = None, tbl_name = None, part_vals = None, max_parts = -1,): self.db_name = db_name self.tbl_name = tbl_name + self.part_vals = part_vals self.max_parts = max_parts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -39039,19 +37064,25 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: + if ftype == TType.LIST: + self.part_vals = [] + (_etype1732, _size1729) = iprot.readListBegin() + for _i1733 in range(_size1729): + _elem1734 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1734) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.I16: self.max_parts = iprot.readI16() else: @@ -39062,20 +37093,28 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_names_args") + oprot.writeStructBegin('get_partitions_ps_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.part_vals is not None: + oprot.writeFieldBegin('part_vals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.part_vals)) + for iter1735 in self.part_vals: + oprot.writeString(iter1735.encode('utf-8') if sys.version_info[0] == 2 else iter1735) + oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: - oprot.writeFieldBegin("max_parts", TType.I16, 3) + oprot.writeFieldBegin('max_parts', TType.I16, 4) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39085,44 +37124,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_ps_args) +get_partitions_ps_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.I16, 'max_parts', None, -1, ), # 4 +) -all_structs.append(get_partition_names_args) -get_partition_names_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I16, - "max_parts", - None, - -1, - ), # 3 -) - - -class get_partition_names_result: +class get_partitions_ps_result(object): """ Attributes: - success @@ -39130,23 +37151,16 @@ class get_partition_names_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -39157,25 +37171,22 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1552, _size1549) = iprot.readListBegin() - for _i1553 in range(_size1549): - _elem1554 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1554) + (_etype1739, _size1736) = iprot.readListBegin() + for _i1740 in range(_size1736): + _elem1741 = Partition() + _elem1741.read(iprot) + self.success.append(_elem1741) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException.read(iprot) + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException.read(iprot) + self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -39184,23 +37195,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_names_result") + oprot.writeStructBegin('get_partitions_ps_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1555 in self.success: - oprot.writeString(iter1555.encode("utf-8") if sys.version_info[0] == 2 else iter1555) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1742 in self.success: + iter1742.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39210,61 +37222,47 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_ps_result) +get_partitions_ps_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partition_names_result) -get_partition_names_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_partition_values_args: +class get_partitions_ps_with_auth_args(object): """ Attributes: - - request + - db_name + - tbl_name + - part_vals + - max_parts + - user_name + - group_names """ + thrift_spec = None - def __init__( - self, - request=None, - ): - self.request = request + + def __init__(self, db_name = None, tbl_name = None, part_vals = None, max_parts = -1, user_name = None, group_names = None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_vals = part_vals + self.max_parts = max_parts + self.user_name = user_name + self.group_names = group_names def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -39273,9 +37271,43 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.request = PartitionValuesRequest() - self.request.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.part_vals = [] + (_etype1746, _size1743) = iprot.readListBegin() + for _i1747 in range(_size1743): + _elem1748 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1748) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I16: + self.max_parts = iprot.readI16() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.user_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.group_names = [] + (_etype1752, _size1749) = iprot.readListBegin() + for _i1753 in range(_size1749): + _elem1754 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.group_names.append(_elem1754) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -39284,13 +37316,40 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_values_args") - if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) - self.request.write(oprot) + oprot.writeStructBegin('get_partitions_ps_with_auth_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.part_vals is not None: + oprot.writeFieldBegin('part_vals', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.part_vals)) + for iter1755 in self.part_vals: + oprot.writeString(iter1755.encode('utf-8') if sys.version_info[0] == 2 else iter1755) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I16, 4) + oprot.writeI16(self.max_parts) + oprot.writeFieldEnd() + if self.user_name is not None: + oprot.writeFieldBegin('user_name', TType.STRING, 5) + oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name) + oprot.writeFieldEnd() + if self.group_names is not None: + oprot.writeFieldBegin('group_names', TType.LIST, 6) + oprot.writeListBegin(TType.STRING, len(self.group_names)) + for iter1756 in self.group_names: + oprot.writeString(iter1756.encode('utf-8') if sys.version_info[0] == 2 else iter1756) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39299,30 +37358,28 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_partition_values_args) -get_partition_values_args.thrift_spec = ( +all_structs.append(get_partitions_ps_with_auth_args) +get_partitions_ps_with_auth_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [PartitionValuesRequest, None], - None, - ), # 1 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.I16, 'max_parts', None, -1, ), # 4 + (5, TType.STRING, 'user_name', 'UTF8', None, ), # 5 + (6, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 6 ) -class get_partition_values_result: +class get_partitions_ps_with_auth_result(object): """ Attributes: - success @@ -39330,23 +37387,16 @@ class get_partition_values_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -39355,19 +37405,24 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = PartitionValuesResponse() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1760, _size1757) = iprot.readListBegin() + for _i1761 in range(_size1757): + _elem1762 = Partition() + _elem1762.read(iprot) + self.success.append(_elem1762) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.o1 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) + self.o2 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -39376,20 +37431,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_values_result") + oprot.writeStructBegin('get_partitions_ps_with_auth_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1763 in self.success: + iter1763.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39399,70 +37458,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_ps_with_auth_result) +get_partitions_ps_with_auth_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) -all_structs.append(get_partition_values_result) -get_partition_values_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [PartitionValuesResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partitions_ps_args: +class get_partitions_ps_with_auth_req_args(object): """ Attributes: - - db_name - - tbl_name - - part_vals - - max_parts + - req """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - max_parts=-1, - ): - self.db_name = db_name - self.tbl_name = tbl_name - self.part_vals = part_vals - self.max_parts = max_parts + + def __init__(self, req = None,): + self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -39471,36 +37497,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.part_vals = [] - (_etype1559, _size1556) = iprot.readListBegin() - for _i1560 in range(_size1556): - _elem1561 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1561) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I16: - self.max_parts = iprot.readI16() + if ftype == TType.STRUCT: + self.req = GetPartitionsPsWithAuthRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -39509,28 +37508,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_ps_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) - oprot.writeFieldEnd() - if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1562 in self.part_vals: - oprot.writeString(iter1562.encode("utf-8") if sys.version_info[0] == 2 else iter1562) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.max_parts is not None: - oprot.writeFieldBegin("max_parts", TType.I16, 4) - oprot.writeI16(self.max_parts) + oprot.writeStructBegin('get_partitions_ps_with_auth_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39539,51 +37524,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_ps_with_auth_req_args) +get_partitions_ps_with_auth_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [GetPartitionsPsWithAuthRequest, None], None, ), # 1 +) -all_structs.append(get_partitions_ps_args) -get_partitions_ps_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.I16, - "max_parts", - None, - -1, - ), # 4 -) - - -class get_partitions_ps_result: +class get_partitions_ps_with_auth_req_result(object): """ Attributes: - success @@ -39591,23 +37548,16 @@ class get_partitions_ps_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -39616,14 +37566,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1566, _size1563) = iprot.readListBegin() - for _i1567 in range(_size1563): - _elem1568 = Partition() - _elem1568.read(iprot) - self.success.append(_elem1568) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = GetPartitionsPsWithAuthResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -39642,23 +37587,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_ps_result") + oprot.writeStructBegin('get_partitions_ps_with_auth_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1569 in self.success: - iter1569.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39668,76 +37611,43 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_ps_with_auth_req_result) +get_partitions_ps_with_auth_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetPartitionsPsWithAuthResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partitions_ps_result) -get_partitions_ps_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Partition, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partitions_ps_with_auth_args: +class get_partition_names_ps_args(object): """ Attributes: - db_name - tbl_name - part_vals - max_parts - - user_name - - group_names """ + thrift_spec = None + - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - max_parts=-1, - user_name=None, - group_names=None, - ): + def __init__(self, db_name = None, tbl_name = None, part_vals = None, max_parts = -1,): self.db_name = db_name self.tbl_name = tbl_name self.part_vals = part_vals self.max_parts = max_parts - self.user_name = user_name - self.group_names = group_names def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -39747,29 +37657,21 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1573, _size1570) = iprot.readListBegin() - for _i1574 in range(_size1570): - _elem1575 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1575) + (_etype1767, _size1764) = iprot.readListBegin() + for _i1768 in range(_size1764): + _elem1769 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1769) iprot.readListEnd() else: iprot.skip(ftype) @@ -39778,67 +37680,36 @@ def read(self, iprot): self.max_parts = iprot.readI16() else: iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.user_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.LIST: - self.group_names = [] - (_etype1579, _size1576) = iprot.readListBegin() - for _i1580 in range(_size1576): - _elem1581 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.group_names.append(_elem1581) - iprot.readListEnd() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_ps_with_auth_args") + oprot.writeStructBegin('get_partition_names_ps_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) + oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1582 in self.part_vals: - oprot.writeString(iter1582.encode("utf-8") if sys.version_info[0] == 2 else iter1582) + for iter1770 in self.part_vals: + oprot.writeString(iter1770.encode('utf-8') if sys.version_info[0] == 2 else iter1770) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: - oprot.writeFieldBegin("max_parts", TType.I16, 4) + oprot.writeFieldBegin('max_parts', TType.I16, 4) oprot.writeI16(self.max_parts) oprot.writeFieldEnd() - if self.user_name is not None: - oprot.writeFieldBegin("user_name", TType.STRING, 5) - oprot.writeString(self.user_name.encode("utf-8") if sys.version_info[0] == 2 else self.user_name) - oprot.writeFieldEnd() - if self.group_names is not None: - oprot.writeFieldBegin("group_names", TType.LIST, 6) - oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1583 in self.group_names: - oprot.writeString(iter1583.encode("utf-8") if sys.version_info[0] == 2 else iter1583) - oprot.writeListEnd() - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -39846,65 +37717,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_names_ps_args) +get_partition_names_ps_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.I16, 'max_parts', None, -1, ), # 4 +) -all_structs.append(get_partitions_ps_with_auth_args) -get_partitions_ps_with_auth_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.I16, - "max_parts", - None, - -1, - ), # 4 - ( - 5, - TType.STRING, - "user_name", - "UTF8", - None, - ), # 5 - ( - 6, - TType.LIST, - "group_names", - (TType.STRING, "UTF8", False), - None, - ), # 6 -) - - -class get_partitions_ps_with_auth_result: +class get_partition_names_ps_result(object): """ Attributes: - success @@ -39912,23 +37744,16 @@ class get_partitions_ps_with_auth_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -39939,22 +37764,21 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1587, _size1584) = iprot.readListBegin() - for _i1588 in range(_size1584): - _elem1589 = Partition() - _elem1589.read(iprot) - self.success.append(_elem1589) + (_etype1774, _size1771) = iprot.readListBegin() + for _i1775 in range(_size1771): + _elem1776 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1776) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = NoSuchObjectException.read(iprot) + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = MetaException.read(iprot) + self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -39963,23 +37787,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_ps_with_auth_result") + oprot.writeStructBegin('get_partition_names_ps_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1590 in self.success: - iter1590.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter1777 in self.success: + oprot.writeString(iter1777.encode('utf-8') if sys.version_info[0] == 2 else iter1777) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -39989,61 +37814,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_names_ps_result) +get_partition_names_ps_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partitions_ps_with_auth_result) -get_partitions_ps_with_auth_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Partition, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_partitions_ps_with_auth_req_args: +class get_partition_names_ps_req_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -40053,7 +37854,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetPartitionsPsWithAuthRequest() + self.req = GetPartitionNamesPsRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -40063,12 +37864,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_ps_with_auth_req_args") + oprot.writeStructBegin('get_partition_names_ps_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40078,30 +37880,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_partitions_ps_with_auth_req_args) -get_partitions_ps_with_auth_req_args.thrift_spec = ( +all_structs.append(get_partition_names_ps_req_args) +get_partition_names_ps_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetPartitionsPsWithAuthRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [GetPartitionNamesPsRequest, None], None, ), # 1 ) -class get_partitions_ps_with_auth_req_result: +class get_partition_names_ps_req_result(object): """ Attributes: - success @@ -40109,23 +37904,16 @@ class get_partitions_ps_with_auth_req_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -40135,7 +37923,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetPartitionsPsWithAuthResponse() + self.success = GetPartitionNamesPsResponse() self.success.read(iprot) else: iprot.skip(ftype) @@ -40155,20 +37943,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_ps_with_auth_req_result") + oprot.writeStructBegin('get_partition_names_ps_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40178,70 +37967,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_names_ps_req_result) +get_partition_names_ps_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetPartitionNamesPsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partitions_ps_with_auth_req_result) -get_partitions_ps_with_auth_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetPartitionsPsWithAuthResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partition_names_ps_args: +class get_partition_names_req_args(object): """ Attributes: - - db_name - - tbl_name - - part_vals - - max_parts + - req """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - max_parts=-1, - ): - self.db_name = db_name - self.tbl_name = tbl_name - self.part_vals = part_vals - self.max_parts = max_parts + + def __init__(self, req = None,): + self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -40250,36 +38006,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.part_vals = [] - (_etype1594, _size1591) = iprot.readListBegin() - for _i1595 in range(_size1591): - _elem1596 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1596) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I16: - self.max_parts = iprot.readI16() + if ftype == TType.STRUCT: + self.req = PartitionsByExprRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -40288,28 +38017,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_names_ps_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) - oprot.writeFieldEnd() - if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1597 in self.part_vals: - oprot.writeString(iter1597.encode("utf-8") if sys.version_info[0] == 2 else iter1597) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.max_parts is not None: - oprot.writeFieldBegin("max_parts", TType.I16, 4) - oprot.writeI16(self.max_parts) + oprot.writeStructBegin('get_partition_names_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40318,51 +38033,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_names_req_args) +get_partition_names_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [PartitionsByExprRequest, None], None, ), # 1 +) -all_structs.append(get_partition_names_ps_args) -get_partition_names_ps_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.I16, - "max_parts", - None, - -1, - ), # 4 -) - - -class get_partition_names_ps_result: +class get_partition_names_req_result(object): """ Attributes: - success @@ -40370,23 +38057,16 @@ class get_partition_names_ps_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -40397,14 +38077,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1601, _size1598) = iprot.readListBegin() - for _i1602 in range(_size1598): - _elem1603 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1603) + (_etype1781, _size1778) = iprot.readListBegin() + for _i1782 in range(_size1778): + _elem1783 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1783) iprot.readListEnd() else: iprot.skip(ftype) @@ -40424,23 +38100,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_names_ps_result") + oprot.writeStructBegin('get_partition_names_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1604 in self.success: - oprot.writeString(iter1604.encode("utf-8") if sys.version_info[0] == 2 else iter1604) + for iter1784 in self.success: + oprot.writeString(iter1784.encode('utf-8') if sys.version_info[0] == 2 else iter1784) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40450,61 +38127,43 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partition_names_req_result) +get_partition_names_req_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partition_names_ps_result) -get_partition_names_ps_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partition_names_ps_req_args: +class get_partitions_by_filter_args(object): """ Attributes: - - req + - db_name + - tbl_name + - filter + - max_parts """ + thrift_spec = None - def __init__( - self, - req=None, - ): - self.req = req + + def __init__(self, db_name = None, tbl_name = None, filter = None, max_parts = -1,): + self.db_name = db_name + self.tbl_name = tbl_name + self.filter = filter + self.max_parts = max_parts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -40513,9 +38172,23 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.req = GetPartitionNamesPsRequest() - self.req.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.filter = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I16: + self.max_parts = iprot.readI16() else: iprot.skip(ftype) else: @@ -40524,13 +38197,26 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_names_ps_req_args") - if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('get_partitions_by_filter_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.filter is not None: + oprot.writeFieldBegin('filter', TType.STRING, 3) + oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter) + oprot.writeFieldEnd() + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I16, 4) + oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40539,30 +38225,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_partition_names_ps_req_args) -get_partition_names_ps_req_args.thrift_spec = ( +all_structs.append(get_partitions_by_filter_args) +get_partitions_by_filter_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetPartitionNamesPsRequest, None], - None, - ), # 1 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'filter', 'UTF8', None, ), # 3 + (4, TType.I16, 'max_parts', None, -1, ), # 4 ) -class get_partition_names_ps_req_result: +class get_partitions_by_filter_result(object): """ Attributes: - success @@ -40570,23 +38252,16 @@ class get_partition_names_ps_req_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -40595,9 +38270,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = GetPartitionNamesPsResponse() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1788, _size1785) = iprot.readListBegin() + for _i1789 in range(_size1785): + _elem1790 = Partition() + _elem1790.read(iprot) + self.success.append(_elem1790) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -40616,20 +38296,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_names_ps_req_result") + oprot.writeStructBegin('get_partitions_by_filter_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1791 in self.success: + iter1791.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40639,61 +38323,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_by_filter_result) +get_partitions_by_filter_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partition_names_ps_req_result) -get_partition_names_ps_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetPartitionNamesPsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partition_names_req_args: +class get_partitions_by_filter_req_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -40703,7 +38363,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = PartitionsByExprRequest() + self.req = GetPartitionsByFilterRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -40713,12 +38373,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_names_req_args") + oprot.writeStructBegin('get_partitions_by_filter_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40728,30 +38389,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_partition_names_req_args) -get_partition_names_req_args.thrift_spec = ( +all_structs.append(get_partitions_by_filter_req_args) +get_partitions_by_filter_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [PartitionsByExprRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [GetPartitionsByFilterRequest, None], None, ), # 1 ) -class get_partition_names_req_result: +class get_partitions_by_filter_req_result(object): """ Attributes: - success @@ -40759,23 +38413,16 @@ class get_partition_names_req_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -40786,14 +38433,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1608, _size1605) = iprot.readListBegin() - for _i1609 in range(_size1605): - _elem1610 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1610) + (_etype1795, _size1792) = iprot.readListBegin() + for _i1796 in range(_size1792): + _elem1797 = Partition() + _elem1797.read(iprot) + self.success.append(_elem1797) iprot.readListEnd() else: iprot.skip(ftype) @@ -40813,23 +38457,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_names_req_result") + oprot.writeStructBegin('get_partitions_by_filter_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1611 in self.success: - oprot.writeString(iter1611.encode("utf-8") if sys.version_info[0] == 2 else iter1611) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1798 in self.success: + iter1798.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -40839,43 +38484,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_by_filter_req_result) +get_partitions_by_filter_req_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partition_names_req_result) -get_partition_names_req_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partitions_by_filter_args: +class get_part_specs_by_filter_args(object): """ Attributes: - db_name @@ -40884,25 +38510,17 @@ class get_partitions_by_filter_args: - max_parts """ + thrift_spec = None + - def __init__( - self, - db_name=None, - tbl_name=None, - filter=None, - max_parts=-1, - ): + def __init__(self, db_name = None, tbl_name = None, filter = None, max_parts = -1,): self.db_name = db_name self.tbl_name = tbl_name self.filter = filter self.max_parts = max_parts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -40912,28 +38530,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.filter = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.filter = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.I16: - self.max_parts = iprot.readI16() + if ftype == TType.I32: + self.max_parts = iprot.readI32() else: iprot.skip(ftype) else: @@ -40942,25 +38554,26 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_by_filter_args") + oprot.writeStructBegin('get_part_specs_by_filter_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.filter is not None: - oprot.writeFieldBegin("filter", TType.STRING, 3) - oprot.writeString(self.filter.encode("utf-8") if sys.version_info[0] == 2 else self.filter) + oprot.writeFieldBegin('filter', TType.STRING, 3) + oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter) oprot.writeFieldEnd() if self.max_parts is not None: - oprot.writeFieldBegin("max_parts", TType.I16, 4) - oprot.writeI16(self.max_parts) + oprot.writeFieldBegin('max_parts', TType.I32, 4) + oprot.writeI32(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -40969,51 +38582,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_part_specs_by_filter_args) +get_part_specs_by_filter_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'filter', 'UTF8', None, ), # 3 + (4, TType.I32, 'max_parts', None, -1, ), # 4 +) -all_structs.append(get_partitions_by_filter_args) -get_partitions_by_filter_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "filter", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I16, - "max_parts", - None, - -1, - ), # 4 -) - - -class get_partitions_by_filter_result: +class get_part_specs_by_filter_result(object): """ Attributes: - success @@ -41021,23 +38609,16 @@ class get_partitions_by_filter_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -41048,11 +38629,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1615, _size1612) = iprot.readListBegin() - for _i1616 in range(_size1612): - _elem1617 = Partition() - _elem1617.read(iprot) - self.success.append(_elem1617) + (_etype1802, _size1799) = iprot.readListBegin() + for _i1803 in range(_size1799): + _elem1804 = PartitionSpec() + _elem1804.read(iprot) + self.success.append(_elem1804) iprot.readListEnd() else: iprot.skip(ftype) @@ -41072,23 +38653,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_by_filter_result") + oprot.writeStructBegin('get_part_specs_by_filter_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1618 in self.success: - iter1618.write(oprot) + for iter1805 in self.success: + iter1805.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -41098,70 +38680,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_part_specs_by_filter_result) +get_part_specs_by_filter_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [PartitionSpec, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partitions_by_filter_result) -get_partitions_by_filter_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Partition, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_part_specs_by_filter_args: +class get_partitions_by_expr_args(object): """ Attributes: - - db_name - - tbl_name - - filter - - max_parts + - req """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - filter=None, - max_parts=-1, - ): - self.db_name = db_name - self.tbl_name = tbl_name - self.filter = filter - self.max_parts = max_parts + + def __init__(self, req = None,): + self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -41170,29 +38719,88 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.STRUCT: + self.req = PartitionsByExprRequest() + self.req.read(iprot) else: iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_partitions_by_expr_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_by_expr_args) +get_partitions_by_expr_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [PartitionsByExprRequest, None], None, ), # 1 +) + + +class get_partitions_by_expr_result(object): + """ + Attributes: + - success + - o1 + - o2 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = PartitionsByExprResult() + self.success.read(iprot) else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.filter = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I32: - self.max_parts = iprot.readI32() + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -41201,25 +38809,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_part_specs_by_filter_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeStructBegin('get_partitions_by_expr_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() - if self.filter is not None: - oprot.writeFieldBegin("filter", TType.STRING, 3) - oprot.writeString(self.filter.encode("utf-8") if sys.version_info[0] == 2 else self.filter) + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) oprot.writeFieldEnd() - if self.max_parts is not None: - oprot.writeFieldBegin("max_parts", TType.I32, 4) - oprot.writeI32(self.max_parts) + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -41228,51 +38833,89 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_by_expr_result) +get_partitions_by_expr_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PartitionsByExprResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_part_specs_by_filter_args) -get_part_specs_by_filter_args.thrift_spec = ( +class get_partitions_spec_by_expr_args(object): + """ + Attributes: + - req + + """ + thrift_spec = None + + + def __init__(self, req = None,): + self.req = req + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.req = PartitionsByExprRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_partitions_spec_by_expr_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_spec_by_expr_args) +get_partitions_spec_by_expr_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "filter", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "max_parts", - None, - -1, - ), # 4 -) - - -class get_part_specs_by_filter_result: + (1, TType.STRUCT, 'req', [PartitionsByExprRequest, None], None, ), # 1 +) + + +class get_partitions_spec_by_expr_result(object): """ Attributes: - success @@ -41280,23 +38923,16 @@ class get_part_specs_by_filter_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -41305,14 +38941,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1622, _size1619) = iprot.readListBegin() - for _i1623 in range(_size1619): - _elem1624 = PartitionSpec() - _elem1624.read(iprot) - self.success.append(_elem1624) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = PartitionsSpecByExprResult() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -41331,23 +38962,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_part_specs_by_filter_result") + oprot.writeStructBegin('get_partitions_spec_by_expr_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1625 in self.success: - iter1625.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -41357,61 +38986,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_spec_by_expr_result) +get_partitions_spec_by_expr_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PartitionsSpecByExprResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_part_specs_by_filter_result) -get_part_specs_by_filter_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [PartitionSpec, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partitions_by_expr_args: +class get_num_partitions_by_filter_args(object): """ Attributes: - - req + - db_name + - tbl_name + - filter """ + thrift_spec = None - def __init__( - self, - req=None, - ): - self.req = req + + def __init__(self, db_name = None, tbl_name = None, filter = None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.filter = filter def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -41420,9 +39029,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.req = PartitionsByExprRequest() - self.req.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.filter = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -41431,13 +39049,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_by_expr_args") - if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('get_num_partitions_by_filter_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.filter is not None: + oprot.writeFieldBegin('filter', TType.STRING, 3) + oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -41446,30 +39073,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_partitions_by_expr_args) -get_partitions_by_expr_args.thrift_spec = ( +all_structs.append(get_num_partitions_by_filter_args) +get_num_partitions_by_filter_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [PartitionsByExprRequest, None], - None, - ), # 1 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'filter', 'UTF8', None, ), # 3 ) -class get_partitions_by_expr_result: +class get_num_partitions_by_filter_result(object): """ Attributes: - success @@ -41477,23 +39099,16 @@ class get_partitions_by_expr_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -41502,9 +39117,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = PartitionsByExprResult() - self.success.read(iprot) + if ftype == TType.I32: + self.success = iprot.readI32() else: iprot.skip(ftype) elif fid == 1: @@ -41523,20 +39137,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_by_expr_result") + oprot.writeStructBegin('get_num_partitions_by_filter_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.I32, 0) + oprot.writeI32(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -41546,61 +39161,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_num_partitions_by_filter_result) +get_num_partitions_by_filter_result.thrift_spec = ( + (0, TType.I32, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partitions_by_expr_result) -get_partitions_by_expr_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [PartitionsByExprResult, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partitions_spec_by_expr_args: +class get_partitions_by_names_args(object): """ Attributes: - - req + - db_name + - tbl_name + - names """ + thrift_spec = None - def __init__( - self, - req=None, - ): - self.req = req + + def __init__(self, db_name = None, tbl_name = None, names = None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.names = names def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -41609,9 +39204,23 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.req = PartitionsByExprRequest() - self.req.read(iprot) + if ftype == TType.STRING: + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.names = [] + (_etype1809, _size1806) = iprot.readListBegin() + for _i1810 in range(_size1806): + _elem1811 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.names.append(_elem1811) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -41620,13 +39229,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_spec_by_expr_args") - if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('get_partitions_by_names_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.names is not None: + oprot.writeFieldBegin('names', TType.LIST, 3) + oprot.writeListBegin(TType.STRING, len(self.names)) + for iter1812 in self.names: + oprot.writeString(iter1812.encode('utf-8') if sys.version_info[0] == 2 else iter1812) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -41635,54 +39256,44 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_partitions_spec_by_expr_args) -get_partitions_spec_by_expr_args.thrift_spec = ( +all_structs.append(get_partitions_by_names_args) +get_partitions_by_names_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [PartitionsByExprRequest, None], - None, - ), # 1 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'names', (TType.STRING, 'UTF8', False), None, ), # 3 ) -class get_partitions_spec_by_expr_result: +class get_partitions_by_names_result(object): """ Attributes: - success - o1 - o2 + - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 + self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -41691,9 +39302,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = PartitionsSpecByExprResult() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype1816, _size1813) = iprot.readListBegin() + for _i1817 in range(_size1813): + _elem1818 = Partition() + _elem1818.read(iprot) + self.success.append(_elem1818) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -41706,28 +39322,41 @@ def read(self, iprot): self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = InvalidObjectException.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_spec_by_expr_result") + oprot.writeStructBegin('get_partitions_by_names_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter1819 in self.success: + iter1819.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + 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() @@ -41735,67 +39364,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_by_names_result) +get_partitions_by_names_result.thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT, [Partition, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 +) -all_structs.append(get_partitions_spec_by_expr_result) -get_partitions_spec_by_expr_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [PartitionsSpecByExprResult, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_num_partitions_by_filter_args: +class get_partitions_by_names_req_args(object): """ Attributes: - - db_name - - tbl_name - - filter + - req """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - filter=None, - ): - self.db_name = db_name - self.tbl_name = tbl_name - self.filter = filter + + def __init__(self, req = None,): + self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -41804,24 +39404,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.filter = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.STRUCT: + self.req = GetPartitionsByNamesRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -41830,21 +39415,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_num_partitions_by_filter_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) - oprot.writeFieldEnd() - if self.filter is not None: - oprot.writeFieldBegin("filter", TType.STRING, 3) - oprot.writeString(self.filter.encode("utf-8") if sys.version_info[0] == 2 else self.filter) + oprot.writeStructBegin('get_partitions_by_names_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -41853,68 +39431,42 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_by_names_req_args) +get_partitions_by_names_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [GetPartitionsByNamesRequest, None], None, ), # 1 +) -all_structs.append(get_num_partitions_by_filter_args) -get_num_partitions_by_filter_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "filter", - "UTF8", - None, - ), # 3 -) - - -class get_num_partitions_by_filter_result: +class get_partitions_by_names_req_result(object): """ Attributes: - success - o1 - o2 + - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 + self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -41923,8 +39475,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.I32: - self.success = iprot.readI32() + if ftype == TType.STRUCT: + self.success = GetPartitionsByNamesResult() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -41937,28 +39490,38 @@ def read(self, iprot): self.o2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = InvalidObjectException.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_num_partitions_by_filter_result") + oprot.writeStructBegin('get_partitions_by_names_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I32, 0) - oprot.writeI32(self.success) + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + 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() @@ -41966,67 +39529,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_partitions_by_names_req_result) +get_partitions_by_names_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetPartitionsByNamesResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 +) -all_structs.append(get_num_partitions_by_filter_result) -get_num_partitions_by_filter_result.thrift_spec = ( - ( - 0, - TType.I32, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partitions_by_names_args: +class get_properties_args(object): """ Attributes: - - db_name - - tbl_name - - names + - req """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - names=None, - ): - self.db_name = db_name - self.tbl_name = tbl_name - self.names = names + + def __init__(self, req = None,): + self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -42035,31 +39569,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.names = [] - (_etype1629, _size1626) = iprot.readListBegin() - for _i1630 in range(_size1626): - _elem1631 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.names.append(_elem1631) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.req = PropertyGetRequest() + self.req.read(iprot) else: iprot.skip(ftype) else: @@ -42068,24 +39580,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_by_names_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) - oprot.writeFieldEnd() - if self.names is not None: - oprot.writeFieldBegin("names", TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.names)) - for iter1632 in self.names: - oprot.writeString(iter1632.encode("utf-8") if sys.version_info[0] == 2 else iter1632) - oprot.writeListEnd() + oprot.writeStructBegin('get_properties_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42094,68 +39596,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_properties_args) +get_properties_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [PropertyGetRequest, None], None, ), # 1 +) -all_structs.append(get_partitions_by_names_args) -get_partitions_by_names_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "names", - (TType.STRING, "UTF8", False), - None, - ), # 3 -) - - -class get_partitions_by_names_result: +class get_properties_result(object): """ Attributes: - success - - o1 - - o2 + - e1 + - e2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, e1 = None, e2 = None,): self.success = success - self.o1 = o1 - self.o2 = o2 + self.e1 = e1 + self.e2 = e2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -42164,24 +39638,19 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype1636, _size1633) = iprot.readListBegin() - for _i1637 in range(_size1633): - _elem1638 = Partition() - _elem1638.read(iprot) - self.success.append(_elem1638) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = PropertyGetResponse() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.e1 = MetaException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) + self.e2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -42190,24 +39659,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_by_names_result") + oprot.writeStructBegin('get_properties_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1639 in self.success: - iter1639.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) - self.o1.write(oprot) + if self.e1 is not None: + oprot.writeFieldBegin('e1', TType.STRUCT, 1) + self.e1.write(oprot) oprot.writeFieldEnd() - if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) - self.o2.write(oprot) + if self.e2 is not None: + oprot.writeFieldBegin('e2', TType.STRUCT, 2) + self.e2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42216,61 +39683,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_properties_result) +get_properties_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [PropertyGetResponse, None], None, ), # 0 + (1, TType.STRUCT, 'e1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'e2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partitions_by_names_result) -get_partitions_by_names_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Partition, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_partitions_by_names_req_args: +class set_properties_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -42280,7 +39723,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetPartitionsByNamesRequest() + self.req = PropertySetRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -42290,12 +39733,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_by_names_req_args") + oprot.writeStructBegin('set_properties_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -42305,54 +39749,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_partitions_by_names_req_args) -get_partitions_by_names_req_args.thrift_spec = ( +all_structs.append(set_properties_args) +set_properties_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetPartitionsByNamesRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [PropertySetRequest, None], None, ), # 1 ) -class get_partitions_by_names_req_result: +class set_properties_result(object): """ Attributes: - success - - o1 - - o2 + - e1 + - e2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, e1 = None, e2 = None,): self.success = success - self.o1 = o1 - self.o2 = o2 + self.e1 = e1 + self.e2 = e2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -42361,19 +39791,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = GetPartitionsByNamesResult() - self.success.read(iprot) + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.e1 = MetaException.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) + self.e2 = NoSuchObjectException.read(iprot) else: iprot.skip(ftype) else: @@ -42382,21 +39811,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_by_names_req_result") + oprot.writeStructBegin('set_properties_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) - self.o1.write(oprot) + if self.e1 is not None: + oprot.writeFieldBegin('e1', TType.STRUCT, 1) + self.e1.write(oprot) oprot.writeFieldEnd() - if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) - self.o2.write(oprot) + if self.e2 is not None: + oprot.writeFieldBegin('e2', TType.STRUCT, 2) + self.e2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -42405,43 +39835,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(set_properties_result) +set_properties_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'e2', [NoSuchObjectException, None], None, ), # 2 +) -all_structs.append(get_partitions_by_names_req_result) -get_partitions_by_names_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetPartitionsByNamesResult, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class alter_partition_args: +class alter_partition_args(object): """ Attributes: - db_name @@ -42449,23 +39860,16 @@ class alter_partition_args: - new_part """ + thrift_spec = None + - def __init__( - self, - db_name=None, - tbl_name=None, - new_part=None, - ): + def __init__(self, db_name = None, tbl_name = None, new_part = None,): self.db_name = db_name self.tbl_name = tbl_name self.new_part = new_part def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -42475,16 +39879,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -42499,20 +39899,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partition_args") + oprot.writeStructBegin('alter_partition_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.new_part is not None: - oprot.writeFieldBegin("new_part", TType.STRUCT, 3) + oprot.writeFieldBegin('new_part', TType.STRUCT, 3) self.new_part.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -42522,65 +39923,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partition_args) alter_partition_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "new_part", - [Partition, None], - None, - ), # 3 -) - - -class alter_partition_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'new_part', [Partition, None], None, ), # 3 +) + + +class alter_partition_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -42604,16 +39980,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partition_result") + oprot.writeStructBegin('alter_partition_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -42623,37 +40000,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partition_result) alter_partition_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class alter_partitions_args: +class alter_partitions_args(object): """ Attributes: - db_name @@ -42661,23 +40025,16 @@ class alter_partitions_args: - new_parts """ + thrift_spec = None + - def __init__( - self, - db_name=None, - tbl_name=None, - new_parts=None, - ): + def __init__(self, db_name = None, tbl_name = None, new_parts = None,): self.db_name = db_name self.tbl_name = tbl_name self.new_parts = new_parts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -42687,26 +40044,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1643, _size1640) = iprot.readListBegin() - for _i1644 in range(_size1640): - _elem1645 = Partition() - _elem1645.read(iprot) - self.new_parts.append(_elem1645) + (_etype1823, _size1820) = iprot.readListBegin() + for _i1824 in range(_size1820): + _elem1825 = Partition() + _elem1825.read(iprot) + self.new_parts.append(_elem1825) iprot.readListEnd() else: iprot.skip(ftype) @@ -42716,23 +40069,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partitions_args") + oprot.writeStructBegin('alter_partitions_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.new_parts is not None: - oprot.writeFieldBegin("new_parts", TType.LIST, 3) + oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1646 in self.new_parts: - iter1646.write(oprot) + for iter1826 in self.new_parts: + iter1826.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -42742,65 +40096,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partitions_args) alter_partitions_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "new_parts", - (TType.STRUCT, [Partition, None], False), - None, - ), # 3 -) - - -class alter_partitions_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'new_parts', (TType.STRUCT, [Partition, None], False), None, ), # 3 +) + + +class alter_partitions_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -42824,16 +40153,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partitions_result") + oprot.writeStructBegin('alter_partitions_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -42843,37 +40173,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partitions_result) alter_partitions_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class alter_partitions_with_environment_context_args: +class alter_partitions_with_environment_context_args(object): """ Attributes: - db_name @@ -42882,25 +40199,17 @@ class alter_partitions_with_environment_context_args: - environment_context """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - new_parts=None, - environment_context=None, - ): + + def __init__(self, db_name = None, tbl_name = None, new_parts = None, environment_context = None,): self.db_name = db_name self.tbl_name = tbl_name self.new_parts = new_parts self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -42910,26 +40219,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype1650, _size1647) = iprot.readListBegin() - for _i1651 in range(_size1647): - _elem1652 = Partition() - _elem1652.read(iprot) - self.new_parts.append(_elem1652) + (_etype1830, _size1827) = iprot.readListBegin() + for _i1831 in range(_size1827): + _elem1832 = Partition() + _elem1832.read(iprot) + self.new_parts.append(_elem1832) iprot.readListEnd() else: iprot.skip(ftype) @@ -42945,27 +40250,28 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partitions_with_environment_context_args") + oprot.writeStructBegin('alter_partitions_with_environment_context_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.new_parts is not None: - oprot.writeFieldBegin("new_parts", TType.LIST, 3) + oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter1653 in self.new_parts: - iter1653.write(oprot) + for iter1833 in self.new_parts: + iter1833.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 4) + oprot.writeFieldBegin('environment_context', TType.STRUCT, 4) self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -42975,72 +40281,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partitions_with_environment_context_args) alter_partitions_with_environment_context_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "new_parts", - (TType.STRUCT, [Partition, None], False), - None, - ), # 3 - ( - 4, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 4 -) - - -class alter_partitions_with_environment_context_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'new_parts', (TType.STRUCT, [Partition, None], False), None, ), # 3 + (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4 +) + + +class alter_partitions_with_environment_context_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43064,16 +40339,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partitions_with_environment_context_result") + oprot.writeStructBegin('alter_partitions_with_environment_context_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -43083,55 +40359,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partitions_with_environment_context_result) alter_partitions_with_environment_context_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class alter_partitions_req_args: +class alter_partitions_req_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43151,12 +40409,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partitions_req_args") + oprot.writeStructBegin('alter_partitions_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -43166,30 +40425,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partitions_req_args) alter_partitions_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [AlterPartitionsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [AlterPartitionsRequest, None], None, ), # 1 ) -class alter_partitions_req_result: +class alter_partitions_req_result(object): """ Attributes: - success @@ -43197,23 +40449,16 @@ class alter_partitions_req_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43243,20 +40488,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partitions_req_result") + oprot.writeStructBegin('alter_partitions_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -43266,43 +40512,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partitions_req_result) alter_partitions_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [AlterPartitionsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class alter_partition_with_environment_context_args: + (0, TType.STRUCT, 'success', [AlterPartitionsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class alter_partition_with_environment_context_args(object): """ Attributes: - db_name @@ -43311,25 +40538,17 @@ class alter_partition_with_environment_context_args: - environment_context """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - new_part=None, - environment_context=None, - ): + + def __init__(self, db_name = None, tbl_name = None, new_part = None, environment_context = None,): self.db_name = db_name self.tbl_name = tbl_name self.new_part = new_part self.environment_context = environment_context def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43339,16 +40558,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -43369,24 +40584,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partition_with_environment_context_args") + oprot.writeStructBegin('alter_partition_with_environment_context_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.new_part is not None: - oprot.writeFieldBegin("new_part", TType.STRUCT, 3) + oprot.writeFieldBegin('new_part', TType.STRUCT, 3) self.new_part.write(oprot) oprot.writeFieldEnd() if self.environment_context is not None: - oprot.writeFieldBegin("environment_context", TType.STRUCT, 4) + oprot.writeFieldBegin('environment_context', TType.STRUCT, 4) self.environment_context.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -43396,72 +40612,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partition_with_environment_context_args) alter_partition_with_environment_context_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "new_part", - [Partition, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "environment_context", - [EnvironmentContext, None], - None, - ), # 4 -) - - -class alter_partition_with_environment_context_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'new_part', [Partition, None], None, ), # 3 + (4, TType.STRUCT, 'environment_context', [EnvironmentContext, None], None, ), # 4 +) + + +class alter_partition_with_environment_context_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43485,16 +40670,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_partition_with_environment_context_result") + oprot.writeStructBegin('alter_partition_with_environment_context_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -43504,37 +40690,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_partition_with_environment_context_result) alter_partition_with_environment_context_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class rename_partition_args: +class rename_partition_args(object): """ Attributes: - db_name @@ -43543,25 +40716,17 @@ class rename_partition_args: - new_part """ + thrift_spec = None + - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - new_part=None, - ): + def __init__(self, db_name = None, tbl_name = None, part_vals = None, new_part = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_vals = part_vals self.new_part = new_part def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43571,29 +40736,21 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype1657, _size1654) = iprot.readListBegin() - for _i1658 in range(_size1654): - _elem1659 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1659) + (_etype1837, _size1834) = iprot.readListBegin() + for _i1838 in range(_size1834): + _elem1839 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1839) iprot.readListEnd() else: iprot.skip(ftype) @@ -43609,27 +40766,28 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("rename_partition_args") + oprot.writeStructBegin('rename_partition_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 3) + oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1660 in self.part_vals: - oprot.writeString(iter1660.encode("utf-8") if sys.version_info[0] == 2 else iter1660) + for iter1840 in self.part_vals: + oprot.writeString(iter1840.encode('utf-8') if sys.version_info[0] == 2 else iter1840) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: - oprot.writeFieldBegin("new_part", TType.STRUCT, 4) + oprot.writeFieldBegin('new_part', TType.STRUCT, 4) self.new_part.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -43639,72 +40797,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(rename_partition_args) rename_partition_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.STRUCT, - "new_part", - [Partition, None], - None, - ), # 4 -) - - -class rename_partition_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.STRUCT, 'new_part', [Partition, None], None, ), # 4 +) + + +class rename_partition_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43728,16 +40855,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("rename_partition_result") + oprot.writeStructBegin('rename_partition_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -43747,55 +40875,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(rename_partition_result) rename_partition_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class rename_partition_req_args: +class rename_partition_req_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43815,12 +40925,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("rename_partition_req_args") + oprot.writeStructBegin('rename_partition_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -43830,30 +40941,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(rename_partition_req_args) rename_partition_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [RenamePartitionRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [RenamePartitionRequest, None], None, ), # 1 ) -class rename_partition_req_result: +class rename_partition_req_result(object): """ Attributes: - success @@ -43861,23 +40965,16 @@ class rename_partition_req_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43907,20 +41004,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("rename_partition_req_result") + oprot.writeStructBegin('rename_partition_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -43930,64 +41028,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(rename_partition_req_result) rename_partition_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [RenamePartitionResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class partition_name_has_valid_characters_args: + (0, TType.STRUCT, 'success', [RenamePartitionResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class partition_name_has_valid_characters_args(object): """ Attributes: - part_vals - throw_exception """ + thrift_spec = None + - def __init__( - self, - part_vals=None, - throw_exception=None, - ): + def __init__(self, part_vals = None, throw_exception = None,): self.part_vals = part_vals self.throw_exception = throw_exception def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -43998,14 +41071,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype1664, _size1661) = iprot.readListBegin() - for _i1665 in range(_size1661): - _elem1666 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals.append(_elem1666) + (_etype1844, _size1841) = iprot.readListBegin() + for _i1845 in range(_size1841): + _elem1846 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals.append(_elem1846) iprot.readListEnd() else: iprot.skip(ftype) @@ -44020,19 +41089,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("partition_name_has_valid_characters_args") + oprot.writeStructBegin('partition_name_has_valid_characters_args') if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.LIST, 1) + oprot.writeFieldBegin('part_vals', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter1667 in self.part_vals: - oprot.writeString(iter1667.encode("utf-8") if sys.version_info[0] == 2 else iter1667) + for iter1847 in self.part_vals: + oprot.writeString(iter1847.encode('utf-8') if sys.version_info[0] == 2 else iter1847) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: - oprot.writeFieldBegin("throw_exception", TType.BOOL, 2) + oprot.writeFieldBegin('throw_exception', TType.BOOL, 2) oprot.writeBool(self.throw_exception) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -44042,58 +41112,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(partition_name_has_valid_characters_args) partition_name_has_valid_characters_args.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "part_vals", - (TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.BOOL, - "throw_exception", - None, - None, - ), # 2 + (1, TType.LIST, 'part_vals', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.BOOL, 'throw_exception', None, None, ), # 2 ) -class partition_name_has_valid_characters_result: +class partition_name_has_valid_characters_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -44117,16 +41168,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("partition_name_has_valid_characters_result") + oprot.writeStructBegin('partition_name_has_valid_characters_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -44136,57 +41188,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(partition_name_has_valid_characters_result) partition_name_has_valid_characters_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_config_value_args: +class get_config_value_args(object): """ Attributes: - name - defaultValue """ + thrift_spec = None + - def __init__( - self, - name=None, - defaultValue=None, - ): + def __init__(self, name = None, defaultValue = None,): self.name = name self.defaultValue = defaultValue def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -44196,16 +41229,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.defaultValue = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.defaultValue = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -44214,17 +41243,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_config_value_args") + oprot.writeStructBegin('get_config_value_args') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.defaultValue is not None: - oprot.writeFieldBegin("defaultValue", TType.STRING, 2) - oprot.writeString(self.defaultValue.encode("utf-8") if sys.version_info[0] == 2 else self.defaultValue) + oprot.writeFieldBegin('defaultValue', TType.STRING, 2) + oprot.writeString(self.defaultValue.encode('utf-8') if sys.version_info[0] == 2 else self.defaultValue) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44233,58 +41263,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_config_value_args) get_config_value_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "defaultValue", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'defaultValue', 'UTF8', None, ), # 2 ) -class get_config_value_result: +class get_config_value_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -44294,9 +41305,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 1: @@ -44310,16 +41319,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_config_value_result") + oprot.writeStructBegin('get_config_value_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -44329,54 +41339,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_config_value_result) get_config_value_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [ConfigValSecurityException, None], - None, - ), # 1 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'o1', [ConfigValSecurityException, None], None, ), # 1 ) -class partition_name_to_vals_args: +class partition_name_to_vals_args(object): """ Attributes: - part_name """ + thrift_spec = None - def __init__( - self, - part_name=None, - ): + + def __init__(self, part_name = None,): self.part_name = part_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -44386,9 +41378,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.part_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.part_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -44397,13 +41387,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("partition_name_to_vals_args") + oprot.writeStructBegin('partition_name_to_vals_args') if self.part_name is not None: - oprot.writeFieldBegin("part_name", TType.STRING, 1) - oprot.writeString(self.part_name.encode("utf-8") if sys.version_info[0] == 2 else self.part_name) + oprot.writeFieldBegin('part_name', TType.STRING, 1) + oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44412,51 +41403,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(partition_name_to_vals_args) partition_name_to_vals_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "part_name", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'part_name', 'UTF8', None, ), # 1 ) -class partition_name_to_vals_result: +class partition_name_to_vals_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -44467,14 +41445,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1671, _size1668) = iprot.readListBegin() - for _i1672 in range(_size1668): - _elem1673 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1673) + (_etype1851, _size1848) = iprot.readListBegin() + for _i1852 in range(_size1848): + _elem1853 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1853) iprot.readListEnd() else: iprot.skip(ftype) @@ -44489,19 +41463,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("partition_name_to_vals_result") + oprot.writeStructBegin('partition_name_to_vals_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1674 in self.success: - oprot.writeString(iter1674.encode("utf-8") if sys.version_info[0] == 2 else iter1674) + for iter1854 in self.success: + oprot.writeString(iter1854.encode('utf-8') if sys.version_info[0] == 2 else iter1854) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -44511,54 +41486,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(partition_name_to_vals_result) partition_name_to_vals_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class partition_name_to_spec_args: +class partition_name_to_spec_args(object): """ Attributes: - part_name """ + thrift_spec = None - def __init__( - self, - part_name=None, - ): + + def __init__(self, part_name = None,): self.part_name = part_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -44568,9 +41525,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.part_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.part_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -44579,13 +41534,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("partition_name_to_spec_args") + oprot.writeStructBegin('partition_name_to_spec_args') if self.part_name is not None: - oprot.writeFieldBegin("part_name", TType.STRING, 1) - oprot.writeString(self.part_name.encode("utf-8") if sys.version_info[0] == 2 else self.part_name) + oprot.writeFieldBegin('part_name', TType.STRING, 1) + oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -44594,51 +41550,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(partition_name_to_spec_args) partition_name_to_spec_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "part_name", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'part_name', 'UTF8', None, ), # 1 ) -class partition_name_to_spec_result: +class partition_name_to_spec_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -44649,19 +41592,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype1676, _vtype1677, _size1675) = iprot.readMapBegin() - for _i1679 in range(_size1675): - _key1680 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val1681 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success[_key1680] = _val1681 + (_ktype1856, _vtype1857, _size1855) = iprot.readMapBegin() + for _i1859 in range(_size1855): + _key1860 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val1861 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success[_key1860] = _val1861 iprot.readMapEnd() else: iprot.skip(ftype) @@ -44676,20 +41611,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("partition_name_to_spec_result") + oprot.writeStructBegin('partition_name_to_spec_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter1682, viter1683 in self.success.items(): - oprot.writeString(kiter1682.encode("utf-8") if sys.version_info[0] == 2 else kiter1682) - oprot.writeString(viter1683.encode("utf-8") if sys.version_info[0] == 2 else viter1683) + for kiter1862, viter1863 in self.success.items(): + oprot.writeString(kiter1862.encode('utf-8') if sys.version_info[0] == 2 else kiter1862) + oprot.writeString(viter1863.encode('utf-8') if sys.version_info[0] == 2 else viter1863) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -44699,36 +41635,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(partition_name_to_spec_result) partition_name_to_spec_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class markPartitionForEvent_args: +class markPartitionForEvent_args(object): """ Attributes: - db_name @@ -44737,349 +41660,17 @@ class markPartitionForEvent_args: - eventType """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - eventType=None, - ): - self.db_name = db_name - self.tbl_name = tbl_name - self.part_vals = part_vals - self.eventType = eventType - - def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): - iprot._fast_decode(self, iprot, [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.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.MAP: - self.part_vals = {} - (_ktype1685, _vtype1686, _size1684) = iprot.readMapBegin() - for _i1688 in range(_size1684): - _key1689 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val1690 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals[_key1689] = _val1690 - iprot.readMapEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I32: - self.eventType = iprot.readI32() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) - return - oprot.writeStructBegin("markPartitionForEvent_args") - if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) - oprot.writeFieldEnd() - if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) - oprot.writeFieldEnd() - if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.MAP, 3) - oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter1691, viter1692 in self.part_vals.items(): - oprot.writeString(kiter1691.encode("utf-8") if sys.version_info[0] == 2 else kiter1691) - oprot.writeString(viter1692.encode("utf-8") if sys.version_info[0] == 2 else viter1692) - oprot.writeMapEnd() - oprot.writeFieldEnd() - if self.eventType is not None: - oprot.writeFieldBegin("eventType", TType.I32, 4) - oprot.writeI32(self.eventType) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(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) - - -all_structs.append(markPartitionForEvent_args) -markPartitionForEvent_args.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.MAP, - "part_vals", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.I32, - "eventType", - None, - None, - ), # 4 -) - - -class markPartitionForEvent_result: - """ - Attributes: - - o1 - - o2 - - o3 - - o4 - - o5 - - o6 - - """ - - def __init__( - self, - o1=None, - o2=None, - o3=None, - o4=None, - o5=None, - o6=None, - ): - self.o1 = o1 - self.o2 = o2 - self.o3 = o3 - self.o4 = o4 - self.o5 = o5 - self.o6 = o6 - - def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): - iprot._fast_decode(self, iprot, [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 = MetaException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = NoSuchObjectException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.o3 = UnknownDBException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.o4 = UnknownTableException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRUCT: - self.o5 = UnknownPartitionException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.STRUCT: - self.o6 = InvalidPartitionException.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) - return - oprot.writeStructBegin("markPartitionForEvent_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() - if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) - self.o4.write(oprot) - oprot.writeFieldEnd() - if self.o5 is not None: - oprot.writeFieldBegin("o5", TType.STRUCT, 5) - self.o5.write(oprot) - oprot.writeFieldEnd() - if self.o6 is not None: - oprot.writeFieldBegin("o6", TType.STRUCT, 6) - self.o6.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(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) - - -all_structs.append(markPartitionForEvent_result) -markPartitionForEvent_result.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [UnknownTableException, None], - None, - ), # 4 - ( - 5, - TType.STRUCT, - "o5", - [UnknownPartitionException, None], - None, - ), # 5 - ( - 6, - TType.STRUCT, - "o6", - [InvalidPartitionException, None], - None, - ), # 6 -) - - -class isPartitionMarkedForEvent_args: - """ - Attributes: - - db_name - - tbl_name - - part_vals - - eventType - - """ - def __init__( - self, - db_name=None, - tbl_name=None, - part_vals=None, - eventType=None, - ): + def __init__(self, db_name = None, tbl_name = None, part_vals = None, eventType = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_vals = part_vals self.eventType = eventType def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -45089,34 +41680,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype1694, _vtype1695, _size1693) = iprot.readMapBegin() - for _i1697 in range(_size1693): - _key1698 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val1699 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.part_vals[_key1698] = _val1699 + (_ktype1865, _vtype1866, _size1864) = iprot.readMapBegin() + for _i1868 in range(_size1864): + _key1869 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val1870 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals[_key1869] = _val1870 iprot.readMapEnd() else: iprot.skip(ftype) @@ -45131,28 +41710,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("isPartitionMarkedForEvent_args") + oprot.writeStructBegin('markPartitionForEvent_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_vals is not None: - oprot.writeFieldBegin("part_vals", TType.MAP, 3) + oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter1700, viter1701 in self.part_vals.items(): - oprot.writeString(kiter1700.encode("utf-8") if sys.version_info[0] == 2 else kiter1700) - oprot.writeString(viter1701.encode("utf-8") if sys.version_info[0] == 2 else viter1701) + for kiter1871, viter1872 in self.part_vals.items(): + oprot.writeString(kiter1871.encode('utf-8') if sys.version_info[0] == 2 else kiter1871) + oprot.writeString(viter1872.encode('utf-8') if sys.version_info[0] == 2 else viter1872) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: - oprot.writeFieldBegin("eventType", TType.I32, 4) + oprot.writeFieldBegin('eventType', TType.I32, 4) oprot.writeI32(self.eventType) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -45162,51 +41742,260 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(markPartitionForEvent_args) +markPartitionForEvent_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.MAP, 'part_vals', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.I32, 'eventType', None, None, ), # 4 +) + + +class markPartitionForEvent_result(object): + """ + Attributes: + - o1 + - o2 + - o3 + - o4 + - o5 + - o6 + + """ + thrift_spec = None + + + def __init__(self, o1 = None, o2 = None, o3 = None, o4 = None, o5 = None, o6 = None,): + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + self.o4 = o4 + self.o5 = o5 + self.o6 = o6 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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 = MetaException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = UnknownDBException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = UnknownTableException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.o5 = UnknownPartitionException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.o6 = InvalidPartitionException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('markPartitionForEvent_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() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() + if self.o5 is not None: + oprot.writeFieldBegin('o5', TType.STRUCT, 5) + self.o5.write(oprot) + oprot.writeFieldEnd() + if self.o6 is not None: + oprot.writeFieldBegin('o6', TType.STRUCT, 6) + self.o6.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(markPartitionForEvent_result) +markPartitionForEvent_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [UnknownTableException, None], None, ), # 4 + (5, TType.STRUCT, 'o5', [UnknownPartitionException, None], None, ), # 5 + (6, TType.STRUCT, 'o6', [InvalidPartitionException, None], None, ), # 6 +) + +class isPartitionMarkedForEvent_args(object): + """ + Attributes: + - db_name + - tbl_name + - part_vals + - eventType + + """ + thrift_spec = None + + + def __init__(self, db_name = None, tbl_name = None, part_vals = None, eventType = None,): + self.db_name = db_name + self.tbl_name = tbl_name + self.part_vals = part_vals + self.eventType = eventType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.part_vals = {} + (_ktype1874, _vtype1875, _size1873) = iprot.readMapBegin() + for _i1877 in range(_size1873): + _key1878 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val1879 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_vals[_key1878] = _val1879 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.eventType = iprot.readI32() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('isPartitionMarkedForEvent_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.part_vals is not None: + oprot.writeFieldBegin('part_vals', TType.MAP, 3) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) + for kiter1880, viter1881 in self.part_vals.items(): + oprot.writeString(kiter1880.encode('utf-8') if sys.version_info[0] == 2 else kiter1880) + oprot.writeString(viter1881.encode('utf-8') if sys.version_info[0] == 2 else viter1881) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.eventType is not None: + oprot.writeFieldBegin('eventType', TType.I32, 4) + oprot.writeI32(self.eventType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) all_structs.append(isPartitionMarkedForEvent_args) isPartitionMarkedForEvent_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.MAP, - "part_vals", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.I32, - "eventType", - None, - None, - ), # 4 -) - - -class isPartitionMarkedForEvent_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.MAP, 'part_vals', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.I32, 'eventType', None, None, ), # 4 +) + + +class isPartitionMarkedForEvent_result(object): """ Attributes: - success @@ -45218,17 +42007,10 @@ class isPartitionMarkedForEvent_result: - o6 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - o5=None, - o6=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None, o5 = None, o6 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -45238,11 +42020,7 @@ def __init__( self.o6 = o6 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -45291,36 +42069,37 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("isPartitionMarkedForEvent_result") + oprot.writeStructBegin('isPartitionMarkedForEvent_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() if self.o5 is not None: - oprot.writeFieldBegin("o5", TType.STRUCT, 5) + oprot.writeFieldBegin('o5', TType.STRUCT, 5) self.o5.write(oprot) oprot.writeFieldEnd() if self.o6 is not None: - oprot.writeFieldBegin("o6", TType.STRUCT, 6) + oprot.writeFieldBegin('o6', TType.STRUCT, 6) self.o6.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -45330,89 +42109,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(isPartitionMarkedForEvent_result) isPartitionMarkedForEvent_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [UnknownDBException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [UnknownTableException, None], - None, - ), # 4 - ( - 5, - TType.STRUCT, - "o5", - [UnknownPartitionException, None], - None, - ), # 5 - ( - 6, - TType.STRUCT, - "o6", - [InvalidPartitionException, None], - None, - ), # 6 -) - - -class get_primary_keys_args: + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [UnknownDBException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [UnknownTableException, None], None, ), # 4 + (5, TType.STRUCT, 'o5', [UnknownPartitionException, None], None, ), # 5 + (6, TType.STRUCT, 'o6', [InvalidPartitionException, None], None, ), # 6 +) + + +class get_primary_keys_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -45432,12 +42163,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_primary_keys_args") + oprot.writeStructBegin('get_primary_keys_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -45447,30 +42179,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_primary_keys_args) get_primary_keys_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [PrimaryKeysRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [PrimaryKeysRequest, None], None, ), # 1 ) -class get_primary_keys_result: +class get_primary_keys_result(object): """ Attributes: - success @@ -45478,23 +42203,16 @@ class get_primary_keys_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -45524,20 +42242,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_primary_keys_result") + oprot.writeStructBegin('get_primary_keys_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -45547,61 +42266,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_primary_keys_result) get_primary_keys_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [PrimaryKeysResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_foreign_keys_args: + (0, TType.STRUCT, 'success', [PrimaryKeysResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_foreign_keys_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -45621,12 +42316,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_foreign_keys_args") + oprot.writeStructBegin('get_foreign_keys_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -45636,30 +42332,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_foreign_keys_args) get_foreign_keys_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [ForeignKeysRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [ForeignKeysRequest, None], None, ), # 1 ) -class get_foreign_keys_result: +class get_foreign_keys_result(object): """ Attributes: - success @@ -45667,23 +42356,16 @@ class get_foreign_keys_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -45713,20 +42395,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_foreign_keys_result") + oprot.writeStructBegin('get_foreign_keys_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -45736,61 +42419,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_foreign_keys_result) get_foreign_keys_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ForeignKeysResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_unique_constraints_args: + (0, TType.STRUCT, 'success', [ForeignKeysResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_unique_constraints_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -45810,12 +42469,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_unique_constraints_args") + oprot.writeStructBegin('get_unique_constraints_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -45825,30 +42485,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_unique_constraints_args) get_unique_constraints_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [UniqueConstraintsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [UniqueConstraintsRequest, None], None, ), # 1 ) -class get_unique_constraints_result: +class get_unique_constraints_result(object): """ Attributes: - success @@ -45856,23 +42509,16 @@ class get_unique_constraints_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -45902,20 +42548,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_unique_constraints_result") + oprot.writeStructBegin('get_unique_constraints_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -45925,61 +42572,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_unique_constraints_result) get_unique_constraints_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [UniqueConstraintsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_not_null_constraints_args: + (0, TType.STRUCT, 'success', [UniqueConstraintsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_not_null_constraints_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -45999,12 +42622,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_not_null_constraints_args") + oprot.writeStructBegin('get_not_null_constraints_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46014,30 +42638,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_not_null_constraints_args) get_not_null_constraints_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [NotNullConstraintsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [NotNullConstraintsRequest, None], None, ), # 1 ) -class get_not_null_constraints_result: +class get_not_null_constraints_result(object): """ Attributes: - success @@ -46045,23 +42662,16 @@ class get_not_null_constraints_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46091,20 +42701,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_not_null_constraints_result") + oprot.writeStructBegin('get_not_null_constraints_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46114,61 +42725,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_not_null_constraints_result) get_not_null_constraints_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [NotNullConstraintsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_default_constraints_args: + (0, TType.STRUCT, 'success', [NotNullConstraintsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_default_constraints_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46188,12 +42775,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_default_constraints_args") + oprot.writeStructBegin('get_default_constraints_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46203,30 +42791,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_default_constraints_args) get_default_constraints_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [DefaultConstraintsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [DefaultConstraintsRequest, None], None, ), # 1 ) -class get_default_constraints_result: +class get_default_constraints_result(object): """ Attributes: - success @@ -46234,23 +42815,16 @@ class get_default_constraints_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46280,20 +42854,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_default_constraints_result") + oprot.writeStructBegin('get_default_constraints_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46303,61 +42878,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_default_constraints_result) get_default_constraints_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [DefaultConstraintsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_check_constraints_args: + (0, TType.STRUCT, 'success', [DefaultConstraintsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_check_constraints_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46377,12 +42928,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_check_constraints_args") + oprot.writeStructBegin('get_check_constraints_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46392,30 +42944,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_check_constraints_args) get_check_constraints_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [CheckConstraintsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [CheckConstraintsRequest, None], None, ), # 1 ) -class get_check_constraints_result: +class get_check_constraints_result(object): """ Attributes: - success @@ -46423,23 +42968,16 @@ class get_check_constraints_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46469,20 +43007,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_check_constraints_result") + oprot.writeStructBegin('get_check_constraints_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46492,61 +43031,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_check_constraints_result) get_check_constraints_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [CheckConstraintsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class get_all_table_constraints_args: + (0, TType.STRUCT, 'success', [CheckConstraintsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class get_all_table_constraints_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46566,12 +43081,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_table_constraints_args") + oprot.writeStructBegin('get_all_table_constraints_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46581,30 +43097,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_table_constraints_args) get_all_table_constraints_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [AllTableConstraintsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [AllTableConstraintsRequest, None], None, ), # 1 ) -class get_all_table_constraints_result: +class get_all_table_constraints_result(object): """ Attributes: - success @@ -46612,23 +43121,16 @@ class get_all_table_constraints_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46658,20 +43160,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_table_constraints_result") + oprot.writeStructBegin('get_all_table_constraints_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46681,61 +43184,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_table_constraints_result) get_all_table_constraints_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [AllTableConstraintsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class update_table_column_statistics_args: + (0, TType.STRUCT, 'success', [AllTableConstraintsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class update_table_column_statistics_args(object): """ Attributes: - stats_obj """ + thrift_spec = None + - def __init__( - self, - stats_obj=None, - ): + def __init__(self, stats_obj = None,): self.stats_obj = stats_obj def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46755,12 +43234,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_table_column_statistics_args") + oprot.writeStructBegin('update_table_column_statistics_args') if self.stats_obj is not None: - oprot.writeFieldBegin("stats_obj", TType.STRUCT, 1) + oprot.writeFieldBegin('stats_obj', TType.STRUCT, 1) self.stats_obj.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46770,30 +43250,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_table_column_statistics_args) update_table_column_statistics_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "stats_obj", - [ColumnStatistics, None], - None, - ), # 1 + (1, TType.STRUCT, 'stats_obj', [ColumnStatistics, None], None, ), # 1 ) -class update_table_column_statistics_result: +class update_table_column_statistics_result(object): """ Attributes: - success @@ -46803,15 +43276,10 @@ class update_table_column_statistics_result: - o4 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -46819,11 +43287,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46862,28 +43326,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_table_column_statistics_result") + oprot.writeStructBegin('update_table_column_statistics_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46893,75 +43358,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_table_column_statistics_result) update_table_column_statistics_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class update_partition_column_statistics_args: + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class update_partition_column_statistics_args(object): """ Attributes: - stats_obj """ + thrift_spec = None + - def __init__( - self, - stats_obj=None, - ): + def __init__(self, stats_obj = None,): self.stats_obj = stats_obj def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -46981,12 +43410,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_partition_column_statistics_args") + oprot.writeStructBegin('update_partition_column_statistics_args') if self.stats_obj is not None: - oprot.writeFieldBegin("stats_obj", TType.STRUCT, 1) + oprot.writeFieldBegin('stats_obj', TType.STRUCT, 1) self.stats_obj.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -46996,30 +43426,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_partition_column_statistics_args) update_partition_column_statistics_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "stats_obj", - [ColumnStatistics, None], - None, - ), # 1 + (1, TType.STRUCT, 'stats_obj', [ColumnStatistics, None], None, ), # 1 ) -class update_partition_column_statistics_result: +class update_partition_column_statistics_result(object): """ Attributes: - success @@ -47029,15 +43452,10 @@ class update_partition_column_statistics_result: - o4 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -47045,11 +43463,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -47088,28 +43502,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_partition_column_statistics_result") + oprot.writeStructBegin('update_partition_column_statistics_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -47119,75 +43534,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_partition_column_statistics_result) update_partition_column_statistics_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class update_table_column_statistics_req_args: + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class update_table_column_statistics_req_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -47207,12 +43586,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_table_column_statistics_req_args") + oprot.writeStructBegin('update_table_column_statistics_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -47222,30 +43602,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_table_column_statistics_req_args) update_table_column_statistics_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [SetPartitionsStatsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [SetPartitionsStatsRequest, None], None, ), # 1 ) -class update_table_column_statistics_req_result: +class update_table_column_statistics_req_result(object): """ Attributes: - success @@ -47255,15 +43628,10 @@ class update_table_column_statistics_req_result: - o4 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -47271,11 +43639,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -47315,28 +43679,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_table_column_statistics_req_result") + oprot.writeStructBegin('update_table_column_statistics_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -47346,75 +43711,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_table_column_statistics_req_result) update_table_column_statistics_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [SetPartitionsStatsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class update_partition_column_statistics_req_args: + (0, TType.STRUCT, 'success', [SetPartitionsStatsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class update_partition_column_statistics_req_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -47434,12 +43763,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_partition_column_statistics_req_args") + oprot.writeStructBegin('update_partition_column_statistics_req_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -47449,30 +43779,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_partition_column_statistics_req_args) update_partition_column_statistics_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [SetPartitionsStatsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [SetPartitionsStatsRequest, None], None, ), # 1 ) -class update_partition_column_statistics_req_result: +class update_partition_column_statistics_req_result(object): """ Attributes: - success @@ -47482,15 +43805,10 @@ class update_partition_column_statistics_req_result: - o4 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -47498,11 +43816,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -47542,28 +43856,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_partition_column_statistics_req_result") + oprot.writeStructBegin('update_partition_column_statistics_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -47573,75 +43888,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_partition_column_statistics_req_result) update_partition_column_statistics_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [SetPartitionsStatsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class update_transaction_statistics_args: + (0, TType.STRUCT, 'success', [SetPartitionsStatsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class update_transaction_statistics_args(object): """ Attributes: - req """ + thrift_spec = None + - def __init__( - self, - req=None, - ): + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -47661,12 +43940,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_transaction_statistics_args") + oprot.writeStructBegin('update_transaction_statistics_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -47676,48 +43956,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_transaction_statistics_args) update_transaction_statistics_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [UpdateTransactionalStatsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [UpdateTransactionalStatsRequest, None], None, ), # 1 ) -class update_transaction_statistics_result: +class update_transaction_statistics_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -47736,12 +44004,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_transaction_statistics_result") + oprot.writeStructBegin('update_transaction_statistics_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -47751,30 +44020,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_transaction_statistics_result) update_transaction_statistics_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_table_column_statistics_args: +class get_table_column_statistics_args(object): """ Attributes: - db_name @@ -47782,23 +44044,16 @@ class get_table_column_statistics_args: - col_name """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - col_name=None, - ): + + def __init__(self, db_name = None, tbl_name = None, col_name = None,): self.db_name = db_name self.tbl_name = tbl_name self.col_name = col_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -47808,23 +44063,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.col_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.col_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -47833,21 +44082,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_column_statistics_args") + oprot.writeStructBegin('get_table_column_statistics_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.col_name is not None: - oprot.writeFieldBegin("col_name", TType.STRING, 3) - oprot.writeString(self.col_name.encode("utf-8") if sys.version_info[0] == 2 else self.col_name) + oprot.writeFieldBegin('col_name', TType.STRING, 3) + oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -47856,44 +44106,25 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_column_statistics_args) get_table_column_statistics_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "col_name", - "UTF8", - None, - ), # 3 -) - - -class get_table_column_statistics_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'col_name', 'UTF8', None, ), # 3 +) + + +class get_table_column_statistics_result(object): """ Attributes: - success @@ -47903,15 +44134,10 @@ class get_table_column_statistics_result: - o4 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -47919,11 +44145,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -47963,28 +44185,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_column_statistics_result") + oprot.writeStructBegin('get_table_column_statistics_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -47994,57 +44217,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_column_statistics_result) get_table_column_statistics_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ColumnStatistics, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidInputException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidObjectException, None], - None, - ), # 4 -) - - -class get_partition_column_statistics_args: + (0, TType.STRUCT, 'success', [ColumnStatistics, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidInputException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidObjectException, None], None, ), # 4 +) + + +class get_partition_column_statistics_args(object): """ Attributes: - db_name @@ -48053,25 +44245,17 @@ class get_partition_column_statistics_args: - col_name """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_name=None, - col_name=None, - ): + + def __init__(self, db_name = None, tbl_name = None, part_name = None, col_name = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_name = part_name self.col_name = col_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -48081,30 +44265,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.part_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.col_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.col_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -48113,25 +44289,26 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_column_statistics_args") + oprot.writeStructBegin('get_partition_column_statistics_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_name is not None: - oprot.writeFieldBegin("part_name", TType.STRING, 3) - oprot.writeString(self.part_name.encode("utf-8") if sys.version_info[0] == 2 else self.part_name) + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name) oprot.writeFieldEnd() if self.col_name is not None: - oprot.writeFieldBegin("col_name", TType.STRING, 4) - oprot.writeString(self.col_name.encode("utf-8") if sys.version_info[0] == 2 else self.col_name) + oprot.writeFieldBegin('col_name', TType.STRING, 4) + oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -48140,51 +44317,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partition_column_statistics_args) get_partition_column_statistics_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "part_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "col_name", - "UTF8", - None, - ), # 4 -) - - -class get_partition_column_statistics_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'col_name', 'UTF8', None, ), # 4 +) + + +class get_partition_column_statistics_result(object): """ Attributes: - success @@ -48194,15 +44346,10 @@ class get_partition_column_statistics_result: - o4 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -48210,11 +44357,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -48254,28 +44397,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partition_column_statistics_result") + oprot.writeStructBegin('get_partition_column_statistics_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -48285,75 +44429,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partition_column_statistics_result) get_partition_column_statistics_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ColumnStatistics, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidInputException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidObjectException, None], - None, - ), # 4 -) - - -class get_table_statistics_req_args: + (0, TType.STRUCT, 'success', [ColumnStatistics, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidInputException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidObjectException, None], None, ), # 4 +) + + +class get_table_statistics_req_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -48373,12 +44481,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_statistics_req_args") + oprot.writeStructBegin('get_table_statistics_req_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -48388,30 +44497,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_statistics_req_args) get_table_statistics_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [TableStatsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [TableStatsRequest, None], None, ), # 1 ) -class get_table_statistics_req_result: +class get_table_statistics_req_result(object): """ Attributes: - success @@ -48419,23 +44521,16 @@ class get_table_statistics_req_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -48465,20 +44560,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_table_statistics_req_result") + oprot.writeStructBegin('get_table_statistics_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -48488,61 +44584,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_table_statistics_req_result) get_table_statistics_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [TableStatsResult, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_partitions_statistics_req_args: + (0, TType.STRUCT, 'success', [TableStatsResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class get_partitions_statistics_req_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -48562,12 +44634,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_statistics_req_args") + oprot.writeStructBegin('get_partitions_statistics_req_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -48577,30 +44650,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partitions_statistics_req_args) get_partitions_statistics_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [PartitionsStatsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [PartitionsStatsRequest, None], None, ), # 1 ) -class get_partitions_statistics_req_result: +class get_partitions_statistics_req_result(object): """ Attributes: - success @@ -48608,23 +44674,16 @@ class get_partitions_statistics_req_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -48654,20 +44713,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_statistics_req_result") + oprot.writeStructBegin('get_partitions_statistics_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -48677,61 +44737,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partitions_statistics_req_result) get_partitions_statistics_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [PartitionsStatsResult, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_aggr_stats_for_args: + (0, TType.STRUCT, 'success', [PartitionsStatsResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class get_aggr_stats_for_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -48751,12 +44787,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_aggr_stats_for_args") + oprot.writeStructBegin('get_aggr_stats_for_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -48766,30 +44803,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_aggr_stats_for_args) get_aggr_stats_for_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [PartitionsStatsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [PartitionsStatsRequest, None], None, ), # 1 ) -class get_aggr_stats_for_result: +class get_aggr_stats_for_result(object): """ Attributes: - success @@ -48797,23 +44827,16 @@ class get_aggr_stats_for_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -48843,20 +44866,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_aggr_stats_for_result") + oprot.writeStructBegin('get_aggr_stats_for_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -48866,61 +44890,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_aggr_stats_for_result) get_aggr_stats_for_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [AggrStats, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class set_aggr_stats_for_args: + (0, TType.STRUCT, 'success', [AggrStats, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class set_aggr_stats_for_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -48940,12 +44940,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("set_aggr_stats_for_args") + oprot.writeStructBegin('set_aggr_stats_for_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -48955,30 +44956,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(set_aggr_stats_for_args) set_aggr_stats_for_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [SetPartitionsStatsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [SetPartitionsStatsRequest, None], None, ), # 1 ) -class set_aggr_stats_for_result: +class set_aggr_stats_for_result(object): """ Attributes: - success @@ -48988,15 +44982,10 @@ class set_aggr_stats_for_result: - o4 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -49004,11 +44993,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -49047,28 +45032,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("set_aggr_stats_for_result") + oprot.writeStructBegin('set_aggr_stats_for_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -49078,57 +45064,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(set_aggr_stats_for_result) set_aggr_stats_for_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class delete_partition_column_statistics_args: + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class delete_partition_column_statistics_args(object): """ Attributes: - db_name @@ -49138,15 +45093,10 @@ class delete_partition_column_statistics_args: - engine """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - part_name=None, - col_name=None, - engine=None, - ): + + def __init__(self, db_name = None, tbl_name = None, part_name = None, col_name = None, engine = None,): self.db_name = db_name self.tbl_name = tbl_name self.part_name = part_name @@ -49154,11 +45104,7 @@ def __init__( self.engine = engine def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -49168,37 +45114,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.part_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.col_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.col_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.engine = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.engine = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -49207,29 +45143,30 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_partition_column_statistics_args") + oprot.writeStructBegin('delete_partition_column_statistics_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.part_name is not None: - oprot.writeFieldBegin("part_name", TType.STRING, 3) - oprot.writeString(self.part_name.encode("utf-8") if sys.version_info[0] == 2 else self.part_name) + oprot.writeFieldBegin('part_name', TType.STRING, 3) + oprot.writeString(self.part_name.encode('utf-8') if sys.version_info[0] == 2 else self.part_name) oprot.writeFieldEnd() if self.col_name is not None: - oprot.writeFieldBegin("col_name", TType.STRING, 4) - oprot.writeString(self.col_name.encode("utf-8") if sys.version_info[0] == 2 else self.col_name) + oprot.writeFieldBegin('col_name', TType.STRING, 4) + oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name) oprot.writeFieldEnd() if self.engine is not None: - oprot.writeFieldBegin("engine", TType.STRING, 5) - oprot.writeString(self.engine.encode("utf-8") if sys.version_info[0] == 2 else self.engine) + oprot.writeFieldBegin('engine', TType.STRING, 5) + oprot.writeString(self.engine.encode('utf-8') if sys.version_info[0] == 2 else self.engine) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -49238,58 +45175,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(delete_partition_column_statistics_args) delete_partition_column_statistics_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "part_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "col_name", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "engine", - "UTF8", - None, - ), # 5 -) - - -class delete_partition_column_statistics_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'part_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'col_name', 'UTF8', None, ), # 4 + (5, TType.STRING, 'engine', 'UTF8', None, ), # 5 +) + + +class delete_partition_column_statistics_result(object): """ Attributes: - success @@ -49299,15 +45205,10 @@ class delete_partition_column_statistics_result: - o4 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -49315,11 +45216,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -49358,28 +45255,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_partition_column_statistics_result") + oprot.writeStructBegin('delete_partition_column_statistics_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -49389,57 +45287,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(delete_partition_column_statistics_result) delete_partition_column_statistics_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidObjectException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class delete_table_column_statistics_args: + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class delete_table_column_statistics_args(object): """ Attributes: - db_name @@ -49448,25 +45315,17 @@ class delete_table_column_statistics_args: - engine """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - col_name=None, - engine=None, - ): + + def __init__(self, db_name = None, tbl_name = None, col_name = None, engine = None,): self.db_name = db_name self.tbl_name = tbl_name self.col_name = col_name self.engine = engine def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -49476,30 +45335,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.col_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.col_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.engine = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.engine = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -49508,25 +45359,26 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_table_column_statistics_args") + oprot.writeStructBegin('delete_table_column_statistics_args') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.col_name is not None: - oprot.writeFieldBegin("col_name", TType.STRING, 3) - oprot.writeString(self.col_name.encode("utf-8") if sys.version_info[0] == 2 else self.col_name) + oprot.writeFieldBegin('col_name', TType.STRING, 3) + oprot.writeString(self.col_name.encode('utf-8') if sys.version_info[0] == 2 else self.col_name) oprot.writeFieldEnd() if self.engine is not None: - oprot.writeFieldBegin("engine", TType.STRING, 4) - oprot.writeString(self.engine.encode("utf-8") if sys.version_info[0] == 2 else self.engine) + oprot.writeFieldBegin('engine', TType.STRING, 4) + oprot.writeString(self.engine.encode('utf-8') if sys.version_info[0] == 2 else self.engine) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -49535,51 +45387,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(delete_table_column_statistics_args) delete_table_column_statistics_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "col_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "engine", - "UTF8", - None, - ), # 4 -) - - -class delete_table_column_statistics_result: + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'col_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'engine', 'UTF8', None, ), # 4 +) + + +class delete_table_column_statistics_result(object): """ Attributes: - success @@ -49589,15 +45416,10 @@ class delete_table_column_statistics_result: - o4 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -49605,11 +45427,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -49648,28 +45466,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_table_column_statistics_result") + oprot.writeStructBegin('delete_table_column_statistics_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -49679,75 +45498,215 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(delete_table_column_statistics_result) delete_table_column_statistics_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidObjectException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class create_function_args: + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class delete_column_statistics_req_args(object): + """ + Attributes: + - req + + """ + thrift_spec = None + + + def __init__(self, req = None,): + self.req = req + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.req = DeleteColumnStatisticsRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('delete_column_statistics_req_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(delete_column_statistics_req_args) +delete_column_statistics_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [DeleteColumnStatisticsRequest, None], None, ), # 1 +) + + +class delete_column_statistics_req_result(object): + """ + Attributes: + - success + - o1 + - o2 + - o3 + - o4 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + self.o4 = o4 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.BOOL: + self.success = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = InvalidObjectException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = InvalidInputException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('delete_column_statistics_req_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) + oprot.writeFieldEnd() + 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() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(delete_column_statistics_req_result) +delete_column_statistics_req_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class create_function_args(object): """ Attributes: - func """ + thrift_spec = None - def __init__( - self, - func=None, - ): + + def __init__(self, func = None,): self.func = func def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -49767,12 +45726,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_function_args") + oprot.writeStructBegin('create_function_args') if self.func is not None: - oprot.writeFieldBegin("func", TType.STRUCT, 1) + oprot.writeFieldBegin('func', TType.STRUCT, 1) self.func.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -49782,30 +45742,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_function_args) create_function_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "func", - [Function, None], - None, - ), # 1 + (1, TType.STRUCT, 'func', [Function, None], None, ), # 1 ) -class create_function_result: +class create_function_result(object): """ Attributes: - o1 @@ -49814,25 +45767,17 @@ class create_function_result: - o4 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None, o4 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -49866,24 +45811,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_function_result") + oprot.writeStructBegin('create_function_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -49893,72 +45839,41 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_function_result) create_function_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [NoSuchObjectException, None], - None, - ), # 4 -) - - -class drop_function_args: + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [NoSuchObjectException, None], None, ), # 4 +) + + +class drop_function_args(object): """ Attributes: - dbName - funcName """ + thrift_spec = None + - def __init__( - self, - dbName=None, - funcName=None, - ): + def __init__(self, dbName = None, funcName = None,): self.dbName = dbName self.funcName = funcName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -49968,16 +45883,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.funcName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.funcName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -49986,17 +45897,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_function_args") + oprot.writeStructBegin('drop_function_args') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.funcName is not None: - oprot.writeFieldBegin("funcName", TType.STRING, 2) - oprot.writeString(self.funcName.encode("utf-8") if sys.version_info[0] == 2 else self.funcName) + oprot.writeFieldBegin('funcName', TType.STRING, 2) + oprot.writeString(self.funcName.encode('utf-8') if sys.version_info[0] == 2 else self.funcName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -50005,58 +45917,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_function_args) drop_function_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "funcName", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'funcName', 'UTF8', None, ), # 2 ) -class drop_function_result: +class drop_function_result(object): """ Attributes: - o1 - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o3=None, - ): + + def __init__(self, o1 = None, o3 = None,): self.o1 = o1 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50080,16 +45973,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_function_result") + oprot.writeStructBegin('drop_function_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 2) + oprot.writeFieldBegin('o3', TType.STRUCT, 2) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50099,37 +45993,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_function_result) drop_function_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o3', [MetaException, None], None, ), # 2 ) -class alter_function_args: +class alter_function_args(object): """ Attributes: - dbName @@ -50137,23 +46018,16 @@ class alter_function_args: - newFunc """ + thrift_spec = None + - def __init__( - self, - dbName=None, - funcName=None, - newFunc=None, - ): + def __init__(self, dbName = None, funcName = None, newFunc = None,): self.dbName = dbName self.funcName = funcName self.newFunc = newFunc def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50163,16 +46037,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.funcName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.funcName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -50187,20 +46057,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_function_args") + oprot.writeStructBegin('alter_function_args') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.funcName is not None: - oprot.writeFieldBegin("funcName", TType.STRING, 2) - oprot.writeString(self.funcName.encode("utf-8") if sys.version_info[0] == 2 else self.funcName) + oprot.writeFieldBegin('funcName', TType.STRING, 2) + oprot.writeString(self.funcName.encode('utf-8') if sys.version_info[0] == 2 else self.funcName) oprot.writeFieldEnd() if self.newFunc is not None: - oprot.writeFieldBegin("newFunc", TType.STRUCT, 3) + oprot.writeFieldBegin('newFunc', TType.STRUCT, 3) self.newFunc.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50210,65 +46081,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_function_args) alter_function_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "funcName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "newFunc", - [Function, None], - None, - ), # 3 -) - - -class alter_function_result: + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'funcName', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'newFunc', [Function, None], None, ), # 3 +) + + +class alter_function_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50292,16 +46138,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_function_result") + oprot.writeStructBegin('alter_function_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50311,58 +46158,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_function_result) alter_function_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [InvalidOperationException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [InvalidOperationException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class get_functions_args: +class get_functions_args(object): """ Attributes: - dbName - pattern """ + thrift_spec = None - def __init__( - self, - dbName=None, - pattern=None, - ): + + def __init__(self, dbName = None, pattern = None,): self.dbName = dbName self.pattern = pattern def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50372,16 +46200,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.pattern = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.pattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -50390,17 +46214,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_functions_args") + oprot.writeStructBegin('get_functions_args') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.pattern is not None: - oprot.writeFieldBegin("pattern", TType.STRING, 2) - oprot.writeString(self.pattern.encode("utf-8") if sys.version_info[0] == 2 else self.pattern) + oprot.writeFieldBegin('pattern', TType.STRING, 2) + oprot.writeString(self.pattern.encode('utf-8') if sys.version_info[0] == 2 else self.pattern) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -50409,58 +46234,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_functions_args) get_functions_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "pattern", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'pattern', 'UTF8', None, ), # 2 ) -class get_functions_result: +class get_functions_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50471,14 +46277,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1705, _size1702) = iprot.readListBegin() - for _i1706 in range(_size1702): - _elem1707 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1707) + (_etype1885, _size1882) = iprot.readListBegin() + for _i1886 in range(_size1882): + _elem1887 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1887) iprot.readListEnd() else: iprot.skip(ftype) @@ -50493,19 +46295,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_functions_result") + oprot.writeStructBegin('get_functions_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1708 in self.success: - oprot.writeString(iter1708.encode("utf-8") if sys.version_info[0] == 2 else iter1708) + for iter1888 in self.success: + oprot.writeString(iter1888.encode('utf-8') if sys.version_info[0] == 2 else iter1888) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50515,57 +46318,179 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_functions_result) get_functions_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 +) + + +class get_functions_req_args(object): + """ + Attributes: + - request + + """ + thrift_spec = None + + + def __init__(self, request = None,): + self.request = request + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.request = GetFunctionsRequest() + self.request.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_functions_req_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_functions_req_args) +get_functions_req_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', [GetFunctionsRequest, None], None, ), # 1 +) + + +class get_functions_req_result(object): + """ + Attributes: + - success + - o1 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None,): + self.success = success + self.o1 = o1 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = GetFunctionsResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_functions_req_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_functions_req_result) +get_functions_req_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetFunctionsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_function_args: +class get_function_args(object): """ Attributes: - dbName - funcName """ + thrift_spec = None + - def __init__( - self, - dbName=None, - funcName=None, - ): + def __init__(self, dbName = None, funcName = None,): self.dbName = dbName self.funcName = funcName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50575,16 +46500,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.funcName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.funcName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -50593,17 +46514,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_function_args") + oprot.writeStructBegin('get_function_args') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.funcName is not None: - oprot.writeFieldBegin("funcName", TType.STRING, 2) - oprot.writeString(self.funcName.encode("utf-8") if sys.version_info[0] == 2 else self.funcName) + oprot.writeFieldBegin('funcName', TType.STRING, 2) + oprot.writeString(self.funcName.encode('utf-8') if sys.version_info[0] == 2 else self.funcName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -50612,37 +46534,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_function_args) get_function_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "funcName", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'funcName', 'UTF8', None, ), # 2 ) -class get_function_result: +class get_function_result(object): """ Attributes: - success @@ -50650,23 +46559,16 @@ class get_function_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50696,20 +46598,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_function_result") + oprot.writeStructBegin('get_function_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50719,49 +46622,29 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_function_result) get_function_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Function, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 + (0, TType.STRUCT, 'success', [Function, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 ) -class get_all_functions_args: +class get_all_functions_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50775,10 +46658,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_functions_args") + oprot.writeStructBegin('get_all_functions_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -50786,42 +46670,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_functions_args) -get_all_functions_args.thrift_spec = () +get_all_functions_args.thrift_spec = ( +) -class get_all_functions_result: +class get_all_functions_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50846,16 +46724,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_functions_result") + oprot.writeStructBegin('get_all_functions_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50865,54 +46744,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_functions_result) get_all_functions_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetAllFunctionsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [GetAllFunctionsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class create_role_args: +class create_role_args(object): """ Attributes: - role """ + thrift_spec = None + - def __init__( - self, - role=None, - ): + def __init__(self, role = None,): self.role = role def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -50932,12 +46793,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_role_args") + oprot.writeStructBegin('create_role_args') if self.role is not None: - oprot.writeFieldBegin("role", TType.STRUCT, 1) + oprot.writeFieldBegin('role', TType.STRUCT, 1) self.role.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -50947,51 +46809,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_role_args) create_role_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "role", - [Role, None], - None, - ), # 1 + (1, TType.STRUCT, 'role', [Role, None], None, ), # 1 ) -class create_role_result: +class create_role_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51015,16 +46864,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_role_result") + oprot.writeStructBegin('create_role_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -51034,54 +46884,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_role_result) create_role_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class drop_role_args: +class drop_role_args(object): """ Attributes: - role_name """ + thrift_spec = None - def __init__( - self, - role_name=None, - ): + + def __init__(self, role_name = None,): self.role_name = role_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51091,9 +46923,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.role_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.role_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -51102,13 +46932,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_role_args") + oprot.writeStructBegin('drop_role_args') if self.role_name is not None: - oprot.writeFieldBegin("role_name", TType.STRING, 1) - oprot.writeString(self.role_name.encode("utf-8") if sys.version_info[0] == 2 else self.role_name) + oprot.writeFieldBegin('role_name', TType.STRING, 1) + oprot.writeString(self.role_name.encode('utf-8') if sys.version_info[0] == 2 else self.role_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -51117,51 +46948,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_role_args) drop_role_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "role_name", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'role_name', 'UTF8', None, ), # 1 ) -class drop_role_result: +class drop_role_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51185,16 +47003,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_role_result") + oprot.writeStructBegin('drop_role_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -51204,42 +47023,28 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_role_result) drop_role_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_role_names_args: +class get_role_names_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51253,10 +47058,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_role_names_args") + oprot.writeStructBegin('get_role_names_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -51264,42 +47070,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_role_names_args) -get_role_names_args.thrift_spec = () +get_role_names_args.thrift_spec = ( +) -class get_role_names_result: +class get_role_names_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51310,14 +47110,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1712, _size1709) = iprot.readListBegin() - for _i1713 in range(_size1709): - _elem1714 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1714) + (_etype1892, _size1889) = iprot.readListBegin() + for _i1893 in range(_size1889): + _elem1894 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1894) iprot.readListEnd() else: iprot.skip(ftype) @@ -51332,19 +47128,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_role_names_result") + oprot.writeStructBegin('get_role_names_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1715 in self.success: - oprot.writeString(iter1715.encode("utf-8") if sys.version_info[0] == 2 else iter1715) + for iter1895 in self.success: + oprot.writeString(iter1895.encode('utf-8') if sys.version_info[0] == 2 else iter1895) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -51354,36 +47151,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_role_names_result) get_role_names_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class grant_role_args: +class grant_role_args(object): """ Attributes: - role_name @@ -51394,16 +47178,10 @@ class grant_role_args: - grant_option """ + thrift_spec = None - def __init__( - self, - role_name=None, - principal_name=None, - principal_type=None, - grantor=None, - grantorType=None, - grant_option=None, - ): + + def __init__(self, role_name = None, principal_name = None, principal_type = None, grantor = None, grantorType = None, grant_option = None,): self.role_name = role_name self.principal_name = principal_name self.principal_type = principal_type @@ -51412,11 +47190,7 @@ def __init__( self.grant_option = grant_option def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51426,16 +47200,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.role_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.role_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.principal_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.principal_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -51445,9 +47215,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.grantor = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.grantor = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -51466,32 +47234,33 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("grant_role_args") + oprot.writeStructBegin('grant_role_args') if self.role_name is not None: - oprot.writeFieldBegin("role_name", TType.STRING, 1) - oprot.writeString(self.role_name.encode("utf-8") if sys.version_info[0] == 2 else self.role_name) + oprot.writeFieldBegin('role_name', TType.STRING, 1) + oprot.writeString(self.role_name.encode('utf-8') if sys.version_info[0] == 2 else self.role_name) oprot.writeFieldEnd() if self.principal_name is not None: - oprot.writeFieldBegin("principal_name", TType.STRING, 2) - oprot.writeString(self.principal_name.encode("utf-8") if sys.version_info[0] == 2 else self.principal_name) + oprot.writeFieldBegin('principal_name', TType.STRING, 2) + oprot.writeString(self.principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.principal_name) oprot.writeFieldEnd() if self.principal_type is not None: - oprot.writeFieldBegin("principal_type", TType.I32, 3) + oprot.writeFieldBegin('principal_type', TType.I32, 3) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() if self.grantor is not None: - oprot.writeFieldBegin("grantor", TType.STRING, 4) - oprot.writeString(self.grantor.encode("utf-8") if sys.version_info[0] == 2 else self.grantor) + oprot.writeFieldBegin('grantor', TType.STRING, 4) + oprot.writeString(self.grantor.encode('utf-8') if sys.version_info[0] == 2 else self.grantor) oprot.writeFieldEnd() if self.grantorType is not None: - oprot.writeFieldBegin("grantorType", TType.I32, 5) + oprot.writeFieldBegin('grantorType', TType.I32, 5) oprot.writeI32(self.grantorType) oprot.writeFieldEnd() if self.grant_option is not None: - oprot.writeFieldBegin("grant_option", TType.BOOL, 6) + oprot.writeFieldBegin('grant_option', TType.BOOL, 6) oprot.writeBool(self.grant_option) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -51501,86 +47270,43 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(grant_role_args) grant_role_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "role_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "principal_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I32, - "principal_type", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "grantor", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I32, - "grantorType", - None, - None, - ), # 5 - ( - 6, - TType.BOOL, - "grant_option", - None, - None, - ), # 6 -) - - -class grant_role_result: + (1, TType.STRING, 'role_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'principal_name', 'UTF8', None, ), # 2 + (3, TType.I32, 'principal_type', None, None, ), # 3 + (4, TType.STRING, 'grantor', 'UTF8', None, ), # 4 + (5, TType.I32, 'grantorType', None, None, ), # 5 + (6, TType.BOOL, 'grant_option', None, None, ), # 6 +) + + +class grant_role_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51604,16 +47330,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("grant_role_result") + oprot.writeStructBegin('grant_role_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -51623,36 +47350,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(grant_role_result) grant_role_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class revoke_role_args: +class revoke_role_args(object): """ Attributes: - role_name @@ -51660,23 +47374,16 @@ class revoke_role_args: - principal_type """ + thrift_spec = None + - def __init__( - self, - role_name=None, - principal_name=None, - principal_type=None, - ): + def __init__(self, role_name = None, principal_name = None, principal_type = None,): self.role_name = role_name self.principal_name = principal_name self.principal_type = principal_type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51686,16 +47393,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.role_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.role_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.principal_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.principal_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -51709,20 +47412,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("revoke_role_args") + oprot.writeStructBegin('revoke_role_args') if self.role_name is not None: - oprot.writeFieldBegin("role_name", TType.STRING, 1) - oprot.writeString(self.role_name.encode("utf-8") if sys.version_info[0] == 2 else self.role_name) + oprot.writeFieldBegin('role_name', TType.STRING, 1) + oprot.writeString(self.role_name.encode('utf-8') if sys.version_info[0] == 2 else self.role_name) oprot.writeFieldEnd() if self.principal_name is not None: - oprot.writeFieldBegin("principal_name", TType.STRING, 2) - oprot.writeString(self.principal_name.encode("utf-8") if sys.version_info[0] == 2 else self.principal_name) + oprot.writeFieldBegin('principal_name', TType.STRING, 2) + oprot.writeString(self.principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.principal_name) oprot.writeFieldEnd() if self.principal_type is not None: - oprot.writeFieldBegin("principal_type", TType.I32, 3) + oprot.writeFieldBegin('principal_type', TType.I32, 3) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -51732,65 +47436,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(revoke_role_args) revoke_role_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "role_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "principal_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I32, - "principal_type", - None, - None, - ), # 3 -) - - -class revoke_role_result: + (1, TType.STRING, 'role_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'principal_name', 'UTF8', None, ), # 2 + (3, TType.I32, 'principal_type', None, None, ), # 3 +) + + +class revoke_role_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51814,16 +47493,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("revoke_role_result") + oprot.writeStructBegin('revoke_role_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -51833,57 +47513,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(revoke_role_result) revoke_role_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class list_roles_args: +class list_roles_args(object): """ Attributes: - principal_name - principal_type """ + thrift_spec = None - def __init__( - self, - principal_name=None, - principal_type=None, - ): + + def __init__(self, principal_name = None, principal_type = None,): self.principal_name = principal_name self.principal_type = principal_type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51893,9 +47554,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.principal_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.principal_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -51909,16 +47568,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("list_roles_args") + oprot.writeStructBegin('list_roles_args') if self.principal_name is not None: - oprot.writeFieldBegin("principal_name", TType.STRING, 1) - oprot.writeString(self.principal_name.encode("utf-8") if sys.version_info[0] == 2 else self.principal_name) + oprot.writeFieldBegin('principal_name', TType.STRING, 1) + oprot.writeString(self.principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.principal_name) oprot.writeFieldEnd() if self.principal_type is not None: - oprot.writeFieldBegin("principal_type", TType.I32, 2) + oprot.writeFieldBegin('principal_type', TType.I32, 2) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -51928,58 +47588,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(list_roles_args) list_roles_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "principal_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I32, - "principal_type", - None, - None, - ), # 2 + (1, TType.STRING, 'principal_name', 'UTF8', None, ), # 1 + (2, TType.I32, 'principal_type', None, None, ), # 2 ) -class list_roles_result: +class list_roles_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51990,11 +47631,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1719, _size1716) = iprot.readListBegin() - for _i1720 in range(_size1716): - _elem1721 = Role() - _elem1721.read(iprot) - self.success.append(_elem1721) + (_etype1899, _size1896) = iprot.readListBegin() + for _i1900 in range(_size1896): + _elem1901 = Role() + _elem1901.read(iprot) + self.success.append(_elem1901) iprot.readListEnd() else: iprot.skip(ftype) @@ -52009,19 +47650,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("list_roles_result") + oprot.writeStructBegin('list_roles_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1722 in self.success: - iter1722.write(oprot) + for iter1902 in self.success: + iter1902.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52031,54 +47673,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(list_roles_result) list_roles_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [Role, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRUCT, [Role, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class grant_revoke_role_args: +class grant_revoke_role_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52098,12 +47722,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("grant_revoke_role_args") + oprot.writeStructBegin('grant_revoke_role_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52113,51 +47738,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(grant_revoke_role_args) grant_revoke_role_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [GrantRevokeRoleRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [GrantRevokeRoleRequest, None], None, ), # 1 ) -class grant_revoke_role_result: +class grant_revoke_role_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52182,16 +47794,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("grant_revoke_role_result") + oprot.writeStructBegin('grant_revoke_role_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52201,54 +47814,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(grant_revoke_role_result) grant_revoke_role_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GrantRevokeRoleResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [GrantRevokeRoleResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_principals_in_role_args: +class get_principals_in_role_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52268,12 +47863,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_principals_in_role_args") + oprot.writeStructBegin('get_principals_in_role_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52283,51 +47879,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_principals_in_role_args) get_principals_in_role_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [GetPrincipalsInRoleRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [GetPrincipalsInRoleRequest, None], None, ), # 1 ) -class get_principals_in_role_result: +class get_principals_in_role_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52352,16 +47935,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_principals_in_role_result") + oprot.writeStructBegin('get_principals_in_role_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52371,54 +47955,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_principals_in_role_result) get_principals_in_role_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetPrincipalsInRoleResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [GetPrincipalsInRoleResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_role_grants_for_principal_args: +class get_role_grants_for_principal_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52438,12 +48004,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_role_grants_for_principal_args") + oprot.writeStructBegin('get_role_grants_for_principal_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52453,51 +48020,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_role_grants_for_principal_args) get_role_grants_for_principal_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [GetRoleGrantsForPrincipalRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [GetRoleGrantsForPrincipalRequest, None], None, ), # 1 ) -class get_role_grants_for_principal_result: +class get_role_grants_for_principal_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52522,16 +48076,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_role_grants_for_principal_result") + oprot.writeStructBegin('get_role_grants_for_principal_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52541,36 +48096,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_role_grants_for_principal_result) get_role_grants_for_principal_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetRoleGrantsForPrincipalResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [GetRoleGrantsForPrincipalResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_privilege_set_args: +class get_privilege_set_args(object): """ Attributes: - hiveObject @@ -52578,23 +48120,16 @@ class get_privilege_set_args: - group_names """ + thrift_spec = None - def __init__( - self, - hiveObject=None, - user_name=None, - group_names=None, - ): + + def __init__(self, hiveObject = None, user_name = None, group_names = None,): self.hiveObject = hiveObject self.user_name = user_name self.group_names = group_names def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52610,22 +48145,16 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.user_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1726, _size1723) = iprot.readListBegin() - for _i1727 in range(_size1723): - _elem1728 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.group_names.append(_elem1728) + (_etype1906, _size1903) = iprot.readListBegin() + for _i1907 in range(_size1903): + _elem1908 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.group_names.append(_elem1908) iprot.readListEnd() else: iprot.skip(ftype) @@ -52635,23 +48164,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_privilege_set_args") + oprot.writeStructBegin('get_privilege_set_args') if self.hiveObject is not None: - oprot.writeFieldBegin("hiveObject", TType.STRUCT, 1) + oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1) self.hiveObject.write(oprot) oprot.writeFieldEnd() if self.user_name is not None: - oprot.writeFieldBegin("user_name", TType.STRING, 2) - oprot.writeString(self.user_name.encode("utf-8") if sys.version_info[0] == 2 else self.user_name) + oprot.writeFieldBegin('user_name', TType.STRING, 2) + oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name) oprot.writeFieldEnd() if self.group_names is not None: - oprot.writeFieldBegin("group_names", TType.LIST, 3) + oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1729 in self.group_names: - oprot.writeString(iter1729.encode("utf-8") if sys.version_info[0] == 2 else iter1729) + for iter1909 in self.group_names: + oprot.writeString(iter1909.encode('utf-8') if sys.version_info[0] == 2 else iter1909) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52661,65 +48191,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_privilege_set_args) get_privilege_set_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "hiveObject", - [HiveObjectRef, None], - None, - ), # 1 - ( - 2, - TType.STRING, - "user_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "group_names", - (TType.STRING, "UTF8", False), - None, - ), # 3 -) - - -class get_privilege_set_result: + (1, TType.STRUCT, 'hiveObject', [HiveObjectRef, None], None, ), # 1 + (2, TType.STRING, 'user_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 3 +) + + +class get_privilege_set_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52744,16 +48249,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_privilege_set_result") + oprot.writeStructBegin('get_privilege_set_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52763,36 +48269,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_privilege_set_result) get_privilege_set_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [PrincipalPrivilegeSet, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [PrincipalPrivilegeSet, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class list_privileges_args: +class list_privileges_args(object): """ Attributes: - principal_name @@ -52800,23 +48293,16 @@ class list_privileges_args: - hiveObject """ + thrift_spec = None + - def __init__( - self, - principal_name=None, - principal_type=None, - hiveObject=None, - ): + def __init__(self, principal_name = None, principal_type = None, hiveObject = None,): self.principal_name = principal_name self.principal_type = principal_type self.hiveObject = hiveObject def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52826,9 +48312,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.principal_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.principal_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -52848,20 +48332,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("list_privileges_args") + oprot.writeStructBegin('list_privileges_args') if self.principal_name is not None: - oprot.writeFieldBegin("principal_name", TType.STRING, 1) - oprot.writeString(self.principal_name.encode("utf-8") if sys.version_info[0] == 2 else self.principal_name) + oprot.writeFieldBegin('principal_name', TType.STRING, 1) + oprot.writeString(self.principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.principal_name) oprot.writeFieldEnd() if self.principal_type is not None: - oprot.writeFieldBegin("principal_type", TType.I32, 2) + oprot.writeFieldBegin('principal_type', TType.I32, 2) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() if self.hiveObject is not None: - oprot.writeFieldBegin("hiveObject", TType.STRUCT, 3) + oprot.writeFieldBegin('hiveObject', TType.STRUCT, 3) self.hiveObject.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52871,65 +48356,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(list_privileges_args) list_privileges_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "principal_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I32, - "principal_type", - None, - None, - ), # 2 - ( - 3, - TType.STRUCT, - "hiveObject", - [HiveObjectRef, None], - None, - ), # 3 -) - - -class list_privileges_result: + (1, TType.STRING, 'principal_name', 'UTF8', None, ), # 1 + (2, TType.I32, 'principal_type', None, None, ), # 2 + (3, TType.STRUCT, 'hiveObject', [HiveObjectRef, None], None, ), # 3 +) + + +class list_privileges_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -52940,11 +48400,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1733, _size1730) = iprot.readListBegin() - for _i1734 in range(_size1730): - _elem1735 = HiveObjectPrivilege() - _elem1735.read(iprot) - self.success.append(_elem1735) + (_etype1913, _size1910) = iprot.readListBegin() + for _i1914 in range(_size1910): + _elem1915 = HiveObjectPrivilege() + _elem1915.read(iprot) + self.success.append(_elem1915) iprot.readListEnd() else: iprot.skip(ftype) @@ -52959,19 +48419,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("list_privileges_result") + oprot.writeStructBegin('list_privileges_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1736 in self.success: - iter1736.write(oprot) + for iter1916 in self.success: + iter1916.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -52981,54 +48442,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(list_privileges_result) list_privileges_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [HiveObjectPrivilege, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRUCT, [HiveObjectPrivilege, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class grant_privileges_args: +class grant_privileges_args(object): """ Attributes: - privileges """ + thrift_spec = None - def __init__( - self, - privileges=None, - ): + + def __init__(self, privileges = None,): self.privileges = privileges def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53048,12 +48491,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("grant_privileges_args") + oprot.writeStructBegin('grant_privileges_args') if self.privileges is not None: - oprot.writeFieldBegin("privileges", TType.STRUCT, 1) + oprot.writeFieldBegin('privileges', TType.STRUCT, 1) self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53063,51 +48507,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(grant_privileges_args) grant_privileges_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "privileges", - [PrivilegeBag, None], - None, - ), # 1 + (1, TType.STRUCT, 'privileges', [PrivilegeBag, None], None, ), # 1 ) -class grant_privileges_result: +class grant_privileges_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53131,16 +48562,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("grant_privileges_result") + oprot.writeStructBegin('grant_privileges_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53150,54 +48582,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(grant_privileges_result) grant_privileges_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class revoke_privileges_args: +class revoke_privileges_args(object): """ Attributes: - privileges """ + thrift_spec = None - def __init__( - self, - privileges=None, - ): + + def __init__(self, privileges = None,): self.privileges = privileges def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53217,12 +48631,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("revoke_privileges_args") + oprot.writeStructBegin('revoke_privileges_args') if self.privileges is not None: - oprot.writeFieldBegin("privileges", TType.STRUCT, 1) + oprot.writeFieldBegin('privileges', TType.STRUCT, 1) self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53232,51 +48647,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(revoke_privileges_args) revoke_privileges_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "privileges", - [PrivilegeBag, None], - None, - ), # 1 + (1, TType.STRUCT, 'privileges', [PrivilegeBag, None], None, ), # 1 ) -class revoke_privileges_result: +class revoke_privileges_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53300,16 +48702,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("revoke_privileges_result") + oprot.writeStructBegin('revoke_privileges_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53319,54 +48722,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(revoke_privileges_result) revoke_privileges_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class grant_revoke_privileges_args: +class grant_revoke_privileges_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53386,12 +48771,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("grant_revoke_privileges_args") + oprot.writeStructBegin('grant_revoke_privileges_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53401,51 +48787,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(grant_revoke_privileges_args) grant_revoke_privileges_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [GrantRevokePrivilegeRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [GrantRevokePrivilegeRequest, None], None, ), # 1 ) -class grant_revoke_privileges_result: +class grant_revoke_privileges_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53470,16 +48843,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("grant_revoke_privileges_result") + oprot.writeStructBegin('grant_revoke_privileges_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53489,36 +48863,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(grant_revoke_privileges_result) grant_revoke_privileges_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GrantRevokePrivilegeResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [GrantRevokePrivilegeResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class refresh_privileges_args: +class refresh_privileges_args(object): """ Attributes: - objToRefresh @@ -53526,23 +48887,16 @@ class refresh_privileges_args: - grantRequest """ + thrift_spec = None - def __init__( - self, - objToRefresh=None, - authorizer=None, - grantRequest=None, - ): + + def __init__(self, objToRefresh = None, authorizer = None, grantRequest = None,): self.objToRefresh = objToRefresh self.authorizer = authorizer self.grantRequest = grantRequest def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53558,9 +48912,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.authorizer = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.authorizer = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -53575,20 +48927,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("refresh_privileges_args") + oprot.writeStructBegin('refresh_privileges_args') if self.objToRefresh is not None: - oprot.writeFieldBegin("objToRefresh", TType.STRUCT, 1) + oprot.writeFieldBegin('objToRefresh', TType.STRUCT, 1) self.objToRefresh.write(oprot) oprot.writeFieldEnd() if self.authorizer is not None: - oprot.writeFieldBegin("authorizer", TType.STRING, 2) - oprot.writeString(self.authorizer.encode("utf-8") if sys.version_info[0] == 2 else self.authorizer) + oprot.writeFieldBegin('authorizer', TType.STRING, 2) + oprot.writeString(self.authorizer.encode('utf-8') if sys.version_info[0] == 2 else self.authorizer) oprot.writeFieldEnd() if self.grantRequest is not None: - oprot.writeFieldBegin("grantRequest", TType.STRUCT, 3) + oprot.writeFieldBegin('grantRequest', TType.STRUCT, 3) self.grantRequest.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53598,65 +48951,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(refresh_privileges_args) refresh_privileges_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "objToRefresh", - [HiveObjectRef, None], - None, - ), # 1 - ( - 2, - TType.STRING, - "authorizer", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "grantRequest", - [GrantRevokePrivilegeRequest, None], - None, - ), # 3 -) - - -class refresh_privileges_result: + (1, TType.STRUCT, 'objToRefresh', [HiveObjectRef, None], None, ), # 1 + (2, TType.STRING, 'authorizer', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'grantRequest', [GrantRevokePrivilegeRequest, None], None, ), # 3 +) + + +class refresh_privileges_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53681,16 +49009,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("refresh_privileges_result") + oprot.writeStructBegin('refresh_privileges_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53700,57 +49029,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(refresh_privileges_result) refresh_privileges_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GrantRevokePrivilegeResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [GrantRevokePrivilegeResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class set_ugi_args: +class set_ugi_args(object): """ Attributes: - user_name - group_names """ + thrift_spec = None + - def __init__( - self, - user_name=None, - group_names=None, - ): + def __init__(self, user_name = None, group_names = None,): self.user_name = user_name self.group_names = group_names def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53760,22 +49070,16 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.user_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1740, _size1737) = iprot.readListBegin() - for _i1741 in range(_size1737): - _elem1742 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.group_names.append(_elem1742) + (_etype1920, _size1917) = iprot.readListBegin() + for _i1921 in range(_size1917): + _elem1922 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.group_names.append(_elem1922) iprot.readListEnd() else: iprot.skip(ftype) @@ -53785,19 +49089,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("set_ugi_args") + oprot.writeStructBegin('set_ugi_args') if self.user_name is not None: - oprot.writeFieldBegin("user_name", TType.STRING, 1) - oprot.writeString(self.user_name.encode("utf-8") if sys.version_info[0] == 2 else self.user_name) + oprot.writeFieldBegin('user_name', TType.STRING, 1) + oprot.writeString(self.user_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_name) oprot.writeFieldEnd() if self.group_names is not None: - oprot.writeFieldBegin("group_names", TType.LIST, 2) + oprot.writeFieldBegin('group_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter1743 in self.group_names: - oprot.writeString(iter1743.encode("utf-8") if sys.version_info[0] == 2 else iter1743) + for iter1923 in self.group_names: + oprot.writeString(iter1923.encode('utf-8') if sys.version_info[0] == 2 else iter1923) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53807,58 +49112,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(set_ugi_args) set_ugi_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "user_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.LIST, - "group_names", - (TType.STRING, "UTF8", False), - None, - ), # 2 + (1, TType.STRING, 'user_name', 'UTF8', None, ), # 1 + (2, TType.LIST, 'group_names', (TType.STRING, 'UTF8', False), None, ), # 2 ) -class set_ugi_result: +class set_ugi_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53869,14 +49155,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1747, _size1744) = iprot.readListBegin() - for _i1748 in range(_size1744): - _elem1749 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1749) + (_etype1927, _size1924) = iprot.readListBegin() + for _i1928 in range(_size1924): + _elem1929 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1929) iprot.readListEnd() else: iprot.skip(ftype) @@ -53891,19 +49173,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("set_ugi_result") + oprot.writeStructBegin('set_ugi_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1750 in self.success: - oprot.writeString(iter1750.encode("utf-8") if sys.version_info[0] == 2 else iter1750) + for iter1930 in self.success: + oprot.writeString(iter1930.encode('utf-8') if sys.version_info[0] == 2 else iter1930) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -53913,57 +49196,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(set_ugi_result) set_ugi_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_delegation_token_args: +class get_delegation_token_args(object): """ Attributes: - token_owner - renewer_kerberos_principal_name """ + thrift_spec = None + - def __init__( - self, - token_owner=None, - renewer_kerberos_principal_name=None, - ): + def __init__(self, token_owner = None, renewer_kerberos_principal_name = None,): self.token_owner = token_owner self.renewer_kerberos_principal_name = renewer_kerberos_principal_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -53973,16 +49237,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_owner = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.token_owner = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.renewer_kerberos_principal_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.renewer_kerberos_principal_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -53991,21 +49251,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_delegation_token_args") + oprot.writeStructBegin('get_delegation_token_args') if self.token_owner is not None: - oprot.writeFieldBegin("token_owner", TType.STRING, 1) - oprot.writeString(self.token_owner.encode("utf-8") if sys.version_info[0] == 2 else self.token_owner) + oprot.writeFieldBegin('token_owner', TType.STRING, 1) + oprot.writeString(self.token_owner.encode('utf-8') if sys.version_info[0] == 2 else self.token_owner) oprot.writeFieldEnd() if self.renewer_kerberos_principal_name is not None: - oprot.writeFieldBegin("renewer_kerberos_principal_name", TType.STRING, 2) - oprot.writeString( - self.renewer_kerberos_principal_name.encode("utf-8") - if sys.version_info[0] == 2 - else self.renewer_kerberos_principal_name - ) + oprot.writeFieldBegin('renewer_kerberos_principal_name', TType.STRING, 2) + oprot.writeString(self.renewer_kerberos_principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.renewer_kerberos_principal_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -54014,58 +49271,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_delegation_token_args) get_delegation_token_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "token_owner", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "renewer_kerberos_principal_name", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'token_owner', 'UTF8', None, ), # 1 + (2, TType.STRING, 'renewer_kerberos_principal_name', 'UTF8', None, ), # 2 ) -class get_delegation_token_result: +class get_delegation_token_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54075,9 +49313,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 1: @@ -54091,16 +49327,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_delegation_token_result") + oprot.writeStructBegin('get_delegation_token_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -54110,54 +49347,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_delegation_token_result) get_delegation_token_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class renew_delegation_token_args: +class renew_delegation_token_args(object): """ Attributes: - token_str_form """ + thrift_spec = None + - def __init__( - self, - token_str_form=None, - ): + def __init__(self, token_str_form = None,): self.token_str_form = token_str_form def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54167,9 +49386,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_str_form = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.token_str_form = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -54178,13 +49395,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("renew_delegation_token_args") + oprot.writeStructBegin('renew_delegation_token_args') if self.token_str_form is not None: - oprot.writeFieldBegin("token_str_form", TType.STRING, 1) - oprot.writeString(self.token_str_form.encode("utf-8") if sys.version_info[0] == 2 else self.token_str_form) + oprot.writeFieldBegin('token_str_form', TType.STRING, 1) + oprot.writeString(self.token_str_form.encode('utf-8') if sys.version_info[0] == 2 else self.token_str_form) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -54193,51 +49411,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(renew_delegation_token_args) renew_delegation_token_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "token_str_form", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'token_str_form', 'UTF8', None, ), # 1 ) -class renew_delegation_token_result: +class renew_delegation_token_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54261,16 +49466,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("renew_delegation_token_result") + oprot.writeStructBegin('renew_delegation_token_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I64, 0) + oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -54280,54 +49486,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(renew_delegation_token_result) renew_delegation_token_result.thrift_spec = ( - ( - 0, - TType.I64, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.I64, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class cancel_delegation_token_args: +class cancel_delegation_token_args(object): """ Attributes: - token_str_form """ + thrift_spec = None + - def __init__( - self, - token_str_form=None, - ): + def __init__(self, token_str_form = None,): self.token_str_form = token_str_form def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54337,9 +49525,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_str_form = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.token_str_form = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -54348,13 +49534,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("cancel_delegation_token_args") + oprot.writeStructBegin('cancel_delegation_token_args') if self.token_str_form is not None: - oprot.writeFieldBegin("token_str_form", TType.STRING, 1) - oprot.writeString(self.token_str_form.encode("utf-8") if sys.version_info[0] == 2 else self.token_str_form) + oprot.writeFieldBegin('token_str_form', TType.STRING, 1) + oprot.writeString(self.token_str_form.encode('utf-8') if sys.version_info[0] == 2 else self.token_str_form) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -54363,48 +49550,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(cancel_delegation_token_args) cancel_delegation_token_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "token_str_form", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'token_str_form', 'UTF8', None, ), # 1 ) -class cancel_delegation_token_result: +class cancel_delegation_token_result(object): """ Attributes: - o1 """ + thrift_spec = None - def __init__( - self, - o1=None, - ): + + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54423,12 +49598,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("cancel_delegation_token_result") + oprot.writeStructBegin('cancel_delegation_token_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -54438,51 +49614,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(cancel_delegation_token_result) cancel_delegation_token_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class add_token_args: +class add_token_args(object): """ Attributes: - token_identifier - delegation_token """ + thrift_spec = None + - def __init__( - self, - token_identifier=None, - delegation_token=None, - ): + def __init__(self, token_identifier = None, delegation_token = None,): self.token_identifier = token_identifier self.delegation_token = delegation_token def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54492,16 +49655,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_identifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.token_identifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.delegation_token = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.delegation_token = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -54510,17 +49669,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_token_args") + oprot.writeStructBegin('add_token_args') if self.token_identifier is not None: - oprot.writeFieldBegin("token_identifier", TType.STRING, 1) - oprot.writeString(self.token_identifier.encode("utf-8") if sys.version_info[0] == 2 else self.token_identifier) + oprot.writeFieldBegin('token_identifier', TType.STRING, 1) + oprot.writeString(self.token_identifier.encode('utf-8') if sys.version_info[0] == 2 else self.token_identifier) oprot.writeFieldEnd() if self.delegation_token is not None: - oprot.writeFieldBegin("delegation_token", TType.STRING, 2) - oprot.writeString(self.delegation_token.encode("utf-8") if sys.version_info[0] == 2 else self.delegation_token) + oprot.writeFieldBegin('delegation_token', TType.STRING, 2) + oprot.writeString(self.delegation_token.encode('utf-8') if sys.version_info[0] == 2 else self.delegation_token) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -54529,55 +49689,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_token_args) add_token_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "token_identifier", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "delegation_token", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'token_identifier', 'UTF8', None, ), # 1 + (2, TType.STRING, 'delegation_token', 'UTF8', None, ), # 2 ) -class add_token_result: +class add_token_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54596,12 +49738,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_token_result") + oprot.writeStructBegin('add_token_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -54611,47 +49754,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_token_result) add_token_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 + (0, TType.BOOL, 'success', None, None, ), # 0 ) -class remove_token_args: +class remove_token_args(object): """ Attributes: - token_identifier """ + thrift_spec = None - def __init__( - self, - token_identifier=None, - ): + + def __init__(self, token_identifier = None,): self.token_identifier = token_identifier def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54661,9 +49792,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_identifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.token_identifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -54672,13 +49801,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("remove_token_args") + oprot.writeStructBegin('remove_token_args') if self.token_identifier is not None: - oprot.writeFieldBegin("token_identifier", TType.STRING, 1) - oprot.writeString(self.token_identifier.encode("utf-8") if sys.version_info[0] == 2 else self.token_identifier) + oprot.writeFieldBegin('token_identifier', TType.STRING, 1) + oprot.writeString(self.token_identifier.encode('utf-8') if sys.version_info[0] == 2 else self.token_identifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -54687,48 +49817,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(remove_token_args) remove_token_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "token_identifier", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'token_identifier', 'UTF8', None, ), # 1 ) -class remove_token_result: +class remove_token_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54747,12 +49865,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("remove_token_result") + oprot.writeStructBegin('remove_token_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -54762,47 +49881,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(remove_token_result) remove_token_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 + (0, TType.BOOL, 'success', None, None, ), # 0 ) -class get_token_args: +class get_token_args(object): """ Attributes: - token_identifier """ + thrift_spec = None - def __init__( - self, - token_identifier=None, - ): + + def __init__(self, token_identifier = None,): self.token_identifier = token_identifier def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54812,9 +49919,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_identifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.token_identifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -54823,13 +49928,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_token_args") + oprot.writeStructBegin('get_token_args') if self.token_identifier is not None: - oprot.writeFieldBegin("token_identifier", TType.STRING, 1) - oprot.writeString(self.token_identifier.encode("utf-8") if sys.version_info[0] == 2 else self.token_identifier) + oprot.writeFieldBegin('token_identifier', TType.STRING, 1) + oprot.writeString(self.token_identifier.encode('utf-8') if sys.version_info[0] == 2 else self.token_identifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -54838,48 +49944,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_token_args) get_token_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "token_identifier", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'token_identifier', 'UTF8', None, ), # 1 ) -class get_token_result: +class get_token_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54889,9 +49983,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -54900,13 +49992,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_token_result") + oprot.writeStructBegin('get_token_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -54915,35 +50008,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_token_result) get_token_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 ) -class get_all_token_identifiers_args: +class get_all_token_identifiers_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -54957,10 +50042,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_token_identifiers_args") + oprot.writeStructBegin('get_all_token_identifiers_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -54968,39 +50054,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_token_identifiers_args) -get_all_token_identifiers_args.thrift_spec = () +get_all_token_identifiers_args.thrift_spec = ( +) -class get_all_token_identifiers_result: +class get_all_token_identifiers_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55011,14 +50092,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1754, _size1751) = iprot.readListBegin() - for _i1755 in range(_size1751): - _elem1756 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1756) + (_etype1934, _size1931) = iprot.readListBegin() + for _i1935 in range(_size1931): + _elem1936 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1936) iprot.readListEnd() else: iprot.skip(ftype) @@ -55028,15 +50105,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_token_identifiers_result") + oprot.writeStructBegin('get_all_token_identifiers_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1757 in self.success: - oprot.writeString(iter1757.encode("utf-8") if sys.version_info[0] == 2 else iter1757) + for iter1937 in self.success: + oprot.writeString(iter1937.encode('utf-8') if sys.version_info[0] == 2 else iter1937) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -55046,47 +50124,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_token_identifiers_result) get_all_token_identifiers_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 ) -class add_master_key_args: +class add_master_key_args(object): """ Attributes: - key """ + thrift_spec = None - def __init__( - self, - key=None, - ): + + def __init__(self, key = None,): self.key = key def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55096,9 +50162,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.key = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.key = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -55107,13 +50171,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_master_key_args") + oprot.writeStructBegin('add_master_key_args') if self.key is not None: - oprot.writeFieldBegin("key", TType.STRING, 1) - oprot.writeString(self.key.encode("utf-8") if sys.version_info[0] == 2 else self.key) + oprot.writeFieldBegin('key', TType.STRING, 1) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -55122,51 +50187,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_master_key_args) add_master_key_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "key", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'key', 'UTF8', None, ), # 1 ) -class add_master_key_result: +class add_master_key_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55190,16 +50242,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_master_key_result") + oprot.writeStructBegin('add_master_key_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I32, 0) + oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -55209,57 +50262,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_master_key_result) add_master_key_result.thrift_spec = ( - ( - 0, - TType.I32, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.I32, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class update_master_key_args: +class update_master_key_args(object): """ Attributes: - seq_number - key """ + thrift_spec = None - def __init__( - self, - seq_number=None, - key=None, - ): + + def __init__(self, seq_number = None, key = None,): self.seq_number = seq_number self.key = key def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55274,9 +50308,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.key = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.key = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -55285,17 +50317,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_master_key_args") + oprot.writeStructBegin('update_master_key_args') if self.seq_number is not None: - oprot.writeFieldBegin("seq_number", TType.I32, 1) + oprot.writeFieldBegin('seq_number', TType.I32, 1) oprot.writeI32(self.seq_number) oprot.writeFieldEnd() if self.key is not None: - oprot.writeFieldBegin("key", TType.STRING, 2) - oprot.writeString(self.key.encode("utf-8") if sys.version_info[0] == 2 else self.key) + oprot.writeFieldBegin('key', TType.STRING, 2) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -55304,58 +50337,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_master_key_args) update_master_key_args.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "seq_number", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "key", - "UTF8", - None, - ), # 2 + (1, TType.I32, 'seq_number', None, None, ), # 1 + (2, TType.STRING, 'key', 'UTF8', None, ), # 2 ) -class update_master_key_result: +class update_master_key_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55379,16 +50393,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_master_key_result") + oprot.writeStructBegin('update_master_key_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -55398,55 +50413,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_master_key_result) update_master_key_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class remove_master_key_args: +class remove_master_key_args(object): """ Attributes: - key_seq """ + thrift_spec = None - def __init__( - self, - key_seq=None, - ): + + def __init__(self, key_seq = None,): self.key_seq = key_seq def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55465,12 +50462,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("remove_master_key_args") + oprot.writeStructBegin('remove_master_key_args') if self.key_seq is not None: - oprot.writeFieldBegin("key_seq", TType.I32, 1) + oprot.writeFieldBegin('key_seq', TType.I32, 1) oprot.writeI32(self.key_seq) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -55480,48 +50478,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(remove_master_key_args) remove_master_key_args.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "key_seq", - None, - None, - ), # 1 + (1, TType.I32, 'key_seq', None, None, ), # 1 ) -class remove_master_key_result: +class remove_master_key_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55540,12 +50526,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("remove_master_key_result") + oprot.writeStructBegin('remove_master_key_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -55555,35 +50542,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(remove_master_key_result) remove_master_key_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 + (0, TType.BOOL, 'success', None, None, ), # 0 ) -class get_master_keys_args: +class get_master_keys_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55597,10 +50576,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_master_keys_args") + oprot.writeStructBegin('get_master_keys_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -55608,39 +50588,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_master_keys_args) -get_master_keys_args.thrift_spec = () +get_master_keys_args.thrift_spec = ( +) -class get_master_keys_result: +class get_master_keys_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55651,14 +50626,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1761, _size1758) = iprot.readListBegin() - for _i1762 in range(_size1758): - _elem1763 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1763) + (_etype1941, _size1938) = iprot.readListBegin() + for _i1942 in range(_size1938): + _elem1943 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1943) iprot.readListEnd() else: iprot.skip(ftype) @@ -55668,15 +50639,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_master_keys_result") + oprot.writeStructBegin('get_master_keys_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1764 in self.success: - oprot.writeString(iter1764.encode("utf-8") if sys.version_info[0] == 2 else iter1764) + for iter1944 in self.success: + oprot.writeString(iter1944.encode('utf-8') if sys.version_info[0] == 2 else iter1944) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -55686,35 +50658,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_master_keys_result) get_master_keys_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 ) -class get_open_txns_args: +class get_open_txns_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55728,10 +50692,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_open_txns_args") + oprot.writeStructBegin('get_open_txns_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -55739,39 +50704,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_open_txns_args) -get_open_txns_args.thrift_spec = () +get_open_txns_args.thrift_spec = ( +) -class get_open_txns_result: +class get_open_txns_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55791,12 +50751,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_open_txns_result") + oprot.writeStructBegin('get_open_txns_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -55806,35 +50767,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_open_txns_result) get_open_txns_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetOpenTxnsResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [GetOpenTxnsResponse, None], None, ), # 0 ) -class get_open_txns_info_args: +class get_open_txns_info_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55848,10 +50801,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_open_txns_info_args") + oprot.writeStructBegin('get_open_txns_info_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -55859,39 +50813,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_open_txns_info_args) -get_open_txns_info_args.thrift_spec = () +get_open_txns_info_args.thrift_spec = ( +) -class get_open_txns_info_result: +class get_open_txns_info_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55911,12 +50860,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_open_txns_info_result") + oprot.writeStructBegin('get_open_txns_info_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -55926,47 +50876,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_open_txns_info_result) get_open_txns_info_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetOpenTxnsInfoResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [GetOpenTxnsInfoResponse, None], None, ), # 0 ) -class open_txns_args: +class open_txns_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -55986,12 +50924,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("open_txns_args") + oprot.writeStructBegin('open_txns_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56001,48 +50940,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(open_txns_args) open_txns_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [OpenTxnRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [OpenTxnRequest, None], None, ), # 1 ) -class open_txns_result: +class open_txns_result(object): """ Attributes: - success """ + thrift_spec = None - def __init__( - self, - success=None, - ): + + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56062,12 +50989,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("open_txns_result") + oprot.writeStructBegin('open_txns_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56077,47 +51005,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(open_txns_result) open_txns_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [OpenTxnsResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [OpenTxnsResponse, None], None, ), # 0 ) -class abort_txn_args: +class abort_txn_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56137,12 +51053,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("abort_txn_args") + oprot.writeStructBegin('abort_txn_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56152,48 +51069,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(abort_txn_args) abort_txn_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [AbortTxnRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [AbortTxnRequest, None], None, ), # 1 ) -class abort_txn_result: +class abort_txn_result(object): """ Attributes: - o1 """ + thrift_spec = None - def __init__( - self, - o1=None, - ): + + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56212,12 +51117,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("abort_txn_result") + oprot.writeStructBegin('abort_txn_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56227,48 +51133,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(abort_txn_result) abort_txn_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchTxnException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1 ) -class abort_txns_args: +class abort_txns_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56288,12 +51182,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("abort_txns_args") + oprot.writeStructBegin('abort_txns_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56303,48 +51198,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(abort_txns_args) abort_txns_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [AbortTxnsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [AbortTxnsRequest, None], None, ), # 1 ) -class abort_txns_result: +class abort_txns_result(object): """ Attributes: - o1 """ + thrift_spec = None - def __init__( - self, - o1=None, - ): + + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56363,12 +51246,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("abort_txns_result") + oprot.writeStructBegin('abort_txns_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56378,48 +51262,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(abort_txns_result) abort_txns_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchTxnException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1 ) -class commit_txn_args: +class commit_txn_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56439,12 +51311,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("commit_txn_args") + oprot.writeStructBegin('commit_txn_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56454,51 +51327,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(commit_txn_args) commit_txn_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [CommitTxnRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [CommitTxnRequest, None], None, ), # 1 ) -class commit_txn_result: +class commit_txn_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56522,16 +51382,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("commit_txn_result") + oprot.writeStructBegin('commit_txn_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56541,55 +51402,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(commit_txn_result) commit_txn_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchTxnException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [TxnAbortedException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [TxnAbortedException, None], None, ), # 2 ) -class get_latest_txnid_in_conflict_args: +class get_latest_txnid_in_conflict_args(object): """ Attributes: - txnId """ + thrift_spec = None + - def __init__( - self, - txnId=None, - ): + def __init__(self, txnId = None,): self.txnId = txnId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56608,12 +51451,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_latest_txnid_in_conflict_args") + oprot.writeStructBegin('get_latest_txnid_in_conflict_args') if self.txnId is not None: - oprot.writeFieldBegin("txnId", TType.I64, 1) + oprot.writeFieldBegin('txnId', TType.I64, 1) oprot.writeI64(self.txnId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56623,51 +51467,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_latest_txnid_in_conflict_args) get_latest_txnid_in_conflict_args.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "txnId", - None, - None, - ), # 1 + (1, TType.I64, 'txnId', None, None, ), # 1 ) -class get_latest_txnid_in_conflict_result: +class get_latest_txnid_in_conflict_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56691,16 +51522,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_latest_txnid_in_conflict_result") + oprot.writeStructBegin('get_latest_txnid_in_conflict_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I64, 0) + oprot.writeFieldBegin('success', TType.I64, 0) oprot.writeI64(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56710,54 +51542,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_latest_txnid_in_conflict_result) get_latest_txnid_in_conflict_result.thrift_spec = ( - ( - 0, - TType.I64, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.I64, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class repl_tbl_writeid_state_args: +class repl_tbl_writeid_state_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56777,12 +51591,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("repl_tbl_writeid_state_args") + oprot.writeStructBegin('repl_tbl_writeid_state_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56792,36 +51607,28 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(repl_tbl_writeid_state_args) repl_tbl_writeid_state_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [ReplTblWriteIdStateRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [ReplTblWriteIdStateRequest, None], None, ), # 1 ) -class repl_tbl_writeid_state_result: +class repl_tbl_writeid_state_result(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56835,10 +51642,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("repl_tbl_writeid_state_result") + oprot.writeStructBegin('repl_tbl_writeid_state_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -56846,39 +51654,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(repl_tbl_writeid_state_result) -repl_tbl_writeid_state_result.thrift_spec = () +repl_tbl_writeid_state_result.thrift_spec = ( +) -class get_valid_write_ids_args: +class get_valid_write_ids_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56898,12 +51701,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_valid_write_ids_args") + oprot.writeStructBegin('get_valid_write_ids_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -56913,30 +51717,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_valid_write_ids_args) get_valid_write_ids_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [GetValidWriteIdsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [GetValidWriteIdsRequest, None], None, ), # 1 ) -class get_valid_write_ids_result: +class get_valid_write_ids_result(object): """ Attributes: - success @@ -56944,23 +51741,16 @@ class get_valid_write_ids_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -56990,20 +51780,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_valid_write_ids_result") + oprot.writeStructBegin('get_valid_write_ids_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -57013,61 +51804,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_valid_write_ids_result) get_valid_write_ids_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetValidWriteIdsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchTxnException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class allocate_table_write_ids_args: + (0, TType.STRUCT, 'success', [GetValidWriteIdsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class add_write_ids_to_min_history_args(object): """ Attributes: - - rqst + - txnId + - writeIds """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): - self.rqst = rqst + + def __init__(self, txnId = None, writeIds = None,): + self.txnId = txnId + self.writeIds = writeIds def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57076,9 +51845,19 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.rqst = AllocateTableWriteIdsRequest() - self.rqst.read(iprot) + if ftype == TType.I64: + self.txnId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.MAP: + self.writeIds = {} + (_ktype1946, _vtype1947, _size1945) = iprot.readMapBegin() + for _i1949 in range(_size1945): + _key1950 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val1951 = iprot.readI64() + self.writeIds[_key1950] = _val1951 + iprot.readMapEnd() else: iprot.skip(ftype) else: @@ -57087,13 +51866,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("allocate_table_write_ids_args") - if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('add_write_ids_to_min_history_args') + if self.txnId is not None: + oprot.writeFieldBegin('txnId', TType.I64, 1) + oprot.writeI64(self.txnId) + oprot.writeFieldEnd() + if self.writeIds is not None: + oprot.writeFieldBegin('writeIds', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.I64, len(self.writeIds)) + for kiter1952, viter1953 in self.writeIds.items(): + oprot.writeString(kiter1952.encode('utf-8') if sys.version_info[0] == 2 else kiter1952) + oprot.writeI64(viter1953) + oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -57102,57 +51890,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(allocate_table_write_ids_args) -allocate_table_write_ids_args.thrift_spec = ( +all_structs.append(add_write_ids_to_min_history_args) +add_write_ids_to_min_history_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [AllocateTableWriteIdsRequest, None], - None, - ), # 1 + (1, TType.I64, 'txnId', None, None, ), # 1 + (2, TType.MAP, 'writeIds', (TType.STRING, 'UTF8', TType.I64, None, False), None, ), # 2 ) -class allocate_table_write_ids_result: +class add_write_ids_to_min_history_result(object): """ Attributes: - - success - - o1 - o2 - - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): - self.success = success - self.o1 = o1 + + def __init__(self, o2 = None,): self.o2 = o2 - self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57160,25 +51928,9 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: - if ftype == TType.STRUCT: - self.success = AllocateTableWriteIdsResponse() - self.success.read(iprot) - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.o2 = TxnAbortedException.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: + if fid == 1: if ftype == TType.STRUCT: - self.o3 = MetaException.read(iprot) + self.o2 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -57187,26 +51939,15 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("allocate_table_write_ids_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() - if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) - self.o1.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('add_write_ids_to_min_history_result') if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 1) 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() @@ -57214,68 +51955,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(add_write_ids_to_min_history_result) +add_write_ids_to_min_history_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o2', [MetaException, None], None, ), # 1 +) -all_structs.append(allocate_table_write_ids_result) -allocate_table_write_ids_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [AllocateTableWriteIdsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchTxnException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [TxnAbortedException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class get_max_allocated_table_write_id_args: +class allocate_table_write_ids_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57285,7 +51994,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = MaxAllocatedTableWriteIdRequest() + self.rqst = AllocateTableWriteIdsRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -57295,12 +52004,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_max_allocated_table_write_id_args") + oprot.writeStructBegin('allocate_table_write_ids_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -57310,51 +52020,42 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_max_allocated_table_write_id_args) -get_max_allocated_table_write_id_args.thrift_spec = ( +all_structs.append(allocate_table_write_ids_args) +allocate_table_write_ids_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [MaxAllocatedTableWriteIdRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [AllocateTableWriteIdsRequest, None], None, ), # 1 ) -class get_max_allocated_table_write_id_result: +class allocate_table_write_ids_result(object): """ Attributes: - success - o1 + - o2 + - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 + self.o2 = o2 + self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57364,13 +52065,23 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = MaxAllocatedTableWriteIdResponse() + self.success = AllocateTableWriteIdsResponse() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.o1 = NoSuchTxnException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = TxnAbortedException.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -57379,18 +52090,27 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_max_allocated_table_write_id_result") + oprot.writeStructBegin('allocate_table_write_ids_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + 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() @@ -57398,54 +52118,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(get_max_allocated_table_write_id_result) -get_max_allocated_table_write_id_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [MaxAllocatedTableWriteIdResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(allocate_table_write_ids_result) +allocate_table_write_ids_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [AllocateTableWriteIdsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [TxnAbortedException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 ) -class seed_write_id_args: +class get_max_allocated_table_write_id_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57455,7 +52159,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = SeedTableWriteIdsRequest() + self.rqst = MaxAllocatedTableWriteIdRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -57465,12 +52169,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("seed_write_id_args") + oprot.writeStructBegin('get_max_allocated_table_write_id_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -57480,48 +52185,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(seed_write_id_args) -seed_write_id_args.thrift_spec = ( +all_structs.append(get_max_allocated_table_write_id_args) +get_max_allocated_table_write_id_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [SeedTableWriteIdsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [MaxAllocatedTableWriteIdRequest, None], None, ), # 1 ) -class seed_write_id_result: +class get_max_allocated_table_write_id_result(object): """ Attributes: + - success - o1 """ + thrift_spec = None - def __init__( - self, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): + self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57529,7 +52224,13 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.STRUCT: + self.success = MaxAllocatedTableWriteIdResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: self.o1 = MetaException.read(iprot) else: @@ -57540,12 +52241,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("seed_write_id_result") + oprot.writeStructBegin('get_max_allocated_table_write_id_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -57555,48 +52261,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(seed_write_id_result) -seed_write_id_result.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(get_max_allocated_table_write_id_result) +get_max_allocated_table_write_id_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [MaxAllocatedTableWriteIdResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class seed_txn_id_args: +class seed_write_id_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57606,7 +52300,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = SeedTxnIdRequest() + self.rqst = SeedTableWriteIdsRequest() self.rqst.read(iprot) else: iprot.skip(ftype) @@ -57616,12 +52310,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("seed_txn_id_args") + oprot.writeStructBegin('seed_write_id_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -57631,48 +52326,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(seed_txn_id_args) -seed_txn_id_args.thrift_spec = ( +all_structs.append(seed_write_id_args) +seed_write_id_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [SeedTxnIdRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [SeedTableWriteIdsRequest, None], None, ), # 1 ) -class seed_txn_id_result: +class seed_write_id_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57691,12 +52374,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("seed_txn_id_result") + oprot.writeStructBegin('seed_write_id_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -57706,48 +52390,165 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(seed_write_id_result) +seed_write_id_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 +) + + +class seed_txn_id_args(object): + """ + Attributes: + - rqst + + """ + thrift_spec = None + + + def __init__(self, rqst = None,): + self.rqst = rqst + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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 = SeedTxnIdRequest() + self.rqst.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('seed_txn_id_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 __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(seed_txn_id_args) +seed_txn_id_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', [SeedTxnIdRequest, None], None, ), # 1 +) + + +class seed_txn_id_result(object): + """ + Attributes: + - o1 + + """ + thrift_spec = None + + + def __init__(self, o1 = None,): + self.o1 = o1 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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 = MetaException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('seed_txn_id_result') + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) all_structs.append(seed_txn_id_result) seed_txn_id_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class lock_args: +class lock_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57767,12 +52568,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("lock_args") + oprot.writeStructBegin('lock_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -57782,30 +52584,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(lock_args) lock_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [LockRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [LockRequest, None], None, ), # 1 ) -class lock_result: +class lock_result(object): """ Attributes: - success @@ -57813,23 +52608,16 @@ class lock_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57859,20 +52647,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("lock_result") + oprot.writeStructBegin('lock_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -57882,61 +52671,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(lock_result) lock_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [LockResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchTxnException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [TxnAbortedException, None], - None, - ), # 2 -) - - -class check_lock_args: + (0, TType.STRUCT, 'success', [LockResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [TxnAbortedException, None], None, ), # 2 +) + + +class check_lock_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -57956,12 +52721,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("check_lock_args") + oprot.writeStructBegin('check_lock_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -57971,30 +52737,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(check_lock_args) check_lock_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [CheckLockRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [CheckLockRequest, None], None, ), # 1 ) -class check_lock_result: +class check_lock_result(object): """ Attributes: - success @@ -58003,25 +52762,17 @@ class check_lock_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58056,24 +52807,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("check_lock_result") + oprot.writeStructBegin('check_lock_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58083,68 +52835,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(check_lock_result) check_lock_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [LockResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchTxnException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [TxnAbortedException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [NoSuchLockException, None], - None, - ), # 3 -) - - -class unlock_args: + (0, TType.STRUCT, 'success', [LockResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [TxnAbortedException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [NoSuchLockException, None], None, ), # 3 +) + + +class unlock_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58164,12 +52886,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("unlock_args") + oprot.writeStructBegin('unlock_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58179,51 +52902,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(unlock_args) unlock_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [UnlockRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [UnlockRequest, None], None, ), # 1 ) -class unlock_result: +class unlock_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58247,16 +52957,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("unlock_result") + oprot.writeStructBegin('unlock_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58266,55 +52977,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(unlock_result) unlock_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchLockException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [TxnOpenException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchLockException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [TxnOpenException, None], None, ), # 2 ) -class show_locks_args: +class show_locks_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58334,12 +53027,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("show_locks_args") + oprot.writeStructBegin('show_locks_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58349,48 +53043,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(show_locks_args) show_locks_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [ShowLocksRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [ShowLocksRequest, None], None, ), # 1 ) -class show_locks_result: +class show_locks_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58410,12 +53092,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("show_locks_result") + oprot.writeStructBegin('show_locks_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58425,47 +53108,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(show_locks_result) show_locks_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ShowLocksResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [ShowLocksResponse, None], None, ), # 0 ) -class heartbeat_args: +class heartbeat_args(object): """ Attributes: - ids """ + thrift_spec = None - def __init__( - self, - ids=None, - ): + + def __init__(self, ids = None,): self.ids = ids def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58485,12 +53156,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("heartbeat_args") + oprot.writeStructBegin('heartbeat_args') if self.ids is not None: - oprot.writeFieldBegin("ids", TType.STRUCT, 1) + oprot.writeFieldBegin('ids', TType.STRUCT, 1) self.ids.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58500,30 +53172,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(heartbeat_args) heartbeat_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "ids", - [HeartbeatRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'ids', [HeartbeatRequest, None], None, ), # 1 ) -class heartbeat_result: +class heartbeat_result(object): """ Attributes: - o1 @@ -58531,23 +53196,16 @@ class heartbeat_result: - o3 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58576,20 +53234,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("heartbeat_result") + oprot.writeStructBegin('heartbeat_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58599,62 +53258,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(heartbeat_result) heartbeat_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchLockException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchTxnException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [TxnAbortedException, None], - None, - ), # 3 -) - - -class heartbeat_txn_range_args: + (1, TType.STRUCT, 'o1', [NoSuchLockException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchTxnException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [TxnAbortedException, None], None, ), # 3 +) + + +class heartbeat_txn_range_args(object): """ Attributes: - txns """ + thrift_spec = None - def __init__( - self, - txns=None, - ): + + def __init__(self, txns = None,): self.txns = txns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58674,12 +53309,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("heartbeat_txn_range_args") + oprot.writeStructBegin('heartbeat_txn_range_args') if self.txns is not None: - oprot.writeFieldBegin("txns", TType.STRUCT, 1) + oprot.writeFieldBegin('txns', TType.STRUCT, 1) self.txns.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58689,48 +53325,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(heartbeat_txn_range_args) heartbeat_txn_range_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "txns", - [HeartbeatTxnRangeRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'txns', [HeartbeatTxnRangeRequest, None], None, ), # 1 ) -class heartbeat_txn_range_result: +class heartbeat_txn_range_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58750,12 +53374,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("heartbeat_txn_range_result") + oprot.writeStructBegin('heartbeat_txn_range_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58765,47 +53390,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(heartbeat_txn_range_result) heartbeat_txn_range_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [HeartbeatTxnRangeResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [HeartbeatTxnRangeResponse, None], None, ), # 0 ) -class compact_args: +class compact_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58825,12 +53438,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("compact_args") + oprot.writeStructBegin('compact_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58840,36 +53454,28 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(compact_args) compact_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [CompactionRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [CompactionRequest, None], None, ), # 1 ) -class compact_result: +class compact_result(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58883,10 +53489,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("compact_result") + oprot.writeStructBegin('compact_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -58894,39 +53501,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(compact_result) -compact_result.thrift_spec = () +compact_result.thrift_spec = ( +) -class compact2_args: +class compact2_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -58946,12 +53548,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("compact2_args") + oprot.writeStructBegin('compact2_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -58961,48 +53564,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(compact2_args) compact2_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [CompactionRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [CompactionRequest, None], None, ), # 1 ) -class compact2_result: +class compact2_result(object): """ Attributes: - success """ + thrift_spec = None - def __init__( - self, - success=None, - ): + + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59022,12 +53613,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("compact2_result") + oprot.writeStructBegin('compact2_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -59037,47 +53629,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(compact2_result) compact2_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [CompactionResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [CompactionResponse, None], None, ), # 0 ) -class show_compact_args: +class show_compact_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59097,12 +53677,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("show_compact_args") + oprot.writeStructBegin('show_compact_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -59112,48 +53693,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(show_compact_args) show_compact_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [ShowCompactRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [ShowCompactRequest, None], None, ), # 1 ) -class show_compact_result: +class show_compact_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59173,12 +53742,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("show_compact_result") + oprot.writeStructBegin('show_compact_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -59188,47 +53758,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(show_compact_result) show_compact_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ShowCompactResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [ShowCompactResponse, None], None, ), # 0 ) -class add_dynamic_partitions_args: +class submit_for_cleanup_args(object): """ Attributes: - - rqst + - o1 + - o2 + - o3 """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): - self.rqst = rqst + + def __init__(self, o1 = None, o2 = None, o3 = None,): + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59238,8 +53800,18 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.rqst = AddDynamicPartitions() - self.rqst.read(iprot) + self.o1 = CompactionRequest() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.o2 = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.o3 = iprot.readI64() else: iprot.skip(ftype) else: @@ -59248,13 +53820,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_dynamic_partitions_args") - if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('submit_for_cleanup_args') + 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.I64, 2) + oprot.writeI64(self.o2) + oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.I64, 3) + oprot.writeI64(self.o3) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -59263,51 +53844,40 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(add_dynamic_partitions_args) -add_dynamic_partitions_args.thrift_spec = ( +all_structs.append(submit_for_cleanup_args) +submit_for_cleanup_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [AddDynamicPartitions, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [CompactionRequest, None], None, ), # 1 + (2, TType.I64, 'o2', None, None, ), # 2 + (3, TType.I64, 'o3', None, None, ), # 3 ) -class add_dynamic_partitions_result: +class submit_for_cleanup_result(object): """ Attributes: + - success - o1 - - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None,): + self.success = success self.o1 = o1 - self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59315,14 +53885,14 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRUCT: - self.o1 = NoSuchTxnException.read(iprot) + if fid == 0: + if ftype == TType.BOOL: + self.success = iprot.readBool() else: iprot.skip(ftype) - elif fid == 2: + elif fid == 1: if ftype == TType.STRUCT: - self.o2 = TxnAbortedException.read(iprot) + self.o1 = MetaException.read(iprot) else: iprot.skip(ftype) else: @@ -59331,18 +53901,19 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_dynamic_partitions_result") + oprot.writeStructBegin('submit_for_cleanup_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) + oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + 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() oprot.writeFieldStop() oprot.writeStructEnd() @@ -59350,55 +53921,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(add_dynamic_partitions_result) -add_dynamic_partitions_result.thrift_spec = ( - None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchTxnException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [TxnAbortedException, None], - None, - ), # 2 +all_structs.append(submit_for_cleanup_result) +submit_for_cleanup_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class find_next_compact_args: +class add_dynamic_partitions_args(object): """ Attributes: - - workerId + - rqst """ + thrift_spec = None - def __init__( - self, - workerId=None, - ): - self.workerId = workerId + + def __init__(self, rqst = None,): + self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59407,10 +53959,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.workerId = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.STRUCT: + self.rqst = AddDynamicPartitions() + self.rqst.read(iprot) else: iprot.skip(ftype) else: @@ -59419,13 +53970,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("find_next_compact_args") - if self.workerId is not None: - oprot.writeFieldBegin("workerId", TType.STRING, 1) - oprot.writeString(self.workerId.encode("utf-8") if sys.version_info[0] == 2 else self.workerId) + oprot.writeStructBegin('add_dynamic_partitions_args') + if self.rqst is not None: + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) + self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -59434,51 +53986,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(find_next_compact_args) -find_next_compact_args.thrift_spec = ( +all_structs.append(add_dynamic_partitions_args) +add_dynamic_partitions_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "workerId", - "UTF8", - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [AddDynamicPartitions, None], None, ), # 1 ) -class find_next_compact_result: +class add_dynamic_partitions_result(object): """ Attributes: - - success - o1 + - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): - self.success = success + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 + self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59486,15 +54025,14 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 0: + if fid == 1: if ftype == TType.STRUCT: - self.success = OptionalCompactionInfoStruct() - self.success.read(iprot) + self.o1 = NoSuchTxnException.read(iprot) else: iprot.skip(ftype) - elif fid == 1: + elif fid == 2: if ftype == TType.STRUCT: - self.o1 = MetaException.read(iprot) + self.o2 = TxnAbortedException.read(iprot) else: iprot.skip(ftype) else: @@ -59503,18 +54041,19 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("find_next_compact_result") - if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() + oprot.writeStructBegin('add_dynamic_partitions_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + 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() oprot.writeFieldStop() oprot.writeStructEnd() @@ -59522,54 +54061,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(find_next_compact_result) -find_next_compact_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [OptionalCompactionInfoStruct, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 +all_structs.append(add_dynamic_partitions_result) +add_dynamic_partitions_result.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'o1', [NoSuchTxnException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [TxnAbortedException, None], None, ), # 2 ) -class find_next_compact2_args: +class find_next_compact_args(object): """ Attributes: - - rqst + - workerId """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): - self.rqst = rqst + + def __init__(self, workerId = None,): + self.workerId = workerId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59578,9 +54100,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.rqst = FindNextCompactRequest() - self.rqst.read(iprot) + if ftype == TType.STRING: + self.workerId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -59589,13 +54110,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("find_next_compact2_args") - if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) - self.rqst.write(oprot) + oprot.writeStructBegin('find_next_compact_args') + if self.workerId is not None: + oprot.writeFieldBegin('workerId', TType.STRING, 1) + oprot.writeString(self.workerId.encode('utf-8') if sys.version_info[0] == 2 else self.workerId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -59604,51 +54126,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - -all_structs.append(find_next_compact2_args) -find_next_compact2_args.thrift_spec = ( +all_structs.append(find_next_compact_args) +find_next_compact_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [FindNextCompactRequest, None], - None, - ), # 1 + (1, TType.STRING, 'workerId', 'UTF8', None, ), # 1 ) -class find_next_compact2_result: +class find_next_compact_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59673,16 +54182,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("find_next_compact2_result") + oprot.writeStructBegin('find_next_compact_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -59692,57 +54202,179 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(find_next_compact_result) +find_next_compact_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [OptionalCompactionInfoStruct, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 +) + + +class find_next_compact2_args(object): + """ + Attributes: + - rqst + + """ + thrift_spec = None + + + def __init__(self, rqst = None,): + self.rqst = rqst + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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 = FindNextCompactRequest() + self.rqst.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('find_next_compact2_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 __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(find_next_compact2_args) +find_next_compact2_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'rqst', [FindNextCompactRequest, None], None, ), # 1 +) + + +class find_next_compact2_result(object): + """ + Attributes: + - success + - o1 + + """ + thrift_spec = None + def __init__(self, success = None, o1 = None,): + self.success = success + self.o1 = o1 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = OptionalCompactionInfoStruct() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('find_next_compact2_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) all_structs.append(find_next_compact2_result) find_next_compact2_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [OptionalCompactionInfoStruct, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [OptionalCompactionInfoStruct, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class update_compactor_state_args: +class update_compactor_state_args(object): """ Attributes: - cr - txn_id """ + thrift_spec = None + - def __init__( - self, - cr=None, - txn_id=None, - ): + def __init__(self, cr = None, txn_id = None,): self.cr = cr self.txn_id = txn_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59767,16 +54399,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_compactor_state_args") + oprot.writeStructBegin('update_compactor_state_args') if self.cr is not None: - oprot.writeFieldBegin("cr", TType.STRUCT, 1) + oprot.writeFieldBegin('cr', TType.STRUCT, 1) self.cr.write(oprot) oprot.writeFieldEnd() if self.txn_id is not None: - oprot.writeFieldBegin("txn_id", TType.I64, 2) + oprot.writeFieldBegin('txn_id', TType.I64, 2) oprot.writeI64(self.txn_id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -59786,43 +54419,29 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_compactor_state_args) update_compactor_state_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "cr", - [CompactionInfoStruct, None], - None, - ), # 1 - ( - 2, - TType.I64, - "txn_id", - None, - None, - ), # 2 + (1, TType.STRUCT, 'cr', [CompactionInfoStruct, None], None, ), # 1 + (2, TType.I64, 'txn_id', None, None, ), # 2 ) -class update_compactor_state_result: +class update_compactor_state_result(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59836,10 +54455,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_compactor_state_result") + oprot.writeStructBegin('update_compactor_state_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -59847,39 +54467,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_compactor_state_result) -update_compactor_state_result.thrift_spec = () +update_compactor_state_result.thrift_spec = ( +) -class find_columns_with_stats_args: +class find_columns_with_stats_args(object): """ Attributes: - cr """ + thrift_spec = None + - def __init__( - self, - cr=None, - ): + def __init__(self, cr = None,): self.cr = cr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59899,12 +54514,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("find_columns_with_stats_args") + oprot.writeStructBegin('find_columns_with_stats_args') if self.cr is not None: - oprot.writeFieldBegin("cr", TType.STRUCT, 1) + oprot.writeFieldBegin('cr', TType.STRUCT, 1) self.cr.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -59914,48 +54530,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(find_columns_with_stats_args) find_columns_with_stats_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "cr", - [CompactionInfoStruct, None], - None, - ), # 1 + (1, TType.STRUCT, 'cr', [CompactionInfoStruct, None], None, ), # 1 ) -class find_columns_with_stats_result: +class find_columns_with_stats_result(object): """ Attributes: - success """ + thrift_spec = None - def __init__( - self, - success=None, - ): + + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -59966,14 +54570,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1768, _size1765) = iprot.readListBegin() - for _i1769 in range(_size1765): - _elem1770 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1770) + (_etype1957, _size1954) = iprot.readListBegin() + for _i1958 in range(_size1954): + _elem1959 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1959) iprot.readListEnd() else: iprot.skip(ftype) @@ -59983,15 +54583,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("find_columns_with_stats_result") + oprot.writeStructBegin('find_columns_with_stats_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1771 in self.success: - oprot.writeString(iter1771.encode("utf-8") if sys.version_info[0] == 2 else iter1771) + for iter1960 in self.success: + oprot.writeString(iter1960.encode('utf-8') if sys.version_info[0] == 2 else iter1960) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60001,47 +54602,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(find_columns_with_stats_result) find_columns_with_stats_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 ) -class mark_cleaned_args: +class mark_cleaned_args(object): """ Attributes: - cr """ + thrift_spec = None + - def __init__( - self, - cr=None, - ): + def __init__(self, cr = None,): self.cr = cr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60061,12 +54650,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("mark_cleaned_args") + oprot.writeStructBegin('mark_cleaned_args') if self.cr is not None: - oprot.writeFieldBegin("cr", TType.STRUCT, 1) + oprot.writeFieldBegin('cr', TType.STRUCT, 1) self.cr.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60076,48 +54666,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(mark_cleaned_args) mark_cleaned_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "cr", - [CompactionInfoStruct, None], - None, - ), # 1 + (1, TType.STRUCT, 'cr', [CompactionInfoStruct, None], None, ), # 1 ) -class mark_cleaned_result: +class mark_cleaned_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60136,12 +54714,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("mark_cleaned_result") + oprot.writeStructBegin('mark_cleaned_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60151,48 +54730,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(mark_cleaned_result) mark_cleaned_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class mark_compacted_args: +class mark_compacted_args(object): """ Attributes: - cr """ + thrift_spec = None - def __init__( - self, - cr=None, - ): + + def __init__(self, cr = None,): self.cr = cr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60212,12 +54779,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("mark_compacted_args") + oprot.writeStructBegin('mark_compacted_args') if self.cr is not None: - oprot.writeFieldBegin("cr", TType.STRUCT, 1) + oprot.writeFieldBegin('cr', TType.STRUCT, 1) self.cr.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60227,48 +54795,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(mark_compacted_args) mark_compacted_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "cr", - [CompactionInfoStruct, None], - None, - ), # 1 + (1, TType.STRUCT, 'cr', [CompactionInfoStruct, None], None, ), # 1 ) -class mark_compacted_result: +class mark_compacted_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60287,12 +54843,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("mark_compacted_result") + oprot.writeStructBegin('mark_compacted_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60302,48 +54859,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(mark_compacted_result) mark_compacted_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class mark_failed_args: +class mark_failed_args(object): """ Attributes: - cr """ + thrift_spec = None - def __init__( - self, - cr=None, - ): + + def __init__(self, cr = None,): self.cr = cr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60363,12 +54908,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("mark_failed_args") + oprot.writeStructBegin('mark_failed_args') if self.cr is not None: - oprot.writeFieldBegin("cr", TType.STRUCT, 1) + oprot.writeFieldBegin('cr', TType.STRUCT, 1) self.cr.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60378,48 +54924,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(mark_failed_args) mark_failed_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "cr", - [CompactionInfoStruct, None], - None, - ), # 1 + (1, TType.STRUCT, 'cr', [CompactionInfoStruct, None], None, ), # 1 ) -class mark_failed_result: +class mark_failed_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60438,12 +54972,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("mark_failed_result") + oprot.writeStructBegin('mark_failed_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60453,48 +54988,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(mark_failed_result) mark_failed_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class mark_refused_args: +class mark_refused_args(object): """ Attributes: - cr """ + thrift_spec = None - def __init__( - self, - cr=None, - ): + + def __init__(self, cr = None,): self.cr = cr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60514,12 +55037,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("mark_refused_args") + oprot.writeStructBegin('mark_refused_args') if self.cr is not None: - oprot.writeFieldBegin("cr", TType.STRUCT, 1) + oprot.writeFieldBegin('cr', TType.STRUCT, 1) self.cr.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60529,48 +55053,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(mark_refused_args) mark_refused_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "cr", - [CompactionInfoStruct, None], - None, - ), # 1 + (1, TType.STRUCT, 'cr', [CompactionInfoStruct, None], None, ), # 1 ) -class mark_refused_result: +class mark_refused_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60589,12 +55101,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("mark_refused_result") + oprot.writeStructBegin('mark_refused_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60604,48 +55117,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(mark_refused_result) mark_refused_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class update_compaction_metrics_data_args: +class update_compaction_metrics_data_args(object): """ Attributes: - data """ + thrift_spec = None - def __init__( - self, - data=None, - ): + + def __init__(self, data = None,): self.data = data def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60665,12 +55166,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_compaction_metrics_data_args") + oprot.writeStructBegin('update_compaction_metrics_data_args') if self.data is not None: - oprot.writeFieldBegin("data", TType.STRUCT, 1) + oprot.writeFieldBegin('data', TType.STRUCT, 1) self.data.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60680,51 +55182,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_compaction_metrics_data_args) update_compaction_metrics_data_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "data", - [CompactionMetricsDataStruct, None], - None, - ), # 1 + (1, TType.STRUCT, 'data', [CompactionMetricsDataStruct, None], None, ), # 1 ) -class update_compaction_metrics_data_result: +class update_compaction_metrics_data_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60748,16 +55237,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("update_compaction_metrics_data_result") + oprot.writeStructBegin('update_compaction_metrics_data_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60767,54 +55257,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(update_compaction_metrics_data_result) update_compaction_metrics_data_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class remove_compaction_metrics_data_args: +class remove_compaction_metrics_data_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60834,12 +55306,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("remove_compaction_metrics_data_args") + oprot.writeStructBegin('remove_compaction_metrics_data_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60849,48 +55322,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(remove_compaction_metrics_data_args) remove_compaction_metrics_data_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [CompactionMetricsDataRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [CompactionMetricsDataRequest, None], None, ), # 1 ) -class remove_compaction_metrics_data_result: +class remove_compaction_metrics_data_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60909,12 +55370,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("remove_compaction_metrics_data_result") + oprot.writeStructBegin('remove_compaction_metrics_data_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -60924,51 +55386,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(remove_compaction_metrics_data_result) remove_compaction_metrics_data_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class set_hadoop_jobid_args: +class set_hadoop_jobid_args(object): """ Attributes: - jobId - cq_id """ + thrift_spec = None - def __init__( - self, - jobId=None, - cq_id=None, - ): + + def __init__(self, jobId = None, cq_id = None,): self.jobId = jobId self.cq_id = cq_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -60978,9 +55427,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.jobId = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.jobId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -60994,16 +55441,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("set_hadoop_jobid_args") + oprot.writeStructBegin('set_hadoop_jobid_args') if self.jobId is not None: - oprot.writeFieldBegin("jobId", TType.STRING, 1) - oprot.writeString(self.jobId.encode("utf-8") if sys.version_info[0] == 2 else self.jobId) + oprot.writeFieldBegin('jobId', TType.STRING, 1) + oprot.writeString(self.jobId.encode('utf-8') if sys.version_info[0] == 2 else self.jobId) oprot.writeFieldEnd() if self.cq_id is not None: - oprot.writeFieldBegin("cq_id", TType.I64, 2) + oprot.writeFieldBegin('cq_id', TType.I64, 2) oprot.writeI64(self.cq_id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61013,43 +55461,29 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(set_hadoop_jobid_args) set_hadoop_jobid_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "jobId", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I64, - "cq_id", - None, - None, - ), # 2 + (1, TType.STRING, 'jobId', 'UTF8', None, ), # 1 + (2, TType.I64, 'cq_id', None, None, ), # 2 ) -class set_hadoop_jobid_result: +class set_hadoop_jobid_result(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61063,10 +55497,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("set_hadoop_jobid_result") + oprot.writeStructBegin('set_hadoop_jobid_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -61074,39 +55509,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(set_hadoop_jobid_result) -set_hadoop_jobid_result.thrift_spec = () +set_hadoop_jobid_result.thrift_spec = ( +) -class get_latest_committed_compaction_info_args: +class get_latest_committed_compaction_info_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61126,12 +55556,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_latest_committed_compaction_info_args") + oprot.writeStructBegin('get_latest_committed_compaction_info_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61141,48 +55572,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_latest_committed_compaction_info_args) get_latest_committed_compaction_info_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [GetLatestCommittedCompactionInfoRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [GetLatestCommittedCompactionInfoRequest, None], None, ), # 1 ) -class get_latest_committed_compaction_info_result: +class get_latest_committed_compaction_info_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61202,12 +55621,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_latest_committed_compaction_info_result") + oprot.writeStructBegin('get_latest_committed_compaction_info_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61217,47 +55637,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_latest_committed_compaction_info_result) get_latest_committed_compaction_info_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetLatestCommittedCompactionInfoResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [GetLatestCommittedCompactionInfoResponse, None], None, ), # 0 ) -class get_next_notification_args: +class get_next_notification_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61277,12 +55685,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_next_notification_args") + oprot.writeStructBegin('get_next_notification_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61292,48 +55701,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_next_notification_args) get_next_notification_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [NotificationEventRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [NotificationEventRequest, None], None, ), # 1 ) -class get_next_notification_result: +class get_next_notification_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61353,12 +55750,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_next_notification_result") + oprot.writeStructBegin('get_next_notification_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61368,35 +55766,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_next_notification_result) get_next_notification_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [NotificationEventResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [NotificationEventResponse, None], None, ), # 0 ) -class get_current_notificationEventId_args: +class get_current_notificationEventId_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61410,10 +55800,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_current_notificationEventId_args") + oprot.writeStructBegin('get_current_notificationEventId_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -61421,39 +55812,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_current_notificationEventId_args) -get_current_notificationEventId_args.thrift_spec = () +get_current_notificationEventId_args.thrift_spec = ( +) -class get_current_notificationEventId_result: +class get_current_notificationEventId_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61473,12 +55859,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_current_notificationEventId_result") + oprot.writeStructBegin('get_current_notificationEventId_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61488,47 +55875,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_current_notificationEventId_result) get_current_notificationEventId_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [CurrentNotificationEventId, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [CurrentNotificationEventId, None], None, ), # 0 ) -class get_notification_events_count_args: +class get_notification_events_count_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61548,12 +55923,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_notification_events_count_args") + oprot.writeStructBegin('get_notification_events_count_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61563,48 +55939,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_notification_events_count_args) get_notification_events_count_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [NotificationEventsCountRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [NotificationEventsCountRequest, None], None, ), # 1 ) -class get_notification_events_count_result: +class get_notification_events_count_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61624,12 +55988,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_notification_events_count_result") + oprot.writeStructBegin('get_notification_events_count_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61639,47 +56004,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_notification_events_count_result) get_notification_events_count_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [NotificationEventsCountResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [NotificationEventsCountResponse, None], None, ), # 0 ) -class fire_listener_event_args: +class fire_listener_event_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61699,12 +56052,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("fire_listener_event_args") + oprot.writeStructBegin('fire_listener_event_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61714,48 +56068,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(fire_listener_event_args) fire_listener_event_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [FireEventRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [FireEventRequest, None], None, ), # 1 ) -class fire_listener_event_result: +class fire_listener_event_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61775,12 +56117,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("fire_listener_event_result") + oprot.writeStructBegin('fire_listener_event_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61790,35 +56133,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(fire_listener_event_result) fire_listener_event_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [FireEventResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [FireEventResponse, None], None, ), # 0 ) -class flushCache_args: +class flushCache_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61832,10 +56167,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("flushCache_args") + oprot.writeStructBegin('flushCache_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -61843,27 +56179,26 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(flushCache_args) +flushCache_args.thrift_spec = ( +) -all_structs.append(flushCache_args) -flushCache_args.thrift_spec = () +class flushCache_result(object): + thrift_spec = None -class flushCache_result: def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61877,10 +56212,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("flushCache_result") + oprot.writeStructBegin('flushCache_result') oprot.writeFieldStop() oprot.writeStructEnd() @@ -61888,39 +56224,34 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(flushCache_result) -flushCache_result.thrift_spec = () +flushCache_result.thrift_spec = ( +) -class add_write_notification_log_args: +class add_write_notification_log_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -61940,12 +56271,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_write_notification_log_args") + oprot.writeStructBegin('add_write_notification_log_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -61955,48 +56287,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_write_notification_log_args) add_write_notification_log_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [WriteNotificationLogRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [WriteNotificationLogRequest, None], None, ), # 1 ) -class add_write_notification_log_result: +class add_write_notification_log_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62016,12 +56336,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_write_notification_log_result") + oprot.writeStructBegin('add_write_notification_log_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62031,47 +56352,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_write_notification_log_result) add_write_notification_log_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WriteNotificationLogResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [WriteNotificationLogResponse, None], None, ), # 0 ) -class add_write_notification_log_in_batch_args: +class add_write_notification_log_in_batch_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62091,12 +56400,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_write_notification_log_in_batch_args") + oprot.writeStructBegin('add_write_notification_log_in_batch_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62106,48 +56416,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_write_notification_log_in_batch_args) add_write_notification_log_in_batch_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [WriteNotificationLogBatchRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [WriteNotificationLogBatchRequest, None], None, ), # 1 ) -class add_write_notification_log_in_batch_result: +class add_write_notification_log_in_batch_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62167,12 +56465,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_write_notification_log_in_batch_result") + oprot.writeStructBegin('add_write_notification_log_in_batch_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62182,47 +56481,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_write_notification_log_in_batch_result) add_write_notification_log_in_batch_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WriteNotificationLogBatchResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [WriteNotificationLogBatchResponse, None], None, ), # 0 ) -class cm_recycle_args: +class cm_recycle_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62242,12 +56529,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("cm_recycle_args") + oprot.writeStructBegin('cm_recycle_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62257,51 +56545,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(cm_recycle_args) cm_recycle_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [CmRecycleRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [CmRecycleRequest, None], None, ), # 1 ) -class cm_recycle_result: +class cm_recycle_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62326,16 +56601,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("cm_recycle_result") + oprot.writeStructBegin('cm_recycle_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62345,54 +56621,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(cm_recycle_result) cm_recycle_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [CmRecycleResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [CmRecycleResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_file_metadata_by_expr_args: +class get_file_metadata_by_expr_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62412,12 +56670,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_file_metadata_by_expr_args") + oprot.writeStructBegin('get_file_metadata_by_expr_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62427,48 +56686,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_file_metadata_by_expr_args) get_file_metadata_by_expr_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetFileMetadataByExprRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [GetFileMetadataByExprRequest, None], None, ), # 1 ) -class get_file_metadata_by_expr_result: +class get_file_metadata_by_expr_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62488,12 +56735,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_file_metadata_by_expr_result") + oprot.writeStructBegin('get_file_metadata_by_expr_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62503,47 +56751,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_file_metadata_by_expr_result) get_file_metadata_by_expr_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetFileMetadataByExprResult, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [GetFileMetadataByExprResult, None], None, ), # 0 ) -class get_file_metadata_args: +class get_file_metadata_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62563,12 +56799,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_file_metadata_args") + oprot.writeStructBegin('get_file_metadata_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62578,48 +56815,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_file_metadata_args) get_file_metadata_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [GetFileMetadataRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [GetFileMetadataRequest, None], None, ), # 1 ) -class get_file_metadata_result: +class get_file_metadata_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62639,12 +56864,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_file_metadata_result") + oprot.writeStructBegin('get_file_metadata_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62654,47 +56880,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_file_metadata_result) get_file_metadata_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetFileMetadataResult, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [GetFileMetadataResult, None], None, ), # 0 ) -class put_file_metadata_args: +class put_file_metadata_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62714,12 +56928,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("put_file_metadata_args") + oprot.writeStructBegin('put_file_metadata_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62729,48 +56944,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(put_file_metadata_args) put_file_metadata_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [PutFileMetadataRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [PutFileMetadataRequest, None], None, ), # 1 ) -class put_file_metadata_result: +class put_file_metadata_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62790,12 +56993,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("put_file_metadata_result") + oprot.writeStructBegin('put_file_metadata_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62805,47 +57009,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(put_file_metadata_result) put_file_metadata_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [PutFileMetadataResult, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [PutFileMetadataResult, None], None, ), # 0 ) -class clear_file_metadata_args: +class clear_file_metadata_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62865,12 +57057,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("clear_file_metadata_args") + oprot.writeStructBegin('clear_file_metadata_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62880,48 +57073,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(clear_file_metadata_args) clear_file_metadata_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [ClearFileMetadataRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [ClearFileMetadataRequest, None], None, ), # 1 ) -class clear_file_metadata_result: +class clear_file_metadata_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -62941,12 +57122,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("clear_file_metadata_result") + oprot.writeStructBegin('clear_file_metadata_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -62956,47 +57138,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(clear_file_metadata_result) clear_file_metadata_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ClearFileMetadataResult, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [ClearFileMetadataResult, None], None, ), # 0 ) -class cache_file_metadata_args: +class cache_file_metadata_args(object): """ Attributes: - req """ + thrift_spec = None - def __init__( - self, - req=None, - ): + + def __init__(self, req = None,): self.req = req def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63016,12 +57186,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("cache_file_metadata_args") + oprot.writeStructBegin('cache_file_metadata_args') if self.req is not None: - oprot.writeFieldBegin("req", TType.STRUCT, 1) + oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63031,48 +57202,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(cache_file_metadata_args) cache_file_metadata_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "req", - [CacheFileMetadataRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'req', [CacheFileMetadataRequest, None], None, ), # 1 ) -class cache_file_metadata_result: +class cache_file_metadata_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63092,12 +57251,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("cache_file_metadata_result") + oprot.writeStructBegin('cache_file_metadata_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63107,35 +57267,27 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(cache_file_metadata_result) cache_file_metadata_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [CacheFileMetadataResult, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [CacheFileMetadataResult, None], None, ), # 0 ) -class get_metastore_db_uuid_args: +class get_metastore_db_uuid_args(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63149,10 +57301,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_metastore_db_uuid_args") + oprot.writeStructBegin('get_metastore_db_uuid_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -63160,42 +57313,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_metastore_db_uuid_args) -get_metastore_db_uuid_args.thrift_spec = () +get_metastore_db_uuid_args.thrift_spec = ( +) -class get_metastore_db_uuid_result: +class get_metastore_db_uuid_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63205,9 +57352,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 1: @@ -63221,16 +57366,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_metastore_db_uuid_result") + oprot.writeStructBegin('get_metastore_db_uuid_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString(self.success.encode("utf-8") if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63240,54 +57386,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_metastore_db_uuid_result) get_metastore_db_uuid_result.thrift_spec = ( - ( - 0, - TType.STRING, - "success", - "UTF8", - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class create_resource_plan_args: +class create_resource_plan_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63307,12 +57435,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_resource_plan_args") + oprot.writeStructBegin('create_resource_plan_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63322,30 +57451,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_resource_plan_args) create_resource_plan_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMCreateResourcePlanRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMCreateResourcePlanRequest, None], None, ), # 1 ) -class create_resource_plan_result: +class create_resource_plan_result(object): """ Attributes: - success @@ -63354,25 +57476,17 @@ class create_resource_plan_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63407,24 +57521,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_resource_plan_result") + oprot.writeStructBegin('create_resource_plan_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63434,68 +57549,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_resource_plan_result) create_resource_plan_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMCreateResourcePlanResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class get_resource_plan_args: + (0, TType.STRUCT, 'success', [WMCreateResourcePlanResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class get_resource_plan_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63515,12 +57600,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_resource_plan_args") + oprot.writeStructBegin('get_resource_plan_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63530,30 +57616,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_resource_plan_args) get_resource_plan_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMGetResourcePlanRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMGetResourcePlanRequest, None], None, ), # 1 ) -class get_resource_plan_result: +class get_resource_plan_result(object): """ Attributes: - success @@ -63561,23 +57640,16 @@ class get_resource_plan_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63607,20 +57679,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_resource_plan_result") + oprot.writeStructBegin('get_resource_plan_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63630,61 +57703,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_resource_plan_result) get_resource_plan_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMGetResourcePlanResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_active_resource_plan_args: + (0, TType.STRUCT, 'success', [WMGetResourcePlanResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class get_active_resource_plan_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63704,12 +57753,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_active_resource_plan_args") + oprot.writeStructBegin('get_active_resource_plan_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63719,51 +57769,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_active_resource_plan_args) get_active_resource_plan_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMGetActiveResourcePlanRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMGetActiveResourcePlanRequest, None], None, ), # 1 ) -class get_active_resource_plan_result: +class get_active_resource_plan_result(object): """ Attributes: - success - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o2=None, - ): + + def __init__(self, success = None, o2 = None,): self.success = success self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63788,16 +57825,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_active_resource_plan_result") + oprot.writeStructBegin('get_active_resource_plan_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 1) + oprot.writeFieldBegin('o2', TType.STRUCT, 1) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63807,54 +57845,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_active_resource_plan_result) get_active_resource_plan_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMGetActiveResourcePlanResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [WMGetActiveResourcePlanResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o2', [MetaException, None], None, ), # 1 ) -class get_all_resource_plans_args: +class get_all_resource_plans_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63874,12 +57894,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_resource_plans_args") + oprot.writeStructBegin('get_all_resource_plans_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63889,51 +57910,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_resource_plans_args) get_all_resource_plans_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMGetAllResourcePlanRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMGetAllResourcePlanRequest, None], None, ), # 1 ) -class get_all_resource_plans_result: +class get_all_resource_plans_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -63958,16 +57966,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_resource_plans_result") + oprot.writeStructBegin('get_all_resource_plans_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -63977,54 +57986,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_resource_plans_result) get_all_resource_plans_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMGetAllResourcePlanResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [WMGetAllResourcePlanResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class alter_resource_plan_args: +class alter_resource_plan_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64044,12 +58035,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_resource_plan_args") + oprot.writeStructBegin('alter_resource_plan_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -64059,30 +58051,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_resource_plan_args) alter_resource_plan_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMAlterResourcePlanRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMAlterResourcePlanRequest, None], None, ), # 1 ) -class alter_resource_plan_result: +class alter_resource_plan_result(object): """ Attributes: - success @@ -64091,25 +58076,17 @@ class alter_resource_plan_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64144,24 +58121,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_resource_plan_result") + oprot.writeStructBegin('alter_resource_plan_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -64171,68 +58149,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_resource_plan_result) alter_resource_plan_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMAlterResourcePlanResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class validate_resource_plan_args: + (0, TType.STRUCT, 'success', [WMAlterResourcePlanResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class validate_resource_plan_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64252,12 +58200,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("validate_resource_plan_args") + oprot.writeStructBegin('validate_resource_plan_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -64267,30 +58216,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(validate_resource_plan_args) validate_resource_plan_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMValidateResourcePlanRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMValidateResourcePlanRequest, None], None, ), # 1 ) -class validate_resource_plan_result: +class validate_resource_plan_result(object): """ Attributes: - success @@ -64298,23 +58240,16 @@ class validate_resource_plan_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64344,20 +58279,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("validate_resource_plan_result") + oprot.writeStructBegin('validate_resource_plan_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -64367,61 +58303,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(validate_resource_plan_result) validate_resource_plan_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMValidateResourcePlanResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class drop_resource_plan_args: + (0, TType.STRUCT, 'success', [WMValidateResourcePlanResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class drop_resource_plan_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64441,12 +58353,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_resource_plan_args") + oprot.writeStructBegin('drop_resource_plan_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -64456,30 +58369,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_resource_plan_args) drop_resource_plan_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMDropResourcePlanRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMDropResourcePlanRequest, None], None, ), # 1 ) -class drop_resource_plan_result: +class drop_resource_plan_result(object): """ Attributes: - success @@ -64488,25 +58394,17 @@ class drop_resource_plan_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64541,24 +58439,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_resource_plan_result") + oprot.writeStructBegin('drop_resource_plan_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -64568,68 +58467,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_resource_plan_result) drop_resource_plan_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMDropResourcePlanResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class create_wm_trigger_args: + (0, TType.STRUCT, 'success', [WMDropResourcePlanResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class create_wm_trigger_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64649,12 +58518,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_wm_trigger_args") + oprot.writeStructBegin('create_wm_trigger_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -64664,30 +58534,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_wm_trigger_args) create_wm_trigger_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMCreateTriggerRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMCreateTriggerRequest, None], None, ), # 1 ) -class create_wm_trigger_result: +class create_wm_trigger_result(object): """ Attributes: - success @@ -64697,15 +58560,10 @@ class create_wm_trigger_result: - o4 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -64713,11 +58571,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64757,28 +58611,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_wm_trigger_result") + oprot.writeStructBegin('create_wm_trigger_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -64788,75 +58643,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_wm_trigger_result) create_wm_trigger_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMCreateTriggerResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidObjectException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [MetaException, None], - None, - ), # 4 -) - - -class alter_wm_trigger_args: + (0, TType.STRUCT, 'success', [WMCreateTriggerResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [MetaException, None], None, ), # 4 +) + + +class alter_wm_trigger_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64876,12 +58695,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_wm_trigger_args") + oprot.writeStructBegin('alter_wm_trigger_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -64891,30 +58711,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_wm_trigger_args) alter_wm_trigger_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMAlterTriggerRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMAlterTriggerRequest, None], None, ), # 1 ) -class alter_wm_trigger_result: +class alter_wm_trigger_result(object): """ Attributes: - success @@ -64923,25 +58736,17 @@ class alter_wm_trigger_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -64976,24 +58781,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_wm_trigger_result") + oprot.writeStructBegin('alter_wm_trigger_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65003,68 +58809,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_wm_trigger_result) alter_wm_trigger_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMAlterTriggerResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class drop_wm_trigger_args: + (0, TType.STRUCT, 'success', [WMAlterTriggerResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class drop_wm_trigger_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -65084,12 +58860,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_wm_trigger_args") + oprot.writeStructBegin('drop_wm_trigger_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65099,30 +58876,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_wm_trigger_args) drop_wm_trigger_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMDropTriggerRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMDropTriggerRequest, None], None, ), # 1 ) -class drop_wm_trigger_result: +class drop_wm_trigger_result(object): """ Attributes: - success @@ -65131,25 +58901,17 @@ class drop_wm_trigger_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -65184,24 +58946,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_wm_trigger_result") + oprot.writeStructBegin('drop_wm_trigger_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65211,68 +58974,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_wm_trigger_result) drop_wm_trigger_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMDropTriggerResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class get_triggers_for_resourceplan_args: + (0, TType.STRUCT, 'success', [WMDropTriggerResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class get_triggers_for_resourceplan_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -65292,12 +59025,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_triggers_for_resourceplan_args") + oprot.writeStructBegin('get_triggers_for_resourceplan_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65307,30 +59041,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_triggers_for_resourceplan_args) get_triggers_for_resourceplan_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMGetTriggersForResourePlanRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMGetTriggersForResourePlanRequest, None], None, ), # 1 ) -class get_triggers_for_resourceplan_result: +class get_triggers_for_resourceplan_result(object): """ Attributes: - success @@ -65338,23 +59065,16 @@ class get_triggers_for_resourceplan_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -65384,20 +59104,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_triggers_for_resourceplan_result") + oprot.writeStructBegin('get_triggers_for_resourceplan_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65407,61 +59128,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_triggers_for_resourceplan_result) get_triggers_for_resourceplan_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMGetTriggersForResourePlanResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class create_wm_pool_args: + (0, TType.STRUCT, 'success', [WMGetTriggersForResourePlanResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class create_wm_pool_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -65481,12 +59178,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_wm_pool_args") + oprot.writeStructBegin('create_wm_pool_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65496,30 +59194,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_wm_pool_args) create_wm_pool_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMCreatePoolRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMCreatePoolRequest, None], None, ), # 1 ) -class create_wm_pool_result: +class create_wm_pool_result(object): """ Attributes: - success @@ -65529,15 +59220,10 @@ class create_wm_pool_result: - o4 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -65545,11 +59231,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -65589,28 +59271,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_wm_pool_result") + oprot.writeStructBegin('create_wm_pool_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65620,75 +59303,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_wm_pool_result) create_wm_pool_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMCreatePoolResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidObjectException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [MetaException, None], - None, - ), # 4 -) - - -class alter_wm_pool_args: + (0, TType.STRUCT, 'success', [WMCreatePoolResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [MetaException, None], None, ), # 4 +) + + +class alter_wm_pool_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -65708,12 +59355,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_wm_pool_args") + oprot.writeStructBegin('alter_wm_pool_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65723,30 +59371,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_wm_pool_args) alter_wm_pool_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMAlterPoolRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMAlterPoolRequest, None], None, ), # 1 ) -class alter_wm_pool_result: +class alter_wm_pool_result(object): """ Attributes: - success @@ -65756,15 +59397,10 @@ class alter_wm_pool_result: - o4 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -65772,11 +59408,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -65816,28 +59448,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_wm_pool_result") + oprot.writeStructBegin('alter_wm_pool_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65847,75 +59480,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_wm_pool_result) alter_wm_pool_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMAlterPoolResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidObjectException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [MetaException, None], - None, - ), # 4 -) - - -class drop_wm_pool_args: + (0, TType.STRUCT, 'success', [WMAlterPoolResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [MetaException, None], None, ), # 4 +) + + +class drop_wm_pool_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -65935,12 +59532,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_wm_pool_args") + oprot.writeStructBegin('drop_wm_pool_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -65950,30 +59548,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_wm_pool_args) drop_wm_pool_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMDropPoolRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMDropPoolRequest, None], None, ), # 1 ) -class drop_wm_pool_result: +class drop_wm_pool_result(object): """ Attributes: - success @@ -65982,25 +59573,17 @@ class drop_wm_pool_result: - o3 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66035,24 +59618,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_wm_pool_result") + oprot.writeStructBegin('drop_wm_pool_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -66062,68 +59646,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_wm_pool_result) drop_wm_pool_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMDropPoolResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class create_or_update_wm_mapping_args: + (0, TType.STRUCT, 'success', [WMDropPoolResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class create_or_update_wm_mapping_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66143,12 +59697,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_or_update_wm_mapping_args") + oprot.writeStructBegin('create_or_update_wm_mapping_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -66158,30 +59713,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_or_update_wm_mapping_args) create_or_update_wm_mapping_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMCreateOrUpdateMappingRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMCreateOrUpdateMappingRequest, None], None, ), # 1 ) -class create_or_update_wm_mapping_result: +class create_or_update_wm_mapping_result(object): """ Attributes: - success @@ -66191,15 +59739,10 @@ class create_or_update_wm_mapping_result: - o4 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -66207,11 +59750,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66251,28 +59790,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_or_update_wm_mapping_result") + oprot.writeStructBegin('create_or_update_wm_mapping_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -66282,75 +59822,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_or_update_wm_mapping_result) create_or_update_wm_mapping_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMCreateOrUpdateMappingResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidObjectException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [MetaException, None], - None, - ), # 4 -) - - -class drop_wm_mapping_args: + (0, TType.STRUCT, 'success', [WMCreateOrUpdateMappingResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [MetaException, None], None, ), # 4 +) + + +class drop_wm_mapping_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66370,12 +59874,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_wm_mapping_args") + oprot.writeStructBegin('drop_wm_mapping_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -66385,30 +59890,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_wm_mapping_args) drop_wm_mapping_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMDropMappingRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMDropMappingRequest, None], None, ), # 1 ) -class drop_wm_mapping_result: +class drop_wm_mapping_result(object): """ Attributes: - success @@ -66417,25 +59915,17 @@ class drop_wm_mapping_result: - o3 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, success = None, o1 = None, o2 = None, o3 = None,): self.success = success self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66470,24 +59960,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_wm_mapping_result") + oprot.writeStructBegin('drop_wm_mapping_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -66497,68 +59988,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_wm_mapping_result) drop_wm_mapping_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMDropMappingResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class create_or_drop_wm_trigger_to_pool_mapping_args: + (0, TType.STRUCT, 'success', [WMDropMappingResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class create_or_drop_wm_trigger_to_pool_mapping_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66578,12 +60039,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_or_drop_wm_trigger_to_pool_mapping_args") + oprot.writeStructBegin('create_or_drop_wm_trigger_to_pool_mapping_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -66593,30 +60055,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_or_drop_wm_trigger_to_pool_mapping_args) create_or_drop_wm_trigger_to_pool_mapping_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [WMCreateOrDropTriggerToPoolMappingRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [WMCreateOrDropTriggerToPoolMappingRequest, None], None, ), # 1 ) -class create_or_drop_wm_trigger_to_pool_mapping_result: +class create_or_drop_wm_trigger_to_pool_mapping_result(object): """ Attributes: - success @@ -66626,15 +60081,10 @@ class create_or_drop_wm_trigger_to_pool_mapping_result: - o4 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None, o3 = None, o4 = None,): self.success = success self.o1 = o1 self.o2 = o2 @@ -66642,11 +60092,7 @@ def __init__( self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66686,28 +60132,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_or_drop_wm_trigger_to_pool_mapping_result") + oprot.writeStructBegin('create_or_drop_wm_trigger_to_pool_mapping_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -66717,75 +60164,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_or_drop_wm_trigger_to_pool_mapping_result) create_or_drop_wm_trigger_to_pool_mapping_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [WMCreateOrDropTriggerToPoolMappingResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [InvalidObjectException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [MetaException, None], - None, - ), # 4 -) - - -class create_ischema_args: + (0, TType.STRUCT, 'success', [WMCreateOrDropTriggerToPoolMappingResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [InvalidObjectException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [MetaException, None], None, ), # 4 +) + + +class create_ischema_args(object): """ Attributes: - schema """ + thrift_spec = None - def __init__( - self, - schema=None, - ): + + def __init__(self, schema = None,): self.schema = schema def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66805,12 +60216,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_ischema_args") + oprot.writeStructBegin('create_ischema_args') if self.schema is not None: - oprot.writeFieldBegin("schema", TType.STRUCT, 1) + oprot.writeFieldBegin('schema', TType.STRUCT, 1) self.schema.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -66820,30 +60232,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_ischema_args) create_ischema_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schema", - [ISchema, None], - None, - ), # 1 + (1, TType.STRUCT, 'schema', [ISchema, None], None, ), # 1 ) -class create_ischema_result: +class create_ischema_result(object): """ Attributes: - o1 @@ -66851,23 +60256,16 @@ class create_ischema_result: - o3 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66896,20 +60294,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_ischema_result") + oprot.writeStructBegin('create_ischema_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -66919,62 +60318,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_ischema_result) create_ischema_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class alter_ischema_args: + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class alter_ischema_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -66994,12 +60369,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_ischema_args") + oprot.writeStructBegin('alter_ischema_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67009,51 +60385,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_ischema_args) alter_ischema_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [AlterISchemaRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [AlterISchemaRequest, None], None, ), # 1 ) -class alter_ischema_result: +class alter_ischema_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67077,16 +60440,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("alter_ischema_result") + oprot.writeStructBegin('alter_ischema_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67096,55 +60460,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(alter_ischema_result) alter_ischema_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class get_ischema_args: +class get_ischema_args(object): """ Attributes: - name """ + thrift_spec = None + - def __init__( - self, - name=None, - ): + def __init__(self, name = None,): self.name = name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67164,12 +60510,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_ischema_args") + oprot.writeStructBegin('get_ischema_args') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRUCT, 1) + oprot.writeFieldBegin('name', TType.STRUCT, 1) self.name.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67179,30 +60526,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_ischema_args) get_ischema_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "name", - [ISchemaName, None], - None, - ), # 1 + (1, TType.STRUCT, 'name', [ISchemaName, None], None, ), # 1 ) -class get_ischema_result: +class get_ischema_result(object): """ Attributes: - success @@ -67210,23 +60550,16 @@ class get_ischema_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67256,20 +60589,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_ischema_result") + oprot.writeStructBegin('get_ischema_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67279,61 +60613,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_ischema_result) get_ischema_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ISchema, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class drop_ischema_args: + (0, TType.STRUCT, 'success', [ISchema, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class drop_ischema_args(object): """ Attributes: - name """ + thrift_spec = None - def __init__( - self, - name=None, - ): + + def __init__(self, name = None,): self.name = name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67353,12 +60663,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_ischema_args") + oprot.writeStructBegin('drop_ischema_args') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRUCT, 1) + oprot.writeFieldBegin('name', TType.STRUCT, 1) self.name.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67368,30 +60679,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_ischema_args) drop_ischema_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "name", - [ISchemaName, None], - None, - ), # 1 + (1, TType.STRUCT, 'name', [ISchemaName, None], None, ), # 1 ) -class drop_ischema_result: +class drop_ischema_result(object): """ Attributes: - o1 @@ -67399,23 +60703,16 @@ class drop_ischema_result: - o3 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67444,20 +60741,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_ischema_result") + oprot.writeStructBegin('drop_ischema_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67467,62 +60765,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_ischema_result) drop_ischema_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class add_schema_version_args: + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class add_schema_version_args(object): """ Attributes: - schemaVersion """ + thrift_spec = None + - def __init__( - self, - schemaVersion=None, - ): + def __init__(self, schemaVersion = None,): self.schemaVersion = schemaVersion def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67542,12 +60816,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_schema_version_args") + oprot.writeStructBegin('add_schema_version_args') if self.schemaVersion is not None: - oprot.writeFieldBegin("schemaVersion", TType.STRUCT, 1) + oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) self.schemaVersion.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67557,30 +60832,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_schema_version_args) add_schema_version_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schemaVersion", - [SchemaVersion, None], - None, - ), # 1 + (1, TType.STRUCT, 'schemaVersion', [SchemaVersion, None], None, ), # 1 ) -class add_schema_version_result: +class add_schema_version_result(object): """ Attributes: - o1 @@ -67588,23 +60856,16 @@ class add_schema_version_result: - o3 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67633,20 +60894,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_schema_version_result") + oprot.writeStructBegin('add_schema_version_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67656,62 +60918,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_schema_version_result) add_schema_version_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class get_schema_version_args: + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class get_schema_version_args(object): """ Attributes: - schemaVersion """ + thrift_spec = None + - def __init__( - self, - schemaVersion=None, - ): + def __init__(self, schemaVersion = None,): self.schemaVersion = schemaVersion def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67731,12 +60969,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_version_args") + oprot.writeStructBegin('get_schema_version_args') if self.schemaVersion is not None: - oprot.writeFieldBegin("schemaVersion", TType.STRUCT, 1) + oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) self.schemaVersion.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67746,30 +60985,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_schema_version_args) get_schema_version_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schemaVersion", - [SchemaVersionDescriptor, None], - None, - ), # 1 + (1, TType.STRUCT, 'schemaVersion', [SchemaVersionDescriptor, None], None, ), # 1 ) -class get_schema_version_result: +class get_schema_version_result(object): """ Attributes: - success @@ -67777,23 +61009,16 @@ class get_schema_version_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67823,20 +61048,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_version_result") + oprot.writeStructBegin('get_schema_version_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67846,61 +61072,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_schema_version_result) get_schema_version_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [SchemaVersion, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_schema_latest_version_args: + (0, TType.STRUCT, 'success', [SchemaVersion, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class get_schema_latest_version_args(object): """ Attributes: - schemaName """ + thrift_spec = None - def __init__( - self, - schemaName=None, - ): + + def __init__(self, schemaName = None,): self.schemaName = schemaName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -67920,12 +61122,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_latest_version_args") + oprot.writeStructBegin('get_schema_latest_version_args') if self.schemaName is not None: - oprot.writeFieldBegin("schemaName", TType.STRUCT, 1) + oprot.writeFieldBegin('schemaName', TType.STRUCT, 1) self.schemaName.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -67935,30 +61138,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_schema_latest_version_args) get_schema_latest_version_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schemaName", - [ISchemaName, None], - None, - ), # 1 + (1, TType.STRUCT, 'schemaName', [ISchemaName, None], None, ), # 1 ) -class get_schema_latest_version_result: +class get_schema_latest_version_result(object): """ Attributes: - success @@ -67966,23 +61162,16 @@ class get_schema_latest_version_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68012,20 +61201,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_latest_version_result") + oprot.writeStructBegin('get_schema_latest_version_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68035,61 +61225,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_schema_latest_version_result) get_schema_latest_version_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [SchemaVersion, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_schema_all_versions_args: + (0, TType.STRUCT, 'success', [SchemaVersion, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class get_schema_all_versions_args(object): """ Attributes: - schemaName """ + thrift_spec = None + - def __init__( - self, - schemaName=None, - ): + def __init__(self, schemaName = None,): self.schemaName = schemaName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68109,12 +61275,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_all_versions_args") + oprot.writeStructBegin('get_schema_all_versions_args') if self.schemaName is not None: - oprot.writeFieldBegin("schemaName", TType.STRUCT, 1) + oprot.writeFieldBegin('schemaName', TType.STRUCT, 1) self.schemaName.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68124,30 +61291,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_schema_all_versions_args) get_schema_all_versions_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schemaName", - [ISchemaName, None], - None, - ), # 1 + (1, TType.STRUCT, 'schemaName', [ISchemaName, None], None, ), # 1 ) -class get_schema_all_versions_result: +class get_schema_all_versions_result(object): """ Attributes: - success @@ -68155,23 +61315,16 @@ class get_schema_all_versions_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68182,11 +61335,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1775, _size1772) = iprot.readListBegin() - for _i1776 in range(_size1772): - _elem1777 = SchemaVersion() - _elem1777.read(iprot) - self.success.append(_elem1777) + (_etype1964, _size1961) = iprot.readListBegin() + for _i1965 in range(_size1961): + _elem1966 = SchemaVersion() + _elem1966.read(iprot) + self.success.append(_elem1966) iprot.readListEnd() else: iprot.skip(ftype) @@ -68206,23 +61359,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schema_all_versions_result") + oprot.writeStructBegin('get_schema_all_versions_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1778 in self.success: - iter1778.write(oprot) + for iter1967 in self.success: + iter1967.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68232,61 +61386,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_schema_all_versions_result) get_schema_all_versions_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [SchemaVersion, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class drop_schema_version_args: + (0, TType.LIST, 'success', (TType.STRUCT, [SchemaVersion, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class drop_schema_version_args(object): """ Attributes: - schemaVersion """ + thrift_spec = None - def __init__( - self, - schemaVersion=None, - ): + + def __init__(self, schemaVersion = None,): self.schemaVersion = schemaVersion def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68306,12 +61436,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_schema_version_args") + oprot.writeStructBegin('drop_schema_version_args') if self.schemaVersion is not None: - oprot.writeFieldBegin("schemaVersion", TType.STRUCT, 1) + oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) self.schemaVersion.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68321,51 +61452,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_schema_version_args) drop_schema_version_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schemaVersion", - [SchemaVersionDescriptor, None], - None, - ), # 1 + (1, TType.STRUCT, 'schemaVersion', [SchemaVersionDescriptor, None], None, ), # 1 ) -class drop_schema_version_result: +class drop_schema_version_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68389,16 +61507,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_schema_version_result") + oprot.writeStructBegin('drop_schema_version_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68408,55 +61527,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_schema_version_result) drop_schema_version_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class get_schemas_by_cols_args: +class get_schemas_by_cols_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68476,12 +61577,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schemas_by_cols_args") + oprot.writeStructBegin('get_schemas_by_cols_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68491,51 +61593,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_schemas_by_cols_args) get_schemas_by_cols_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [FindSchemasByColsRqst, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [FindSchemasByColsRqst, None], None, ), # 1 ) -class get_schemas_by_cols_result: +class get_schemas_by_cols_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68560,16 +61649,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_schemas_by_cols_result") + oprot.writeStructBegin('get_schemas_by_cols_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68579,54 +61669,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_schemas_by_cols_result) get_schemas_by_cols_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [FindSchemasByColsResp, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [FindSchemasByColsResp, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class map_schema_version_to_serde_args: +class map_schema_version_to_serde_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68646,12 +61718,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("map_schema_version_to_serde_args") + oprot.writeStructBegin('map_schema_version_to_serde_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68661,51 +61734,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(map_schema_version_to_serde_args) map_schema_version_to_serde_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [MapSchemaVersionToSerdeRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [MapSchemaVersionToSerdeRequest, None], None, ), # 1 ) -class map_schema_version_to_serde_result: +class map_schema_version_to_serde_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68729,16 +61789,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("map_schema_version_to_serde_result") + oprot.writeStructBegin('map_schema_version_to_serde_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68748,55 +61809,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(map_schema_version_to_serde_result) map_schema_version_to_serde_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class set_schema_version_state_args: +class set_schema_version_state_args(object): """ Attributes: - rqst """ + thrift_spec = None - def __init__( - self, - rqst=None, - ): + + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68816,12 +61859,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("set_schema_version_state_args") + oprot.writeStructBegin('set_schema_version_state_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68831,30 +61875,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(set_schema_version_state_args) set_schema_version_state_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [SetSchemaVersionStateRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [SetSchemaVersionStateRequest, None], None, ), # 1 ) -class set_schema_version_state_result: +class set_schema_version_state_result(object): """ Attributes: - o1 @@ -68862,23 +61899,16 @@ class set_schema_version_state_result: - o3 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - o3=None, - ): + def __init__(self, o1 = None, o2 = None, o3 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68907,20 +61937,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("set_schema_version_state_result") + oprot.writeStructBegin('set_schema_version_state_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -68930,62 +61961,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(set_schema_version_state_result) set_schema_version_state_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [MetaException, None], - None, - ), # 3 -) - - -class add_serde_args: + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [MetaException, None], None, ), # 3 +) + + +class add_serde_args(object): """ Attributes: - serde """ + thrift_spec = None + - def __init__( - self, - serde=None, - ): + def __init__(self, serde = None,): self.serde = serde def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69005,12 +62012,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_serde_args") + oprot.writeStructBegin('add_serde_args') if self.serde is not None: - oprot.writeFieldBegin("serde", TType.STRUCT, 1) + oprot.writeFieldBegin('serde', TType.STRUCT, 1) self.serde.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69020,51 +62028,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_serde_args) add_serde_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "serde", - [SerDeInfo, None], - None, - ), # 1 + (1, TType.STRUCT, 'serde', [SerDeInfo, None], None, ), # 1 ) -class add_serde_result: +class add_serde_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69088,16 +62083,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_serde_result") + oprot.writeStructBegin('add_serde_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69107,55 +62103,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_serde_result) add_serde_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [AlreadyExistsException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [AlreadyExistsException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class get_serde_args: +class get_serde_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69175,12 +62153,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_serde_args") + oprot.writeStructBegin('get_serde_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69190,30 +62169,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_serde_args) get_serde_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [GetSerdeRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [GetSerdeRequest, None], None, ), # 1 ) -class get_serde_result: +class get_serde_result(object): """ Attributes: - success @@ -69221,23 +62193,16 @@ class get_serde_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69267,20 +62232,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_serde_result") + oprot.writeStructBegin('get_serde_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69290,43 +62256,24 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_serde_result) get_serde_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [SerDeInfo, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 -) - - -class get_lock_materialization_rebuild_args: + (0, TType.STRUCT, 'success', [SerDeInfo, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 +) + + +class get_lock_materialization_rebuild_args(object): """ Attributes: - dbName @@ -69334,23 +62281,16 @@ class get_lock_materialization_rebuild_args: - txnId """ + thrift_spec = None + - def __init__( - self, - dbName=None, - tableName=None, - txnId=None, - ): + def __init__(self, dbName = None, tableName = None, txnId = None,): self.dbName = dbName self.tableName = tableName self.txnId = txnId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69360,16 +62300,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -69383,20 +62319,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_lock_materialization_rebuild_args") + oprot.writeStructBegin('get_lock_materialization_rebuild_args') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 2) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.txnId is not None: - oprot.writeFieldBegin("txnId", TType.I64, 3) + oprot.writeFieldBegin('txnId', TType.I64, 3) oprot.writeI64(self.txnId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69406,62 +62343,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_lock_materialization_rebuild_args) get_lock_materialization_rebuild_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I64, - "txnId", - None, - None, - ), # 3 -) - - -class get_lock_materialization_rebuild_result: + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.I64, 'txnId', None, None, ), # 3 +) + + +class get_lock_materialization_rebuild_result(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69481,12 +62394,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_lock_materialization_rebuild_result") + oprot.writeStructBegin('get_lock_materialization_rebuild_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69496,29 +62410,22 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_lock_materialization_rebuild_result) get_lock_materialization_rebuild_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [LockResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [LockResponse, None], None, ), # 0 ) -class heartbeat_lock_materialization_rebuild_args: +class heartbeat_lock_materialization_rebuild_args(object): """ Attributes: - dbName @@ -69526,23 +62433,16 @@ class heartbeat_lock_materialization_rebuild_args: - txnId """ + thrift_spec = None - def __init__( - self, - dbName=None, - tableName=None, - txnId=None, - ): + + def __init__(self, dbName = None, tableName = None, txnId = None,): self.dbName = dbName self.tableName = tableName self.txnId = txnId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69552,16 +62452,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -69575,20 +62471,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("heartbeat_lock_materialization_rebuild_args") + oprot.writeStructBegin('heartbeat_lock_materialization_rebuild_args') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 2) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.txnId is not None: - oprot.writeFieldBegin("txnId", TType.I64, 3) + oprot.writeFieldBegin('txnId', TType.I64, 3) oprot.writeI64(self.txnId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69598,62 +62495,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(heartbeat_lock_materialization_rebuild_args) heartbeat_lock_materialization_rebuild_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I64, - "txnId", - None, - None, - ), # 3 -) - - -class heartbeat_lock_materialization_rebuild_result: + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.I64, 'txnId', None, None, ), # 3 +) + + +class heartbeat_lock_materialization_rebuild_result(object): """ Attributes: - success """ + thrift_spec = None - def __init__( - self, - success=None, - ): + + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69672,12 +62545,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("heartbeat_lock_materialization_rebuild_result") + oprot.writeStructBegin('heartbeat_lock_materialization_rebuild_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69687,47 +62561,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(heartbeat_lock_materialization_rebuild_result) heartbeat_lock_materialization_rebuild_result.thrift_spec = ( - ( - 0, - TType.BOOL, - "success", - None, - None, - ), # 0 + (0, TType.BOOL, 'success', None, None, ), # 0 ) -class add_runtime_stats_args: +class add_runtime_stats_args(object): """ Attributes: - stat """ + thrift_spec = None + - def __init__( - self, - stat=None, - ): + def __init__(self, stat = None,): self.stat = stat def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69747,12 +62609,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_runtime_stats_args") + oprot.writeStructBegin('add_runtime_stats_args') if self.stat is not None: - oprot.writeFieldBegin("stat", TType.STRUCT, 1) + oprot.writeFieldBegin('stat', TType.STRUCT, 1) self.stat.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69762,48 +62625,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_runtime_stats_args) add_runtime_stats_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "stat", - [RuntimeStat, None], - None, - ), # 1 + (1, TType.STRUCT, 'stat', [RuntimeStat, None], None, ), # 1 ) -class add_runtime_stats_result: +class add_runtime_stats_result(object): """ Attributes: - o1 """ + thrift_spec = None - def __init__( - self, - o1=None, - ): + + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69822,12 +62673,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_runtime_stats_result") + oprot.writeStructBegin('add_runtime_stats_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69837,48 +62689,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_runtime_stats_result) add_runtime_stats_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_runtime_stats_args: +class get_runtime_stats_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69898,12 +62738,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_runtime_stats_args") + oprot.writeStructBegin('get_runtime_stats_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -69913,51 +62754,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_runtime_stats_args) get_runtime_stats_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [GetRuntimeStatsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [GetRuntimeStatsRequest, None], None, ), # 1 ) -class get_runtime_stats_result: +class get_runtime_stats_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -69968,11 +62796,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1782, _size1779) = iprot.readListBegin() - for _i1783 in range(_size1779): - _elem1784 = RuntimeStat() - _elem1784.read(iprot) - self.success.append(_elem1784) + (_etype1971, _size1968) = iprot.readListBegin() + for _i1972 in range(_size1968): + _elem1973 = RuntimeStat() + _elem1973.read(iprot) + self.success.append(_elem1973) iprot.readListEnd() else: iprot.skip(ftype) @@ -69987,19 +62815,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_runtime_stats_result") + oprot.writeStructBegin('get_runtime_stats_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1785 in self.success: - iter1785.write(oprot) + for iter1974 in self.success: + iter1974.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70009,54 +62838,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_runtime_stats_result) get_runtime_stats_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [RuntimeStat, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRUCT, [RuntimeStat, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_partitions_with_specs_args: +class get_partitions_with_specs_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70076,12 +62887,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_with_specs_args") + oprot.writeStructBegin('get_partitions_with_specs_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70091,51 +62903,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partitions_with_specs_args) get_partitions_with_specs_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [GetPartitionsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [GetPartitionsRequest, None], None, ), # 1 ) -class get_partitions_with_specs_result: +class get_partitions_with_specs_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70160,16 +62959,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_partitions_with_specs_result") + oprot.writeStructBegin('get_partitions_with_specs_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70179,54 +62979,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_partitions_with_specs_result) get_partitions_with_specs_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetPartitionsResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [GetPartitionsResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class scheduled_query_poll_args: +class scheduled_query_poll_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70246,12 +63028,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("scheduled_query_poll_args") + oprot.writeStructBegin('scheduled_query_poll_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70261,51 +63044,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(scheduled_query_poll_args) scheduled_query_poll_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [ScheduledQueryPollRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [ScheduledQueryPollRequest, None], None, ), # 1 ) -class scheduled_query_poll_result: +class scheduled_query_poll_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70330,16 +63100,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("scheduled_query_poll_result") + oprot.writeStructBegin('scheduled_query_poll_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70349,54 +63120,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(scheduled_query_poll_result) scheduled_query_poll_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ScheduledQueryPollResponse, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [ScheduledQueryPollResponse, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class scheduled_query_maintenance_args: +class scheduled_query_maintenance_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70416,12 +63169,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("scheduled_query_maintenance_args") + oprot.writeStructBegin('scheduled_query_maintenance_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70431,30 +63185,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(scheduled_query_maintenance_args) scheduled_query_maintenance_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [ScheduledQueryMaintenanceRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [ScheduledQueryMaintenanceRequest, None], None, ), # 1 ) -class scheduled_query_maintenance_result: +class scheduled_query_maintenance_result(object): """ Attributes: - o1 @@ -70463,25 +63210,17 @@ class scheduled_query_maintenance_result: - o4 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - o3=None, - o4=None, - ): + + def __init__(self, o1 = None, o2 = None, o3 = None, o4 = None,): self.o1 = o1 self.o2 = o2 self.o3 = o3 self.o4 = o4 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70515,24 +63254,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("scheduled_query_maintenance_result") + oprot.writeStructBegin('scheduled_query_maintenance_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() if self.o3 is not None: - oprot.writeFieldBegin("o3", TType.STRUCT, 3) + oprot.writeFieldBegin('o3', TType.STRUCT, 3) self.o3.write(oprot) oprot.writeFieldEnd() if self.o4 is not None: - oprot.writeFieldBegin("o4", TType.STRUCT, 4) + oprot.writeFieldBegin('o4', TType.STRUCT, 4) self.o4.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70542,69 +63282,39 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(scheduled_query_maintenance_result) scheduled_query_maintenance_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "o3", - [AlreadyExistsException, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "o4", - [InvalidInputException, None], - None, - ), # 4 -) - - -class scheduled_query_progress_args: + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 + (3, TType.STRUCT, 'o3', [AlreadyExistsException, None], None, ), # 3 + (4, TType.STRUCT, 'o4', [InvalidInputException, None], None, ), # 4 +) + + +class scheduled_query_progress_args(object): """ Attributes: - info """ + thrift_spec = None - def __init__( - self, - info=None, - ): + + def __init__(self, info = None,): self.info = info def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70624,12 +63334,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("scheduled_query_progress_args") + oprot.writeStructBegin('scheduled_query_progress_args') if self.info is not None: - oprot.writeFieldBegin("info", TType.STRUCT, 1) + oprot.writeFieldBegin('info', TType.STRUCT, 1) self.info.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70639,51 +63350,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(scheduled_query_progress_args) scheduled_query_progress_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "info", - [ScheduledQueryProgressInfo, None], - None, - ), # 1 + (1, TType.STRUCT, 'info', [ScheduledQueryProgressInfo, None], None, ), # 1 ) -class scheduled_query_progress_result: +class scheduled_query_progress_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None + - def __init__( - self, - o1=None, - o2=None, - ): + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70707,16 +63405,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("scheduled_query_progress_result") + oprot.writeStructBegin('scheduled_query_progress_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70726,55 +63425,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(scheduled_query_progress_result) scheduled_query_progress_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [InvalidOperationException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [InvalidOperationException, None], None, ), # 2 ) -class get_scheduled_query_args: +class get_scheduled_query_args(object): """ Attributes: - scheduleKey """ + thrift_spec = None - def __init__( - self, - scheduleKey=None, - ): + + def __init__(self, scheduleKey = None,): self.scheduleKey = scheduleKey def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70794,12 +63475,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_scheduled_query_args") + oprot.writeStructBegin('get_scheduled_query_args') if self.scheduleKey is not None: - oprot.writeFieldBegin("scheduleKey", TType.STRUCT, 1) + oprot.writeFieldBegin('scheduleKey', TType.STRUCT, 1) self.scheduleKey.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70809,30 +63491,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_scheduled_query_args) get_scheduled_query_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "scheduleKey", - [ScheduledQueryKey, None], - None, - ), # 1 + (1, TType.STRUCT, 'scheduleKey', [ScheduledQueryKey, None], None, ), # 1 ) -class get_scheduled_query_result: +class get_scheduled_query_result(object): """ Attributes: - success @@ -70840,23 +63515,16 @@ class get_scheduled_query_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70886,20 +63554,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_scheduled_query_result") + oprot.writeStructBegin('get_scheduled_query_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70909,61 +63578,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_scheduled_query_result) get_scheduled_query_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ScheduledQuery, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class add_replication_metrics_args: + (0, TType.STRUCT, 'success', [ScheduledQuery, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class add_replication_metrics_args(object): """ Attributes: - replicationMetricList """ + thrift_spec = None + - def __init__( - self, - replicationMetricList=None, - ): + def __init__(self, replicationMetricList = None,): self.replicationMetricList = replicationMetricList def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -70983,12 +63628,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_replication_metrics_args") + oprot.writeStructBegin('add_replication_metrics_args') if self.replicationMetricList is not None: - oprot.writeFieldBegin("replicationMetricList", TType.STRUCT, 1) + oprot.writeFieldBegin('replicationMetricList', TType.STRUCT, 1) self.replicationMetricList.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -70998,48 +63644,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_replication_metrics_args) add_replication_metrics_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "replicationMetricList", - [ReplicationMetricList, None], - None, - ), # 1 + (1, TType.STRUCT, 'replicationMetricList', [ReplicationMetricList, None], None, ), # 1 ) -class add_replication_metrics_result: +class add_replication_metrics_result(object): """ Attributes: - o1 """ + thrift_spec = None - def __init__( - self, - o1=None, - ): + + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71058,12 +63692,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_replication_metrics_result") + oprot.writeStructBegin('add_replication_metrics_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71073,48 +63708,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_replication_metrics_result) add_replication_metrics_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_replication_metrics_args: +class get_replication_metrics_args(object): """ Attributes: - rqst """ + thrift_spec = None + - def __init__( - self, - rqst=None, - ): + def __init__(self, rqst = None,): self.rqst = rqst def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71134,12 +63757,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_replication_metrics_args") + oprot.writeStructBegin('get_replication_metrics_args') if self.rqst is not None: - oprot.writeFieldBegin("rqst", TType.STRUCT, 1) + oprot.writeFieldBegin('rqst', TType.STRUCT, 1) self.rqst.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71149,51 +63773,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_replication_metrics_args) get_replication_metrics_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "rqst", - [GetReplicationMetricsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'rqst', [GetReplicationMetricsRequest, None], None, ), # 1 ) -class get_replication_metrics_result: +class get_replication_metrics_result(object): """ Attributes: - success - o1 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - ): + + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71218,16 +63829,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_replication_metrics_result") + oprot.writeStructBegin('get_replication_metrics_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71237,54 +63849,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_replication_metrics_result) get_replication_metrics_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [ReplicationMetricList, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.STRUCT, 'success', [ReplicationMetricList, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_open_txns_req_args: +class get_open_txns_req_args(object): """ Attributes: - getOpenTxnsRequest """ + thrift_spec = None + - def __init__( - self, - getOpenTxnsRequest=None, - ): + def __init__(self, getOpenTxnsRequest = None,): self.getOpenTxnsRequest = getOpenTxnsRequest def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71304,12 +63898,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_open_txns_req_args") + oprot.writeStructBegin('get_open_txns_req_args') if self.getOpenTxnsRequest is not None: - oprot.writeFieldBegin("getOpenTxnsRequest", TType.STRUCT, 1) + oprot.writeFieldBegin('getOpenTxnsRequest', TType.STRUCT, 1) self.getOpenTxnsRequest.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71319,48 +63914,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_open_txns_req_args) get_open_txns_req_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "getOpenTxnsRequest", - [GetOpenTxnsRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'getOpenTxnsRequest', [GetOpenTxnsRequest, None], None, ), # 1 ) -class get_open_txns_req_result: +class get_open_txns_req_result(object): """ Attributes: - success """ + thrift_spec = None - def __init__( - self, - success=None, - ): + + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71380,12 +63963,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_open_txns_req_result") + oprot.writeStructBegin('get_open_txns_req_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71395,47 +63979,35 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_open_txns_req_result) get_open_txns_req_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [GetOpenTxnsResponse, None], - None, - ), # 0 + (0, TType.STRUCT, 'success', [GetOpenTxnsResponse, None], None, ), # 0 ) -class create_stored_procedure_args: +class create_stored_procedure_args(object): """ Attributes: - proc """ + thrift_spec = None + - def __init__( - self, - proc=None, - ): + def __init__(self, proc = None,): self.proc = proc def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71455,12 +64027,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_stored_procedure_args") + oprot.writeStructBegin('create_stored_procedure_args') if self.proc is not None: - oprot.writeFieldBegin("proc", TType.STRUCT, 1) + oprot.writeFieldBegin('proc', TType.STRUCT, 1) self.proc.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71470,51 +64043,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_stored_procedure_args) create_stored_procedure_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "proc", - [StoredProcedure, None], - None, - ), # 1 + (1, TType.STRUCT, 'proc', [StoredProcedure, None], None, ), # 1 ) -class create_stored_procedure_result: +class create_stored_procedure_result(object): """ Attributes: - o1 - o2 """ + thrift_spec = None - def __init__( - self, - o1=None, - o2=None, - ): + + def __init__(self, o1 = None, o2 = None,): self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71538,16 +64098,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_stored_procedure_result") + oprot.writeStructBegin('create_stored_procedure_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71557,55 +64118,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(create_stored_procedure_result) create_stored_procedure_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [NoSuchObjectException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [MetaException, None], - None, - ), # 2 + (1, TType.STRUCT, 'o1', [NoSuchObjectException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [MetaException, None], None, ), # 2 ) -class get_stored_procedure_args: +class get_stored_procedure_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71625,12 +64168,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_stored_procedure_args") + oprot.writeStructBegin('get_stored_procedure_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71640,30 +64184,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_stored_procedure_args) get_stored_procedure_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [StoredProcedureRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [StoredProcedureRequest, None], None, ), # 1 ) -class get_stored_procedure_result: +class get_stored_procedure_result(object): """ Attributes: - success @@ -71671,23 +64208,16 @@ class get_stored_procedure_result: - o2 """ + thrift_spec = None - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71717,20 +64247,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_stored_procedure_result") + oprot.writeStructBegin('get_stored_procedure_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71740,61 +64271,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_stored_procedure_result) get_stored_procedure_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [StoredProcedure, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class drop_stored_procedure_args: + (0, TType.STRUCT, 'success', [StoredProcedure, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class drop_stored_procedure_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71814,12 +64321,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_stored_procedure_args") + oprot.writeStructBegin('drop_stored_procedure_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71829,48 +64337,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_stored_procedure_args) drop_stored_procedure_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [StoredProcedureRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [StoredProcedureRequest, None], None, ), # 1 ) -class drop_stored_procedure_result: +class drop_stored_procedure_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71889,12 +64385,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_stored_procedure_result") + oprot.writeStructBegin('drop_stored_procedure_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71904,48 +64401,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_stored_procedure_result) drop_stored_procedure_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_all_stored_procedures_args: +class get_all_stored_procedures_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -71965,12 +64450,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_stored_procedures_args") + oprot.writeStructBegin('get_all_stored_procedures_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -71980,51 +64466,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_stored_procedures_args) get_all_stored_procedures_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [ListStoredProcedureRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [ListStoredProcedureRequest, None], None, ), # 1 ) -class get_all_stored_procedures_result: +class get_all_stored_procedures_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72035,14 +64508,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1789, _size1786) = iprot.readListBegin() - for _i1790 in range(_size1786): - _elem1791 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1791) + (_etype1978, _size1975) = iprot.readListBegin() + for _i1979 in range(_size1975): + _elem1980 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1980) iprot.readListEnd() else: iprot.skip(ftype) @@ -72057,19 +64526,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_stored_procedures_result") + oprot.writeStructBegin('get_all_stored_procedures_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1792 in self.success: - oprot.writeString(iter1792.encode("utf-8") if sys.version_info[0] == 2 else iter1792) + for iter1981 in self.success: + oprot.writeString(iter1981.encode('utf-8') if sys.version_info[0] == 2 else iter1981) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72079,54 +64549,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_stored_procedures_result) get_all_stored_procedures_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class find_package_args: +class find_package_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72146,12 +64598,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("find_package_args") + oprot.writeStructBegin('find_package_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72161,30 +64614,23 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(find_package_args) find_package_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [GetPackageRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [GetPackageRequest, None], None, ), # 1 ) -class find_package_result: +class find_package_result(object): """ Attributes: - success @@ -72192,23 +64638,16 @@ class find_package_result: - o2 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - o2=None, - ): + def __init__(self, success = None, o1 = None, o2 = None,): self.success = success self.o1 = o1 self.o2 = o2 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72238,20 +64677,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("find_package_result") + oprot.writeStructBegin('find_package_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() if self.o2 is not None: - oprot.writeFieldBegin("o2", TType.STRUCT, 2) + oprot.writeFieldBegin('o2', TType.STRUCT, 2) self.o2.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72261,61 +64701,37 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(find_package_result) find_package_result.thrift_spec = ( - ( - 0, - TType.STRUCT, - "success", - [Package, None], - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "o2", - [NoSuchObjectException, None], - None, - ), # 2 -) - - -class add_package_args: + (0, TType.STRUCT, 'success', [Package, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 + (2, TType.STRUCT, 'o2', [NoSuchObjectException, None], None, ), # 2 +) + + +class add_package_args(object): """ Attributes: - request """ + thrift_spec = None + - def __init__( - self, - request=None, - ): + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72335,12 +64751,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_package_args") + oprot.writeStructBegin('add_package_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72350,48 +64767,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_package_args) add_package_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [AddPackageRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [AddPackageRequest, None], None, ), # 1 ) -class add_package_result: +class add_package_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72410,12 +64815,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_package_result") + oprot.writeStructBegin('add_package_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72425,48 +64831,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(add_package_result) add_package_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_all_packages_args: +class get_all_packages_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72486,12 +64880,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_packages_args") + oprot.writeStructBegin('get_all_packages_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72501,51 +64896,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_packages_args) get_all_packages_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [ListPackageRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [ListPackageRequest, None], None, ), # 1 ) -class get_all_packages_result: +class get_all_packages_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72556,14 +64938,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1796, _size1793) = iprot.readListBegin() - for _i1797 in range(_size1793): - _elem1798 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.success.append(_elem1798) + (_etype1985, _size1982) = iprot.readListBegin() + for _i1986 in range(_size1982): + _elem1987 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.success.append(_elem1987) iprot.readListEnd() else: iprot.skip(ftype) @@ -72578,19 +64956,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_packages_result") + oprot.writeStructBegin('get_all_packages_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter1799 in self.success: - oprot.writeString(iter1799.encode("utf-8") if sys.version_info[0] == 2 else iter1799) + for iter1988 in self.success: + oprot.writeString(iter1988.encode('utf-8') if sys.version_info[0] == 2 else iter1988) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72600,54 +64979,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_packages_result) get_all_packages_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRING, "UTF8", False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class drop_package_args: +class drop_package_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72667,12 +65028,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_package_args") + oprot.writeStructBegin('drop_package_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72682,48 +65044,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_package_args) drop_package_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [DropPackageRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [DropPackageRequest, None], None, ), # 1 ) -class drop_package_result: +class drop_package_result(object): """ Attributes: - o1 """ + thrift_spec = None + - def __init__( - self, - o1=None, - ): + def __init__(self, o1 = None,): self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72742,12 +65092,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("drop_package_result") + oprot.writeStructBegin('drop_package_result') if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72757,48 +65108,36 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(drop_package_result) drop_package_result.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) -class get_all_write_event_info_args: +class get_all_write_event_info_args(object): """ Attributes: - request """ + thrift_spec = None - def __init__( - self, - request=None, - ): + + def __init__(self, request = None,): self.request = request def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72818,12 +65157,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_write_event_info_args") + oprot.writeStructBegin('get_all_write_event_info_args') if self.request is not None: - oprot.writeFieldBegin("request", TType.STRUCT, 1) + oprot.writeFieldBegin('request', TType.STRUCT, 1) self.request.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72833,51 +65173,38 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_write_event_info_args) get_all_write_event_info_args.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "request", - [GetAllWriteEventInfoRequest, None], - None, - ), # 1 + (1, TType.STRUCT, 'request', [GetAllWriteEventInfoRequest, None], None, ), # 1 ) -class get_all_write_event_info_result: +class get_all_write_event_info_result(object): """ Attributes: - success - o1 """ + thrift_spec = None + - def __init__( - self, - success=None, - o1=None, - ): + def __init__(self, success = None, o1 = None,): self.success = success self.o1 = o1 def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -72888,11 +65215,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1803, _size1800) = iprot.readListBegin() - for _i1804 in range(_size1800): - _elem1805 = WriteEventInfo() - _elem1805.read(iprot) - self.success.append(_elem1805) + (_etype1992, _size1989) = iprot.readListBegin() + for _i1993 in range(_size1989): + _elem1994 = WriteEventInfo() + _elem1994.read(iprot) + self.success.append(_elem1994) iprot.readListEnd() else: iprot.skip(ftype) @@ -72907,19 +65234,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_all_write_event_info_result") + oprot.writeStructBegin('get_all_write_event_info_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter1806 in self.success: - iter1806.write(oprot) + for iter1995 in self.success: + iter1995.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: - oprot.writeFieldBegin("o1", TType.STRUCT, 1) + oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -72929,32 +65257,159 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(get_all_write_event_info_result) get_all_write_event_info_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.STRUCT, [WriteEventInfo, None], False), - None, - ), # 0 - ( - 1, - TType.STRUCT, - "o1", - [MetaException, None], - None, - ), # 1 + (0, TType.LIST, 'success', (TType.STRUCT, [WriteEventInfo, None], False), None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 +) + + +class get_replayed_txns_for_policy_args(object): + """ + Attributes: + - policyName + + """ + thrift_spec = None + + + def __init__(self, policyName = None,): + self.policyName = policyName + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.policyName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_replayed_txns_for_policy_args') + if self.policyName is not None: + oprot.writeFieldBegin('policyName', TType.STRING, 1) + oprot.writeString(self.policyName.encode('utf-8') if sys.version_info[0] == 2 else self.policyName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_replayed_txns_for_policy_args) +get_replayed_txns_for_policy_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'policyName', 'UTF8', None, ), # 1 +) + + +class get_replayed_txns_for_policy_result(object): + """ + Attributes: + - success + - o1 + + """ + thrift_spec = None + + + def __init__(self, success = None, o1 = None,): + self.success = success + self.o1 = o1 + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = ReplayedTxnsForPolicyResult() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('get_replayed_txns_for_policy_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) +all_structs.append(get_replayed_txns_for_policy_result) +get_replayed_txns_for_policy_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ReplayedTxnsForPolicyResult, None], None, ), # 0 + (1, TType.STRUCT, 'o1', [MetaException, None], None, ), # 1 ) fix_spec(all_structs) del all_structs diff --git a/vendor/hive_metastore/__init__.py b/vendor/hive_metastore/__init__.py index 178d664d81..4f71fa5e34 100644 --- a/vendor/hive_metastore/__init__.py +++ b/vendor/hive_metastore/__init__.py @@ -14,4 +14,5 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -__all__ = ["ttypes", "constants", "ThriftHiveMetastore"] + +__all__ = ['ttypes', 'constants', 'ThriftHiveMetastore'] diff --git a/vendor/hive_metastore/constants.py b/vendor/hive_metastore/constants.py index 218e527553..96efe18c7b 100644 --- a/vendor/hive_metastore/constants.py +++ b/vendor/hive_metastore/constants.py @@ -1,30 +1,18 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Autogenerated by Thrift Compiler (0.16.0) +# Autogenerated by Thrift Compiler (0.22.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # +from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException +from thrift.protocol.TProtocol import TProtocolException +from thrift.TRecursive import fix_spec +from uuid import UUID - - +import sys +from .ttypes import * DDL_TIME = "transient_lastDdlTime" ACCESSTYPE_NONE = 1 ACCESSTYPE_READONLY = 2 @@ -33,6 +21,8 @@ HIVE_FILTER_FIELD_OWNER = "hive_filter_field_owner__" HIVE_FILTER_FIELD_PARAMS = "hive_filter_field_params__" HIVE_FILTER_FIELD_LAST_ACCESS = "hive_filter_field_last_access__" +HIVE_FILTER_FIELD_TABLE_NAME = "hive_filter_field_tableName__" +HIVE_FILTER_FIELD_TABLE_TYPE = "hive_filter_field_tableType__" IS_ARCHIVED = "is_archived" ORIGINAL_LOCATION = "original_location" IS_IMMUTABLE = "immutable" @@ -41,6 +31,7 @@ BUCKET_FIELD_NAME = "bucket_field_name" BUCKET_COUNT = "bucket_count" FIELD_TO_DIMENSION = "field_to_dimension" +IF_PURGE = "ifPurge" META_TABLE_NAME = "name" META_TABLE_DB = "db" META_TABLE_LOCATION = "location" @@ -51,7 +42,7 @@ FILE_OUTPUT_FORMAT = "file.outputformat" META_TABLE_STORAGE = "storage_handler" TABLE_IS_TRANSACTIONAL = "transactional" -TABLE_NO_AUTO_COMPACT = "no_auto_compaction" +NO_AUTO_COMPACT = "no_auto_compaction" TABLE_TRANSACTIONAL_PROPERTIES = "transactional_properties" TABLE_BUCKETING_VERSION = "bucketing_version" DRUID_CONFIG_PREFIX = "druid." @@ -64,3 +55,5 @@ DEFAULT_TABLE_TYPE = "defaultTableType" TXN_ID = "txnId" WRITE_ID = "writeId" +EXPECTED_PARAMETER_KEY = "expected_parameter_key" +EXPECTED_PARAMETER_VALUE = "expected_parameter_value" diff --git a/vendor/hive_metastore/ttypes.py b/vendor/hive_metastore/ttypes.py index dca7aaadc7..74abfdcc0f 100644 --- a/vendor/hive_metastore/ttypes.py +++ b/vendor/hive_metastore/ttypes.py @@ -1,41 +1,24 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Autogenerated by Thrift Compiler (0.16.0) +# Autogenerated by Thrift Compiler (0.22.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # -import sys - +from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException -from thrift.Thrift import ( - TException, - TType, -) -from thrift.transport import TTransport from thrift.TRecursive import fix_spec +from uuid import UUID + +import sys +import fb303.ttypes +from thrift.transport import TTransport all_structs = [] -class HiveObjectType: +class HiveObjectType(object): GLOBAL = 1 DATABASE = 2 TABLE = 3 @@ -62,7 +45,7 @@ class HiveObjectType: } -class PrincipalType: +class PrincipalType(object): USER = 1 ROLE = 2 GROUP = 3 @@ -80,7 +63,7 @@ class PrincipalType: } -class PartitionEventType: +class PartitionEventType(object): LOAD_DONE = 1 _VALUES_TO_NAMES = { @@ -92,7 +75,7 @@ class PartitionEventType: } -class TxnState: +class TxnState(object): COMMITTED = 1 ABORTED = 2 OPEN = 3 @@ -110,7 +93,7 @@ class TxnState: } -class LockLevel: +class LockLevel(object): DB = 1 TABLE = 2 PARTITION = 3 @@ -128,7 +111,7 @@ class LockLevel: } -class LockState: +class LockState(object): ACQUIRED = 1 WAITING = 2 ABORT = 3 @@ -149,7 +132,7 @@ class LockState: } -class LockType: +class LockType(object): SHARED_READ = 1 SHARED_WRITE = 2 EXCLUSIVE = 3 @@ -170,22 +153,31 @@ class LockType: } -class CompactionType: +class CompactionType(object): MINOR = 1 MAJOR = 2 + REBALANCE = 3 + ABORT_TXN_CLEANUP = 4 + SMART_OPTIMIZE = 5 _VALUES_TO_NAMES = { 1: "MINOR", 2: "MAJOR", + 3: "REBALANCE", + 4: "ABORT_TXN_CLEANUP", + 5: "SMART_OPTIMIZE", } _NAMES_TO_VALUES = { "MINOR": 1, "MAJOR": 2, + "REBALANCE": 3, + "ABORT_TXN_CLEANUP": 4, + "SMART_OPTIMIZE": 5, } -class GrantRevokeType: +class GrantRevokeType(object): GRANT = 1 REVOKE = 2 @@ -200,7 +192,7 @@ class GrantRevokeType: } -class DataOperationType: +class DataOperationType(object): SELECT = 1 INSERT = 2 UPDATE = 3 @@ -227,7 +219,7 @@ class DataOperationType: } -class EventRequestType: +class EventRequestType(object): INSERT = 1 UPDATE = 2 DELETE = 3 @@ -245,7 +237,7 @@ class EventRequestType: } -class SerdeType: +class SerdeType(object): HIVE = 1 SCHEMA_REGISTRY = 2 @@ -260,7 +252,7 @@ class SerdeType: } -class SchemaType: +class SchemaType(object): HIVE = 1 AVRO = 2 @@ -275,7 +267,7 @@ class SchemaType: } -class SchemaCompatibility: +class SchemaCompatibility(object): NONE = 1 BACKWARD = 2 FORWARD = 3 @@ -296,7 +288,7 @@ class SchemaCompatibility: } -class SchemaValidation: +class SchemaValidation(object): LATEST = 1 ALL = 2 @@ -311,7 +303,7 @@ class SchemaValidation: } -class SchemaVersionState: +class SchemaVersionState(object): INITIATED = 1 START_REVIEW = 2 CHANGES_REQUIRED = 3 @@ -344,7 +336,7 @@ class SchemaVersionState: } -class DatabaseType: +class DatabaseType(object): NATIVE = 1 REMOTE = 2 @@ -359,7 +351,7 @@ class DatabaseType: } -class FunctionType: +class FunctionType(object): JAVA = 1 _VALUES_TO_NAMES = { @@ -371,7 +363,7 @@ class FunctionType: } -class ResourceType: +class ResourceType(object): JAR = 1 FILE = 2 ARCHIVE = 3 @@ -389,13 +381,14 @@ class ResourceType: } -class TxnType: +class TxnType(object): DEFAULT = 0 REPL_CREATED = 1 READ_ONLY = 2 COMPACTION = 3 MATER_VIEW_REBUILD = 4 SOFT_DELETE = 5 + REBALANCE_COMPACTION = 6 _VALUES_TO_NAMES = { 0: "DEFAULT", @@ -404,6 +397,7 @@ class TxnType: 3: "COMPACTION", 4: "MATER_VIEW_REBUILD", 5: "SOFT_DELETE", + 6: "REBALANCE_COMPACTION", } _NAMES_TO_VALUES = { @@ -413,10 +407,11 @@ class TxnType: "COMPACTION": 3, "MATER_VIEW_REBUILD": 4, "SOFT_DELETE": 5, + "REBALANCE_COMPACTION": 6, } -class GetTablesExtRequestFields: +class GetTablesExtRequestFields(object): ACCESS_TYPE = 1 PROCESSOR_CAPABILITIES = 2 ALL = 2147483647 @@ -434,7 +429,7 @@ class GetTablesExtRequestFields: } -class CompactionMetricsMetricType: +class CompactionMetricsMetricType(object): NUM_OBSOLETE_DELTAS = 0 NUM_DELTAS = 1 NUM_SMALL_DELTAS = 2 @@ -452,7 +447,7 @@ class CompactionMetricsMetricType: } -class FileMetadataExprType: +class FileMetadataExprType(object): ORC_SARG = 1 _VALUES_TO_NAMES = { @@ -464,7 +459,7 @@ class FileMetadataExprType: } -class ClientCapability: +class ClientCapability(object): TEST_CAPABILITY = 1 INSERT_ONLY_TABLES = 2 @@ -479,7 +474,7 @@ class ClientCapability: } -class WMResourcePlanStatus: +class WMResourcePlanStatus(object): ACTIVE = 1 ENABLED = 2 DISABLED = 3 @@ -497,7 +492,7 @@ class WMResourcePlanStatus: } -class WMPoolSchedulingPolicy: +class WMPoolSchedulingPolicy(object): FAIR = 1 FIFO = 2 @@ -512,7 +507,7 @@ class WMPoolSchedulingPolicy: } -class ScheduledQueryMaintenanceRequestType: +class ScheduledQueryMaintenanceRequestType(object): CREATE = 1 ALTER = 2 DROP = 3 @@ -530,7 +525,7 @@ class ScheduledQueryMaintenanceRequestType: } -class QueryState: +class QueryState(object): INITED = 0 EXECUTING = 1 FAILED = 2 @@ -557,7 +552,7 @@ class QueryState: } -class PartitionFilterMode: +class PartitionFilterMode(object): BY_NAMES = 0 BY_VALUES = 1 BY_EXPR = 2 @@ -575,28 +570,22 @@ class PartitionFilterMode: } -class Version: +class Version(object): """ Attributes: - version - comments """ + thrift_spec = None + - def __init__( - self, - version=None, - comments=None, - ): + def __init__(self, version = None, comments = None,): self.version = version self.comments = comments def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -606,16 +595,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.version = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.version = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.comments = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.comments = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -624,17 +609,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Version") + oprot.writeStructBegin('Version') if self.version is not None: - oprot.writeFieldBegin("version", TType.STRING, 1) - oprot.writeString(self.version.encode("utf-8") if sys.version_info[0] == 2 else self.version) + oprot.writeFieldBegin('version', TType.STRING, 1) + oprot.writeString(self.version.encode('utf-8') if sys.version_info[0] == 2 else self.version) oprot.writeFieldEnd() if self.comments is not None: - oprot.writeFieldBegin("comments", TType.STRING, 2) - oprot.writeString(self.comments.encode("utf-8") if sys.version_info[0] == 2 else self.comments) + oprot.writeFieldBegin('comments', TType.STRING, 2) + oprot.writeString(self.comments.encode('utf-8') if sys.version_info[0] == 2 else self.comments) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -643,8 +629,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -653,7 +640,7 @@ def __ne__(self, other): return not (self == other) -class FieldSchema: +class FieldSchema(object): """ Attributes: - name @@ -661,23 +648,16 @@ class FieldSchema: - comment """ + thrift_spec = None - def __init__( - self, - name=None, - type=None, - comment=None, - ): + + def __init__(self, name = None, type = None, comment = None,): self.name = name self.type = type self.comment = comment def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -687,23 +667,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.type = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.type = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.comment = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.comment = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -712,21 +686,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("FieldSchema") + oprot.writeStructBegin('FieldSchema') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.STRING, 2) - oprot.writeString(self.type.encode("utf-8") if sys.version_info[0] == 2 else self.type) + oprot.writeFieldBegin('type', TType.STRING, 2) + oprot.writeString(self.type.encode('utf-8') if sys.version_info[0] == 2 else self.type) oprot.writeFieldEnd() if self.comment is not None: - oprot.writeFieldBegin("comment", TType.STRING, 3) - oprot.writeString(self.comment.encode("utf-8") if sys.version_info[0] == 2 else self.comment) + oprot.writeFieldBegin('comment', TType.STRING, 3) + oprot.writeString(self.comment.encode('utf-8') if sys.version_info[0] == 2 else self.comment) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -735,8 +710,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -745,25 +721,20 @@ def __ne__(self, other): return not (self == other) -class EnvironmentContext: +class EnvironmentContext(object): """ Attributes: - properties """ + thrift_spec = None + - def __init__( - self, - properties=None, - ): + def __init__(self, properties = None,): self.properties = properties def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -776,16 +747,8 @@ def read(self, iprot): self.properties = {} (_ktype1, _vtype2, _size0) = iprot.readMapBegin() for _i4 in range(_size0): - _key5 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val6 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key5 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val6 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() self.properties[_key5] = _val6 iprot.readMapEnd() else: @@ -796,16 +759,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("EnvironmentContext") + oprot.writeStructBegin('EnvironmentContext') if self.properties is not None: - oprot.writeFieldBegin("properties", TType.MAP, 1) + oprot.writeFieldBegin('properties', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) for kiter7, viter8 in self.properties.items(): - oprot.writeString(kiter7.encode("utf-8") if sys.version_info[0] == 2 else kiter7) - oprot.writeString(viter8.encode("utf-8") if sys.version_info[0] == 2 else viter8) + oprot.writeString(kiter7.encode('utf-8') if sys.version_info[0] == 2 else kiter7) + oprot.writeString(viter8.encode('utf-8') if sys.version_info[0] == 2 else viter8) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -815,8 +779,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -825,7 +790,7 @@ def __ne__(self, other): return not (self == other) -class SQLPrimaryKey: +class SQLPrimaryKey(object): """ Attributes: - table_db @@ -839,19 +804,10 @@ class SQLPrimaryKey: - catName """ + thrift_spec = None - def __init__( - self, - table_db=None, - table_name=None, - column_name=None, - key_seq=None, - pk_name=None, - enable_cstr=None, - validate_cstr=None, - rely_cstr=None, - catName=None, - ): + + def __init__(self, table_db = None, table_name = None, column_name = None, key_seq = None, pk_name = None, enable_cstr = None, validate_cstr = None, rely_cstr = None, catName = None,): self.table_db = table_db self.table_name = table_name self.column_name = column_name @@ -863,11 +819,7 @@ def __init__( self.catName = catName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -877,23 +829,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.table_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.column_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.column_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -903,9 +849,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.pk_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.pk_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -925,9 +869,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -936,45 +878,46 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SQLPrimaryKey") + oprot.writeStructBegin('SQLPrimaryKey') if self.table_db is not None: - oprot.writeFieldBegin("table_db", TType.STRING, 1) - oprot.writeString(self.table_db.encode("utf-8") if sys.version_info[0] == 2 else self.table_db) + oprot.writeFieldBegin('table_db', TType.STRING, 1) + oprot.writeString(self.table_db.encode('utf-8') if sys.version_info[0] == 2 else self.table_db) oprot.writeFieldEnd() if self.table_name is not None: - oprot.writeFieldBegin("table_name", TType.STRING, 2) - oprot.writeString(self.table_name.encode("utf-8") if sys.version_info[0] == 2 else self.table_name) + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name) oprot.writeFieldEnd() if self.column_name is not None: - oprot.writeFieldBegin("column_name", TType.STRING, 3) - oprot.writeString(self.column_name.encode("utf-8") if sys.version_info[0] == 2 else self.column_name) + oprot.writeFieldBegin('column_name', TType.STRING, 3) + oprot.writeString(self.column_name.encode('utf-8') if sys.version_info[0] == 2 else self.column_name) oprot.writeFieldEnd() if self.key_seq is not None: - oprot.writeFieldBegin("key_seq", TType.I32, 4) + oprot.writeFieldBegin('key_seq', TType.I32, 4) oprot.writeI32(self.key_seq) oprot.writeFieldEnd() if self.pk_name is not None: - oprot.writeFieldBegin("pk_name", TType.STRING, 5) - oprot.writeString(self.pk_name.encode("utf-8") if sys.version_info[0] == 2 else self.pk_name) + oprot.writeFieldBegin('pk_name', TType.STRING, 5) + oprot.writeString(self.pk_name.encode('utf-8') if sys.version_info[0] == 2 else self.pk_name) oprot.writeFieldEnd() if self.enable_cstr is not None: - oprot.writeFieldBegin("enable_cstr", TType.BOOL, 6) + oprot.writeFieldBegin('enable_cstr', TType.BOOL, 6) oprot.writeBool(self.enable_cstr) oprot.writeFieldEnd() if self.validate_cstr is not None: - oprot.writeFieldBegin("validate_cstr", TType.BOOL, 7) + oprot.writeFieldBegin('validate_cstr', TType.BOOL, 7) oprot.writeBool(self.validate_cstr) oprot.writeFieldEnd() if self.rely_cstr is not None: - oprot.writeFieldBegin("rely_cstr", TType.BOOL, 8) + oprot.writeFieldBegin('rely_cstr', TType.BOOL, 8) oprot.writeBool(self.rely_cstr) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 9) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 9) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -983,8 +926,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -993,7 +937,7 @@ def __ne__(self, other): return not (self == other) -class SQLForeignKey: +class SQLForeignKey(object): """ Attributes: - pktable_db @@ -1013,25 +957,10 @@ class SQLForeignKey: - catName """ + thrift_spec = None + - def __init__( - self, - pktable_db=None, - pktable_name=None, - pkcolumn_name=None, - fktable_db=None, - fktable_name=None, - fkcolumn_name=None, - key_seq=None, - update_rule=None, - delete_rule=None, - fk_name=None, - pk_name=None, - enable_cstr=None, - validate_cstr=None, - rely_cstr=None, - catName=None, - ): + def __init__(self, pktable_db = None, pktable_name = None, pkcolumn_name = None, fktable_db = None, fktable_name = None, fkcolumn_name = None, key_seq = None, update_rule = None, delete_rule = None, fk_name = None, pk_name = None, enable_cstr = None, validate_cstr = None, rely_cstr = None, catName = None,): self.pktable_db = pktable_db self.pktable_name = pktable_name self.pkcolumn_name = pkcolumn_name @@ -1049,11 +978,7 @@ def __init__( self.catName = catName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1063,44 +988,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.pktable_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.pktable_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.pktable_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.pktable_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.pkcolumn_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.pkcolumn_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.fktable_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.fktable_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.fktable_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.fktable_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.fkcolumn_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.fkcolumn_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -1120,16 +1033,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.fk_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.fk_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: - self.pk_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.pk_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 12: @@ -1149,9 +1058,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 15: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1160,69 +1067,70 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SQLForeignKey") + oprot.writeStructBegin('SQLForeignKey') if self.pktable_db is not None: - oprot.writeFieldBegin("pktable_db", TType.STRING, 1) - oprot.writeString(self.pktable_db.encode("utf-8") if sys.version_info[0] == 2 else self.pktable_db) + oprot.writeFieldBegin('pktable_db', TType.STRING, 1) + oprot.writeString(self.pktable_db.encode('utf-8') if sys.version_info[0] == 2 else self.pktable_db) oprot.writeFieldEnd() if self.pktable_name is not None: - oprot.writeFieldBegin("pktable_name", TType.STRING, 2) - oprot.writeString(self.pktable_name.encode("utf-8") if sys.version_info[0] == 2 else self.pktable_name) + oprot.writeFieldBegin('pktable_name', TType.STRING, 2) + oprot.writeString(self.pktable_name.encode('utf-8') if sys.version_info[0] == 2 else self.pktable_name) oprot.writeFieldEnd() if self.pkcolumn_name is not None: - oprot.writeFieldBegin("pkcolumn_name", TType.STRING, 3) - oprot.writeString(self.pkcolumn_name.encode("utf-8") if sys.version_info[0] == 2 else self.pkcolumn_name) + oprot.writeFieldBegin('pkcolumn_name', TType.STRING, 3) + oprot.writeString(self.pkcolumn_name.encode('utf-8') if sys.version_info[0] == 2 else self.pkcolumn_name) oprot.writeFieldEnd() if self.fktable_db is not None: - oprot.writeFieldBegin("fktable_db", TType.STRING, 4) - oprot.writeString(self.fktable_db.encode("utf-8") if sys.version_info[0] == 2 else self.fktable_db) + oprot.writeFieldBegin('fktable_db', TType.STRING, 4) + oprot.writeString(self.fktable_db.encode('utf-8') if sys.version_info[0] == 2 else self.fktable_db) oprot.writeFieldEnd() if self.fktable_name is not None: - oprot.writeFieldBegin("fktable_name", TType.STRING, 5) - oprot.writeString(self.fktable_name.encode("utf-8") if sys.version_info[0] == 2 else self.fktable_name) + oprot.writeFieldBegin('fktable_name', TType.STRING, 5) + oprot.writeString(self.fktable_name.encode('utf-8') if sys.version_info[0] == 2 else self.fktable_name) oprot.writeFieldEnd() if self.fkcolumn_name is not None: - oprot.writeFieldBegin("fkcolumn_name", TType.STRING, 6) - oprot.writeString(self.fkcolumn_name.encode("utf-8") if sys.version_info[0] == 2 else self.fkcolumn_name) + oprot.writeFieldBegin('fkcolumn_name', TType.STRING, 6) + oprot.writeString(self.fkcolumn_name.encode('utf-8') if sys.version_info[0] == 2 else self.fkcolumn_name) oprot.writeFieldEnd() if self.key_seq is not None: - oprot.writeFieldBegin("key_seq", TType.I32, 7) + oprot.writeFieldBegin('key_seq', TType.I32, 7) oprot.writeI32(self.key_seq) oprot.writeFieldEnd() if self.update_rule is not None: - oprot.writeFieldBegin("update_rule", TType.I32, 8) + oprot.writeFieldBegin('update_rule', TType.I32, 8) oprot.writeI32(self.update_rule) oprot.writeFieldEnd() if self.delete_rule is not None: - oprot.writeFieldBegin("delete_rule", TType.I32, 9) + oprot.writeFieldBegin('delete_rule', TType.I32, 9) oprot.writeI32(self.delete_rule) oprot.writeFieldEnd() if self.fk_name is not None: - oprot.writeFieldBegin("fk_name", TType.STRING, 10) - oprot.writeString(self.fk_name.encode("utf-8") if sys.version_info[0] == 2 else self.fk_name) + oprot.writeFieldBegin('fk_name', TType.STRING, 10) + oprot.writeString(self.fk_name.encode('utf-8') if sys.version_info[0] == 2 else self.fk_name) oprot.writeFieldEnd() if self.pk_name is not None: - oprot.writeFieldBegin("pk_name", TType.STRING, 11) - oprot.writeString(self.pk_name.encode("utf-8") if sys.version_info[0] == 2 else self.pk_name) + oprot.writeFieldBegin('pk_name', TType.STRING, 11) + oprot.writeString(self.pk_name.encode('utf-8') if sys.version_info[0] == 2 else self.pk_name) oprot.writeFieldEnd() if self.enable_cstr is not None: - oprot.writeFieldBegin("enable_cstr", TType.BOOL, 12) + oprot.writeFieldBegin('enable_cstr', TType.BOOL, 12) oprot.writeBool(self.enable_cstr) oprot.writeFieldEnd() if self.validate_cstr is not None: - oprot.writeFieldBegin("validate_cstr", TType.BOOL, 13) + oprot.writeFieldBegin('validate_cstr', TType.BOOL, 13) oprot.writeBool(self.validate_cstr) oprot.writeFieldEnd() if self.rely_cstr is not None: - oprot.writeFieldBegin("rely_cstr", TType.BOOL, 14) + oprot.writeFieldBegin('rely_cstr', TType.BOOL, 14) oprot.writeBool(self.rely_cstr) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 15) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 15) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1231,8 +1139,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -1241,7 +1150,7 @@ def __ne__(self, other): return not (self == other) -class SQLUniqueConstraint: +class SQLUniqueConstraint(object): """ Attributes: - catName @@ -1255,19 +1164,10 @@ class SQLUniqueConstraint: - rely_cstr """ + thrift_spec = None - def __init__( - self, - catName=None, - table_db=None, - table_name=None, - column_name=None, - key_seq=None, - uk_name=None, - enable_cstr=None, - validate_cstr=None, - rely_cstr=None, - ): + + def __init__(self, catName = None, table_db = None, table_name = None, column_name = None, key_seq = None, uk_name = None, enable_cstr = None, validate_cstr = None, rely_cstr = None,): self.catName = catName self.table_db = table_db self.table_name = table_name @@ -1279,11 +1179,7 @@ def __init__( self.rely_cstr = rely_cstr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1293,30 +1189,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.column_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.column_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -1326,9 +1214,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.uk_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.uk_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -1352,44 +1238,45 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SQLUniqueConstraint") + oprot.writeStructBegin('SQLUniqueConstraint') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.table_db is not None: - oprot.writeFieldBegin("table_db", TType.STRING, 2) - oprot.writeString(self.table_db.encode("utf-8") if sys.version_info[0] == 2 else self.table_db) + oprot.writeFieldBegin('table_db', TType.STRING, 2) + oprot.writeString(self.table_db.encode('utf-8') if sys.version_info[0] == 2 else self.table_db) oprot.writeFieldEnd() if self.table_name is not None: - oprot.writeFieldBegin("table_name", TType.STRING, 3) - oprot.writeString(self.table_name.encode("utf-8") if sys.version_info[0] == 2 else self.table_name) + oprot.writeFieldBegin('table_name', TType.STRING, 3) + oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name) oprot.writeFieldEnd() if self.column_name is not None: - oprot.writeFieldBegin("column_name", TType.STRING, 4) - oprot.writeString(self.column_name.encode("utf-8") if sys.version_info[0] == 2 else self.column_name) + oprot.writeFieldBegin('column_name', TType.STRING, 4) + oprot.writeString(self.column_name.encode('utf-8') if sys.version_info[0] == 2 else self.column_name) oprot.writeFieldEnd() if self.key_seq is not None: - oprot.writeFieldBegin("key_seq", TType.I32, 5) + oprot.writeFieldBegin('key_seq', TType.I32, 5) oprot.writeI32(self.key_seq) oprot.writeFieldEnd() if self.uk_name is not None: - oprot.writeFieldBegin("uk_name", TType.STRING, 6) - oprot.writeString(self.uk_name.encode("utf-8") if sys.version_info[0] == 2 else self.uk_name) + oprot.writeFieldBegin('uk_name', TType.STRING, 6) + oprot.writeString(self.uk_name.encode('utf-8') if sys.version_info[0] == 2 else self.uk_name) oprot.writeFieldEnd() if self.enable_cstr is not None: - oprot.writeFieldBegin("enable_cstr", TType.BOOL, 7) + oprot.writeFieldBegin('enable_cstr', TType.BOOL, 7) oprot.writeBool(self.enable_cstr) oprot.writeFieldEnd() if self.validate_cstr is not None: - oprot.writeFieldBegin("validate_cstr", TType.BOOL, 8) + oprot.writeFieldBegin('validate_cstr', TType.BOOL, 8) oprot.writeBool(self.validate_cstr) oprot.writeFieldEnd() if self.rely_cstr is not None: - oprot.writeFieldBegin("rely_cstr", TType.BOOL, 9) + oprot.writeFieldBegin('rely_cstr', TType.BOOL, 9) oprot.writeBool(self.rely_cstr) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1399,8 +1286,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -1409,7 +1297,7 @@ def __ne__(self, other): return not (self == other) -class SQLNotNullConstraint: +class SQLNotNullConstraint(object): """ Attributes: - catName @@ -1422,18 +1310,10 @@ class SQLNotNullConstraint: - rely_cstr """ + thrift_spec = None + - def __init__( - self, - catName=None, - table_db=None, - table_name=None, - column_name=None, - nn_name=None, - enable_cstr=None, - validate_cstr=None, - rely_cstr=None, - ): + def __init__(self, catName = None, table_db = None, table_name = None, column_name = None, nn_name = None, enable_cstr = None, validate_cstr = None, rely_cstr = None,): self.catName = catName self.table_db = table_db self.table_name = table_name @@ -1444,11 +1324,7 @@ def __init__( self.rely_cstr = rely_cstr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1458,37 +1334,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.column_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.column_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.nn_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.nn_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -1512,40 +1378,41 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SQLNotNullConstraint") + oprot.writeStructBegin('SQLNotNullConstraint') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.table_db is not None: - oprot.writeFieldBegin("table_db", TType.STRING, 2) - oprot.writeString(self.table_db.encode("utf-8") if sys.version_info[0] == 2 else self.table_db) + oprot.writeFieldBegin('table_db', TType.STRING, 2) + oprot.writeString(self.table_db.encode('utf-8') if sys.version_info[0] == 2 else self.table_db) oprot.writeFieldEnd() if self.table_name is not None: - oprot.writeFieldBegin("table_name", TType.STRING, 3) - oprot.writeString(self.table_name.encode("utf-8") if sys.version_info[0] == 2 else self.table_name) + oprot.writeFieldBegin('table_name', TType.STRING, 3) + oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name) oprot.writeFieldEnd() if self.column_name is not None: - oprot.writeFieldBegin("column_name", TType.STRING, 4) - oprot.writeString(self.column_name.encode("utf-8") if sys.version_info[0] == 2 else self.column_name) + oprot.writeFieldBegin('column_name', TType.STRING, 4) + oprot.writeString(self.column_name.encode('utf-8') if sys.version_info[0] == 2 else self.column_name) oprot.writeFieldEnd() if self.nn_name is not None: - oprot.writeFieldBegin("nn_name", TType.STRING, 5) - oprot.writeString(self.nn_name.encode("utf-8") if sys.version_info[0] == 2 else self.nn_name) + oprot.writeFieldBegin('nn_name', TType.STRING, 5) + oprot.writeString(self.nn_name.encode('utf-8') if sys.version_info[0] == 2 else self.nn_name) oprot.writeFieldEnd() if self.enable_cstr is not None: - oprot.writeFieldBegin("enable_cstr", TType.BOOL, 6) + oprot.writeFieldBegin('enable_cstr', TType.BOOL, 6) oprot.writeBool(self.enable_cstr) oprot.writeFieldEnd() if self.validate_cstr is not None: - oprot.writeFieldBegin("validate_cstr", TType.BOOL, 7) + oprot.writeFieldBegin('validate_cstr', TType.BOOL, 7) oprot.writeBool(self.validate_cstr) oprot.writeFieldEnd() if self.rely_cstr is not None: - oprot.writeFieldBegin("rely_cstr", TType.BOOL, 8) + oprot.writeFieldBegin('rely_cstr', TType.BOOL, 8) oprot.writeBool(self.rely_cstr) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1555,8 +1422,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -1565,7 +1433,7 @@ def __ne__(self, other): return not (self == other) -class SQLDefaultConstraint: +class SQLDefaultConstraint(object): """ Attributes: - catName @@ -1579,19 +1447,10 @@ class SQLDefaultConstraint: - rely_cstr """ + thrift_spec = None - def __init__( - self, - catName=None, - table_db=None, - table_name=None, - column_name=None, - default_value=None, - dc_name=None, - enable_cstr=None, - validate_cstr=None, - rely_cstr=None, - ): + + def __init__(self, catName = None, table_db = None, table_name = None, column_name = None, default_value = None, dc_name = None, enable_cstr = None, validate_cstr = None, rely_cstr = None,): self.catName = catName self.table_db = table_db self.table_name = table_name @@ -1603,11 +1462,7 @@ def __init__( self.rely_cstr = rely_cstr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1617,44 +1472,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.column_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.column_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.default_value = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.default_value = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.dc_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dc_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -1678,44 +1521,45 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SQLDefaultConstraint") + oprot.writeStructBegin('SQLDefaultConstraint') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.table_db is not None: - oprot.writeFieldBegin("table_db", TType.STRING, 2) - oprot.writeString(self.table_db.encode("utf-8") if sys.version_info[0] == 2 else self.table_db) + oprot.writeFieldBegin('table_db', TType.STRING, 2) + oprot.writeString(self.table_db.encode('utf-8') if sys.version_info[0] == 2 else self.table_db) oprot.writeFieldEnd() if self.table_name is not None: - oprot.writeFieldBegin("table_name", TType.STRING, 3) - oprot.writeString(self.table_name.encode("utf-8") if sys.version_info[0] == 2 else self.table_name) + oprot.writeFieldBegin('table_name', TType.STRING, 3) + oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name) oprot.writeFieldEnd() if self.column_name is not None: - oprot.writeFieldBegin("column_name", TType.STRING, 4) - oprot.writeString(self.column_name.encode("utf-8") if sys.version_info[0] == 2 else self.column_name) + oprot.writeFieldBegin('column_name', TType.STRING, 4) + oprot.writeString(self.column_name.encode('utf-8') if sys.version_info[0] == 2 else self.column_name) oprot.writeFieldEnd() if self.default_value is not None: - oprot.writeFieldBegin("default_value", TType.STRING, 5) - oprot.writeString(self.default_value.encode("utf-8") if sys.version_info[0] == 2 else self.default_value) + oprot.writeFieldBegin('default_value', TType.STRING, 5) + oprot.writeString(self.default_value.encode('utf-8') if sys.version_info[0] == 2 else self.default_value) oprot.writeFieldEnd() if self.dc_name is not None: - oprot.writeFieldBegin("dc_name", TType.STRING, 6) - oprot.writeString(self.dc_name.encode("utf-8") if sys.version_info[0] == 2 else self.dc_name) + oprot.writeFieldBegin('dc_name', TType.STRING, 6) + oprot.writeString(self.dc_name.encode('utf-8') if sys.version_info[0] == 2 else self.dc_name) oprot.writeFieldEnd() if self.enable_cstr is not None: - oprot.writeFieldBegin("enable_cstr", TType.BOOL, 7) + oprot.writeFieldBegin('enable_cstr', TType.BOOL, 7) oprot.writeBool(self.enable_cstr) oprot.writeFieldEnd() if self.validate_cstr is not None: - oprot.writeFieldBegin("validate_cstr", TType.BOOL, 8) + oprot.writeFieldBegin('validate_cstr', TType.BOOL, 8) oprot.writeBool(self.validate_cstr) oprot.writeFieldEnd() if self.rely_cstr is not None: - oprot.writeFieldBegin("rely_cstr", TType.BOOL, 9) + oprot.writeFieldBegin('rely_cstr', TType.BOOL, 9) oprot.writeBool(self.rely_cstr) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1725,8 +1569,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -1735,7 +1580,7 @@ def __ne__(self, other): return not (self == other) -class SQLCheckConstraint: +class SQLCheckConstraint(object): """ Attributes: - catName @@ -1749,19 +1594,10 @@ class SQLCheckConstraint: - rely_cstr """ + thrift_spec = None + - def __init__( - self, - catName=None, - table_db=None, - table_name=None, - column_name=None, - check_expression=None, - dc_name=None, - enable_cstr=None, - validate_cstr=None, - rely_cstr=None, - ): + def __init__(self, catName = None, table_db = None, table_name = None, column_name = None, check_expression = None, dc_name = None, enable_cstr = None, validate_cstr = None, rely_cstr = None,): self.catName = catName self.table_db = table_db self.table_name = table_name @@ -1773,11 +1609,7 @@ def __init__( self.rely_cstr = rely_cstr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1787,44 +1619,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.table_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.column_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.column_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.check_expression = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.check_expression = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.dc_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dc_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -1848,44 +1668,45 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SQLCheckConstraint") + oprot.writeStructBegin('SQLCheckConstraint') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.table_db is not None: - oprot.writeFieldBegin("table_db", TType.STRING, 2) - oprot.writeString(self.table_db.encode("utf-8") if sys.version_info[0] == 2 else self.table_db) + oprot.writeFieldBegin('table_db', TType.STRING, 2) + oprot.writeString(self.table_db.encode('utf-8') if sys.version_info[0] == 2 else self.table_db) oprot.writeFieldEnd() if self.table_name is not None: - oprot.writeFieldBegin("table_name", TType.STRING, 3) - oprot.writeString(self.table_name.encode("utf-8") if sys.version_info[0] == 2 else self.table_name) + oprot.writeFieldBegin('table_name', TType.STRING, 3) + oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name) oprot.writeFieldEnd() if self.column_name is not None: - oprot.writeFieldBegin("column_name", TType.STRING, 4) - oprot.writeString(self.column_name.encode("utf-8") if sys.version_info[0] == 2 else self.column_name) + oprot.writeFieldBegin('column_name', TType.STRING, 4) + oprot.writeString(self.column_name.encode('utf-8') if sys.version_info[0] == 2 else self.column_name) oprot.writeFieldEnd() if self.check_expression is not None: - oprot.writeFieldBegin("check_expression", TType.STRING, 5) - oprot.writeString(self.check_expression.encode("utf-8") if sys.version_info[0] == 2 else self.check_expression) + oprot.writeFieldBegin('check_expression', TType.STRING, 5) + oprot.writeString(self.check_expression.encode('utf-8') if sys.version_info[0] == 2 else self.check_expression) oprot.writeFieldEnd() if self.dc_name is not None: - oprot.writeFieldBegin("dc_name", TType.STRING, 6) - oprot.writeString(self.dc_name.encode("utf-8") if sys.version_info[0] == 2 else self.dc_name) + oprot.writeFieldBegin('dc_name', TType.STRING, 6) + oprot.writeString(self.dc_name.encode('utf-8') if sys.version_info[0] == 2 else self.dc_name) oprot.writeFieldEnd() if self.enable_cstr is not None: - oprot.writeFieldBegin("enable_cstr", TType.BOOL, 7) + oprot.writeFieldBegin('enable_cstr', TType.BOOL, 7) oprot.writeBool(self.enable_cstr) oprot.writeFieldEnd() if self.validate_cstr is not None: - oprot.writeFieldBegin("validate_cstr", TType.BOOL, 8) + oprot.writeFieldBegin('validate_cstr', TType.BOOL, 8) oprot.writeBool(self.validate_cstr) oprot.writeFieldEnd() if self.rely_cstr is not None: - oprot.writeFieldBegin("rely_cstr", TType.BOOL, 9) + oprot.writeFieldBegin('rely_cstr', TType.BOOL, 9) oprot.writeBool(self.rely_cstr) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1895,8 +1716,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -1905,7 +1727,7 @@ def __ne__(self, other): return not (self == other) -class SQLAllTableConstraints: +class SQLAllTableConstraints(object): """ Attributes: - primaryKeys @@ -1916,16 +1738,10 @@ class SQLAllTableConstraints: - checkConstraints """ + thrift_spec = None - def __init__( - self, - primaryKeys=None, - foreignKeys=None, - uniqueConstraints=None, - notNullConstraints=None, - defaultConstraints=None, - checkConstraints=None, - ): + + def __init__(self, primaryKeys = None, foreignKeys = None, uniqueConstraints = None, notNullConstraints = None, defaultConstraints = None, checkConstraints = None,): self.primaryKeys = primaryKeys self.foreignKeys = foreignKeys self.uniqueConstraints = uniqueConstraints @@ -1934,11 +1750,7 @@ def __init__( self.checkConstraints = checkConstraints def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2018,47 +1830,48 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SQLAllTableConstraints") + oprot.writeStructBegin('SQLAllTableConstraints') if self.primaryKeys is not None: - oprot.writeFieldBegin("primaryKeys", TType.LIST, 1) + oprot.writeFieldBegin('primaryKeys', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) for iter45 in self.primaryKeys: iter45.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.foreignKeys is not None: - oprot.writeFieldBegin("foreignKeys", TType.LIST, 2) + oprot.writeFieldBegin('foreignKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) for iter46 in self.foreignKeys: iter46.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.uniqueConstraints is not None: - oprot.writeFieldBegin("uniqueConstraints", TType.LIST, 3) + oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) for iter47 in self.uniqueConstraints: iter47.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.notNullConstraints is not None: - oprot.writeFieldBegin("notNullConstraints", TType.LIST, 4) + oprot.writeFieldBegin('notNullConstraints', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) for iter48 in self.notNullConstraints: iter48.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.defaultConstraints is not None: - oprot.writeFieldBegin("defaultConstraints", TType.LIST, 5) + oprot.writeFieldBegin('defaultConstraints', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) for iter49 in self.defaultConstraints: iter49.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.checkConstraints is not None: - oprot.writeFieldBegin("checkConstraints", TType.LIST, 6) + oprot.writeFieldBegin('checkConstraints', TType.LIST, 6) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) for iter50 in self.checkConstraints: iter50.write(oprot) @@ -2071,8 +1884,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -2081,7 +1895,7 @@ def __ne__(self, other): return not (self == other) -class Type: +class Type(object): """ Attributes: - name @@ -2090,25 +1904,17 @@ class Type: - fields """ + thrift_spec = None + - def __init__( - self, - name=None, - type1=None, - type2=None, - fields=None, - ): + def __init__(self, name = None, type1 = None, type2 = None, fields = None,): self.name = name self.type1 = type1 self.type2 = type2 self.fields = fields def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2118,23 +1924,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.type1 = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.type1 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.type2 = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.type2 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -2154,24 +1954,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Type") + oprot.writeStructBegin('Type') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.type1 is not None: - oprot.writeFieldBegin("type1", TType.STRING, 2) - oprot.writeString(self.type1.encode("utf-8") if sys.version_info[0] == 2 else self.type1) + oprot.writeFieldBegin('type1', TType.STRING, 2) + oprot.writeString(self.type1.encode('utf-8') if sys.version_info[0] == 2 else self.type1) oprot.writeFieldEnd() if self.type2 is not None: - oprot.writeFieldBegin("type2", TType.STRING, 3) - oprot.writeString(self.type2.encode("utf-8") if sys.version_info[0] == 2 else self.type2) + oprot.writeFieldBegin('type2', TType.STRING, 3) + oprot.writeString(self.type2.encode('utf-8') if sys.version_info[0] == 2 else self.type2) oprot.writeFieldEnd() if self.fields is not None: - oprot.writeFieldBegin("fields", TType.LIST, 4) + oprot.writeFieldBegin('fields', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.fields)) for iter57 in self.fields: iter57.write(oprot) @@ -2184,8 +1985,272 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 PropertySetRequest(object): + """ + Attributes: + - nameSpace + - propertyMap + + """ + thrift_spec = None + + + def __init__(self, nameSpace = None, propertyMap = None,): + self.nameSpace = nameSpace + self.propertyMap = propertyMap + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.nameSpace = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.MAP: + self.propertyMap = {} + (_ktype59, _vtype60, _size58) = iprot.readMapBegin() + for _i62 in range(_size58): + _key63 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val64 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.propertyMap[_key63] = _val64 + iprot.readMapEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('PropertySetRequest') + if self.nameSpace is not None: + oprot.writeFieldBegin('nameSpace', TType.STRING, 1) + oprot.writeString(self.nameSpace.encode('utf-8') if sys.version_info[0] == 2 else self.nameSpace) + oprot.writeFieldEnd() + if self.propertyMap is not None: + oprot.writeFieldBegin('propertyMap', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.propertyMap)) + for kiter65, viter66 in self.propertyMap.items(): + oprot.writeString(kiter65.encode('utf-8') if sys.version_info[0] == 2 else kiter65) + oprot.writeString(viter66.encode('utf-8') if sys.version_info[0] == 2 else viter66) + oprot.writeMapEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.nameSpace is None: + raise TProtocolException(message='Required field nameSpace is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 PropertyGetRequest(object): + """ + Attributes: + - nameSpace + - mapPrefix + - mapPredicate + - mapSelection + + """ + thrift_spec = None + + + def __init__(self, nameSpace = None, mapPrefix = None, mapPredicate = None, mapSelection = None,): + self.nameSpace = nameSpace + self.mapPrefix = mapPrefix + self.mapPredicate = mapPredicate + self.mapSelection = mapSelection + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.nameSpace = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.mapPrefix = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.mapPredicate = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.mapSelection = [] + (_etype70, _size67) = iprot.readListBegin() + for _i71 in range(_size67): + _elem72 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.mapSelection.append(_elem72) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('PropertyGetRequest') + if self.nameSpace is not None: + oprot.writeFieldBegin('nameSpace', TType.STRING, 1) + oprot.writeString(self.nameSpace.encode('utf-8') if sys.version_info[0] == 2 else self.nameSpace) + oprot.writeFieldEnd() + if self.mapPrefix is not None: + oprot.writeFieldBegin('mapPrefix', TType.STRING, 2) + oprot.writeString(self.mapPrefix.encode('utf-8') if sys.version_info[0] == 2 else self.mapPrefix) + oprot.writeFieldEnd() + if self.mapPredicate is not None: + oprot.writeFieldBegin('mapPredicate', TType.STRING, 3) + oprot.writeString(self.mapPredicate.encode('utf-8') if sys.version_info[0] == 2 else self.mapPredicate) + oprot.writeFieldEnd() + if self.mapSelection is not None: + oprot.writeFieldBegin('mapSelection', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.mapSelection)) + for iter73 in self.mapSelection: + oprot.writeString(iter73.encode('utf-8') if sys.version_info[0] == 2 else iter73) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.nameSpace is None: + raise TProtocolException(message='Required field nameSpace is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 PropertyGetResponse(object): + """ + Attributes: + - properties + + """ + thrift_spec = None + + + def __init__(self, properties = None,): + self.properties = properties + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.MAP: + self.properties = {} + (_ktype75, _vtype76, _size74) = iprot.readMapBegin() + for _i78 in range(_size74): + _key79 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val80 = {} + (_ktype82, _vtype83, _size81) = iprot.readMapBegin() + for _i85 in range(_size81): + _key86 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val87 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val80[_key86] = _val87 + iprot.readMapEnd() + self.properties[_key79] = _val80 + iprot.readMapEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('PropertyGetResponse') + if self.properties is not None: + oprot.writeFieldBegin('properties', TType.MAP, 1) + oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.properties)) + for kiter88, viter89 in self.properties.items(): + oprot.writeString(kiter88.encode('utf-8') if sys.version_info[0] == 2 else kiter88) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(viter89)) + for kiter90, viter91 in viter89.items(): + oprot.writeString(kiter90.encode('utf-8') if sys.version_info[0] == 2 else kiter90) + oprot.writeString(viter91.encode('utf-8') if sys.version_info[0] == 2 else viter91) + oprot.writeMapEnd() + oprot.writeMapEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -2194,7 +2259,7 @@ def __ne__(self, other): return not (self == other) -class HiveObjectRef: +class HiveObjectRef(object): """ Attributes: - objectType @@ -2205,16 +2270,10 @@ class HiveObjectRef: - catName """ + thrift_spec = None + - def __init__( - self, - objectType=None, - dbName=None, - objectName=None, - partValues=None, - columnName=None, - catName=None, - ): + def __init__(self, objectType = None, dbName = None, objectName = None, partValues = None, columnName = None, catName = None,): self.objectType = objectType self.dbName = dbName self.objectName = objectName @@ -2223,11 +2282,7 @@ def __init__( self.catName = catName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2242,44 +2297,32 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.objectName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.objectName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partValues = [] - (_etype61, _size58) = iprot.readListBegin() - for _i62 in range(_size58): - _elem63 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partValues.append(_elem63) + (_etype95, _size92) = iprot.readListBegin() + for _i96 in range(_size92): + _elem97 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partValues.append(_elem97) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.columnName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.columnName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -2288,36 +2331,37 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("HiveObjectRef") + oprot.writeStructBegin('HiveObjectRef') if self.objectType is not None: - oprot.writeFieldBegin("objectType", TType.I32, 1) + oprot.writeFieldBegin('objectType', TType.I32, 1) oprot.writeI32(self.objectType) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.objectName is not None: - oprot.writeFieldBegin("objectName", TType.STRING, 3) - oprot.writeString(self.objectName.encode("utf-8") if sys.version_info[0] == 2 else self.objectName) + oprot.writeFieldBegin('objectName', TType.STRING, 3) + oprot.writeString(self.objectName.encode('utf-8') if sys.version_info[0] == 2 else self.objectName) oprot.writeFieldEnd() if self.partValues is not None: - oprot.writeFieldBegin("partValues", TType.LIST, 4) + oprot.writeFieldBegin('partValues', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partValues)) - for iter64 in self.partValues: - oprot.writeString(iter64.encode("utf-8") if sys.version_info[0] == 2 else iter64) + for iter98 in self.partValues: + oprot.writeString(iter98.encode('utf-8') if sys.version_info[0] == 2 else iter98) oprot.writeListEnd() oprot.writeFieldEnd() if self.columnName is not None: - oprot.writeFieldBegin("columnName", TType.STRING, 5) - oprot.writeString(self.columnName.encode("utf-8") if sys.version_info[0] == 2 else self.columnName) + oprot.writeFieldBegin('columnName', TType.STRING, 5) + oprot.writeString(self.columnName.encode('utf-8') if sys.version_info[0] == 2 else self.columnName) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 6) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 6) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -2326,8 +2370,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -2336,7 +2381,7 @@ def __ne__(self, other): return not (self == other) -class PrivilegeGrantInfo: +class PrivilegeGrantInfo(object): """ Attributes: - privilege @@ -2346,15 +2391,10 @@ class PrivilegeGrantInfo: - grantOption """ + thrift_spec = None + - def __init__( - self, - privilege=None, - createTime=None, - grantor=None, - grantorType=None, - grantOption=None, - ): + def __init__(self, privilege = None, createTime = None, grantor = None, grantorType = None, grantOption = None,): self.privilege = privilege self.createTime = createTime self.grantor = grantor @@ -2362,11 +2402,7 @@ def __init__( self.grantOption = grantOption def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2376,9 +2412,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.privilege = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.privilege = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -2388,9 +2422,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.grantor = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.grantor = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -2409,28 +2441,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PrivilegeGrantInfo") + oprot.writeStructBegin('PrivilegeGrantInfo') if self.privilege is not None: - oprot.writeFieldBegin("privilege", TType.STRING, 1) - oprot.writeString(self.privilege.encode("utf-8") if sys.version_info[0] == 2 else self.privilege) + oprot.writeFieldBegin('privilege', TType.STRING, 1) + oprot.writeString(self.privilege.encode('utf-8') if sys.version_info[0] == 2 else self.privilege) oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 2) + oprot.writeFieldBegin('createTime', TType.I32, 2) oprot.writeI32(self.createTime) oprot.writeFieldEnd() if self.grantor is not None: - oprot.writeFieldBegin("grantor", TType.STRING, 3) - oprot.writeString(self.grantor.encode("utf-8") if sys.version_info[0] == 2 else self.grantor) + oprot.writeFieldBegin('grantor', TType.STRING, 3) + oprot.writeString(self.grantor.encode('utf-8') if sys.version_info[0] == 2 else self.grantor) oprot.writeFieldEnd() if self.grantorType is not None: - oprot.writeFieldBegin("grantorType", TType.I32, 4) + oprot.writeFieldBegin('grantorType', TType.I32, 4) oprot.writeI32(self.grantorType) oprot.writeFieldEnd() if self.grantOption is not None: - oprot.writeFieldBegin("grantOption", TType.BOOL, 5) + oprot.writeFieldBegin('grantOption', TType.BOOL, 5) oprot.writeBool(self.grantOption) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -2440,8 +2473,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -2450,7 +2484,7 @@ def __ne__(self, other): return not (self == other) -class HiveObjectPrivilege: +class HiveObjectPrivilege(object): """ Attributes: - hiveObject @@ -2460,15 +2494,10 @@ class HiveObjectPrivilege: - authorizer """ + thrift_spec = None - def __init__( - self, - hiveObject=None, - principalName=None, - principalType=None, - grantInfo=None, - authorizer=None, - ): + + def __init__(self, hiveObject = None, principalName = None, principalType = None, grantInfo = None, authorizer = None,): self.hiveObject = hiveObject self.principalName = principalName self.principalType = principalType @@ -2476,11 +2505,7 @@ def __init__( self.authorizer = authorizer def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2496,9 +2521,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.principalName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.principalName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -2514,9 +2537,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.authorizer = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.authorizer = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -2525,29 +2546,30 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("HiveObjectPrivilege") + oprot.writeStructBegin('HiveObjectPrivilege') if self.hiveObject is not None: - oprot.writeFieldBegin("hiveObject", TType.STRUCT, 1) + oprot.writeFieldBegin('hiveObject', TType.STRUCT, 1) self.hiveObject.write(oprot) oprot.writeFieldEnd() if self.principalName is not None: - oprot.writeFieldBegin("principalName", TType.STRING, 2) - oprot.writeString(self.principalName.encode("utf-8") if sys.version_info[0] == 2 else self.principalName) + oprot.writeFieldBegin('principalName', TType.STRING, 2) + oprot.writeString(self.principalName.encode('utf-8') if sys.version_info[0] == 2 else self.principalName) oprot.writeFieldEnd() if self.principalType is not None: - oprot.writeFieldBegin("principalType", TType.I32, 3) + oprot.writeFieldBegin('principalType', TType.I32, 3) oprot.writeI32(self.principalType) oprot.writeFieldEnd() if self.grantInfo is not None: - oprot.writeFieldBegin("grantInfo", TType.STRUCT, 4) + oprot.writeFieldBegin('grantInfo', TType.STRUCT, 4) self.grantInfo.write(oprot) oprot.writeFieldEnd() if self.authorizer is not None: - oprot.writeFieldBegin("authorizer", TType.STRING, 5) - oprot.writeString(self.authorizer.encode("utf-8") if sys.version_info[0] == 2 else self.authorizer) + oprot.writeFieldBegin('authorizer', TType.STRING, 5) + oprot.writeString(self.authorizer.encode('utf-8') if sys.version_info[0] == 2 else self.authorizer) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -2556,8 +2578,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -2566,25 +2589,20 @@ def __ne__(self, other): return not (self == other) -class PrivilegeBag: +class PrivilegeBag(object): """ Attributes: - privileges """ + thrift_spec = None + - def __init__( - self, - privileges=None, - ): + def __init__(self, privileges = None,): self.privileges = privileges def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2595,11 +2613,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.privileges = [] - (_etype68, _size65) = iprot.readListBegin() - for _i69 in range(_size65): - _elem70 = HiveObjectPrivilege() - _elem70.read(iprot) - self.privileges.append(_elem70) + (_etype102, _size99) = iprot.readListBegin() + for _i103 in range(_size99): + _elem104 = HiveObjectPrivilege() + _elem104.read(iprot) + self.privileges.append(_elem104) iprot.readListEnd() else: iprot.skip(ftype) @@ -2609,15 +2627,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PrivilegeBag") + oprot.writeStructBegin('PrivilegeBag') if self.privileges is not None: - oprot.writeFieldBegin("privileges", TType.LIST, 1) + oprot.writeFieldBegin('privileges', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.privileges)) - for iter71 in self.privileges: - iter71.write(oprot) + for iter105 in self.privileges: + iter105.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -2627,8 +2646,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -2637,7 +2657,7 @@ def __ne__(self, other): return not (self == other) -class PrincipalPrivilegeSet: +class PrincipalPrivilegeSet(object): """ Attributes: - userPrivileges @@ -2645,23 +2665,16 @@ class PrincipalPrivilegeSet: - rolePrivileges """ + thrift_spec = None - def __init__( - self, - userPrivileges=None, - groupPrivileges=None, - rolePrivileges=None, - ): + + def __init__(self, userPrivileges = None, groupPrivileges = None, rolePrivileges = None,): self.userPrivileges = userPrivileges self.groupPrivileges = groupPrivileges self.rolePrivileges = rolePrivileges def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2672,63 +2685,51 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.userPrivileges = {} - (_ktype73, _vtype74, _size72) = iprot.readMapBegin() - for _i76 in range(_size72): - _key77 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val78 = [] - (_etype82, _size79) = iprot.readListBegin() - for _i83 in range(_size79): - _elem84 = PrivilegeGrantInfo() - _elem84.read(iprot) - _val78.append(_elem84) + (_ktype107, _vtype108, _size106) = iprot.readMapBegin() + for _i110 in range(_size106): + _key111 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val112 = [] + (_etype116, _size113) = iprot.readListBegin() + for _i117 in range(_size113): + _elem118 = PrivilegeGrantInfo() + _elem118.read(iprot) + _val112.append(_elem118) iprot.readListEnd() - self.userPrivileges[_key77] = _val78 + self.userPrivileges[_key111] = _val112 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.groupPrivileges = {} - (_ktype86, _vtype87, _size85) = iprot.readMapBegin() - for _i89 in range(_size85): - _key90 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val91 = [] - (_etype95, _size92) = iprot.readListBegin() - for _i96 in range(_size92): - _elem97 = PrivilegeGrantInfo() - _elem97.read(iprot) - _val91.append(_elem97) + (_ktype120, _vtype121, _size119) = iprot.readMapBegin() + for _i123 in range(_size119): + _key124 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val125 = [] + (_etype129, _size126) = iprot.readListBegin() + for _i130 in range(_size126): + _elem131 = PrivilegeGrantInfo() + _elem131.read(iprot) + _val125.append(_elem131) iprot.readListEnd() - self.groupPrivileges[_key90] = _val91 + self.groupPrivileges[_key124] = _val125 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.rolePrivileges = {} - (_ktype99, _vtype100, _size98) = iprot.readMapBegin() - for _i102 in range(_size98): - _key103 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val104 = [] - (_etype108, _size105) = iprot.readListBegin() - for _i109 in range(_size105): - _elem110 = PrivilegeGrantInfo() - _elem110.read(iprot) - _val104.append(_elem110) + (_ktype133, _vtype134, _size132) = iprot.readMapBegin() + for _i136 in range(_size132): + _key137 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val138 = [] + (_etype142, _size139) = iprot.readListBegin() + for _i143 in range(_size139): + _elem144 = PrivilegeGrantInfo() + _elem144.read(iprot) + _val138.append(_elem144) iprot.readListEnd() - self.rolePrivileges[_key103] = _val104 + self.rolePrivileges[_key137] = _val138 iprot.readMapEnd() else: iprot.skip(ftype) @@ -2738,40 +2739,41 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PrincipalPrivilegeSet") + oprot.writeStructBegin('PrincipalPrivilegeSet') if self.userPrivileges is not None: - oprot.writeFieldBegin("userPrivileges", TType.MAP, 1) + oprot.writeFieldBegin('userPrivileges', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.userPrivileges)) - for kiter111, viter112 in self.userPrivileges.items(): - oprot.writeString(kiter111.encode("utf-8") if sys.version_info[0] == 2 else kiter111) - oprot.writeListBegin(TType.STRUCT, len(viter112)) - for iter113 in viter112: - iter113.write(oprot) + for kiter145, viter146 in self.userPrivileges.items(): + oprot.writeString(kiter145.encode('utf-8') if sys.version_info[0] == 2 else kiter145) + oprot.writeListBegin(TType.STRUCT, len(viter146)) + for iter147 in viter146: + iter147.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() if self.groupPrivileges is not None: - oprot.writeFieldBegin("groupPrivileges", TType.MAP, 2) + oprot.writeFieldBegin('groupPrivileges', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.groupPrivileges)) - for kiter114, viter115 in self.groupPrivileges.items(): - oprot.writeString(kiter114.encode("utf-8") if sys.version_info[0] == 2 else kiter114) - oprot.writeListBegin(TType.STRUCT, len(viter115)) - for iter116 in viter115: - iter116.write(oprot) + for kiter148, viter149 in self.groupPrivileges.items(): + oprot.writeString(kiter148.encode('utf-8') if sys.version_info[0] == 2 else kiter148) + oprot.writeListBegin(TType.STRUCT, len(viter149)) + for iter150 in viter149: + iter150.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() if self.rolePrivileges is not None: - oprot.writeFieldBegin("rolePrivileges", TType.MAP, 3) + oprot.writeFieldBegin('rolePrivileges', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.rolePrivileges)) - for kiter117, viter118 in self.rolePrivileges.items(): - oprot.writeString(kiter117.encode("utf-8") if sys.version_info[0] == 2 else kiter117) - oprot.writeListBegin(TType.STRUCT, len(viter118)) - for iter119 in viter118: - iter119.write(oprot) + for kiter151, viter152 in self.rolePrivileges.items(): + oprot.writeString(kiter151.encode('utf-8') if sys.version_info[0] == 2 else kiter151) + oprot.writeListBegin(TType.STRUCT, len(viter152)) + for iter153 in viter152: + iter153.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -2782,8 +2784,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -2792,7 +2795,7 @@ def __ne__(self, other): return not (self == other) -class GrantRevokePrivilegeRequest: +class GrantRevokePrivilegeRequest(object): """ Attributes: - requestType @@ -2800,23 +2803,16 @@ class GrantRevokePrivilegeRequest: - revokeGrantOption """ + thrift_spec = None + - def __init__( - self, - requestType=None, - privileges=None, - revokeGrantOption=None, - ): + def __init__(self, requestType = None, privileges = None, revokeGrantOption = None,): self.requestType = requestType self.privileges = privileges self.revokeGrantOption = revokeGrantOption def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2846,20 +2842,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GrantRevokePrivilegeRequest") + oprot.writeStructBegin('GrantRevokePrivilegeRequest') if self.requestType is not None: - oprot.writeFieldBegin("requestType", TType.I32, 1) + oprot.writeFieldBegin('requestType', TType.I32, 1) oprot.writeI32(self.requestType) oprot.writeFieldEnd() if self.privileges is not None: - oprot.writeFieldBegin("privileges", TType.STRUCT, 2) + oprot.writeFieldBegin('privileges', TType.STRUCT, 2) self.privileges.write(oprot) oprot.writeFieldEnd() if self.revokeGrantOption is not None: - oprot.writeFieldBegin("revokeGrantOption", TType.BOOL, 3) + oprot.writeFieldBegin('revokeGrantOption', TType.BOOL, 3) oprot.writeBool(self.revokeGrantOption) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -2869,8 +2866,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -2879,25 +2877,20 @@ def __ne__(self, other): return not (self == other) -class GrantRevokePrivilegeResponse: +class GrantRevokePrivilegeResponse(object): """ Attributes: - success """ + thrift_spec = None - def __init__( - self, - success=None, - ): + + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2916,12 +2909,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GrantRevokePrivilegeResponse") + oprot.writeStructBegin('GrantRevokePrivilegeResponse') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 1) + oprot.writeFieldBegin('success', TType.BOOL, 1) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -2931,8 +2925,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -2941,7 +2936,7 @@ def __ne__(self, other): return not (self == other) -class TruncateTableRequest: +class TruncateTableRequest(object): """ Attributes: - dbName @@ -2952,16 +2947,10 @@ class TruncateTableRequest: - environmentContext """ + thrift_spec = None + - def __init__( - self, - dbName=None, - tableName=None, - partNames=None, - writeId=-1, - validWriteIdList=None, - environmentContext=None, - ): + def __init__(self, dbName = None, tableName = None, partNames = None, writeId = -1, validWriteIdList = None, environmentContext = None,): self.dbName = dbName self.tableName = tableName self.partNames = partNames @@ -2970,11 +2959,7 @@ def __init__( self.environmentContext = environmentContext def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2984,29 +2969,21 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.partNames = [] - (_etype123, _size120) = iprot.readListBegin() - for _i124 in range(_size120): - _elem125 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partNames.append(_elem125) + (_etype157, _size154) = iprot.readListBegin() + for _i158 in range(_size154): + _elem159 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partNames.append(_elem159) iprot.readListEnd() else: iprot.skip(ftype) @@ -3017,9 +2994,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -3034,35 +3009,36 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TruncateTableRequest") + oprot.writeStructBegin('TruncateTableRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 2) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.partNames is not None: - oprot.writeFieldBegin("partNames", TType.LIST, 3) + oprot.writeFieldBegin('partNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter126 in self.partNames: - oprot.writeString(iter126.encode("utf-8") if sys.version_info[0] == 2 else iter126) + for iter160 in self.partNames: + oprot.writeString(iter160.encode('utf-8') if sys.version_info[0] == 2 else iter160) oprot.writeListEnd() oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 4) + oprot.writeFieldBegin('writeId', TType.I64, 4) oprot.writeI64(self.writeId) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 5) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 5) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.environmentContext is not None: - oprot.writeFieldBegin("environmentContext", TType.STRUCT, 6) + oprot.writeFieldBegin('environmentContext', TType.STRUCT, 6) self.environmentContext.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3070,14 +3046,15 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3086,13 +3063,12 @@ def __ne__(self, other): return not (self == other) -class TruncateTableResponse: +class TruncateTableResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3106,10 +3082,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TruncateTableResponse") + oprot.writeStructBegin('TruncateTableResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -3117,8 +3094,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3127,7 +3105,7 @@ def __ne__(self, other): return not (self == other) -class Role: +class Role(object): """ Attributes: - roleName @@ -3135,23 +3113,16 @@ class Role: - ownerName """ + thrift_spec = None - def __init__( - self, - roleName=None, - createTime=None, - ownerName=None, - ): + + def __init__(self, roleName = None, createTime = None, ownerName = None,): self.roleName = roleName self.createTime = createTime self.ownerName = ownerName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3161,9 +3132,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.roleName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.roleName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -3173,9 +3142,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.ownerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ownerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -3184,21 +3151,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Role") + oprot.writeStructBegin('Role') if self.roleName is not None: - oprot.writeFieldBegin("roleName", TType.STRING, 1) - oprot.writeString(self.roleName.encode("utf-8") if sys.version_info[0] == 2 else self.roleName) + oprot.writeFieldBegin('roleName', TType.STRING, 1) + oprot.writeString(self.roleName.encode('utf-8') if sys.version_info[0] == 2 else self.roleName) oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 2) + oprot.writeFieldBegin('createTime', TType.I32, 2) oprot.writeI32(self.createTime) oprot.writeFieldEnd() if self.ownerName is not None: - oprot.writeFieldBegin("ownerName", TType.STRING, 3) - oprot.writeString(self.ownerName.encode("utf-8") if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldBegin('ownerName', TType.STRING, 3) + oprot.writeString(self.ownerName.encode('utf-8') if sys.version_info[0] == 2 else self.ownerName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -3207,8 +3175,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3217,7 +3186,7 @@ def __ne__(self, other): return not (self == other) -class RolePrincipalGrant: +class RolePrincipalGrant(object): """ Attributes: - roleName @@ -3229,17 +3198,10 @@ class RolePrincipalGrant: - grantorPrincipalType """ + thrift_spec = None + - def __init__( - self, - roleName=None, - principalName=None, - principalType=None, - grantOption=None, - grantTime=None, - grantorName=None, - grantorPrincipalType=None, - ): + def __init__(self, roleName = None, principalName = None, principalType = None, grantOption = None, grantTime = None, grantorName = None, grantorPrincipalType = None,): self.roleName = roleName self.principalName = principalName self.principalType = principalType @@ -3249,11 +3211,7 @@ def __init__( self.grantorPrincipalType = grantorPrincipalType def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3263,16 +3221,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.roleName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.roleName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.principalName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.principalName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -3292,9 +3246,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.grantorName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.grantorName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -3308,36 +3260,37 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("RolePrincipalGrant") + oprot.writeStructBegin('RolePrincipalGrant') if self.roleName is not None: - oprot.writeFieldBegin("roleName", TType.STRING, 1) - oprot.writeString(self.roleName.encode("utf-8") if sys.version_info[0] == 2 else self.roleName) + oprot.writeFieldBegin('roleName', TType.STRING, 1) + oprot.writeString(self.roleName.encode('utf-8') if sys.version_info[0] == 2 else self.roleName) oprot.writeFieldEnd() if self.principalName is not None: - oprot.writeFieldBegin("principalName", TType.STRING, 2) - oprot.writeString(self.principalName.encode("utf-8") if sys.version_info[0] == 2 else self.principalName) + oprot.writeFieldBegin('principalName', TType.STRING, 2) + oprot.writeString(self.principalName.encode('utf-8') if sys.version_info[0] == 2 else self.principalName) oprot.writeFieldEnd() if self.principalType is not None: - oprot.writeFieldBegin("principalType", TType.I32, 3) + oprot.writeFieldBegin('principalType', TType.I32, 3) oprot.writeI32(self.principalType) oprot.writeFieldEnd() if self.grantOption is not None: - oprot.writeFieldBegin("grantOption", TType.BOOL, 4) + oprot.writeFieldBegin('grantOption', TType.BOOL, 4) oprot.writeBool(self.grantOption) oprot.writeFieldEnd() if self.grantTime is not None: - oprot.writeFieldBegin("grantTime", TType.I32, 5) + oprot.writeFieldBegin('grantTime', TType.I32, 5) oprot.writeI32(self.grantTime) oprot.writeFieldEnd() if self.grantorName is not None: - oprot.writeFieldBegin("grantorName", TType.STRING, 6) - oprot.writeString(self.grantorName.encode("utf-8") if sys.version_info[0] == 2 else self.grantorName) + oprot.writeFieldBegin('grantorName', TType.STRING, 6) + oprot.writeString(self.grantorName.encode('utf-8') if sys.version_info[0] == 2 else self.grantorName) oprot.writeFieldEnd() if self.grantorPrincipalType is not None: - oprot.writeFieldBegin("grantorPrincipalType", TType.I32, 7) + oprot.writeFieldBegin('grantorPrincipalType', TType.I32, 7) oprot.writeI32(self.grantorPrincipalType) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3347,8 +3300,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3357,28 +3311,22 @@ def __ne__(self, other): return not (self == other) -class GetRoleGrantsForPrincipalRequest: +class GetRoleGrantsForPrincipalRequest(object): """ Attributes: - principal_name - principal_type """ + thrift_spec = None - def __init__( - self, - principal_name=None, - principal_type=None, - ): + + def __init__(self, principal_name = None, principal_type = None,): self.principal_name = principal_name self.principal_type = principal_type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3388,9 +3336,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.principal_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.principal_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -3404,16 +3350,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetRoleGrantsForPrincipalRequest") + oprot.writeStructBegin('GetRoleGrantsForPrincipalRequest') if self.principal_name is not None: - oprot.writeFieldBegin("principal_name", TType.STRING, 1) - oprot.writeString(self.principal_name.encode("utf-8") if sys.version_info[0] == 2 else self.principal_name) + oprot.writeFieldBegin('principal_name', TType.STRING, 1) + oprot.writeString(self.principal_name.encode('utf-8') if sys.version_info[0] == 2 else self.principal_name) oprot.writeFieldEnd() if self.principal_type is not None: - oprot.writeFieldBegin("principal_type", TType.I32, 2) + oprot.writeFieldBegin('principal_type', TType.I32, 2) oprot.writeI32(self.principal_type) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3421,14 +3368,15 @@ def write(self, oprot): def validate(self): if self.principal_name is None: - raise TProtocolException(message="Required field principal_name is unset!") + raise TProtocolException(message='Required field principal_name is unset!') if self.principal_type is None: - raise TProtocolException(message="Required field principal_type is unset!") + raise TProtocolException(message='Required field principal_type is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3437,25 +3385,20 @@ def __ne__(self, other): return not (self == other) -class GetRoleGrantsForPrincipalResponse: +class GetRoleGrantsForPrincipalResponse(object): """ Attributes: - principalGrants """ + thrift_spec = None + - def __init__( - self, - principalGrants=None, - ): + def __init__(self, principalGrants = None,): self.principalGrants = principalGrants def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3466,11 +3409,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.principalGrants = [] - (_etype130, _size127) = iprot.readListBegin() - for _i131 in range(_size127): - _elem132 = RolePrincipalGrant() - _elem132.read(iprot) - self.principalGrants.append(_elem132) + (_etype164, _size161) = iprot.readListBegin() + for _i165 in range(_size161): + _elem166 = RolePrincipalGrant() + _elem166.read(iprot) + self.principalGrants.append(_elem166) iprot.readListEnd() else: iprot.skip(ftype) @@ -3480,15 +3423,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetRoleGrantsForPrincipalResponse") + oprot.writeStructBegin('GetRoleGrantsForPrincipalResponse') if self.principalGrants is not None: - oprot.writeFieldBegin("principalGrants", TType.LIST, 1) + oprot.writeFieldBegin('principalGrants', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.principalGrants)) - for iter133 in self.principalGrants: - iter133.write(oprot) + for iter167 in self.principalGrants: + iter167.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3496,12 +3440,13 @@ def write(self, oprot): def validate(self): if self.principalGrants is None: - raise TProtocolException(message="Required field principalGrants is unset!") + raise TProtocolException(message='Required field principalGrants is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3510,25 +3455,20 @@ def __ne__(self, other): return not (self == other) -class GetPrincipalsInRoleRequest: +class GetPrincipalsInRoleRequest(object): """ Attributes: - roleName """ + thrift_spec = None - def __init__( - self, - roleName=None, - ): + + def __init__(self, roleName = None,): self.roleName = roleName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3538,9 +3478,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.roleName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.roleName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -3549,25 +3487,27 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPrincipalsInRoleRequest") + oprot.writeStructBegin('GetPrincipalsInRoleRequest') if self.roleName is not None: - oprot.writeFieldBegin("roleName", TType.STRING, 1) - oprot.writeString(self.roleName.encode("utf-8") if sys.version_info[0] == 2 else self.roleName) + oprot.writeFieldBegin('roleName', TType.STRING, 1) + oprot.writeString(self.roleName.encode('utf-8') if sys.version_info[0] == 2 else self.roleName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.roleName is None: - raise TProtocolException(message="Required field roleName is unset!") + raise TProtocolException(message='Required field roleName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3576,25 +3516,20 @@ def __ne__(self, other): return not (self == other) -class GetPrincipalsInRoleResponse: +class GetPrincipalsInRoleResponse(object): """ Attributes: - principalGrants """ + thrift_spec = None + - def __init__( - self, - principalGrants=None, - ): + def __init__(self, principalGrants = None,): self.principalGrants = principalGrants def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3605,11 +3540,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.principalGrants = [] - (_etype137, _size134) = iprot.readListBegin() - for _i138 in range(_size134): - _elem139 = RolePrincipalGrant() - _elem139.read(iprot) - self.principalGrants.append(_elem139) + (_etype171, _size168) = iprot.readListBegin() + for _i172 in range(_size168): + _elem173 = RolePrincipalGrant() + _elem173.read(iprot) + self.principalGrants.append(_elem173) iprot.readListEnd() else: iprot.skip(ftype) @@ -3619,15 +3554,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPrincipalsInRoleResponse") + oprot.writeStructBegin('GetPrincipalsInRoleResponse') if self.principalGrants is not None: - oprot.writeFieldBegin("principalGrants", TType.LIST, 1) + oprot.writeFieldBegin('principalGrants', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.principalGrants)) - for iter140 in self.principalGrants: - iter140.write(oprot) + for iter174 in self.principalGrants: + iter174.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3635,12 +3571,13 @@ def write(self, oprot): def validate(self): if self.principalGrants is None: - raise TProtocolException(message="Required field principalGrants is unset!") + raise TProtocolException(message='Required field principalGrants is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3649,7 +3586,7 @@ def __ne__(self, other): return not (self == other) -class GrantRevokeRoleRequest: +class GrantRevokeRoleRequest(object): """ Attributes: - requestType @@ -3661,17 +3598,10 @@ class GrantRevokeRoleRequest: - grantOption """ + thrift_spec = None - def __init__( - self, - requestType=None, - roleName=None, - principalName=None, - principalType=None, - grantor=None, - grantorType=None, - grantOption=None, - ): + + def __init__(self, requestType = None, roleName = None, principalName = None, principalType = None, grantor = None, grantorType = None, grantOption = None,): self.requestType = requestType self.roleName = roleName self.principalName = principalName @@ -3681,11 +3611,7 @@ def __init__( self.grantOption = grantOption def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3700,16 +3626,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.roleName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.roleName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.principalName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.principalName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -3719,9 +3641,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.grantor = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.grantor = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -3740,36 +3660,37 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GrantRevokeRoleRequest") + oprot.writeStructBegin('GrantRevokeRoleRequest') if self.requestType is not None: - oprot.writeFieldBegin("requestType", TType.I32, 1) + oprot.writeFieldBegin('requestType', TType.I32, 1) oprot.writeI32(self.requestType) oprot.writeFieldEnd() if self.roleName is not None: - oprot.writeFieldBegin("roleName", TType.STRING, 2) - oprot.writeString(self.roleName.encode("utf-8") if sys.version_info[0] == 2 else self.roleName) + oprot.writeFieldBegin('roleName', TType.STRING, 2) + oprot.writeString(self.roleName.encode('utf-8') if sys.version_info[0] == 2 else self.roleName) oprot.writeFieldEnd() if self.principalName is not None: - oprot.writeFieldBegin("principalName", TType.STRING, 3) - oprot.writeString(self.principalName.encode("utf-8") if sys.version_info[0] == 2 else self.principalName) + oprot.writeFieldBegin('principalName', TType.STRING, 3) + oprot.writeString(self.principalName.encode('utf-8') if sys.version_info[0] == 2 else self.principalName) oprot.writeFieldEnd() if self.principalType is not None: - oprot.writeFieldBegin("principalType", TType.I32, 4) + oprot.writeFieldBegin('principalType', TType.I32, 4) oprot.writeI32(self.principalType) oprot.writeFieldEnd() if self.grantor is not None: - oprot.writeFieldBegin("grantor", TType.STRING, 5) - oprot.writeString(self.grantor.encode("utf-8") if sys.version_info[0] == 2 else self.grantor) + oprot.writeFieldBegin('grantor', TType.STRING, 5) + oprot.writeString(self.grantor.encode('utf-8') if sys.version_info[0] == 2 else self.grantor) oprot.writeFieldEnd() if self.grantorType is not None: - oprot.writeFieldBegin("grantorType", TType.I32, 6) + oprot.writeFieldBegin('grantorType', TType.I32, 6) oprot.writeI32(self.grantorType) oprot.writeFieldEnd() if self.grantOption is not None: - oprot.writeFieldBegin("grantOption", TType.BOOL, 7) + oprot.writeFieldBegin('grantOption', TType.BOOL, 7) oprot.writeBool(self.grantOption) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3779,8 +3700,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3789,25 +3711,20 @@ def __ne__(self, other): return not (self == other) -class GrantRevokeRoleResponse: +class GrantRevokeRoleResponse(object): """ Attributes: - success """ + thrift_spec = None + - def __init__( - self, - success=None, - ): + def __init__(self, success = None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3826,12 +3743,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GrantRevokeRoleResponse") + oprot.writeStructBegin('GrantRevokeRoleResponse') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 1) + oprot.writeFieldBegin('success', TType.BOOL, 1) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3841,8 +3759,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3851,7 +3770,7 @@ def __ne__(self, other): return not (self == other) -class Catalog: +class Catalog(object): """ Attributes: - name @@ -3860,25 +3779,17 @@ class Catalog: - createTime """ + thrift_spec = None - def __init__( - self, - name=None, - description=None, - locationUri=None, - createTime=None, - ): + + def __init__(self, name = None, description = None, locationUri = None, createTime = None,): self.name = name self.description = description self.locationUri = locationUri self.createTime = createTime def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3888,23 +3799,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.locationUri = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.locationUri = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -3918,24 +3823,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Catalog") + oprot.writeStructBegin('Catalog') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 2) - oprot.writeString(self.description.encode("utf-8") if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin('description', TType.STRING, 2) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() if self.locationUri is not None: - oprot.writeFieldBegin("locationUri", TType.STRING, 3) - oprot.writeString(self.locationUri.encode("utf-8") if sys.version_info[0] == 2 else self.locationUri) + oprot.writeFieldBegin('locationUri', TType.STRING, 3) + oprot.writeString(self.locationUri.encode('utf-8') if sys.version_info[0] == 2 else self.locationUri) oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 4) + oprot.writeFieldBegin('createTime', TType.I32, 4) oprot.writeI32(self.createTime) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3945,8 +3851,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -3955,25 +3862,20 @@ def __ne__(self, other): return not (self == other) -class CreateCatalogRequest: +class CreateCatalogRequest(object): """ Attributes: - catalog """ + thrift_spec = None + - def __init__( - self, - catalog=None, - ): + def __init__(self, catalog = None,): self.catalog = catalog def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -3993,12 +3895,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CreateCatalogRequest") + oprot.writeStructBegin('CreateCatalogRequest') if self.catalog is not None: - oprot.writeFieldBegin("catalog", TType.STRUCT, 1) + oprot.writeFieldBegin('catalog', TType.STRUCT, 1) self.catalog.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4008,8 +3911,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4018,28 +3922,22 @@ def __ne__(self, other): return not (self == other) -class AlterCatalogRequest: +class AlterCatalogRequest(object): """ Attributes: - name - newCat """ + thrift_spec = None - def __init__( - self, - name=None, - newCat=None, - ): + + def __init__(self, name = None, newCat = None,): self.name = name self.newCat = newCat def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4049,9 +3947,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -4066,16 +3962,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AlterCatalogRequest") + oprot.writeStructBegin('AlterCatalogRequest') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.newCat is not None: - oprot.writeFieldBegin("newCat", TType.STRUCT, 2) + oprot.writeFieldBegin('newCat', TType.STRUCT, 2) self.newCat.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4085,8 +3982,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4095,25 +3993,20 @@ def __ne__(self, other): return not (self == other) -class GetCatalogRequest: +class GetCatalogRequest(object): """ Attributes: - name """ + thrift_spec = None + - def __init__( - self, - name=None, - ): + def __init__(self, name = None,): self.name = name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4123,9 +4016,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -4134,13 +4025,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetCatalogRequest") + oprot.writeStructBegin('GetCatalogRequest') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4149,8 +4041,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4159,25 +4052,20 @@ def __ne__(self, other): return not (self == other) -class GetCatalogResponse: +class GetCatalogResponse(object): """ Attributes: - catalog """ + thrift_spec = None - def __init__( - self, - catalog=None, - ): + + def __init__(self, catalog = None,): self.catalog = catalog def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4197,12 +4085,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetCatalogResponse") + oprot.writeStructBegin('GetCatalogResponse') if self.catalog is not None: - oprot.writeFieldBegin("catalog", TType.STRUCT, 1) + oprot.writeFieldBegin('catalog', TType.STRUCT, 1) self.catalog.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4212,8 +4101,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4222,25 +4112,20 @@ def __ne__(self, other): return not (self == other) -class GetCatalogsResponse: +class GetCatalogsResponse(object): """ Attributes: - names """ + thrift_spec = None + - def __init__( - self, - names=None, - ): + def __init__(self, names = None,): self.names = names def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4251,14 +4136,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype144, _size141) = iprot.readListBegin() - for _i145 in range(_size141): - _elem146 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.names.append(_elem146) + (_etype178, _size175) = iprot.readListBegin() + for _i179 in range(_size175): + _elem180 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.names.append(_elem180) iprot.readListEnd() else: iprot.skip(ftype) @@ -4268,15 +4149,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetCatalogsResponse") + oprot.writeStructBegin('GetCatalogsResponse') if self.names is not None: - oprot.writeFieldBegin("names", TType.LIST, 1) + oprot.writeFieldBegin('names', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter147 in self.names: - oprot.writeString(iter147.encode("utf-8") if sys.version_info[0] == 2 else iter147) + for iter181 in self.names: + oprot.writeString(iter181.encode('utf-8') if sys.version_info[0] == 2 else iter181) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4286,8 +4168,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4296,25 +4179,22 @@ def __ne__(self, other): return not (self == other) -class DropCatalogRequest: +class DropCatalogRequest(object): """ Attributes: - name + - ifExists """ + thrift_spec = None + - def __init__( - self, - name=None, - ): + def __init__(self, name = None, ifExists = True,): self.name = name + self.ifExists = ifExists def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4324,9 +4204,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.ifExists = iprot.readBool() else: iprot.skip(ftype) else: @@ -4335,13 +4218,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DropCatalogRequest") + oprot.writeStructBegin('DropCatalogRequest') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.ifExists is not None: + oprot.writeFieldBegin('ifExists', TType.BOOL, 2) + oprot.writeBool(self.ifExists) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4350,8 +4238,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4360,7 +4249,7 @@ def __ne__(self, other): return not (self == other) -class Database: +class Database(object): """ Attributes: - name @@ -4378,23 +4267,10 @@ class Database: - remote_dbname """ + thrift_spec = None + - def __init__( - self, - name=None, - description=None, - locationUri=None, - parameters=None, - privileges=None, - ownerName=None, - ownerType=None, - catalogName=None, - createTime=None, - managedLocationUri=None, - type=None, - connector_name=None, - remote_dbname=None, - ): + def __init__(self, name = None, description = None, locationUri = None, parameters = None, privileges = None, ownerName = None, ownerType = None, catalogName = None, createTime = None, managedLocationUri = None, type = None, connector_name = None, remote_dbname = None,): self.name = name self.description = description self.locationUri = locationUri @@ -4410,11 +4286,7 @@ def __init__( self.remote_dbname = remote_dbname def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4424,41 +4296,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.locationUri = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.locationUri = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.MAP: self.parameters = {} - (_ktype149, _vtype150, _size148) = iprot.readMapBegin() - for _i152 in range(_size148): - _key153 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val154 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.parameters[_key153] = _val154 + (_ktype183, _vtype184, _size182) = iprot.readMapBegin() + for _i186 in range(_size182): + _key187 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val188 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.parameters[_key187] = _val188 iprot.readMapEnd() else: iprot.skip(ftype) @@ -4470,9 +4328,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.ownerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ownerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -4482,9 +4338,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.catalogName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: @@ -4494,9 +4348,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.managedLocationUri = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.managedLocationUri = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: @@ -4506,16 +4358,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: - self.connector_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.connector_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 13: if ftype == TType.STRING: - self.remote_dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.remote_dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -4524,65 +4372,66 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Database") + oprot.writeStructBegin('Database') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 2) - oprot.writeString(self.description.encode("utf-8") if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin('description', TType.STRING, 2) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() if self.locationUri is not None: - oprot.writeFieldBegin("locationUri", TType.STRING, 3) - oprot.writeString(self.locationUri.encode("utf-8") if sys.version_info[0] == 2 else self.locationUri) + oprot.writeFieldBegin('locationUri', TType.STRING, 3) + oprot.writeString(self.locationUri.encode('utf-8') if sys.version_info[0] == 2 else self.locationUri) oprot.writeFieldEnd() if self.parameters is not None: - oprot.writeFieldBegin("parameters", TType.MAP, 4) + oprot.writeFieldBegin('parameters', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter155, viter156 in self.parameters.items(): - oprot.writeString(kiter155.encode("utf-8") if sys.version_info[0] == 2 else kiter155) - oprot.writeString(viter156.encode("utf-8") if sys.version_info[0] == 2 else viter156) + for kiter189, viter190 in self.parameters.items(): + oprot.writeString(kiter189.encode('utf-8') if sys.version_info[0] == 2 else kiter189) + oprot.writeString(viter190.encode('utf-8') if sys.version_info[0] == 2 else viter190) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: - oprot.writeFieldBegin("privileges", TType.STRUCT, 5) + oprot.writeFieldBegin('privileges', TType.STRUCT, 5) self.privileges.write(oprot) oprot.writeFieldEnd() if self.ownerName is not None: - oprot.writeFieldBegin("ownerName", TType.STRING, 6) - oprot.writeString(self.ownerName.encode("utf-8") if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldBegin('ownerName', TType.STRING, 6) + oprot.writeString(self.ownerName.encode('utf-8') if sys.version_info[0] == 2 else self.ownerName) oprot.writeFieldEnd() if self.ownerType is not None: - oprot.writeFieldBegin("ownerType", TType.I32, 7) + oprot.writeFieldBegin('ownerType', TType.I32, 7) oprot.writeI32(self.ownerType) oprot.writeFieldEnd() if self.catalogName is not None: - oprot.writeFieldBegin("catalogName", TType.STRING, 8) - oprot.writeString(self.catalogName.encode("utf-8") if sys.version_info[0] == 2 else self.catalogName) + oprot.writeFieldBegin('catalogName', TType.STRING, 8) + oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 9) + oprot.writeFieldBegin('createTime', TType.I32, 9) oprot.writeI32(self.createTime) oprot.writeFieldEnd() if self.managedLocationUri is not None: - oprot.writeFieldBegin("managedLocationUri", TType.STRING, 10) - oprot.writeString(self.managedLocationUri.encode("utf-8") if sys.version_info[0] == 2 else self.managedLocationUri) + oprot.writeFieldBegin('managedLocationUri', TType.STRING, 10) + oprot.writeString(self.managedLocationUri.encode('utf-8') if sys.version_info[0] == 2 else self.managedLocationUri) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 11) + oprot.writeFieldBegin('type', TType.I32, 11) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.connector_name is not None: - oprot.writeFieldBegin("connector_name", TType.STRING, 12) - oprot.writeString(self.connector_name.encode("utf-8") if sys.version_info[0] == 2 else self.connector_name) + oprot.writeFieldBegin('connector_name', TType.STRING, 12) + oprot.writeString(self.connector_name.encode('utf-8') if sys.version_info[0] == 2 else self.connector_name) oprot.writeFieldEnd() if self.remote_dbname is not None: - oprot.writeFieldBegin("remote_dbname", TType.STRING, 13) - oprot.writeString(self.remote_dbname.encode("utf-8") if sys.version_info[0] == 2 else self.remote_dbname) + oprot.writeFieldBegin('remote_dbname', TType.STRING, 13) + oprot.writeString(self.remote_dbname.encode('utf-8') if sys.version_info[0] == 2 else self.remote_dbname) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4591,8 +4440,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4601,43 +4451,22 @@ def __ne__(self, other): return not (self == other) -class SerDeInfo: +class GetDatabaseObjectsRequest(object): """ Attributes: - - name - - serializationLib - - parameters - - description - - serializerClass - - deserializerClass - - serdeType + - catalogName + - pattern """ + thrift_spec = None - def __init__( - self, - name=None, - serializationLib=None, - parameters=None, - description=None, - serializerClass=None, - deserializerClass=None, - serdeType=None, - ): - self.name = name - self.serializationLib = serializationLib - self.parameters = parameters - self.description = description - self.serializerClass = serializerClass - self.deserializerClass = deserializerClass - self.serdeType = serdeType + + def __init__(self, catalogName = None, pattern = None,): + self.catalogName = catalogName + self.pattern = pattern def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4647,59 +4476,191 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.serializationLib = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.MAP: - self.parameters = {} - (_ktype158, _vtype159, _size157) = iprot.readMapBegin() - for _i161 in range(_size157): - _key162 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val163 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.parameters[_key162] = _val163 - iprot.readMapEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.serializerClass = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.STRING: - self.deserializerClass = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.pattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) - elif fid == 7: + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('GetDatabaseObjectsRequest') + if self.catalogName is not None: + oprot.writeFieldBegin('catalogName', TType.STRING, 1) + oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) + oprot.writeFieldEnd() + if self.pattern is not None: + oprot.writeFieldBegin('pattern', TType.STRING, 2) + oprot.writeString(self.pattern.encode('utf-8') if sys.version_info[0] == 2 else self.pattern) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 GetDatabaseObjectsResponse(object): + """ + Attributes: + - databases + + """ + thrift_spec = None + + + def __init__(self, databases = None,): + self.databases = databases + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.LIST: + self.databases = [] + (_etype194, _size191) = iprot.readListBegin() + for _i195 in range(_size191): + _elem196 = Database() + _elem196.read(iprot) + self.databases.append(_elem196) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('GetDatabaseObjectsResponse') + if self.databases is not None: + oprot.writeFieldBegin('databases', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.databases)) + for iter197 in self.databases: + iter197.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.databases is None: + raise TProtocolException(message='Required field databases is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 SerDeInfo(object): + """ + Attributes: + - name + - serializationLib + - parameters + - description + - serializerClass + - deserializerClass + - serdeType + + """ + thrift_spec = None + + + def __init__(self, name = None, serializationLib = None, parameters = None, description = None, serializerClass = None, deserializerClass = None, serdeType = None,): + self.name = name + self.serializationLib = serializationLib + self.parameters = parameters + self.description = description + self.serializerClass = serializerClass + self.deserializerClass = deserializerClass + self.serdeType = serdeType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.serializationLib = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.MAP: + self.parameters = {} + (_ktype199, _vtype200, _size198) = iprot.readMapBegin() + for _i202 in range(_size198): + _key203 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val204 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.parameters[_key203] = _val204 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.description = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.serializerClass = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.deserializerClass = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: if ftype == TType.I32: self.serdeType = iprot.readI32() else: @@ -4710,40 +4671,41 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SerDeInfo") + oprot.writeStructBegin('SerDeInfo') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.serializationLib is not None: - oprot.writeFieldBegin("serializationLib", TType.STRING, 2) - oprot.writeString(self.serializationLib.encode("utf-8") if sys.version_info[0] == 2 else self.serializationLib) + oprot.writeFieldBegin('serializationLib', TType.STRING, 2) + oprot.writeString(self.serializationLib.encode('utf-8') if sys.version_info[0] == 2 else self.serializationLib) oprot.writeFieldEnd() if self.parameters is not None: - oprot.writeFieldBegin("parameters", TType.MAP, 3) + oprot.writeFieldBegin('parameters', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter164, viter165 in self.parameters.items(): - oprot.writeString(kiter164.encode("utf-8") if sys.version_info[0] == 2 else kiter164) - oprot.writeString(viter165.encode("utf-8") if sys.version_info[0] == 2 else viter165) + for kiter205, viter206 in self.parameters.items(): + oprot.writeString(kiter205.encode('utf-8') if sys.version_info[0] == 2 else kiter205) + oprot.writeString(viter206.encode('utf-8') if sys.version_info[0] == 2 else viter206) oprot.writeMapEnd() oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 4) - oprot.writeString(self.description.encode("utf-8") if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin('description', TType.STRING, 4) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() if self.serializerClass is not None: - oprot.writeFieldBegin("serializerClass", TType.STRING, 5) - oprot.writeString(self.serializerClass.encode("utf-8") if sys.version_info[0] == 2 else self.serializerClass) + oprot.writeFieldBegin('serializerClass', TType.STRING, 5) + oprot.writeString(self.serializerClass.encode('utf-8') if sys.version_info[0] == 2 else self.serializerClass) oprot.writeFieldEnd() if self.deserializerClass is not None: - oprot.writeFieldBegin("deserializerClass", TType.STRING, 6) - oprot.writeString(self.deserializerClass.encode("utf-8") if sys.version_info[0] == 2 else self.deserializerClass) + oprot.writeFieldBegin('deserializerClass', TType.STRING, 6) + oprot.writeString(self.deserializerClass.encode('utf-8') if sys.version_info[0] == 2 else self.deserializerClass) oprot.writeFieldEnd() if self.serdeType is not None: - oprot.writeFieldBegin("serdeType", TType.I32, 7) + oprot.writeFieldBegin('serdeType', TType.I32, 7) oprot.writeI32(self.serdeType) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4753,8 +4715,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4763,28 +4726,22 @@ def __ne__(self, other): return not (self == other) -class Order: +class Order(object): """ Attributes: - col - order """ + thrift_spec = None + - def __init__( - self, - col=None, - order=None, - ): + def __init__(self, col = None, order = None,): self.col = col self.order = order def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4794,9 +4751,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.col = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.col = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -4810,16 +4765,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Order") + oprot.writeStructBegin('Order') if self.col is not None: - oprot.writeFieldBegin("col", TType.STRING, 1) - oprot.writeString(self.col.encode("utf-8") if sys.version_info[0] == 2 else self.col) + oprot.writeFieldBegin('col', TType.STRING, 1) + oprot.writeString(self.col.encode('utf-8') if sys.version_info[0] == 2 else self.col) oprot.writeFieldEnd() if self.order is not None: - oprot.writeFieldBegin("order", TType.I32, 2) + oprot.writeFieldBegin('order', TType.I32, 2) oprot.writeI32(self.order) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4829,8 +4785,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4839,7 +4796,7 @@ def __ne__(self, other): return not (self == other) -class SkewedInfo: +class SkewedInfo(object): """ Attributes: - skewedColNames @@ -4847,23 +4804,16 @@ class SkewedInfo: - skewedColValueLocationMaps """ + thrift_spec = None - def __init__( - self, - skewedColNames=None, - skewedColValues=None, - skewedColValueLocationMaps=None, - ): + + def __init__(self, skewedColNames = None, skewedColValues = None, skewedColValueLocationMaps = None,): self.skewedColNames = skewedColNames self.skewedColValues = skewedColValues self.skewedColValueLocationMaps = skewedColValueLocationMaps def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4874,57 +4824,41 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.skewedColNames = [] - (_etype169, _size166) = iprot.readListBegin() - for _i170 in range(_size166): - _elem171 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.skewedColNames.append(_elem171) + (_etype210, _size207) = iprot.readListBegin() + for _i211 in range(_size207): + _elem212 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.skewedColNames.append(_elem212) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.skewedColValues = [] - (_etype175, _size172) = iprot.readListBegin() - for _i176 in range(_size172): - _elem177 = [] - (_etype181, _size178) = iprot.readListBegin() - for _i182 in range(_size178): - _elem183 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _elem177.append(_elem183) + (_etype216, _size213) = iprot.readListBegin() + for _i217 in range(_size213): + _elem218 = [] + (_etype222, _size219) = iprot.readListBegin() + for _i223 in range(_size219): + _elem224 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _elem218.append(_elem224) iprot.readListEnd() - self.skewedColValues.append(_elem177) + self.skewedColValues.append(_elem218) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.skewedColValueLocationMaps = {} - (_ktype185, _vtype186, _size184) = iprot.readMapBegin() - for _i188 in range(_size184): - _key189 = [] - (_etype194, _size191) = iprot.readListBegin() - for _i195 in range(_size191): - _elem196 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _key189.append(_elem196) + (_ktype226, _vtype227, _size225) = iprot.readMapBegin() + for _i229 in range(_size225): + _key230 = [] + (_etype235, _size232) = iprot.readListBegin() + for _i236 in range(_size232): + _elem237 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _key230.append(_elem237) iprot.readListEnd() - _val190 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.skewedColValueLocationMaps[_key189] = _val190 + _val231 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.skewedColValueLocationMaps[_key230] = _val231 iprot.readMapEnd() else: iprot.skip(ftype) @@ -4934,36 +4868,37 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SkewedInfo") + oprot.writeStructBegin('SkewedInfo') if self.skewedColNames is not None: - oprot.writeFieldBegin("skewedColNames", TType.LIST, 1) + oprot.writeFieldBegin('skewedColNames', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.skewedColNames)) - for iter197 in self.skewedColNames: - oprot.writeString(iter197.encode("utf-8") if sys.version_info[0] == 2 else iter197) + for iter238 in self.skewedColNames: + oprot.writeString(iter238.encode('utf-8') if sys.version_info[0] == 2 else iter238) oprot.writeListEnd() oprot.writeFieldEnd() if self.skewedColValues is not None: - oprot.writeFieldBegin("skewedColValues", TType.LIST, 2) + oprot.writeFieldBegin('skewedColValues', TType.LIST, 2) oprot.writeListBegin(TType.LIST, len(self.skewedColValues)) - for iter198 in self.skewedColValues: - oprot.writeListBegin(TType.STRING, len(iter198)) - for iter199 in iter198: - oprot.writeString(iter199.encode("utf-8") if sys.version_info[0] == 2 else iter199) + for iter239 in self.skewedColValues: + oprot.writeListBegin(TType.STRING, len(iter239)) + for iter240 in iter239: + oprot.writeString(iter240.encode('utf-8') if sys.version_info[0] == 2 else iter240) oprot.writeListEnd() oprot.writeListEnd() oprot.writeFieldEnd() if self.skewedColValueLocationMaps is not None: - oprot.writeFieldBegin("skewedColValueLocationMaps", TType.MAP, 3) + oprot.writeFieldBegin('skewedColValueLocationMaps', TType.MAP, 3) oprot.writeMapBegin(TType.LIST, TType.STRING, len(self.skewedColValueLocationMaps)) - for kiter200, viter201 in self.skewedColValueLocationMaps.items(): - oprot.writeListBegin(TType.STRING, len(kiter200)) - for iter202 in kiter200: - oprot.writeString(iter202.encode("utf-8") if sys.version_info[0] == 2 else iter202) + for kiter241, viter242 in self.skewedColValueLocationMaps.items(): + oprot.writeListBegin(TType.STRING, len(kiter241)) + for iter243 in kiter241: + oprot.writeString(iter243.encode('utf-8') if sys.version_info[0] == 2 else iter243) oprot.writeListEnd() - oprot.writeString(viter201.encode("utf-8") if sys.version_info[0] == 2 else viter201) + oprot.writeString(viter242.encode('utf-8') if sys.version_info[0] == 2 else viter242) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4973,8 +4908,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -4983,7 +4919,7 @@ def __ne__(self, other): return not (self == other) -class StorageDescriptor: +class StorageDescriptor(object): """ Attributes: - cols @@ -5000,22 +4936,10 @@ class StorageDescriptor: - storedAsSubDirectories """ + thrift_spec = None + - def __init__( - self, - cols=None, - location=None, - inputFormat=None, - outputFormat=None, - compressed=None, - numBuckets=None, - serdeInfo=None, - bucketCols=None, - sortCols=None, - parameters=None, - skewedInfo=None, - storedAsSubDirectories=None, - ): + def __init__(self, cols = None, location = None, inputFormat = None, outputFormat = None, compressed = None, numBuckets = None, serdeInfo = None, bucketCols = None, sortCols = None, parameters = None, skewedInfo = None, storedAsSubDirectories = None,): self.cols = cols self.location = location self.inputFormat = inputFormat @@ -5030,11 +4954,7 @@ def __init__( self.storedAsSubDirectories = storedAsSubDirectories def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5045,33 +4965,27 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.cols = [] - (_etype206, _size203) = iprot.readListBegin() - for _i207 in range(_size203): - _elem208 = FieldSchema() - _elem208.read(iprot) - self.cols.append(_elem208) + (_etype247, _size244) = iprot.readListBegin() + for _i248 in range(_size244): + _elem249 = FieldSchema() + _elem249.read(iprot) + self.cols.append(_elem249) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.location = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.location = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.inputFormat = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.inputFormat = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.outputFormat = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.outputFormat = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -5093,44 +5007,32 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.bucketCols = [] - (_etype212, _size209) = iprot.readListBegin() - for _i213 in range(_size209): - _elem214 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.bucketCols.append(_elem214) + (_etype253, _size250) = iprot.readListBegin() + for _i254 in range(_size250): + _elem255 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.bucketCols.append(_elem255) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.LIST: self.sortCols = [] - (_etype218, _size215) = iprot.readListBegin() - for _i219 in range(_size215): - _elem220 = Order() - _elem220.read(iprot) - self.sortCols.append(_elem220) + (_etype259, _size256) = iprot.readListBegin() + for _i260 in range(_size256): + _elem261 = Order() + _elem261.read(iprot) + self.sortCols.append(_elem261) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.MAP: self.parameters = {} - (_ktype222, _vtype223, _size221) = iprot.readMapBegin() - for _i225 in range(_size221): - _key226 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val227 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.parameters[_key226] = _val227 + (_ktype263, _vtype264, _size262) = iprot.readMapBegin() + for _i266 in range(_size262): + _key267 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val268 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.parameters[_key267] = _val268 iprot.readMapEnd() else: iprot.skip(ftype) @@ -5151,69 +5053,70 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("StorageDescriptor") + oprot.writeStructBegin('StorageDescriptor') if self.cols is not None: - oprot.writeFieldBegin("cols", TType.LIST, 1) + oprot.writeFieldBegin('cols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.cols)) - for iter228 in self.cols: - iter228.write(oprot) + for iter269 in self.cols: + iter269.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.location is not None: - oprot.writeFieldBegin("location", TType.STRING, 2) - oprot.writeString(self.location.encode("utf-8") if sys.version_info[0] == 2 else self.location) + oprot.writeFieldBegin('location', TType.STRING, 2) + oprot.writeString(self.location.encode('utf-8') if sys.version_info[0] == 2 else self.location) oprot.writeFieldEnd() if self.inputFormat is not None: - oprot.writeFieldBegin("inputFormat", TType.STRING, 3) - oprot.writeString(self.inputFormat.encode("utf-8") if sys.version_info[0] == 2 else self.inputFormat) + oprot.writeFieldBegin('inputFormat', TType.STRING, 3) + oprot.writeString(self.inputFormat.encode('utf-8') if sys.version_info[0] == 2 else self.inputFormat) oprot.writeFieldEnd() if self.outputFormat is not None: - oprot.writeFieldBegin("outputFormat", TType.STRING, 4) - oprot.writeString(self.outputFormat.encode("utf-8") if sys.version_info[0] == 2 else self.outputFormat) + oprot.writeFieldBegin('outputFormat', TType.STRING, 4) + oprot.writeString(self.outputFormat.encode('utf-8') if sys.version_info[0] == 2 else self.outputFormat) oprot.writeFieldEnd() if self.compressed is not None: - oprot.writeFieldBegin("compressed", TType.BOOL, 5) + oprot.writeFieldBegin('compressed', TType.BOOL, 5) oprot.writeBool(self.compressed) oprot.writeFieldEnd() if self.numBuckets is not None: - oprot.writeFieldBegin("numBuckets", TType.I32, 6) + oprot.writeFieldBegin('numBuckets', TType.I32, 6) oprot.writeI32(self.numBuckets) oprot.writeFieldEnd() if self.serdeInfo is not None: - oprot.writeFieldBegin("serdeInfo", TType.STRUCT, 7) + oprot.writeFieldBegin('serdeInfo', TType.STRUCT, 7) self.serdeInfo.write(oprot) oprot.writeFieldEnd() if self.bucketCols is not None: - oprot.writeFieldBegin("bucketCols", TType.LIST, 8) + oprot.writeFieldBegin('bucketCols', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.bucketCols)) - for iter229 in self.bucketCols: - oprot.writeString(iter229.encode("utf-8") if sys.version_info[0] == 2 else iter229) + for iter270 in self.bucketCols: + oprot.writeString(iter270.encode('utf-8') if sys.version_info[0] == 2 else iter270) oprot.writeListEnd() oprot.writeFieldEnd() if self.sortCols is not None: - oprot.writeFieldBegin("sortCols", TType.LIST, 9) + oprot.writeFieldBegin('sortCols', TType.LIST, 9) oprot.writeListBegin(TType.STRUCT, len(self.sortCols)) - for iter230 in self.sortCols: - iter230.write(oprot) + for iter271 in self.sortCols: + iter271.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.parameters is not None: - oprot.writeFieldBegin("parameters", TType.MAP, 10) + oprot.writeFieldBegin('parameters', TType.MAP, 10) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter231, viter232 in self.parameters.items(): - oprot.writeString(kiter231.encode("utf-8") if sys.version_info[0] == 2 else kiter231) - oprot.writeString(viter232.encode("utf-8") if sys.version_info[0] == 2 else viter232) + for kiter272, viter273 in self.parameters.items(): + oprot.writeString(kiter272.encode('utf-8') if sys.version_info[0] == 2 else kiter272) + oprot.writeString(viter273.encode('utf-8') if sys.version_info[0] == 2 else viter273) oprot.writeMapEnd() oprot.writeFieldEnd() if self.skewedInfo is not None: - oprot.writeFieldBegin("skewedInfo", TType.STRUCT, 11) + oprot.writeFieldBegin('skewedInfo', TType.STRUCT, 11) self.skewedInfo.write(oprot) oprot.writeFieldEnd() if self.storedAsSubDirectories is not None: - oprot.writeFieldBegin("storedAsSubDirectories", TType.BOOL, 12) + oprot.writeFieldBegin('storedAsSubDirectories', TType.BOOL, 12) oprot.writeBool(self.storedAsSubDirectories) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5223,8 +5126,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -5233,7 +5137,7 @@ def __ne__(self, other): return not (self == other) -class CreationMetadata: +class CreationMetadata(object): """ Attributes: - catName @@ -5245,17 +5149,10 @@ class CreationMetadata: - sourceTables """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - tblName=None, - tablesUsed=None, - validTxnList=None, - materializationTime=None, - sourceTables=None, - ): + + def __init__(self, catName = None, dbName = None, tblName = None, tablesUsed = None, validTxnList = None, materializationTime = None, sourceTables = None,): self.catName = catName self.dbName = dbName self.tblName = tblName @@ -5265,11 +5162,7 @@ def __init__( self.sourceTables = sourceTables def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5279,44 +5172,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.SET: self.tablesUsed = set() - (_etype236, _size233) = iprot.readSetBegin() - for _i237 in range(_size233): - _elem238 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.tablesUsed.add(_elem238) + (_etype277, _size274) = iprot.readSetBegin() + for _i278 in range(_size274): + _elem279 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.tablesUsed.add(_elem279) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.validTxnList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validTxnList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -5327,11 +5208,11 @@ def read(self, iprot): elif fid == 7: if ftype == TType.LIST: self.sourceTables = [] - (_etype242, _size239) = iprot.readListBegin() - for _i243 in range(_size239): - _elem244 = SourceTable() - _elem244.read(iprot) - self.sourceTables.append(_elem244) + (_etype283, _size280) = iprot.readListBegin() + for _i284 in range(_size280): + _elem285 = SourceTable() + _elem285.read(iprot) + self.sourceTables.append(_elem285) iprot.readListEnd() else: iprot.skip(ftype) @@ -5341,42 +5222,43 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CreationMetadata") + oprot.writeStructBegin('CreationMetadata') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 3) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.tablesUsed is not None: - oprot.writeFieldBegin("tablesUsed", TType.SET, 4) + oprot.writeFieldBegin('tablesUsed', TType.SET, 4) oprot.writeSetBegin(TType.STRING, len(self.tablesUsed)) - for iter245 in self.tablesUsed: - oprot.writeString(iter245.encode("utf-8") if sys.version_info[0] == 2 else iter245) + for iter286 in self.tablesUsed: + oprot.writeString(iter286.encode('utf-8') if sys.version_info[0] == 2 else iter286) oprot.writeSetEnd() oprot.writeFieldEnd() if self.validTxnList is not None: - oprot.writeFieldBegin("validTxnList", TType.STRING, 5) - oprot.writeString(self.validTxnList.encode("utf-8") if sys.version_info[0] == 2 else self.validTxnList) + oprot.writeFieldBegin('validTxnList', TType.STRING, 5) + oprot.writeString(self.validTxnList.encode('utf-8') if sys.version_info[0] == 2 else self.validTxnList) oprot.writeFieldEnd() if self.materializationTime is not None: - oprot.writeFieldBegin("materializationTime", TType.I64, 6) + oprot.writeFieldBegin('materializationTime', TType.I64, 6) oprot.writeI64(self.materializationTime) oprot.writeFieldEnd() if self.sourceTables is not None: - oprot.writeFieldBegin("sourceTables", TType.LIST, 7) + oprot.writeFieldBegin('sourceTables', TType.LIST, 7) oprot.writeListBegin(TType.STRUCT, len(self.sourceTables)) - for iter246 in self.sourceTables: - iter246.write(oprot) + for iter287 in self.sourceTables: + iter287.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5384,18 +5266,19 @@ def write(self, oprot): def validate(self): if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") + raise TProtocolException(message='Required field catName is unset!') if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.tablesUsed is None: - raise TProtocolException(message="Required field tablesUsed is unset!") + raise TProtocolException(message='Required field tablesUsed is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -5404,7 +5287,7 @@ def __ne__(self, other): return not (self == other) -class BooleanColumnStatsData: +class BooleanColumnStatsData(object): """ Attributes: - numTrues @@ -5413,25 +5296,17 @@ class BooleanColumnStatsData: - bitVectors """ + thrift_spec = None + - def __init__( - self, - numTrues=None, - numFalses=None, - numNulls=None, - bitVectors=None, - ): + def __init__(self, numTrues = None, numFalses = None, numNulls = None, bitVectors = None,): self.numTrues = numTrues self.numFalses = numFalses self.numNulls = numNulls self.bitVectors = bitVectors def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5465,24 +5340,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("BooleanColumnStatsData") + oprot.writeStructBegin('BooleanColumnStatsData') if self.numTrues is not None: - oprot.writeFieldBegin("numTrues", TType.I64, 1) + oprot.writeFieldBegin('numTrues', TType.I64, 1) oprot.writeI64(self.numTrues) oprot.writeFieldEnd() if self.numFalses is not None: - oprot.writeFieldBegin("numFalses", TType.I64, 2) + oprot.writeFieldBegin('numFalses', TType.I64, 2) oprot.writeI64(self.numFalses) oprot.writeFieldEnd() if self.numNulls is not None: - oprot.writeFieldBegin("numNulls", TType.I64, 3) + oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() if self.bitVectors is not None: - oprot.writeFieldBegin("bitVectors", TType.STRING, 4) + oprot.writeFieldBegin('bitVectors', TType.STRING, 4) oprot.writeBinary(self.bitVectors) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5490,16 +5366,17 @@ def write(self, oprot): def validate(self): if self.numTrues is None: - raise TProtocolException(message="Required field numTrues is unset!") + raise TProtocolException(message='Required field numTrues is unset!') if self.numFalses is None: - raise TProtocolException(message="Required field numFalses is unset!") + raise TProtocolException(message='Required field numFalses is unset!') if self.numNulls is None: - raise TProtocolException(message="Required field numNulls is unset!") + raise TProtocolException(message='Required field numNulls is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -5508,7 +5385,7 @@ def __ne__(self, other): return not (self == other) -class DoubleColumnStatsData: +class DoubleColumnStatsData(object): """ Attributes: - lowValue @@ -5516,29 +5393,22 @@ class DoubleColumnStatsData: - numNulls - numDVs - bitVectors + - histogram """ + thrift_spec = None - def __init__( - self, - lowValue=None, - highValue=None, - numNulls=None, - numDVs=None, - bitVectors=None, - ): + + def __init__(self, lowValue = None, highValue = None, numNulls = None, numDVs = None, bitVectors = None, histogram = None,): self.lowValue = lowValue self.highValue = highValue self.numNulls = numNulls self.numDVs = numDVs self.bitVectors = bitVectors + self.histogram = histogram def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5571,49 +5441,60 @@ def read(self, iprot): self.bitVectors = iprot.readBinary() else: iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.histogram = iprot.readBinary() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DoubleColumnStatsData") + oprot.writeStructBegin('DoubleColumnStatsData') if self.lowValue is not None: - oprot.writeFieldBegin("lowValue", TType.DOUBLE, 1) + oprot.writeFieldBegin('lowValue', TType.DOUBLE, 1) oprot.writeDouble(self.lowValue) oprot.writeFieldEnd() if self.highValue is not None: - oprot.writeFieldBegin("highValue", TType.DOUBLE, 2) + oprot.writeFieldBegin('highValue', TType.DOUBLE, 2) oprot.writeDouble(self.highValue) oprot.writeFieldEnd() if self.numNulls is not None: - oprot.writeFieldBegin("numNulls", TType.I64, 3) + oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() if self.numDVs is not None: - oprot.writeFieldBegin("numDVs", TType.I64, 4) + oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() if self.bitVectors is not None: - oprot.writeFieldBegin("bitVectors", TType.STRING, 5) + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) oprot.writeBinary(self.bitVectors) oprot.writeFieldEnd() + if self.histogram is not None: + oprot.writeFieldBegin('histogram', TType.STRING, 6) + oprot.writeBinary(self.histogram) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.numNulls is None: - raise TProtocolException(message="Required field numNulls is unset!") + raise TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: - raise TProtocolException(message="Required field numDVs is unset!") + raise TProtocolException(message='Required field numDVs is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -5622,7 +5503,7 @@ def __ne__(self, other): return not (self == other) -class LongColumnStatsData: +class LongColumnStatsData(object): """ Attributes: - lowValue @@ -5630,29 +5511,22 @@ class LongColumnStatsData: - numNulls - numDVs - bitVectors + - histogram """ + thrift_spec = None - def __init__( - self, - lowValue=None, - highValue=None, - numNulls=None, - numDVs=None, - bitVectors=None, - ): + + def __init__(self, lowValue = None, highValue = None, numNulls = None, numDVs = None, bitVectors = None, histogram = None,): self.lowValue = lowValue self.highValue = highValue self.numNulls = numNulls self.numDVs = numDVs self.bitVectors = bitVectors + self.histogram = histogram def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5685,49 +5559,60 @@ def read(self, iprot): self.bitVectors = iprot.readBinary() else: iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.histogram = iprot.readBinary() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("LongColumnStatsData") + oprot.writeStructBegin('LongColumnStatsData') if self.lowValue is not None: - oprot.writeFieldBegin("lowValue", TType.I64, 1) + oprot.writeFieldBegin('lowValue', TType.I64, 1) oprot.writeI64(self.lowValue) oprot.writeFieldEnd() if self.highValue is not None: - oprot.writeFieldBegin("highValue", TType.I64, 2) + oprot.writeFieldBegin('highValue', TType.I64, 2) oprot.writeI64(self.highValue) oprot.writeFieldEnd() if self.numNulls is not None: - oprot.writeFieldBegin("numNulls", TType.I64, 3) + oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() if self.numDVs is not None: - oprot.writeFieldBegin("numDVs", TType.I64, 4) + oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() if self.bitVectors is not None: - oprot.writeFieldBegin("bitVectors", TType.STRING, 5) + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) oprot.writeBinary(self.bitVectors) oprot.writeFieldEnd() + if self.histogram is not None: + oprot.writeFieldBegin('histogram', TType.STRING, 6) + oprot.writeBinary(self.histogram) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.numNulls is None: - raise TProtocolException(message="Required field numNulls is unset!") + raise TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: - raise TProtocolException(message="Required field numDVs is unset!") + raise TProtocolException(message='Required field numDVs is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -5736,7 +5621,7 @@ def __ne__(self, other): return not (self == other) -class StringColumnStatsData: +class StringColumnStatsData(object): """ Attributes: - maxColLen @@ -5746,15 +5631,10 @@ class StringColumnStatsData: - bitVectors """ + thrift_spec = None - def __init__( - self, - maxColLen=None, - avgColLen=None, - numNulls=None, - numDVs=None, - bitVectors=None, - ): + + def __init__(self, maxColLen = None, avgColLen = None, numNulls = None, numDVs = None, bitVectors = None,): self.maxColLen = maxColLen self.avgColLen = avgColLen self.numNulls = numNulls @@ -5762,11 +5642,7 @@ def __init__( self.bitVectors = bitVectors def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5805,28 +5681,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("StringColumnStatsData") + oprot.writeStructBegin('StringColumnStatsData') if self.maxColLen is not None: - oprot.writeFieldBegin("maxColLen", TType.I64, 1) + oprot.writeFieldBegin('maxColLen', TType.I64, 1) oprot.writeI64(self.maxColLen) oprot.writeFieldEnd() if self.avgColLen is not None: - oprot.writeFieldBegin("avgColLen", TType.DOUBLE, 2) + oprot.writeFieldBegin('avgColLen', TType.DOUBLE, 2) oprot.writeDouble(self.avgColLen) oprot.writeFieldEnd() if self.numNulls is not None: - oprot.writeFieldBegin("numNulls", TType.I64, 3) + oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() if self.numDVs is not None: - oprot.writeFieldBegin("numDVs", TType.I64, 4) + oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() if self.bitVectors is not None: - oprot.writeFieldBegin("bitVectors", TType.STRING, 5) + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) oprot.writeBinary(self.bitVectors) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5834,18 +5711,19 @@ def write(self, oprot): def validate(self): if self.maxColLen is None: - raise TProtocolException(message="Required field maxColLen is unset!") + raise TProtocolException(message='Required field maxColLen is unset!') if self.avgColLen is None: - raise TProtocolException(message="Required field avgColLen is unset!") + raise TProtocolException(message='Required field avgColLen is unset!') if self.numNulls is None: - raise TProtocolException(message="Required field numNulls is unset!") + raise TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: - raise TProtocolException(message="Required field numDVs is unset!") + raise TProtocolException(message='Required field numDVs is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -5854,7 +5732,7 @@ def __ne__(self, other): return not (self == other) -class BinaryColumnStatsData: +class BinaryColumnStatsData(object): """ Attributes: - maxColLen @@ -5863,25 +5741,17 @@ class BinaryColumnStatsData: - bitVectors """ + thrift_spec = None + - def __init__( - self, - maxColLen=None, - avgColLen=None, - numNulls=None, - bitVectors=None, - ): + def __init__(self, maxColLen = None, avgColLen = None, numNulls = None, bitVectors = None,): self.maxColLen = maxColLen self.avgColLen = avgColLen self.numNulls = numNulls self.bitVectors = bitVectors def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5915,24 +5785,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("BinaryColumnStatsData") + oprot.writeStructBegin('BinaryColumnStatsData') if self.maxColLen is not None: - oprot.writeFieldBegin("maxColLen", TType.I64, 1) + oprot.writeFieldBegin('maxColLen', TType.I64, 1) oprot.writeI64(self.maxColLen) oprot.writeFieldEnd() if self.avgColLen is not None: - oprot.writeFieldBegin("avgColLen", TType.DOUBLE, 2) + oprot.writeFieldBegin('avgColLen', TType.DOUBLE, 2) oprot.writeDouble(self.avgColLen) oprot.writeFieldEnd() if self.numNulls is not None: - oprot.writeFieldBegin("numNulls", TType.I64, 3) + oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() if self.bitVectors is not None: - oprot.writeFieldBegin("bitVectors", TType.STRING, 4) + oprot.writeFieldBegin('bitVectors', TType.STRING, 4) oprot.writeBinary(self.bitVectors) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5940,16 +5811,17 @@ def write(self, oprot): def validate(self): if self.maxColLen is None: - raise TProtocolException(message="Required field maxColLen is unset!") + raise TProtocolException(message='Required field maxColLen is unset!') if self.avgColLen is None: - raise TProtocolException(message="Required field avgColLen is unset!") + raise TProtocolException(message='Required field avgColLen is unset!') if self.numNulls is None: - raise TProtocolException(message="Required field numNulls is unset!") + raise TProtocolException(message='Required field numNulls is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -5958,28 +5830,22 @@ def __ne__(self, other): return not (self == other) -class Decimal: +class Decimal(object): """ Attributes: - scale - unscaled """ + thrift_spec = None - def __init__( - self, - scale=None, - unscaled=None, - ): + + def __init__(self, scale = None, unscaled = None,): self.scale = scale self.unscaled = unscaled def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6003,16 +5869,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Decimal") + oprot.writeStructBegin('Decimal') if self.unscaled is not None: - oprot.writeFieldBegin("unscaled", TType.STRING, 1) + oprot.writeFieldBegin('unscaled', TType.STRING, 1) oprot.writeBinary(self.unscaled) oprot.writeFieldEnd() if self.scale is not None: - oprot.writeFieldBegin("scale", TType.I16, 3) + oprot.writeFieldBegin('scale', TType.I16, 3) oprot.writeI16(self.scale) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6020,14 +5887,15 @@ def write(self, oprot): def validate(self): if self.scale is None: - raise TProtocolException(message="Required field scale is unset!") + raise TProtocolException(message='Required field scale is unset!') if self.unscaled is None: - raise TProtocolException(message="Required field unscaled is unset!") + raise TProtocolException(message='Required field unscaled is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -6036,7 +5904,7 @@ def __ne__(self, other): return not (self == other) -class DecimalColumnStatsData: +class DecimalColumnStatsData(object): """ Attributes: - lowValue @@ -6044,29 +5912,22 @@ class DecimalColumnStatsData: - numNulls - numDVs - bitVectors + - histogram """ + thrift_spec = None + - def __init__( - self, - lowValue=None, - highValue=None, - numNulls=None, - numDVs=None, - bitVectors=None, - ): + def __init__(self, lowValue = None, highValue = None, numNulls = None, numDVs = None, bitVectors = None, histogram = None,): self.lowValue = lowValue self.highValue = highValue self.numNulls = numNulls self.numDVs = numDVs self.bitVectors = bitVectors + self.histogram = histogram def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6101,49 +5962,60 @@ def read(self, iprot): self.bitVectors = iprot.readBinary() else: iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.histogram = iprot.readBinary() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DecimalColumnStatsData") + oprot.writeStructBegin('DecimalColumnStatsData') if self.lowValue is not None: - oprot.writeFieldBegin("lowValue", TType.STRUCT, 1) + oprot.writeFieldBegin('lowValue', TType.STRUCT, 1) self.lowValue.write(oprot) oprot.writeFieldEnd() if self.highValue is not None: - oprot.writeFieldBegin("highValue", TType.STRUCT, 2) + oprot.writeFieldBegin('highValue', TType.STRUCT, 2) self.highValue.write(oprot) oprot.writeFieldEnd() if self.numNulls is not None: - oprot.writeFieldBegin("numNulls", TType.I64, 3) + oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() if self.numDVs is not None: - oprot.writeFieldBegin("numDVs", TType.I64, 4) + oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() if self.bitVectors is not None: - oprot.writeFieldBegin("bitVectors", TType.STRING, 5) + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) oprot.writeBinary(self.bitVectors) oprot.writeFieldEnd() + if self.histogram is not None: + oprot.writeFieldBegin('histogram', TType.STRING, 6) + oprot.writeBinary(self.histogram) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.numNulls is None: - raise TProtocolException(message="Required field numNulls is unset!") + raise TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: - raise TProtocolException(message="Required field numDVs is unset!") + raise TProtocolException(message='Required field numDVs is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -6152,25 +6024,20 @@ def __ne__(self, other): return not (self == other) -class Date: +class Date(object): """ Attributes: - daysSinceEpoch """ + thrift_spec = None + - def __init__( - self, - daysSinceEpoch=None, - ): + def __init__(self, daysSinceEpoch = None,): self.daysSinceEpoch = daysSinceEpoch def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6189,12 +6056,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Date") + oprot.writeStructBegin('Date') if self.daysSinceEpoch is not None: - oprot.writeFieldBegin("daysSinceEpoch", TType.I64, 1) + oprot.writeFieldBegin('daysSinceEpoch', TType.I64, 1) oprot.writeI64(self.daysSinceEpoch) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6202,12 +6070,13 @@ def write(self, oprot): def validate(self): if self.daysSinceEpoch is None: - raise TProtocolException(message="Required field daysSinceEpoch is unset!") + raise TProtocolException(message='Required field daysSinceEpoch is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -6216,7 +6085,7 @@ def __ne__(self, other): return not (self == other) -class DateColumnStatsData: +class DateColumnStatsData(object): """ Attributes: - lowValue @@ -6224,29 +6093,22 @@ class DateColumnStatsData: - numNulls - numDVs - bitVectors + - histogram """ + thrift_spec = None - def __init__( - self, - lowValue=None, - highValue=None, - numNulls=None, - numDVs=None, - bitVectors=None, - ): + + def __init__(self, lowValue = None, highValue = None, numNulls = None, numDVs = None, bitVectors = None, histogram = None,): self.lowValue = lowValue self.highValue = highValue self.numNulls = numNulls self.numDVs = numDVs self.bitVectors = bitVectors + self.histogram = histogram def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6281,49 +6143,60 @@ def read(self, iprot): self.bitVectors = iprot.readBinary() else: iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.histogram = iprot.readBinary() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DateColumnStatsData") + oprot.writeStructBegin('DateColumnStatsData') if self.lowValue is not None: - oprot.writeFieldBegin("lowValue", TType.STRUCT, 1) + oprot.writeFieldBegin('lowValue', TType.STRUCT, 1) self.lowValue.write(oprot) oprot.writeFieldEnd() if self.highValue is not None: - oprot.writeFieldBegin("highValue", TType.STRUCT, 2) + oprot.writeFieldBegin('highValue', TType.STRUCT, 2) self.highValue.write(oprot) oprot.writeFieldEnd() if self.numNulls is not None: - oprot.writeFieldBegin("numNulls", TType.I64, 3) + oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() if self.numDVs is not None: - oprot.writeFieldBegin("numDVs", TType.I64, 4) + oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() if self.bitVectors is not None: - oprot.writeFieldBegin("bitVectors", TType.STRING, 5) + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) oprot.writeBinary(self.bitVectors) oprot.writeFieldEnd() + if self.histogram is not None: + oprot.writeFieldBegin('histogram', TType.STRING, 6) + oprot.writeBinary(self.histogram) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.numNulls is None: - raise TProtocolException(message="Required field numNulls is unset!") + raise TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: - raise TProtocolException(message="Required field numDVs is unset!") + raise TProtocolException(message='Required field numDVs is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -6332,25 +6205,20 @@ def __ne__(self, other): return not (self == other) -class Timestamp: +class Timestamp(object): """ Attributes: - secondsSinceEpoch """ + thrift_spec = None - def __init__( - self, - secondsSinceEpoch=None, - ): + + def __init__(self, secondsSinceEpoch = None,): self.secondsSinceEpoch = secondsSinceEpoch def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6369,12 +6237,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Timestamp") + oprot.writeStructBegin('Timestamp') if self.secondsSinceEpoch is not None: - oprot.writeFieldBegin("secondsSinceEpoch", TType.I64, 1) + oprot.writeFieldBegin('secondsSinceEpoch', TType.I64, 1) oprot.writeI64(self.secondsSinceEpoch) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6382,12 +6251,13 @@ def write(self, oprot): def validate(self): if self.secondsSinceEpoch is None: - raise TProtocolException(message="Required field secondsSinceEpoch is unset!") + raise TProtocolException(message='Required field secondsSinceEpoch is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -6396,7 +6266,7 @@ def __ne__(self, other): return not (self == other) -class TimestampColumnStatsData: +class TimestampColumnStatsData(object): """ Attributes: - lowValue @@ -6404,29 +6274,22 @@ class TimestampColumnStatsData: - numNulls - numDVs - bitVectors + - histogram """ + thrift_spec = None + - def __init__( - self, - lowValue=None, - highValue=None, - numNulls=None, - numDVs=None, - bitVectors=None, - ): + def __init__(self, lowValue = None, highValue = None, numNulls = None, numDVs = None, bitVectors = None, histogram = None,): self.lowValue = lowValue self.highValue = highValue self.numNulls = numNulls self.numDVs = numDVs self.bitVectors = bitVectors + self.histogram = histogram def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6461,49 +6324,60 @@ def read(self, iprot): self.bitVectors = iprot.readBinary() else: iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.histogram = iprot.readBinary() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TimestampColumnStatsData") + oprot.writeStructBegin('TimestampColumnStatsData') if self.lowValue is not None: - oprot.writeFieldBegin("lowValue", TType.STRUCT, 1) + oprot.writeFieldBegin('lowValue', TType.STRUCT, 1) self.lowValue.write(oprot) oprot.writeFieldEnd() if self.highValue is not None: - oprot.writeFieldBegin("highValue", TType.STRUCT, 2) + oprot.writeFieldBegin('highValue', TType.STRUCT, 2) self.highValue.write(oprot) oprot.writeFieldEnd() if self.numNulls is not None: - oprot.writeFieldBegin("numNulls", TType.I64, 3) + oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() if self.numDVs is not None: - oprot.writeFieldBegin("numDVs", TType.I64, 4) + oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() if self.bitVectors is not None: - oprot.writeFieldBegin("bitVectors", TType.STRING, 5) + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) oprot.writeBinary(self.bitVectors) oprot.writeFieldEnd() + if self.histogram is not None: + oprot.writeFieldBegin('histogram', TType.STRING, 6) + oprot.writeBinary(self.histogram) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.numNulls is None: - raise TProtocolException(message="Required field numNulls is unset!") + raise TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: - raise TProtocolException(message="Required field numDVs is unset!") + raise TProtocolException(message='Required field numDVs is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -6512,7 +6386,7 @@ def __ne__(self, other): return not (self == other) -class ColumnStatisticsData: +class ColumnStatisticsData(object): """ Attributes: - booleanStats @@ -6525,18 +6399,10 @@ class ColumnStatisticsData: - timestampStats """ + thrift_spec = None + - def __init__( - self, - booleanStats=None, - longStats=None, - doubleStats=None, - stringStats=None, - binaryStats=None, - decimalStats=None, - dateStats=None, - timestampStats=None, - ): + def __init__(self, booleanStats = None, longStats = None, doubleStats = None, stringStats = None, binaryStats = None, decimalStats = None, dateStats = None, timestampStats = None,): self.booleanStats = booleanStats self.longStats = longStats self.doubleStats = doubleStats @@ -6547,11 +6413,7 @@ def __init__( self.timestampStats = timestampStats def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6613,40 +6475,41 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ColumnStatisticsData") + oprot.writeStructBegin('ColumnStatisticsData') if self.booleanStats is not None: - oprot.writeFieldBegin("booleanStats", TType.STRUCT, 1) + oprot.writeFieldBegin('booleanStats', TType.STRUCT, 1) self.booleanStats.write(oprot) oprot.writeFieldEnd() if self.longStats is not None: - oprot.writeFieldBegin("longStats", TType.STRUCT, 2) + oprot.writeFieldBegin('longStats', TType.STRUCT, 2) self.longStats.write(oprot) oprot.writeFieldEnd() if self.doubleStats is not None: - oprot.writeFieldBegin("doubleStats", TType.STRUCT, 3) + oprot.writeFieldBegin('doubleStats', TType.STRUCT, 3) self.doubleStats.write(oprot) oprot.writeFieldEnd() if self.stringStats is not None: - oprot.writeFieldBegin("stringStats", TType.STRUCT, 4) + oprot.writeFieldBegin('stringStats', TType.STRUCT, 4) self.stringStats.write(oprot) oprot.writeFieldEnd() if self.binaryStats is not None: - oprot.writeFieldBegin("binaryStats", TType.STRUCT, 5) + oprot.writeFieldBegin('binaryStats', TType.STRUCT, 5) self.binaryStats.write(oprot) oprot.writeFieldEnd() if self.decimalStats is not None: - oprot.writeFieldBegin("decimalStats", TType.STRUCT, 6) + oprot.writeFieldBegin('decimalStats', TType.STRUCT, 6) self.decimalStats.write(oprot) oprot.writeFieldEnd() if self.dateStats is not None: - oprot.writeFieldBegin("dateStats", TType.STRUCT, 7) + oprot.writeFieldBegin('dateStats', TType.STRUCT, 7) self.dateStats.write(oprot) oprot.writeFieldEnd() if self.timestampStats is not None: - oprot.writeFieldBegin("timestampStats", TType.STRUCT, 8) + oprot.writeFieldBegin('timestampStats', TType.STRUCT, 8) self.timestampStats.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6656,8 +6519,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -6666,7 +6530,7 @@ def __ne__(self, other): return not (self == other) -class ColumnStatisticsObj: +class ColumnStatisticsObj(object): """ Attributes: - colName @@ -6674,23 +6538,16 @@ class ColumnStatisticsObj: - statsData """ + thrift_spec = None - def __init__( - self, - colName=None, - colType=None, - statsData=None, - ): + + def __init__(self, colName = None, colType = None, statsData = None,): self.colName = colName self.colType = colType self.statsData = statsData def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6700,16 +6557,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.colName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.colName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.colType = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.colType = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -6724,20 +6577,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ColumnStatisticsObj") + oprot.writeStructBegin('ColumnStatisticsObj') if self.colName is not None: - oprot.writeFieldBegin("colName", TType.STRING, 1) - oprot.writeString(self.colName.encode("utf-8") if sys.version_info[0] == 2 else self.colName) + oprot.writeFieldBegin('colName', TType.STRING, 1) + oprot.writeString(self.colName.encode('utf-8') if sys.version_info[0] == 2 else self.colName) oprot.writeFieldEnd() if self.colType is not None: - oprot.writeFieldBegin("colType", TType.STRING, 2) - oprot.writeString(self.colType.encode("utf-8") if sys.version_info[0] == 2 else self.colType) + oprot.writeFieldBegin('colType', TType.STRING, 2) + oprot.writeString(self.colType.encode('utf-8') if sys.version_info[0] == 2 else self.colType) oprot.writeFieldEnd() if self.statsData is not None: - oprot.writeFieldBegin("statsData", TType.STRUCT, 3) + oprot.writeFieldBegin('statsData', TType.STRUCT, 3) self.statsData.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6745,16 +6599,17 @@ def write(self, oprot): def validate(self): if self.colName is None: - raise TProtocolException(message="Required field colName is unset!") + raise TProtocolException(message='Required field colName is unset!') if self.colType is None: - raise TProtocolException(message="Required field colType is unset!") + raise TProtocolException(message='Required field colType is unset!') if self.statsData is None: - raise TProtocolException(message="Required field statsData is unset!") + raise TProtocolException(message='Required field statsData is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -6763,7 +6618,7 @@ def __ne__(self, other): return not (self == other) -class ColumnStatisticsDesc: +class ColumnStatisticsDesc(object): """ Attributes: - isTblLevel @@ -6774,16 +6629,10 @@ class ColumnStatisticsDesc: - catName """ + thrift_spec = None + - def __init__( - self, - isTblLevel=None, - dbName=None, - tableName=None, - partName=None, - lastAnalyzed=None, - catName=None, - ): + def __init__(self, isTblLevel = None, dbName = None, tableName = None, partName = None, lastAnalyzed = None, catName = None,): self.isTblLevel = isTblLevel self.dbName = dbName self.tableName = tableName @@ -6792,11 +6641,7 @@ def __init__( self.catName = catName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6811,23 +6656,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.partName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -6837,9 +6676,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -6848,49 +6685,51 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ColumnStatisticsDesc") + oprot.writeStructBegin('ColumnStatisticsDesc') if self.isTblLevel is not None: - oprot.writeFieldBegin("isTblLevel", TType.BOOL, 1) + oprot.writeFieldBegin('isTblLevel', TType.BOOL, 1) oprot.writeBool(self.isTblLevel) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 3) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.partName is not None: - oprot.writeFieldBegin("partName", TType.STRING, 4) - oprot.writeString(self.partName.encode("utf-8") if sys.version_info[0] == 2 else self.partName) + oprot.writeFieldBegin('partName', TType.STRING, 4) + oprot.writeString(self.partName.encode('utf-8') if sys.version_info[0] == 2 else self.partName) oprot.writeFieldEnd() if self.lastAnalyzed is not None: - oprot.writeFieldBegin("lastAnalyzed", TType.I64, 5) + oprot.writeFieldBegin('lastAnalyzed', TType.I64, 5) oprot.writeI64(self.lastAnalyzed) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 6) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 6) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.isTblLevel is None: - raise TProtocolException(message="Required field isTblLevel is unset!") + raise TProtocolException(message='Required field isTblLevel is unset!') if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -6899,7 +6738,7 @@ def __ne__(self, other): return not (self == other) -class ColumnStatistics: +class ColumnStatistics(object): """ Attributes: - statsDesc @@ -6908,25 +6747,17 @@ class ColumnStatistics: - engine """ + thrift_spec = None - def __init__( - self, - statsDesc=None, - statsObj=None, - isStatsCompliant=None, - engine=None, - ): + + def __init__(self, statsDesc = None, statsObj = None, isStatsCompliant = None, engine = "hive",): self.statsDesc = statsDesc self.statsObj = statsObj self.isStatsCompliant = isStatsCompliant self.engine = engine def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6943,11 +6774,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.statsObj = [] - (_etype250, _size247) = iprot.readListBegin() - for _i251 in range(_size247): - _elem252 = ColumnStatisticsObj() - _elem252.read(iprot) - self.statsObj.append(_elem252) + (_etype291, _size288) = iprot.readListBegin() + for _i292 in range(_size288): + _elem293 = ColumnStatisticsObj() + _elem293.read(iprot) + self.statsObj.append(_elem293) iprot.readListEnd() else: iprot.skip(ftype) @@ -6958,9 +6789,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.engine = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.engine = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -6969,42 +6798,44 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ColumnStatistics") + oprot.writeStructBegin('ColumnStatistics') if self.statsDesc is not None: - oprot.writeFieldBegin("statsDesc", TType.STRUCT, 1) + oprot.writeFieldBegin('statsDesc', TType.STRUCT, 1) self.statsDesc.write(oprot) oprot.writeFieldEnd() if self.statsObj is not None: - oprot.writeFieldBegin("statsObj", TType.LIST, 2) + oprot.writeFieldBegin('statsObj', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.statsObj)) - for iter253 in self.statsObj: - iter253.write(oprot) + for iter294 in self.statsObj: + iter294.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.isStatsCompliant is not None: - oprot.writeFieldBegin("isStatsCompliant", TType.BOOL, 3) + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 3) oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() if self.engine is not None: - oprot.writeFieldBegin("engine", TType.STRING, 4) - oprot.writeString(self.engine.encode("utf-8") if sys.version_info[0] == 2 else self.engine) + oprot.writeFieldBegin('engine', TType.STRING, 4) + oprot.writeString(self.engine.encode('utf-8') if sys.version_info[0] == 2 else self.engine) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.statsDesc is None: - raise TProtocolException(message="Required field statsDesc is unset!") + raise TProtocolException(message='Required field statsDesc is unset!') if self.statsObj is None: - raise TProtocolException(message="Required field statsObj is unset!") + raise TProtocolException(message='Required field statsObj is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -7013,7 +6844,7 @@ def __ne__(self, other): return not (self == other) -class FileMetadata: +class FileMetadata(object): """ Attributes: - type @@ -7021,23 +6852,16 @@ class FileMetadata: - data """ + thrift_spec = None + - def __init__( - self, - type=1, - version=1, - data=None, - ): + def __init__(self, type = 1, version = 1, data = None,): self.type = type self.version = version self.data = data def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7058,10 +6882,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.data = [] - (_etype257, _size254) = iprot.readListBegin() - for _i258 in range(_size254): - _elem259 = iprot.readBinary() - self.data.append(_elem259) + (_etype298, _size295) = iprot.readListBegin() + for _i299 in range(_size295): + _elem300 = iprot.readBinary() + self.data.append(_elem300) iprot.readListEnd() else: iprot.skip(ftype) @@ -7071,23 +6895,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("FileMetadata") + oprot.writeStructBegin('FileMetadata') if self.type is not None: - oprot.writeFieldBegin("type", TType.BYTE, 1) + oprot.writeFieldBegin('type', TType.BYTE, 1) oprot.writeByte(self.type) oprot.writeFieldEnd() if self.version is not None: - oprot.writeFieldBegin("version", TType.BYTE, 2) + oprot.writeFieldBegin('version', TType.BYTE, 2) oprot.writeByte(self.version) oprot.writeFieldEnd() if self.data is not None: - oprot.writeFieldBegin("data", TType.LIST, 3) + oprot.writeFieldBegin('data', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.data)) - for iter260 in self.data: - oprot.writeBinary(iter260) + for iter301 in self.data: + oprot.writeBinary(iter301) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7097,8 +6922,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -7107,25 +6933,20 @@ def __ne__(self, other): return not (self == other) -class ObjectDictionary: +class ObjectDictionary(object): """ Attributes: - values """ + thrift_spec = None - def __init__( - self, - values=None, - ): + + def __init__(self, values = None,): self.values = values def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7136,20 +6957,16 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.values = {} - (_ktype262, _vtype263, _size261) = iprot.readMapBegin() - for _i265 in range(_size261): - _key266 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val267 = [] - (_etype271, _size268) = iprot.readListBegin() - for _i272 in range(_size268): - _elem273 = iprot.readBinary() - _val267.append(_elem273) + (_ktype303, _vtype304, _size302) = iprot.readMapBegin() + for _i306 in range(_size302): + _key307 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val308 = [] + (_etype312, _size309) = iprot.readListBegin() + for _i313 in range(_size309): + _elem314 = iprot.readBinary() + _val308.append(_elem314) iprot.readListEnd() - self.values[_key266] = _val267 + self.values[_key307] = _val308 iprot.readMapEnd() else: iprot.skip(ftype) @@ -7159,18 +6976,19 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ObjectDictionary") + oprot.writeStructBegin('ObjectDictionary') if self.values is not None: - oprot.writeFieldBegin("values", TType.MAP, 1) + oprot.writeFieldBegin('values', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.values)) - for kiter274, viter275 in self.values.items(): - oprot.writeString(kiter274.encode("utf-8") if sys.version_info[0] == 2 else kiter274) - oprot.writeListBegin(TType.STRING, len(viter275)) - for iter276 in viter275: - oprot.writeBinary(iter276) + for kiter315, viter316 in self.values.items(): + oprot.writeString(kiter315.encode('utf-8') if sys.version_info[0] == 2 else kiter315) + oprot.writeListBegin(TType.STRING, len(viter316)) + for iter317 in viter316: + oprot.writeBinary(iter317) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -7179,12 +6997,13 @@ def write(self, oprot): def validate(self): if self.values is None: - raise TProtocolException(message="Required field values is unset!") + raise TProtocolException(message='Required field values is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -7193,7 +7012,7 @@ def __ne__(self, other): return not (self == other) -class Table: +class Table(object): """ Attributes: - tableName @@ -7226,38 +7045,10 @@ class Table: - txnId """ + thrift_spec = None + - def __init__( - self, - tableName=None, - dbName=None, - owner=None, - createTime=None, - lastAccessTime=None, - retention=None, - sd=None, - partitionKeys=None, - parameters=None, - viewOriginalText=None, - viewExpandedText=None, - tableType=None, - privileges=None, - temporary=False, - rewriteEnabled=None, - creationMetadata=None, - catName=None, - ownerType=1, - writeId=-1, - isStatsCompliant=None, - colStats=None, - accessType=None, - requiredReadCapabilities=None, - requiredWriteCapabilities=None, - id=None, - fileMetadata=None, - dictionary=None, - txnId=None, - ): + def __init__(self, tableName = None, dbName = None, owner = None, createTime = None, lastAccessTime = None, retention = None, sd = None, partitionKeys = None, parameters = None, viewOriginalText = None, viewExpandedText = None, tableType = None, privileges = None, temporary = False, rewriteEnabled = None, creationMetadata = None, catName = None, ownerType = 1, writeId = -1, isStatsCompliant = None, colStats = None, accessType = None, requiredReadCapabilities = None, requiredWriteCapabilities = None, id = None, fileMetadata = None, dictionary = None, txnId = None,): self.tableName = tableName self.dbName = dbName self.owner = owner @@ -7288,11 +7079,7 @@ def __init__( self.txnId = txnId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7302,23 +7089,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.owner = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.owner = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -7345,52 +7126,38 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.partitionKeys = [] - (_etype280, _size277) = iprot.readListBegin() - for _i281 in range(_size277): - _elem282 = FieldSchema() - _elem282.read(iprot) - self.partitionKeys.append(_elem282) + (_etype321, _size318) = iprot.readListBegin() + for _i322 in range(_size318): + _elem323 = FieldSchema() + _elem323.read(iprot) + self.partitionKeys.append(_elem323) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype284, _vtype285, _size283) = iprot.readMapBegin() - for _i287 in range(_size283): - _key288 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val289 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.parameters[_key288] = _val289 + (_ktype325, _vtype326, _size324) = iprot.readMapBegin() + for _i328 in range(_size324): + _key329 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val330 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.parameters[_key329] = _val330 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.viewOriginalText = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.viewOriginalText = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: - self.viewExpandedText = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.viewExpandedText = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: - self.tableType = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableType = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 13: @@ -7417,9 +7184,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 17: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 18: @@ -7451,28 +7216,20 @@ def read(self, iprot): elif fid == 23: if ftype == TType.LIST: self.requiredReadCapabilities = [] - (_etype293, _size290) = iprot.readListBegin() - for _i294 in range(_size290): - _elem295 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.requiredReadCapabilities.append(_elem295) + (_etype334, _size331) = iprot.readListBegin() + for _i335 in range(_size331): + _elem336 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.requiredReadCapabilities.append(_elem336) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 24: if ftype == TType.LIST: self.requiredWriteCapabilities = [] - (_etype299, _size296) = iprot.readListBegin() - for _i300 in range(_size296): - _elem301 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.requiredWriteCapabilities.append(_elem301) + (_etype340, _size337) = iprot.readListBegin() + for _i341 in range(_size337): + _elem342 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.requiredWriteCapabilities.append(_elem342) iprot.readListEnd() else: iprot.skip(ftype) @@ -7504,133 +7261,134 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Table") + oprot.writeStructBegin('Table') if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 1) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 1) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.owner is not None: - oprot.writeFieldBegin("owner", TType.STRING, 3) - oprot.writeString(self.owner.encode("utf-8") if sys.version_info[0] == 2 else self.owner) + oprot.writeFieldBegin('owner', TType.STRING, 3) + oprot.writeString(self.owner.encode('utf-8') if sys.version_info[0] == 2 else self.owner) oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 4) + oprot.writeFieldBegin('createTime', TType.I32, 4) oprot.writeI32(self.createTime) oprot.writeFieldEnd() if self.lastAccessTime is not None: - oprot.writeFieldBegin("lastAccessTime", TType.I32, 5) + oprot.writeFieldBegin('lastAccessTime', TType.I32, 5) oprot.writeI32(self.lastAccessTime) oprot.writeFieldEnd() if self.retention is not None: - oprot.writeFieldBegin("retention", TType.I32, 6) + oprot.writeFieldBegin('retention', TType.I32, 6) oprot.writeI32(self.retention) oprot.writeFieldEnd() if self.sd is not None: - oprot.writeFieldBegin("sd", TType.STRUCT, 7) + oprot.writeFieldBegin('sd', TType.STRUCT, 7) self.sd.write(oprot) oprot.writeFieldEnd() if self.partitionKeys is not None: - oprot.writeFieldBegin("partitionKeys", TType.LIST, 8) + oprot.writeFieldBegin('partitionKeys', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) - for iter302 in self.partitionKeys: - iter302.write(oprot) + for iter343 in self.partitionKeys: + iter343.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.parameters is not None: - oprot.writeFieldBegin("parameters", TType.MAP, 9) + oprot.writeFieldBegin('parameters', TType.MAP, 9) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter303, viter304 in self.parameters.items(): - oprot.writeString(kiter303.encode("utf-8") if sys.version_info[0] == 2 else kiter303) - oprot.writeString(viter304.encode("utf-8") if sys.version_info[0] == 2 else viter304) + for kiter344, viter345 in self.parameters.items(): + oprot.writeString(kiter344.encode('utf-8') if sys.version_info[0] == 2 else kiter344) + oprot.writeString(viter345.encode('utf-8') if sys.version_info[0] == 2 else viter345) oprot.writeMapEnd() oprot.writeFieldEnd() if self.viewOriginalText is not None: - oprot.writeFieldBegin("viewOriginalText", TType.STRING, 10) - oprot.writeString(self.viewOriginalText.encode("utf-8") if sys.version_info[0] == 2 else self.viewOriginalText) + oprot.writeFieldBegin('viewOriginalText', TType.STRING, 10) + oprot.writeString(self.viewOriginalText.encode('utf-8') if sys.version_info[0] == 2 else self.viewOriginalText) oprot.writeFieldEnd() if self.viewExpandedText is not None: - oprot.writeFieldBegin("viewExpandedText", TType.STRING, 11) - oprot.writeString(self.viewExpandedText.encode("utf-8") if sys.version_info[0] == 2 else self.viewExpandedText) + oprot.writeFieldBegin('viewExpandedText', TType.STRING, 11) + oprot.writeString(self.viewExpandedText.encode('utf-8') if sys.version_info[0] == 2 else self.viewExpandedText) oprot.writeFieldEnd() if self.tableType is not None: - oprot.writeFieldBegin("tableType", TType.STRING, 12) - oprot.writeString(self.tableType.encode("utf-8") if sys.version_info[0] == 2 else self.tableType) + oprot.writeFieldBegin('tableType', TType.STRING, 12) + oprot.writeString(self.tableType.encode('utf-8') if sys.version_info[0] == 2 else self.tableType) oprot.writeFieldEnd() if self.privileges is not None: - oprot.writeFieldBegin("privileges", TType.STRUCT, 13) + oprot.writeFieldBegin('privileges', TType.STRUCT, 13) self.privileges.write(oprot) oprot.writeFieldEnd() if self.temporary is not None: - oprot.writeFieldBegin("temporary", TType.BOOL, 14) + oprot.writeFieldBegin('temporary', TType.BOOL, 14) oprot.writeBool(self.temporary) oprot.writeFieldEnd() if self.rewriteEnabled is not None: - oprot.writeFieldBegin("rewriteEnabled", TType.BOOL, 15) + oprot.writeFieldBegin('rewriteEnabled', TType.BOOL, 15) oprot.writeBool(self.rewriteEnabled) oprot.writeFieldEnd() if self.creationMetadata is not None: - oprot.writeFieldBegin("creationMetadata", TType.STRUCT, 16) + oprot.writeFieldBegin('creationMetadata', TType.STRUCT, 16) self.creationMetadata.write(oprot) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 17) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 17) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.ownerType is not None: - oprot.writeFieldBegin("ownerType", TType.I32, 18) + oprot.writeFieldBegin('ownerType', TType.I32, 18) oprot.writeI32(self.ownerType) oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 19) + oprot.writeFieldBegin('writeId', TType.I64, 19) oprot.writeI64(self.writeId) oprot.writeFieldEnd() if self.isStatsCompliant is not None: - oprot.writeFieldBegin("isStatsCompliant", TType.BOOL, 20) + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 20) oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() if self.colStats is not None: - oprot.writeFieldBegin("colStats", TType.STRUCT, 21) + oprot.writeFieldBegin('colStats', TType.STRUCT, 21) self.colStats.write(oprot) oprot.writeFieldEnd() if self.accessType is not None: - oprot.writeFieldBegin("accessType", TType.BYTE, 22) + oprot.writeFieldBegin('accessType', TType.BYTE, 22) oprot.writeByte(self.accessType) oprot.writeFieldEnd() if self.requiredReadCapabilities is not None: - oprot.writeFieldBegin("requiredReadCapabilities", TType.LIST, 23) + oprot.writeFieldBegin('requiredReadCapabilities', TType.LIST, 23) oprot.writeListBegin(TType.STRING, len(self.requiredReadCapabilities)) - for iter305 in self.requiredReadCapabilities: - oprot.writeString(iter305.encode("utf-8") if sys.version_info[0] == 2 else iter305) + for iter346 in self.requiredReadCapabilities: + oprot.writeString(iter346.encode('utf-8') if sys.version_info[0] == 2 else iter346) oprot.writeListEnd() oprot.writeFieldEnd() if self.requiredWriteCapabilities is not None: - oprot.writeFieldBegin("requiredWriteCapabilities", TType.LIST, 24) + oprot.writeFieldBegin('requiredWriteCapabilities', TType.LIST, 24) oprot.writeListBegin(TType.STRING, len(self.requiredWriteCapabilities)) - for iter306 in self.requiredWriteCapabilities: - oprot.writeString(iter306.encode("utf-8") if sys.version_info[0] == 2 else iter306) + for iter347 in self.requiredWriteCapabilities: + oprot.writeString(iter347.encode('utf-8') if sys.version_info[0] == 2 else iter347) oprot.writeListEnd() oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 25) + oprot.writeFieldBegin('id', TType.I64, 25) oprot.writeI64(self.id) oprot.writeFieldEnd() if self.fileMetadata is not None: - oprot.writeFieldBegin("fileMetadata", TType.STRUCT, 26) + oprot.writeFieldBegin('fileMetadata', TType.STRUCT, 26) self.fileMetadata.write(oprot) oprot.writeFieldEnd() if self.dictionary is not None: - oprot.writeFieldBegin("dictionary", TType.STRUCT, 27) + oprot.writeFieldBegin('dictionary', TType.STRUCT, 27) self.dictionary.write(oprot) oprot.writeFieldEnd() if self.txnId is not None: - oprot.writeFieldBegin("txnId", TType.I64, 28) + oprot.writeFieldBegin('txnId', TType.I64, 28) oprot.writeI64(self.txnId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7640,8 +7398,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -7650,7 +7409,7 @@ def __ne__(self, other): return not (self == other) -class SourceTable: +class SourceTable(object): """ Attributes: - table @@ -7659,25 +7418,17 @@ class SourceTable: - deletedCount """ + thrift_spec = None - def __init__( - self, - table=None, - insertedCount=None, - updatedCount=None, - deletedCount=None, - ): + + def __init__(self, table = None, insertedCount = None, updatedCount = None, deletedCount = None,): self.table = table self.insertedCount = insertedCount self.updatedCount = updatedCount self.deletedCount = deletedCount def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7712,24 +7463,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SourceTable") + oprot.writeStructBegin('SourceTable') if self.table is not None: - oprot.writeFieldBegin("table", TType.STRUCT, 1) + oprot.writeFieldBegin('table', TType.STRUCT, 1) self.table.write(oprot) oprot.writeFieldEnd() if self.insertedCount is not None: - oprot.writeFieldBegin("insertedCount", TType.I64, 2) + oprot.writeFieldBegin('insertedCount', TType.I64, 2) oprot.writeI64(self.insertedCount) oprot.writeFieldEnd() if self.updatedCount is not None: - oprot.writeFieldBegin("updatedCount", TType.I64, 3) + oprot.writeFieldBegin('updatedCount', TType.I64, 3) oprot.writeI64(self.updatedCount) oprot.writeFieldEnd() if self.deletedCount is not None: - oprot.writeFieldBegin("deletedCount", TType.I64, 4) + oprot.writeFieldBegin('deletedCount', TType.I64, 4) oprot.writeI64(self.deletedCount) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7737,18 +7489,19 @@ def write(self, oprot): def validate(self): if self.table is None: - raise TProtocolException(message="Required field table is unset!") + raise TProtocolException(message='Required field table is unset!') if self.insertedCount is None: - raise TProtocolException(message="Required field insertedCount is unset!") + raise TProtocolException(message='Required field insertedCount is unset!') if self.updatedCount is None: - raise TProtocolException(message="Required field updatedCount is unset!") + raise TProtocolException(message='Required field updatedCount is unset!') if self.deletedCount is None: - raise TProtocolException(message="Required field deletedCount is unset!") + raise TProtocolException(message='Required field deletedCount is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -7757,7 +7510,7 @@ def __ne__(self, other): return not (self == other) -class Partition: +class Partition(object): """ Attributes: - values @@ -7775,23 +7528,10 @@ class Partition: - fileMetadata """ + thrift_spec = None + - def __init__( - self, - values=None, - dbName=None, - tableName=None, - createTime=None, - lastAccessTime=None, - sd=None, - parameters=None, - privileges=None, - catName=None, - writeId=-1, - isStatsCompliant=None, - colStats=None, - fileMetadata=None, - ): + def __init__(self, values = None, dbName = None, tableName = None, createTime = None, lastAccessTime = None, sd = None, parameters = None, privileges = None, catName = None, writeId = -1, isStatsCompliant = None, colStats = None, fileMetadata = None,): self.values = values self.dbName = dbName self.tableName = tableName @@ -7807,11 +7547,7 @@ def __init__( self.fileMetadata = fileMetadata def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7822,29 +7558,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype310, _size307) = iprot.readListBegin() - for _i311 in range(_size307): - _elem312 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.values.append(_elem312) + (_etype351, _size348) = iprot.readListBegin() + for _i352 in range(_size348): + _elem353 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.values.append(_elem353) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -7866,19 +7594,11 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.parameters = {} - (_ktype314, _vtype315, _size313) = iprot.readMapBegin() - for _i317 in range(_size313): - _key318 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val319 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.parameters[_key318] = _val319 + (_ktype355, _vtype356, _size354) = iprot.readMapBegin() + for _i358 in range(_size354): + _key359 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val360 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.parameters[_key359] = _val360 iprot.readMapEnd() else: iprot.skip(ftype) @@ -7890,9 +7610,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 10: @@ -7923,67 +7641,68 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Partition") + oprot.writeStructBegin('Partition') if self.values is not None: - oprot.writeFieldBegin("values", TType.LIST, 1) + oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.values)) - for iter320 in self.values: - oprot.writeString(iter320.encode("utf-8") if sys.version_info[0] == 2 else iter320) + for iter361 in self.values: + oprot.writeString(iter361.encode('utf-8') if sys.version_info[0] == 2 else iter361) oprot.writeListEnd() oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 3) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 4) + oprot.writeFieldBegin('createTime', TType.I32, 4) oprot.writeI32(self.createTime) oprot.writeFieldEnd() if self.lastAccessTime is not None: - oprot.writeFieldBegin("lastAccessTime", TType.I32, 5) + oprot.writeFieldBegin('lastAccessTime', TType.I32, 5) oprot.writeI32(self.lastAccessTime) oprot.writeFieldEnd() if self.sd is not None: - oprot.writeFieldBegin("sd", TType.STRUCT, 6) + oprot.writeFieldBegin('sd', TType.STRUCT, 6) self.sd.write(oprot) oprot.writeFieldEnd() if self.parameters is not None: - oprot.writeFieldBegin("parameters", TType.MAP, 7) + oprot.writeFieldBegin('parameters', TType.MAP, 7) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter321, viter322 in self.parameters.items(): - oprot.writeString(kiter321.encode("utf-8") if sys.version_info[0] == 2 else kiter321) - oprot.writeString(viter322.encode("utf-8") if sys.version_info[0] == 2 else viter322) + for kiter362, viter363 in self.parameters.items(): + oprot.writeString(kiter362.encode('utf-8') if sys.version_info[0] == 2 else kiter362) + oprot.writeString(viter363.encode('utf-8') if sys.version_info[0] == 2 else viter363) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: - oprot.writeFieldBegin("privileges", TType.STRUCT, 8) + oprot.writeFieldBegin('privileges', TType.STRUCT, 8) self.privileges.write(oprot) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 9) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 9) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 10) + oprot.writeFieldBegin('writeId', TType.I64, 10) oprot.writeI64(self.writeId) oprot.writeFieldEnd() if self.isStatsCompliant is not None: - oprot.writeFieldBegin("isStatsCompliant", TType.BOOL, 11) + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 11) oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() if self.colStats is not None: - oprot.writeFieldBegin("colStats", TType.STRUCT, 12) + oprot.writeFieldBegin('colStats', TType.STRUCT, 12) self.colStats.write(oprot) oprot.writeFieldEnd() if self.fileMetadata is not None: - oprot.writeFieldBegin("fileMetadata", TType.STRUCT, 13) + oprot.writeFieldBegin('fileMetadata', TType.STRUCT, 13) self.fileMetadata.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7993,8 +7712,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8003,7 +7723,7 @@ def __ne__(self, other): return not (self == other) -class PartitionWithoutSD: +class PartitionWithoutSD(object): """ Attributes: - values @@ -8014,16 +7734,10 @@ class PartitionWithoutSD: - privileges """ + thrift_spec = None - def __init__( - self, - values=None, - createTime=None, - lastAccessTime=None, - relativePath=None, - parameters=None, - privileges=None, - ): + + def __init__(self, values = None, createTime = None, lastAccessTime = None, relativePath = None, parameters = None, privileges = None,): self.values = values self.createTime = createTime self.lastAccessTime = lastAccessTime @@ -8032,11 +7746,7 @@ def __init__( self.privileges = privileges def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8047,14 +7757,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype326, _size323) = iprot.readListBegin() - for _i327 in range(_size323): - _elem328 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.values.append(_elem328) + (_etype367, _size364) = iprot.readListBegin() + for _i368 in range(_size364): + _elem369 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.values.append(_elem369) iprot.readListEnd() else: iprot.skip(ftype) @@ -8070,27 +7776,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.relativePath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.relativePath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.MAP: self.parameters = {} - (_ktype330, _vtype331, _size329) = iprot.readMapBegin() - for _i333 in range(_size329): - _key334 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val335 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.parameters[_key334] = _val335 + (_ktype371, _vtype372, _size370) = iprot.readMapBegin() + for _i374 in range(_size370): + _key375 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val376 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.parameters[_key375] = _val376 iprot.readMapEnd() else: iprot.skip(ftype) @@ -8106,39 +7802,40 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionWithoutSD") + oprot.writeStructBegin('PartitionWithoutSD') if self.values is not None: - oprot.writeFieldBegin("values", TType.LIST, 1) + oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.values)) - for iter336 in self.values: - oprot.writeString(iter336.encode("utf-8") if sys.version_info[0] == 2 else iter336) + for iter377 in self.values: + oprot.writeString(iter377.encode('utf-8') if sys.version_info[0] == 2 else iter377) oprot.writeListEnd() oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 2) + oprot.writeFieldBegin('createTime', TType.I32, 2) oprot.writeI32(self.createTime) oprot.writeFieldEnd() if self.lastAccessTime is not None: - oprot.writeFieldBegin("lastAccessTime", TType.I32, 3) + oprot.writeFieldBegin('lastAccessTime', TType.I32, 3) oprot.writeI32(self.lastAccessTime) oprot.writeFieldEnd() if self.relativePath is not None: - oprot.writeFieldBegin("relativePath", TType.STRING, 4) - oprot.writeString(self.relativePath.encode("utf-8") if sys.version_info[0] == 2 else self.relativePath) + oprot.writeFieldBegin('relativePath', TType.STRING, 4) + oprot.writeString(self.relativePath.encode('utf-8') if sys.version_info[0] == 2 else self.relativePath) oprot.writeFieldEnd() if self.parameters is not None: - oprot.writeFieldBegin("parameters", TType.MAP, 5) + oprot.writeFieldBegin('parameters', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter337, viter338 in self.parameters.items(): - oprot.writeString(kiter337.encode("utf-8") if sys.version_info[0] == 2 else kiter337) - oprot.writeString(viter338.encode("utf-8") if sys.version_info[0] == 2 else viter338) + for kiter378, viter379 in self.parameters.items(): + oprot.writeString(kiter378.encode('utf-8') if sys.version_info[0] == 2 else kiter378) + oprot.writeString(viter379.encode('utf-8') if sys.version_info[0] == 2 else viter379) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: - oprot.writeFieldBegin("privileges", TType.STRUCT, 6) + oprot.writeFieldBegin('privileges', TType.STRUCT, 6) self.privileges.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8148,8 +7845,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8158,28 +7856,22 @@ def __ne__(self, other): return not (self == other) -class PartitionSpecWithSharedSD: +class PartitionSpecWithSharedSD(object): """ Attributes: - partitions - sd """ + thrift_spec = None + - def __init__( - self, - partitions=None, - sd=None, - ): + def __init__(self, partitions = None, sd = None,): self.partitions = partitions self.sd = sd def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8190,11 +7882,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype342, _size339) = iprot.readListBegin() - for _i343 in range(_size339): - _elem344 = PartitionWithoutSD() - _elem344.read(iprot) - self.partitions.append(_elem344) + (_etype383, _size380) = iprot.readListBegin() + for _i384 in range(_size380): + _elem385 = PartitionWithoutSD() + _elem385.read(iprot) + self.partitions.append(_elem385) iprot.readListEnd() else: iprot.skip(ftype) @@ -8210,19 +7902,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionSpecWithSharedSD") + oprot.writeStructBegin('PartitionSpecWithSharedSD') if self.partitions is not None: - oprot.writeFieldBegin("partitions", TType.LIST, 1) + oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter345 in self.partitions: - iter345.write(oprot) + for iter386 in self.partitions: + iter386.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.sd is not None: - oprot.writeFieldBegin("sd", TType.STRUCT, 2) + oprot.writeFieldBegin('sd', TType.STRUCT, 2) self.sd.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8232,8 +7925,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8242,25 +7936,20 @@ def __ne__(self, other): return not (self == other) -class PartitionListComposingSpec: +class PartitionListComposingSpec(object): """ Attributes: - partitions """ + thrift_spec = None - def __init__( - self, - partitions=None, - ): + + def __init__(self, partitions = None,): self.partitions = partitions def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8271,11 +7960,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype349, _size346) = iprot.readListBegin() - for _i350 in range(_size346): - _elem351 = Partition() - _elem351.read(iprot) - self.partitions.append(_elem351) + (_etype390, _size387) = iprot.readListBegin() + for _i391 in range(_size387): + _elem392 = Partition() + _elem392.read(iprot) + self.partitions.append(_elem392) iprot.readListEnd() else: iprot.skip(ftype) @@ -8285,15 +7974,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionListComposingSpec") + oprot.writeStructBegin('PartitionListComposingSpec') if self.partitions is not None: - oprot.writeFieldBegin("partitions", TType.LIST, 1) + oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter352 in self.partitions: - iter352.write(oprot) + for iter393 in self.partitions: + iter393.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8303,8 +7993,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8313,7 +8004,7 @@ def __ne__(self, other): return not (self == other) -class PartitionSpec: +class PartitionSpec(object): """ Attributes: - dbName @@ -8326,18 +8017,10 @@ class PartitionSpec: - isStatsCompliant """ + thrift_spec = None + - def __init__( - self, - dbName=None, - tableName=None, - rootPath=None, - sharedSDPartitionSpec=None, - partitionList=None, - catName=None, - writeId=-1, - isStatsCompliant=None, - ): + def __init__(self, dbName = None, tableName = None, rootPath = None, sharedSDPartitionSpec = None, partitionList = None, catName = None, writeId = -1, isStatsCompliant = None,): self.dbName = dbName self.tableName = tableName self.rootPath = rootPath @@ -8348,11 +8031,7 @@ def __init__( self.isStatsCompliant = isStatsCompliant def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8362,23 +8041,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.rootPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.rootPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -8395,9 +8068,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -8416,40 +8087,41 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionSpec") + oprot.writeStructBegin('PartitionSpec') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 2) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.rootPath is not None: - oprot.writeFieldBegin("rootPath", TType.STRING, 3) - oprot.writeString(self.rootPath.encode("utf-8") if sys.version_info[0] == 2 else self.rootPath) + oprot.writeFieldBegin('rootPath', TType.STRING, 3) + oprot.writeString(self.rootPath.encode('utf-8') if sys.version_info[0] == 2 else self.rootPath) oprot.writeFieldEnd() if self.sharedSDPartitionSpec is not None: - oprot.writeFieldBegin("sharedSDPartitionSpec", TType.STRUCT, 4) + oprot.writeFieldBegin('sharedSDPartitionSpec', TType.STRUCT, 4) self.sharedSDPartitionSpec.write(oprot) oprot.writeFieldEnd() if self.partitionList is not None: - oprot.writeFieldBegin("partitionList", TType.STRUCT, 5) + oprot.writeFieldBegin('partitionList', TType.STRUCT, 5) self.partitionList.write(oprot) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 6) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 6) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 7) + oprot.writeFieldBegin('writeId', TType.I64, 7) oprot.writeI64(self.writeId) oprot.writeFieldEnd() if self.isStatsCompliant is not None: - oprot.writeFieldBegin("isStatsCompliant", TType.BOOL, 8) + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 8) oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8459,8 +8131,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8469,7 +8142,7 @@ def __ne__(self, other): return not (self == other) -class AggrStats: +class AggrStats(object): """ Attributes: - colStats @@ -8477,23 +8150,16 @@ class AggrStats: - isStatsCompliant """ + thrift_spec = None - def __init__( - self, - colStats=None, - partsFound=None, - isStatsCompliant=None, - ): + + def __init__(self, colStats = None, partsFound = None, isStatsCompliant = None,): self.colStats = colStats self.partsFound = partsFound self.isStatsCompliant = isStatsCompliant def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8504,11 +8170,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.colStats = [] - (_etype356, _size353) = iprot.readListBegin() - for _i357 in range(_size353): - _elem358 = ColumnStatisticsObj() - _elem358.read(iprot) - self.colStats.append(_elem358) + (_etype397, _size394) = iprot.readListBegin() + for _i398 in range(_size394): + _elem399 = ColumnStatisticsObj() + _elem399.read(iprot) + self.colStats.append(_elem399) iprot.readListEnd() else: iprot.skip(ftype) @@ -8528,23 +8194,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AggrStats") + oprot.writeStructBegin('AggrStats') if self.colStats is not None: - oprot.writeFieldBegin("colStats", TType.LIST, 1) + oprot.writeFieldBegin('colStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.colStats)) - for iter359 in self.colStats: - iter359.write(oprot) + for iter400 in self.colStats: + iter400.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.partsFound is not None: - oprot.writeFieldBegin("partsFound", TType.I64, 2) + oprot.writeFieldBegin('partsFound', TType.I64, 2) oprot.writeI64(self.partsFound) oprot.writeFieldEnd() if self.isStatsCompliant is not None: - oprot.writeFieldBegin("isStatsCompliant", TType.BOOL, 3) + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 3) oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8552,14 +8219,15 @@ def write(self, oprot): def validate(self): if self.colStats is None: - raise TProtocolException(message="Required field colStats is unset!") + raise TProtocolException(message='Required field colStats is unset!') if self.partsFound is None: - raise TProtocolException(message="Required field partsFound is unset!") + raise TProtocolException(message='Required field partsFound is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8568,7 +8236,7 @@ def __ne__(self, other): return not (self == other) -class SetPartitionsStatsRequest: +class SetPartitionsStatsRequest(object): """ Attributes: - colStats @@ -8578,15 +8246,10 @@ class SetPartitionsStatsRequest: - engine """ + thrift_spec = None + - def __init__( - self, - colStats=None, - needMerge=None, - writeId=-1, - validWriteIdList=None, - engine=None, - ): + def __init__(self, colStats = None, needMerge = None, writeId = -1, validWriteIdList = None, engine = "hive",): self.colStats = colStats self.needMerge = needMerge self.writeId = writeId @@ -8594,11 +8257,7 @@ def __init__( self.engine = engine def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8609,11 +8268,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.colStats = [] - (_etype363, _size360) = iprot.readListBegin() - for _i364 in range(_size360): - _elem365 = ColumnStatistics() - _elem365.read(iprot) - self.colStats.append(_elem365) + (_etype404, _size401) = iprot.readListBegin() + for _i405 in range(_size401): + _elem406 = ColumnStatistics() + _elem406.read(iprot) + self.colStats.append(_elem406) iprot.readListEnd() else: iprot.skip(ftype) @@ -8629,16 +8288,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.engine = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.engine = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -8647,46 +8302,46 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SetPartitionsStatsRequest") + oprot.writeStructBegin('SetPartitionsStatsRequest') if self.colStats is not None: - oprot.writeFieldBegin("colStats", TType.LIST, 1) + oprot.writeFieldBegin('colStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.colStats)) - for iter366 in self.colStats: - iter366.write(oprot) + for iter407 in self.colStats: + iter407.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.needMerge is not None: - oprot.writeFieldBegin("needMerge", TType.BOOL, 2) + oprot.writeFieldBegin('needMerge', TType.BOOL, 2) oprot.writeBool(self.needMerge) oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 3) + oprot.writeFieldBegin('writeId', TType.I64, 3) oprot.writeI64(self.writeId) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 4) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.engine is not None: - oprot.writeFieldBegin("engine", TType.STRING, 5) - oprot.writeString(self.engine.encode("utf-8") if sys.version_info[0] == 2 else self.engine) + oprot.writeFieldBegin('engine', TType.STRING, 5) + oprot.writeString(self.engine.encode('utf-8') if sys.version_info[0] == 2 else self.engine) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.colStats is None: - raise TProtocolException(message="Required field colStats is unset!") - if self.engine is None: - raise TProtocolException(message="Required field engine is unset!") + raise TProtocolException(message='Required field colStats is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8695,25 +8350,20 @@ def __ne__(self, other): return not (self == other) -class SetPartitionsStatsResponse: +class SetPartitionsStatsResponse(object): """ Attributes: - result """ + thrift_spec = None - def __init__( - self, - result=None, - ): + + def __init__(self, result = None,): self.result = result def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8732,12 +8382,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SetPartitionsStatsResponse") + oprot.writeStructBegin('SetPartitionsStatsResponse') if self.result is not None: - oprot.writeFieldBegin("result", TType.BOOL, 1) + oprot.writeFieldBegin('result', TType.BOOL, 1) oprot.writeBool(self.result) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8745,12 +8396,13 @@ def write(self, oprot): def validate(self): if self.result is None: - raise TProtocolException(message="Required field result is unset!") + raise TProtocolException(message='Required field result is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8759,28 +8411,22 @@ def __ne__(self, other): return not (self == other) -class Schema: +class Schema(object): """ Attributes: - fieldSchemas - properties """ + thrift_spec = None + - def __init__( - self, - fieldSchemas=None, - properties=None, - ): + def __init__(self, fieldSchemas = None, properties = None,): self.fieldSchemas = fieldSchemas self.properties = properties def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8791,30 +8437,22 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldSchemas = [] - (_etype370, _size367) = iprot.readListBegin() - for _i371 in range(_size367): - _elem372 = FieldSchema() - _elem372.read(iprot) - self.fieldSchemas.append(_elem372) + (_etype411, _size408) = iprot.readListBegin() + for _i412 in range(_size408): + _elem413 = FieldSchema() + _elem413.read(iprot) + self.fieldSchemas.append(_elem413) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.properties = {} - (_ktype374, _vtype375, _size373) = iprot.readMapBegin() - for _i377 in range(_size373): - _key378 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val379 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.properties[_key378] = _val379 + (_ktype415, _vtype416, _size414) = iprot.readMapBegin() + for _i418 in range(_size414): + _key419 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val420 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.properties[_key419] = _val420 iprot.readMapEnd() else: iprot.skip(ftype) @@ -8824,23 +8462,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Schema") + oprot.writeStructBegin('Schema') if self.fieldSchemas is not None: - oprot.writeFieldBegin("fieldSchemas", TType.LIST, 1) + oprot.writeFieldBegin('fieldSchemas', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.fieldSchemas)) - for iter380 in self.fieldSchemas: - iter380.write(oprot) + for iter421 in self.fieldSchemas: + iter421.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.properties is not None: - oprot.writeFieldBegin("properties", TType.MAP, 2) + oprot.writeFieldBegin('properties', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter381, viter382 in self.properties.items(): - oprot.writeString(kiter381.encode("utf-8") if sys.version_info[0] == 2 else kiter381) - oprot.writeString(viter382.encode("utf-8") if sys.version_info[0] == 2 else viter382) + for kiter422, viter423 in self.properties.items(): + oprot.writeString(kiter422.encode('utf-8') if sys.version_info[0] == 2 else kiter422) + oprot.writeString(viter423.encode('utf-8') if sys.version_info[0] == 2 else viter423) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8850,8 +8489,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8860,7 +8500,7 @@ def __ne__(self, other): return not (self == other) -class PrimaryKeysRequest: +class PrimaryKeysRequest(object): """ Attributes: - db_name @@ -8870,15 +8510,10 @@ class PrimaryKeysRequest: - tableId """ + thrift_spec = None - def __init__( - self, - db_name=None, - tbl_name=None, - catName=None, - validWriteIdList=None, - tableId=-1, - ): + + def __init__(self, db_name = None, tbl_name = None, catName = None, validWriteIdList = None, tableId = -1,): self.db_name = db_name self.tbl_name = tbl_name self.catName = catName @@ -8886,11 +8521,7 @@ def __init__( self.tableId = tableId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8900,30 +8531,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -8937,28 +8560,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PrimaryKeysRequest") + oprot.writeStructBegin('PrimaryKeysRequest') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 3) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 3) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 4) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.tableId is not None: - oprot.writeFieldBegin("tableId", TType.I64, 5) + oprot.writeFieldBegin('tableId', TType.I64, 5) oprot.writeI64(self.tableId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8966,14 +8590,15 @@ def write(self, oprot): def validate(self): if self.db_name is None: - raise TProtocolException(message="Required field db_name is unset!") + raise TProtocolException(message='Required field db_name is unset!') if self.tbl_name is None: - raise TProtocolException(message="Required field tbl_name is unset!") + raise TProtocolException(message='Required field tbl_name is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -8982,25 +8607,20 @@ def __ne__(self, other): return not (self == other) -class PrimaryKeysResponse: +class PrimaryKeysResponse(object): """ Attributes: - primaryKeys """ + thrift_spec = None + - def __init__( - self, - primaryKeys=None, - ): + def __init__(self, primaryKeys = None,): self.primaryKeys = primaryKeys def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9011,11 +8631,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.primaryKeys = [] - (_etype386, _size383) = iprot.readListBegin() - for _i387 in range(_size383): - _elem388 = SQLPrimaryKey() - _elem388.read(iprot) - self.primaryKeys.append(_elem388) + (_etype427, _size424) = iprot.readListBegin() + for _i428 in range(_size424): + _elem429 = SQLPrimaryKey() + _elem429.read(iprot) + self.primaryKeys.append(_elem429) iprot.readListEnd() else: iprot.skip(ftype) @@ -9025,15 +8645,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PrimaryKeysResponse") + oprot.writeStructBegin('PrimaryKeysResponse') if self.primaryKeys is not None: - oprot.writeFieldBegin("primaryKeys", TType.LIST, 1) + oprot.writeFieldBegin('primaryKeys', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter389 in self.primaryKeys: - iter389.write(oprot) + for iter430 in self.primaryKeys: + iter430.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9041,12 +8662,13 @@ def write(self, oprot): def validate(self): if self.primaryKeys is None: - raise TProtocolException(message="Required field primaryKeys is unset!") + raise TProtocolException(message='Required field primaryKeys is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9055,7 +8677,7 @@ def __ne__(self, other): return not (self == other) -class ForeignKeysRequest: +class ForeignKeysRequest(object): """ Attributes: - parent_db_name @@ -9067,17 +8689,10 @@ class ForeignKeysRequest: - tableId """ + thrift_spec = None - def __init__( - self, - parent_db_name=None, - parent_tbl_name=None, - foreign_db_name=None, - foreign_tbl_name=None, - catName=None, - validWriteIdList=None, - tableId=-1, - ): + + def __init__(self, parent_db_name = None, parent_tbl_name = None, foreign_db_name = None, foreign_tbl_name = None, catName = None, validWriteIdList = None, tableId = -1,): self.parent_db_name = parent_db_name self.parent_tbl_name = parent_tbl_name self.foreign_db_name = foreign_db_name @@ -9087,11 +8702,7 @@ def __init__( self.tableId = tableId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9101,44 +8712,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.parent_db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.parent_db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.parent_tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.parent_tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.foreign_db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.foreign_db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.foreign_tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.foreign_tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -9152,36 +8751,37 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ForeignKeysRequest") + oprot.writeStructBegin('ForeignKeysRequest') if self.parent_db_name is not None: - oprot.writeFieldBegin("parent_db_name", TType.STRING, 1) - oprot.writeString(self.parent_db_name.encode("utf-8") if sys.version_info[0] == 2 else self.parent_db_name) + oprot.writeFieldBegin('parent_db_name', TType.STRING, 1) + oprot.writeString(self.parent_db_name.encode('utf-8') if sys.version_info[0] == 2 else self.parent_db_name) oprot.writeFieldEnd() if self.parent_tbl_name is not None: - oprot.writeFieldBegin("parent_tbl_name", TType.STRING, 2) - oprot.writeString(self.parent_tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.parent_tbl_name) + oprot.writeFieldBegin('parent_tbl_name', TType.STRING, 2) + oprot.writeString(self.parent_tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.parent_tbl_name) oprot.writeFieldEnd() if self.foreign_db_name is not None: - oprot.writeFieldBegin("foreign_db_name", TType.STRING, 3) - oprot.writeString(self.foreign_db_name.encode("utf-8") if sys.version_info[0] == 2 else self.foreign_db_name) + oprot.writeFieldBegin('foreign_db_name', TType.STRING, 3) + oprot.writeString(self.foreign_db_name.encode('utf-8') if sys.version_info[0] == 2 else self.foreign_db_name) oprot.writeFieldEnd() if self.foreign_tbl_name is not None: - oprot.writeFieldBegin("foreign_tbl_name", TType.STRING, 4) - oprot.writeString(self.foreign_tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.foreign_tbl_name) + oprot.writeFieldBegin('foreign_tbl_name', TType.STRING, 4) + oprot.writeString(self.foreign_tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.foreign_tbl_name) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 5) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 5) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 6) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 6) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.tableId is not None: - oprot.writeFieldBegin("tableId", TType.I64, 7) + oprot.writeFieldBegin('tableId', TType.I64, 7) oprot.writeI64(self.tableId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9191,8 +8791,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9201,25 +8802,20 @@ def __ne__(self, other): return not (self == other) -class ForeignKeysResponse: +class ForeignKeysResponse(object): """ Attributes: - foreignKeys """ + thrift_spec = None + - def __init__( - self, - foreignKeys=None, - ): + def __init__(self, foreignKeys = None,): self.foreignKeys = foreignKeys def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9230,11 +8826,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.foreignKeys = [] - (_etype393, _size390) = iprot.readListBegin() - for _i394 in range(_size390): - _elem395 = SQLForeignKey() - _elem395.read(iprot) - self.foreignKeys.append(_elem395) + (_etype434, _size431) = iprot.readListBegin() + for _i435 in range(_size431): + _elem436 = SQLForeignKey() + _elem436.read(iprot) + self.foreignKeys.append(_elem436) iprot.readListEnd() else: iprot.skip(ftype) @@ -9244,15 +8840,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ForeignKeysResponse") + oprot.writeStructBegin('ForeignKeysResponse') if self.foreignKeys is not None: - oprot.writeFieldBegin("foreignKeys", TType.LIST, 1) + oprot.writeFieldBegin('foreignKeys', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter396 in self.foreignKeys: - iter396.write(oprot) + for iter437 in self.foreignKeys: + iter437.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9260,12 +8857,13 @@ def write(self, oprot): def validate(self): if self.foreignKeys is None: - raise TProtocolException(message="Required field foreignKeys is unset!") + raise TProtocolException(message='Required field foreignKeys is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9274,7 +8872,7 @@ def __ne__(self, other): return not (self == other) -class UniqueConstraintsRequest: +class UniqueConstraintsRequest(object): """ Attributes: - catName @@ -9284,15 +8882,10 @@ class UniqueConstraintsRequest: - tableId """ + thrift_spec = None - def __init__( - self, - catName=None, - db_name=None, - tbl_name=None, - validWriteIdList=None, - tableId=-1, - ): + + def __init__(self, catName = None, db_name = None, tbl_name = None, validWriteIdList = None, tableId = -1,): self.catName = catName self.db_name = db_name self.tbl_name = tbl_name @@ -9300,11 +8893,7 @@ def __init__( self.tableId = tableId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9314,30 +8903,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -9351,28 +8932,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("UniqueConstraintsRequest") + oprot.writeStructBegin('UniqueConstraintsRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 2) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 2) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 3) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 3) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 4) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.tableId is not None: - oprot.writeFieldBegin("tableId", TType.I64, 5) + oprot.writeFieldBegin('tableId', TType.I64, 5) oprot.writeI64(self.tableId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9380,16 +8962,17 @@ def write(self, oprot): def validate(self): if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") + raise TProtocolException(message='Required field catName is unset!') if self.db_name is None: - raise TProtocolException(message="Required field db_name is unset!") + raise TProtocolException(message='Required field db_name is unset!') if self.tbl_name is None: - raise TProtocolException(message="Required field tbl_name is unset!") + raise TProtocolException(message='Required field tbl_name is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9398,25 +8981,20 @@ def __ne__(self, other): return not (self == other) -class UniqueConstraintsResponse: +class UniqueConstraintsResponse(object): """ Attributes: - uniqueConstraints """ + thrift_spec = None + - def __init__( - self, - uniqueConstraints=None, - ): + def __init__(self, uniqueConstraints = None,): self.uniqueConstraints = uniqueConstraints def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9427,11 +9005,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype400, _size397) = iprot.readListBegin() - for _i401 in range(_size397): - _elem402 = SQLUniqueConstraint() - _elem402.read(iprot) - self.uniqueConstraints.append(_elem402) + (_etype441, _size438) = iprot.readListBegin() + for _i442 in range(_size438): + _elem443 = SQLUniqueConstraint() + _elem443.read(iprot) + self.uniqueConstraints.append(_elem443) iprot.readListEnd() else: iprot.skip(ftype) @@ -9441,15 +9019,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("UniqueConstraintsResponse") + oprot.writeStructBegin('UniqueConstraintsResponse') if self.uniqueConstraints is not None: - oprot.writeFieldBegin("uniqueConstraints", TType.LIST, 1) + oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter403 in self.uniqueConstraints: - iter403.write(oprot) + for iter444 in self.uniqueConstraints: + iter444.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9457,12 +9036,13 @@ def write(self, oprot): def validate(self): if self.uniqueConstraints is None: - raise TProtocolException(message="Required field uniqueConstraints is unset!") + raise TProtocolException(message='Required field uniqueConstraints is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9471,7 +9051,7 @@ def __ne__(self, other): return not (self == other) -class NotNullConstraintsRequest: +class NotNullConstraintsRequest(object): """ Attributes: - catName @@ -9481,15 +9061,10 @@ class NotNullConstraintsRequest: - tableId """ + thrift_spec = None - def __init__( - self, - catName=None, - db_name=None, - tbl_name=None, - validWriteIdList=None, - tableId=-1, - ): + + def __init__(self, catName = None, db_name = None, tbl_name = None, validWriteIdList = None, tableId = -1,): self.catName = catName self.db_name = db_name self.tbl_name = tbl_name @@ -9497,11 +9072,7 @@ def __init__( self.tableId = tableId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9511,30 +9082,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -9548,28 +9111,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NotNullConstraintsRequest") + oprot.writeStructBegin('NotNullConstraintsRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 2) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 2) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 3) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 3) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 4) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.tableId is not None: - oprot.writeFieldBegin("tableId", TType.I64, 5) + oprot.writeFieldBegin('tableId', TType.I64, 5) oprot.writeI64(self.tableId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9577,16 +9141,17 @@ def write(self, oprot): def validate(self): if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") + raise TProtocolException(message='Required field catName is unset!') if self.db_name is None: - raise TProtocolException(message="Required field db_name is unset!") + raise TProtocolException(message='Required field db_name is unset!') if self.tbl_name is None: - raise TProtocolException(message="Required field tbl_name is unset!") + raise TProtocolException(message='Required field tbl_name is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9595,25 +9160,20 @@ def __ne__(self, other): return not (self == other) -class NotNullConstraintsResponse: +class NotNullConstraintsResponse(object): """ Attributes: - notNullConstraints """ + thrift_spec = None + - def __init__( - self, - notNullConstraints=None, - ): + def __init__(self, notNullConstraints = None,): self.notNullConstraints = notNullConstraints def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9624,11 +9184,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype407, _size404) = iprot.readListBegin() - for _i408 in range(_size404): - _elem409 = SQLNotNullConstraint() - _elem409.read(iprot) - self.notNullConstraints.append(_elem409) + (_etype448, _size445) = iprot.readListBegin() + for _i449 in range(_size445): + _elem450 = SQLNotNullConstraint() + _elem450.read(iprot) + self.notNullConstraints.append(_elem450) iprot.readListEnd() else: iprot.skip(ftype) @@ -9638,15 +9198,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NotNullConstraintsResponse") + oprot.writeStructBegin('NotNullConstraintsResponse') if self.notNullConstraints is not None: - oprot.writeFieldBegin("notNullConstraints", TType.LIST, 1) + oprot.writeFieldBegin('notNullConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter410 in self.notNullConstraints: - iter410.write(oprot) + for iter451 in self.notNullConstraints: + iter451.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9654,12 +9215,13 @@ def write(self, oprot): def validate(self): if self.notNullConstraints is None: - raise TProtocolException(message="Required field notNullConstraints is unset!") + raise TProtocolException(message='Required field notNullConstraints is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9668,7 +9230,7 @@ def __ne__(self, other): return not (self == other) -class DefaultConstraintsRequest: +class DefaultConstraintsRequest(object): """ Attributes: - catName @@ -9678,15 +9240,10 @@ class DefaultConstraintsRequest: - tableId """ + thrift_spec = None - def __init__( - self, - catName=None, - db_name=None, - tbl_name=None, - validWriteIdList=None, - tableId=-1, - ): + + def __init__(self, catName = None, db_name = None, tbl_name = None, validWriteIdList = None, tableId = -1,): self.catName = catName self.db_name = db_name self.tbl_name = tbl_name @@ -9694,11 +9251,7 @@ def __init__( self.tableId = tableId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9708,30 +9261,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -9745,28 +9290,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DefaultConstraintsRequest") + oprot.writeStructBegin('DefaultConstraintsRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 2) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 2) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 3) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 3) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 4) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.tableId is not None: - oprot.writeFieldBegin("tableId", TType.I64, 5) + oprot.writeFieldBegin('tableId', TType.I64, 5) oprot.writeI64(self.tableId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9774,16 +9320,17 @@ def write(self, oprot): def validate(self): if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") + raise TProtocolException(message='Required field catName is unset!') if self.db_name is None: - raise TProtocolException(message="Required field db_name is unset!") + raise TProtocolException(message='Required field db_name is unset!') if self.tbl_name is None: - raise TProtocolException(message="Required field tbl_name is unset!") + raise TProtocolException(message='Required field tbl_name is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9792,25 +9339,20 @@ def __ne__(self, other): return not (self == other) -class DefaultConstraintsResponse: +class DefaultConstraintsResponse(object): """ Attributes: - defaultConstraints """ + thrift_spec = None + - def __init__( - self, - defaultConstraints=None, - ): + def __init__(self, defaultConstraints = None,): self.defaultConstraints = defaultConstraints def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9821,11 +9363,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype414, _size411) = iprot.readListBegin() - for _i415 in range(_size411): - _elem416 = SQLDefaultConstraint() - _elem416.read(iprot) - self.defaultConstraints.append(_elem416) + (_etype455, _size452) = iprot.readListBegin() + for _i456 in range(_size452): + _elem457 = SQLDefaultConstraint() + _elem457.read(iprot) + self.defaultConstraints.append(_elem457) iprot.readListEnd() else: iprot.skip(ftype) @@ -9835,15 +9377,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DefaultConstraintsResponse") + oprot.writeStructBegin('DefaultConstraintsResponse') if self.defaultConstraints is not None: - oprot.writeFieldBegin("defaultConstraints", TType.LIST, 1) + oprot.writeFieldBegin('defaultConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) - for iter417 in self.defaultConstraints: - iter417.write(oprot) + for iter458 in self.defaultConstraints: + iter458.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9851,12 +9394,13 @@ def write(self, oprot): def validate(self): if self.defaultConstraints is None: - raise TProtocolException(message="Required field defaultConstraints is unset!") + raise TProtocolException(message='Required field defaultConstraints is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9865,7 +9409,7 @@ def __ne__(self, other): return not (self == other) -class CheckConstraintsRequest: +class CheckConstraintsRequest(object): """ Attributes: - catName @@ -9875,15 +9419,10 @@ class CheckConstraintsRequest: - tableId """ + thrift_spec = None - def __init__( - self, - catName=None, - db_name=None, - tbl_name=None, - validWriteIdList=None, - tableId=-1, - ): + + def __init__(self, catName = None, db_name = None, tbl_name = None, validWriteIdList = None, tableId = -1,): self.catName = catName self.db_name = db_name self.tbl_name = tbl_name @@ -9891,11 +9430,7 @@ def __init__( self.tableId = tableId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9905,30 +9440,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -9942,28 +9469,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CheckConstraintsRequest") + oprot.writeStructBegin('CheckConstraintsRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 2) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 2) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 3) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 3) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 4) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.tableId is not None: - oprot.writeFieldBegin("tableId", TType.I64, 5) + oprot.writeFieldBegin('tableId', TType.I64, 5) oprot.writeI64(self.tableId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9971,16 +9499,17 @@ def write(self, oprot): def validate(self): if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") + raise TProtocolException(message='Required field catName is unset!') if self.db_name is None: - raise TProtocolException(message="Required field db_name is unset!") + raise TProtocolException(message='Required field db_name is unset!') if self.tbl_name is None: - raise TProtocolException(message="Required field tbl_name is unset!") + raise TProtocolException(message='Required field tbl_name is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -9989,25 +9518,20 @@ def __ne__(self, other): return not (self == other) -class CheckConstraintsResponse: +class CheckConstraintsResponse(object): """ Attributes: - checkConstraints """ + thrift_spec = None + - def __init__( - self, - checkConstraints=None, - ): + def __init__(self, checkConstraints = None,): self.checkConstraints = checkConstraints def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10018,11 +9542,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.checkConstraints = [] - (_etype421, _size418) = iprot.readListBegin() - for _i422 in range(_size418): - _elem423 = SQLCheckConstraint() - _elem423.read(iprot) - self.checkConstraints.append(_elem423) + (_etype462, _size459) = iprot.readListBegin() + for _i463 in range(_size459): + _elem464 = SQLCheckConstraint() + _elem464.read(iprot) + self.checkConstraints.append(_elem464) iprot.readListEnd() else: iprot.skip(ftype) @@ -10032,15 +9556,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CheckConstraintsResponse") + oprot.writeStructBegin('CheckConstraintsResponse') if self.checkConstraints is not None: - oprot.writeFieldBegin("checkConstraints", TType.LIST, 1) + oprot.writeFieldBegin('checkConstraints', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) - for iter424 in self.checkConstraints: - iter424.write(oprot) + for iter465 in self.checkConstraints: + iter465.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10048,12 +9573,13 @@ def write(self, oprot): def validate(self): if self.checkConstraints is None: - raise TProtocolException(message="Required field checkConstraints is unset!") + raise TProtocolException(message='Required field checkConstraints is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10062,7 +9588,7 @@ def __ne__(self, other): return not (self == other) -class AllTableConstraintsRequest: +class AllTableConstraintsRequest(object): """ Attributes: - dbName @@ -10072,15 +9598,10 @@ class AllTableConstraintsRequest: - tableId """ + thrift_spec = None - def __init__( - self, - dbName=None, - tblName=None, - catName=None, - validWriteIdList=None, - tableId=-1, - ): + + def __init__(self, dbName = None, tblName = None, catName = None, validWriteIdList = None, tableId = -1,): self.dbName = dbName self.tblName = tblName self.catName = catName @@ -10088,11 +9609,7 @@ def __init__( self.tableId = tableId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10102,30 +9619,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -10139,28 +9648,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AllTableConstraintsRequest") + oprot.writeStructBegin('AllTableConstraintsRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 3) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 3) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 4) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.tableId is not None: - oprot.writeFieldBegin("tableId", TType.I64, 5) + oprot.writeFieldBegin('tableId', TType.I64, 5) oprot.writeI64(self.tableId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10168,16 +9678,17 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") + raise TProtocolException(message='Required field catName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10186,25 +9697,20 @@ def __ne__(self, other): return not (self == other) -class AllTableConstraintsResponse: +class AllTableConstraintsResponse(object): """ Attributes: - allTableConstraints """ + thrift_spec = None + - def __init__( - self, - allTableConstraints=None, - ): + def __init__(self, allTableConstraints = None,): self.allTableConstraints = allTableConstraints def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10224,12 +9730,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AllTableConstraintsResponse") + oprot.writeStructBegin('AllTableConstraintsResponse') if self.allTableConstraints is not None: - oprot.writeFieldBegin("allTableConstraints", TType.STRUCT, 1) + oprot.writeFieldBegin('allTableConstraints', TType.STRUCT, 1) self.allTableConstraints.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10237,12 +9744,13 @@ def write(self, oprot): def validate(self): if self.allTableConstraints is None: - raise TProtocolException(message="Required field allTableConstraints is unset!") + raise TProtocolException(message='Required field allTableConstraints is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10251,7 +9759,7 @@ def __ne__(self, other): return not (self == other) -class DropConstraintRequest: +class DropConstraintRequest(object): """ Attributes: - dbname @@ -10260,25 +9768,17 @@ class DropConstraintRequest: - catName """ + thrift_spec = None - def __init__( - self, - dbname=None, - tablename=None, - constraintname=None, - catName=None, - ): + + def __init__(self, dbname = None, tablename = None, constraintname = None, catName = None,): self.dbname = dbname self.tablename = tablename self.constraintname = constraintname self.catName = catName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10288,30 +9788,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.constraintname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.constraintname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -10320,41 +9812,43 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DropConstraintRequest") + oprot.writeStructBegin('DropConstraintRequest') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 2) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldBegin('tablename', TType.STRING, 2) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) oprot.writeFieldEnd() if self.constraintname is not None: - oprot.writeFieldBegin("constraintname", TType.STRING, 3) - oprot.writeString(self.constraintname.encode("utf-8") if sys.version_info[0] == 2 else self.constraintname) + oprot.writeFieldBegin('constraintname', TType.STRING, 3) + oprot.writeString(self.constraintname.encode('utf-8') if sys.version_info[0] == 2 else self.constraintname) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 4) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 4) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbname is None: - raise TProtocolException(message="Required field dbname is unset!") + raise TProtocolException(message='Required field dbname is unset!') if self.tablename is None: - raise TProtocolException(message="Required field tablename is unset!") + raise TProtocolException(message='Required field tablename is unset!') if self.constraintname is None: - raise TProtocolException(message="Required field constraintname is unset!") + raise TProtocolException(message='Required field constraintname is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10363,25 +9857,20 @@ def __ne__(self, other): return not (self == other) -class AddPrimaryKeyRequest: +class AddPrimaryKeyRequest(object): """ Attributes: - primaryKeyCols """ + thrift_spec = None + - def __init__( - self, - primaryKeyCols=None, - ): + def __init__(self, primaryKeyCols = None,): self.primaryKeyCols = primaryKeyCols def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10392,11 +9881,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.primaryKeyCols = [] - (_etype428, _size425) = iprot.readListBegin() - for _i429 in range(_size425): - _elem430 = SQLPrimaryKey() - _elem430.read(iprot) - self.primaryKeyCols.append(_elem430) + (_etype469, _size466) = iprot.readListBegin() + for _i470 in range(_size466): + _elem471 = SQLPrimaryKey() + _elem471.read(iprot) + self.primaryKeyCols.append(_elem471) iprot.readListEnd() else: iprot.skip(ftype) @@ -10406,15 +9895,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddPrimaryKeyRequest") + oprot.writeStructBegin('AddPrimaryKeyRequest') if self.primaryKeyCols is not None: - oprot.writeFieldBegin("primaryKeyCols", TType.LIST, 1) + oprot.writeFieldBegin('primaryKeyCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeyCols)) - for iter431 in self.primaryKeyCols: - iter431.write(oprot) + for iter472 in self.primaryKeyCols: + iter472.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10422,12 +9912,13 @@ def write(self, oprot): def validate(self): if self.primaryKeyCols is None: - raise TProtocolException(message="Required field primaryKeyCols is unset!") + raise TProtocolException(message='Required field primaryKeyCols is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10436,25 +9927,20 @@ def __ne__(self, other): return not (self == other) -class AddForeignKeyRequest: +class AddForeignKeyRequest(object): """ Attributes: - foreignKeyCols """ + thrift_spec = None - def __init__( - self, - foreignKeyCols=None, - ): + + def __init__(self, foreignKeyCols = None,): self.foreignKeyCols = foreignKeyCols def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10465,11 +9951,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.foreignKeyCols = [] - (_etype435, _size432) = iprot.readListBegin() - for _i436 in range(_size432): - _elem437 = SQLForeignKey() - _elem437.read(iprot) - self.foreignKeyCols.append(_elem437) + (_etype476, _size473) = iprot.readListBegin() + for _i477 in range(_size473): + _elem478 = SQLForeignKey() + _elem478.read(iprot) + self.foreignKeyCols.append(_elem478) iprot.readListEnd() else: iprot.skip(ftype) @@ -10479,15 +9965,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddForeignKeyRequest") + oprot.writeStructBegin('AddForeignKeyRequest') if self.foreignKeyCols is not None: - oprot.writeFieldBegin("foreignKeyCols", TType.LIST, 1) + oprot.writeFieldBegin('foreignKeyCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeyCols)) - for iter438 in self.foreignKeyCols: - iter438.write(oprot) + for iter479 in self.foreignKeyCols: + iter479.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10495,12 +9982,13 @@ def write(self, oprot): def validate(self): if self.foreignKeyCols is None: - raise TProtocolException(message="Required field foreignKeyCols is unset!") + raise TProtocolException(message='Required field foreignKeyCols is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10509,25 +9997,20 @@ def __ne__(self, other): return not (self == other) -class AddUniqueConstraintRequest: +class AddUniqueConstraintRequest(object): """ Attributes: - uniqueConstraintCols """ + thrift_spec = None + - def __init__( - self, - uniqueConstraintCols=None, - ): + def __init__(self, uniqueConstraintCols = None,): self.uniqueConstraintCols = uniqueConstraintCols def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10538,11 +10021,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.uniqueConstraintCols = [] - (_etype442, _size439) = iprot.readListBegin() - for _i443 in range(_size439): - _elem444 = SQLUniqueConstraint() - _elem444.read(iprot) - self.uniqueConstraintCols.append(_elem444) + (_etype483, _size480) = iprot.readListBegin() + for _i484 in range(_size480): + _elem485 = SQLUniqueConstraint() + _elem485.read(iprot) + self.uniqueConstraintCols.append(_elem485) iprot.readListEnd() else: iprot.skip(ftype) @@ -10552,15 +10035,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddUniqueConstraintRequest") + oprot.writeStructBegin('AddUniqueConstraintRequest') if self.uniqueConstraintCols is not None: - oprot.writeFieldBegin("uniqueConstraintCols", TType.LIST, 1) + oprot.writeFieldBegin('uniqueConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraintCols)) - for iter445 in self.uniqueConstraintCols: - iter445.write(oprot) + for iter486 in self.uniqueConstraintCols: + iter486.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10568,12 +10052,13 @@ def write(self, oprot): def validate(self): if self.uniqueConstraintCols is None: - raise TProtocolException(message="Required field uniqueConstraintCols is unset!") + raise TProtocolException(message='Required field uniqueConstraintCols is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10582,25 +10067,20 @@ def __ne__(self, other): return not (self == other) -class AddNotNullConstraintRequest: +class AddNotNullConstraintRequest(object): """ Attributes: - notNullConstraintCols """ + thrift_spec = None - def __init__( - self, - notNullConstraintCols=None, - ): + + def __init__(self, notNullConstraintCols = None,): self.notNullConstraintCols = notNullConstraintCols def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10611,11 +10091,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.notNullConstraintCols = [] - (_etype449, _size446) = iprot.readListBegin() - for _i450 in range(_size446): - _elem451 = SQLNotNullConstraint() - _elem451.read(iprot) - self.notNullConstraintCols.append(_elem451) + (_etype490, _size487) = iprot.readListBegin() + for _i491 in range(_size487): + _elem492 = SQLNotNullConstraint() + _elem492.read(iprot) + self.notNullConstraintCols.append(_elem492) iprot.readListEnd() else: iprot.skip(ftype) @@ -10625,15 +10105,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddNotNullConstraintRequest") + oprot.writeStructBegin('AddNotNullConstraintRequest') if self.notNullConstraintCols is not None: - oprot.writeFieldBegin("notNullConstraintCols", TType.LIST, 1) + oprot.writeFieldBegin('notNullConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraintCols)) - for iter452 in self.notNullConstraintCols: - iter452.write(oprot) + for iter493 in self.notNullConstraintCols: + iter493.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10641,12 +10122,13 @@ def write(self, oprot): def validate(self): if self.notNullConstraintCols is None: - raise TProtocolException(message="Required field notNullConstraintCols is unset!") + raise TProtocolException(message='Required field notNullConstraintCols is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10655,25 +10137,20 @@ def __ne__(self, other): return not (self == other) -class AddDefaultConstraintRequest: +class AddDefaultConstraintRequest(object): """ Attributes: - defaultConstraintCols """ + thrift_spec = None + - def __init__( - self, - defaultConstraintCols=None, - ): + def __init__(self, defaultConstraintCols = None,): self.defaultConstraintCols = defaultConstraintCols def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10684,11 +10161,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.defaultConstraintCols = [] - (_etype456, _size453) = iprot.readListBegin() - for _i457 in range(_size453): - _elem458 = SQLDefaultConstraint() - _elem458.read(iprot) - self.defaultConstraintCols.append(_elem458) + (_etype497, _size494) = iprot.readListBegin() + for _i498 in range(_size494): + _elem499 = SQLDefaultConstraint() + _elem499.read(iprot) + self.defaultConstraintCols.append(_elem499) iprot.readListEnd() else: iprot.skip(ftype) @@ -10698,15 +10175,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddDefaultConstraintRequest") + oprot.writeStructBegin('AddDefaultConstraintRequest') if self.defaultConstraintCols is not None: - oprot.writeFieldBegin("defaultConstraintCols", TType.LIST, 1) + oprot.writeFieldBegin('defaultConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraintCols)) - for iter459 in self.defaultConstraintCols: - iter459.write(oprot) + for iter500 in self.defaultConstraintCols: + iter500.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10714,12 +10192,13 @@ def write(self, oprot): def validate(self): if self.defaultConstraintCols is None: - raise TProtocolException(message="Required field defaultConstraintCols is unset!") + raise TProtocolException(message='Required field defaultConstraintCols is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10728,25 +10207,20 @@ def __ne__(self, other): return not (self == other) -class AddCheckConstraintRequest: +class AddCheckConstraintRequest(object): """ Attributes: - checkConstraintCols """ + thrift_spec = None - def __init__( - self, - checkConstraintCols=None, - ): + + def __init__(self, checkConstraintCols = None,): self.checkConstraintCols = checkConstraintCols def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10757,11 +10231,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.checkConstraintCols = [] - (_etype463, _size460) = iprot.readListBegin() - for _i464 in range(_size460): - _elem465 = SQLCheckConstraint() - _elem465.read(iprot) - self.checkConstraintCols.append(_elem465) + (_etype504, _size501) = iprot.readListBegin() + for _i505 in range(_size501): + _elem506 = SQLCheckConstraint() + _elem506.read(iprot) + self.checkConstraintCols.append(_elem506) iprot.readListEnd() else: iprot.skip(ftype) @@ -10771,15 +10245,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddCheckConstraintRequest") + oprot.writeStructBegin('AddCheckConstraintRequest') if self.checkConstraintCols is not None: - oprot.writeFieldBegin("checkConstraintCols", TType.LIST, 1) + oprot.writeFieldBegin('checkConstraintCols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraintCols)) - for iter466 in self.checkConstraintCols: - iter466.write(oprot) + for iter507 in self.checkConstraintCols: + iter507.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10787,12 +10262,13 @@ def write(self, oprot): def validate(self): if self.checkConstraintCols is None: - raise TProtocolException(message="Required field checkConstraintCols is unset!") + raise TProtocolException(message='Required field checkConstraintCols is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10801,28 +10277,22 @@ def __ne__(self, other): return not (self == other) -class PartitionsByExprResult: +class PartitionsByExprResult(object): """ Attributes: - partitions - hasUnknownPartitions """ + thrift_spec = None + - def __init__( - self, - partitions=None, - hasUnknownPartitions=None, - ): + def __init__(self, partitions = None, hasUnknownPartitions = None,): self.partitions = partitions self.hasUnknownPartitions = hasUnknownPartitions def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10833,11 +10303,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype470, _size467) = iprot.readListBegin() - for _i471 in range(_size467): - _elem472 = Partition() - _elem472.read(iprot) - self.partitions.append(_elem472) + (_etype511, _size508) = iprot.readListBegin() + for _i512 in range(_size508): + _elem513 = Partition() + _elem513.read(iprot) + self.partitions.append(_elem513) iprot.readListEnd() else: iprot.skip(ftype) @@ -10852,19 +10322,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionsByExprResult") + oprot.writeStructBegin('PartitionsByExprResult') if self.partitions is not None: - oprot.writeFieldBegin("partitions", TType.LIST, 1) + oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter473 in self.partitions: - iter473.write(oprot) + for iter514 in self.partitions: + iter514.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: - oprot.writeFieldBegin("hasUnknownPartitions", TType.BOOL, 2) + oprot.writeFieldBegin('hasUnknownPartitions', TType.BOOL, 2) oprot.writeBool(self.hasUnknownPartitions) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10872,14 +10343,15 @@ def write(self, oprot): def validate(self): if self.partitions is None: - raise TProtocolException(message="Required field partitions is unset!") + raise TProtocolException(message='Required field partitions is unset!') if self.hasUnknownPartitions is None: - raise TProtocolException(message="Required field hasUnknownPartitions is unset!") + raise TProtocolException(message='Required field hasUnknownPartitions is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10888,28 +10360,22 @@ def __ne__(self, other): return not (self == other) -class PartitionsSpecByExprResult: +class PartitionsSpecByExprResult(object): """ Attributes: - partitionsSpec - hasUnknownPartitions """ + thrift_spec = None - def __init__( - self, - partitionsSpec=None, - hasUnknownPartitions=None, - ): + + def __init__(self, partitionsSpec = None, hasUnknownPartitions = None,): self.partitionsSpec = partitionsSpec self.hasUnknownPartitions = hasUnknownPartitions def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10920,11 +10386,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionsSpec = [] - (_etype477, _size474) = iprot.readListBegin() - for _i478 in range(_size474): - _elem479 = PartitionSpec() - _elem479.read(iprot) - self.partitionsSpec.append(_elem479) + (_etype518, _size515) = iprot.readListBegin() + for _i519 in range(_size515): + _elem520 = PartitionSpec() + _elem520.read(iprot) + self.partitionsSpec.append(_elem520) iprot.readListEnd() else: iprot.skip(ftype) @@ -10939,19 +10405,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionsSpecByExprResult") + oprot.writeStructBegin('PartitionsSpecByExprResult') if self.partitionsSpec is not None: - oprot.writeFieldBegin("partitionsSpec", TType.LIST, 1) + oprot.writeFieldBegin('partitionsSpec', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitionsSpec)) - for iter480 in self.partitionsSpec: - iter480.write(oprot) + for iter521 in self.partitionsSpec: + iter521.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: - oprot.writeFieldBegin("hasUnknownPartitions", TType.BOOL, 2) + oprot.writeFieldBegin('hasUnknownPartitions', TType.BOOL, 2) oprot.writeBool(self.hasUnknownPartitions) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10959,14 +10426,15 @@ def write(self, oprot): def validate(self): if self.partitionsSpec is None: - raise TProtocolException(message="Required field partitionsSpec is unset!") + raise TProtocolException(message='Required field partitionsSpec is unset!') if self.hasUnknownPartitions is None: - raise TProtocolException(message="Required field hasUnknownPartitions is unset!") + raise TProtocolException(message='Required field hasUnknownPartitions is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -10975,7 +10443,7 @@ def __ne__(self, other): return not (self == other) -class PartitionsByExprRequest: +class PartitionsByExprRequest(object): """ Attributes: - dbName @@ -10987,21 +10455,15 @@ class PartitionsByExprRequest: - order - validWriteIdList - id + - skipColumnSchemaForPartition + - includeParamKeyPattern + - excludeParamKeyPattern """ + thrift_spec = None + - def __init__( - self, - dbName=None, - tblName=None, - expr=None, - defaultPartitionName=None, - maxParts=-1, - catName=None, - order=None, - validWriteIdList=None, - id=-1, - ): + def __init__(self, dbName = None, tblName = None, expr = None, defaultPartitionName = None, maxParts = -1, catName = None, order = None, validWriteIdList = None, id = -1, skipColumnSchemaForPartition = None, includeParamKeyPattern = None, excludeParamKeyPattern = None,): self.dbName = dbName self.tblName = tblName self.expr = expr @@ -11011,13 +10473,12 @@ def __init__( self.order = order self.validWriteIdList = validWriteIdList self.id = id + self.skipColumnSchemaForPartition = skipColumnSchemaForPartition + self.includeParamKeyPattern = includeParamKeyPattern + self.excludeParamKeyPattern = excludeParamKeyPattern def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11027,16 +10488,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -11046,9 +10503,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.defaultPartitionName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.defaultPartitionName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -11058,23 +10513,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.order = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.order = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: @@ -11082,69 +10531,96 @@ def read(self, iprot): self.id = iprot.readI64() else: iprot.skip(ftype) + elif fid == 10: + if ftype == TType.BOOL: + self.skipColumnSchemaForPartition = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.includeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.excludeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionsByExprRequest") + oprot.writeStructBegin('PartitionsByExprRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.expr is not None: - oprot.writeFieldBegin("expr", TType.STRING, 3) + oprot.writeFieldBegin('expr', TType.STRING, 3) oprot.writeBinary(self.expr) oprot.writeFieldEnd() if self.defaultPartitionName is not None: - oprot.writeFieldBegin("defaultPartitionName", TType.STRING, 4) - oprot.writeString( - self.defaultPartitionName.encode("utf-8") if sys.version_info[0] == 2 else self.defaultPartitionName - ) + oprot.writeFieldBegin('defaultPartitionName', TType.STRING, 4) + oprot.writeString(self.defaultPartitionName.encode('utf-8') if sys.version_info[0] == 2 else self.defaultPartitionName) oprot.writeFieldEnd() if self.maxParts is not None: - oprot.writeFieldBegin("maxParts", TType.I16, 5) + oprot.writeFieldBegin('maxParts', TType.I16, 5) oprot.writeI16(self.maxParts) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 6) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 6) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.order is not None: - oprot.writeFieldBegin("order", TType.STRING, 7) - oprot.writeString(self.order.encode("utf-8") if sys.version_info[0] == 2 else self.order) + oprot.writeFieldBegin('order', TType.STRING, 7) + oprot.writeString(self.order.encode('utf-8') if sys.version_info[0] == 2 else self.order) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 8) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 8) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 9) + oprot.writeFieldBegin('id', TType.I64, 9) oprot.writeI64(self.id) oprot.writeFieldEnd() + if self.skipColumnSchemaForPartition is not None: + oprot.writeFieldBegin('skipColumnSchemaForPartition', TType.BOOL, 10) + oprot.writeBool(self.skipColumnSchemaForPartition) + oprot.writeFieldEnd() + if self.includeParamKeyPattern is not None: + oprot.writeFieldBegin('includeParamKeyPattern', TType.STRING, 11) + oprot.writeString(self.includeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.includeParamKeyPattern) + oprot.writeFieldEnd() + if self.excludeParamKeyPattern is not None: + oprot.writeFieldBegin('excludeParamKeyPattern', TType.STRING, 12) + oprot.writeString(self.excludeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.excludeParamKeyPattern) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.expr is None: - raise TProtocolException(message="Required field expr is unset!") + raise TProtocolException(message='Required field expr is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -11153,28 +10629,22 @@ def __ne__(self, other): return not (self == other) -class TableStatsResult: +class TableStatsResult(object): """ Attributes: - tableStats - isStatsCompliant """ + thrift_spec = None + - def __init__( - self, - tableStats=None, - isStatsCompliant=None, - ): + def __init__(self, tableStats = None, isStatsCompliant = None,): self.tableStats = tableStats self.isStatsCompliant = isStatsCompliant def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11185,11 +10655,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tableStats = [] - (_etype484, _size481) = iprot.readListBegin() - for _i485 in range(_size481): - _elem486 = ColumnStatisticsObj() - _elem486.read(iprot) - self.tableStats.append(_elem486) + (_etype525, _size522) = iprot.readListBegin() + for _i526 in range(_size522): + _elem527 = ColumnStatisticsObj() + _elem527.read(iprot) + self.tableStats.append(_elem527) iprot.readListEnd() else: iprot.skip(ftype) @@ -11204,19 +10674,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TableStatsResult") + oprot.writeStructBegin('TableStatsResult') if self.tableStats is not None: - oprot.writeFieldBegin("tableStats", TType.LIST, 1) + oprot.writeFieldBegin('tableStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tableStats)) - for iter487 in self.tableStats: - iter487.write(oprot) + for iter528 in self.tableStats: + iter528.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.isStatsCompliant is not None: - oprot.writeFieldBegin("isStatsCompliant", TType.BOOL, 2) + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 2) oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11224,12 +10695,13 @@ def write(self, oprot): def validate(self): if self.tableStats is None: - raise TProtocolException(message="Required field tableStats is unset!") + raise TProtocolException(message='Required field tableStats is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -11238,28 +10710,22 @@ def __ne__(self, other): return not (self == other) -class PartitionsStatsResult: +class PartitionsStatsResult(object): """ Attributes: - partStats - isStatsCompliant """ + thrift_spec = None - def __init__( - self, - partStats=None, - isStatsCompliant=None, - ): + + def __init__(self, partStats = None, isStatsCompliant = None,): self.partStats = partStats self.isStatsCompliant = isStatsCompliant def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11270,21 +10736,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype489, _vtype490, _size488) = iprot.readMapBegin() - for _i492 in range(_size488): - _key493 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val494 = [] - (_etype498, _size495) = iprot.readListBegin() - for _i499 in range(_size495): - _elem500 = ColumnStatisticsObj() - _elem500.read(iprot) - _val494.append(_elem500) + (_ktype530, _vtype531, _size529) = iprot.readMapBegin() + for _i533 in range(_size529): + _key534 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val535 = [] + (_etype539, _size536) = iprot.readListBegin() + for _i540 in range(_size536): + _elem541 = ColumnStatisticsObj() + _elem541.read(iprot) + _val535.append(_elem541) iprot.readListEnd() - self.partStats[_key493] = _val494 + self.partStats[_key534] = _val535 iprot.readMapEnd() else: iprot.skip(ftype) @@ -11299,23 +10761,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionsStatsResult") + oprot.writeStructBegin('PartitionsStatsResult') if self.partStats is not None: - oprot.writeFieldBegin("partStats", TType.MAP, 1) + oprot.writeFieldBegin('partStats', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.partStats)) - for kiter501, viter502 in self.partStats.items(): - oprot.writeString(kiter501.encode("utf-8") if sys.version_info[0] == 2 else kiter501) - oprot.writeListBegin(TType.STRUCT, len(viter502)) - for iter503 in viter502: - iter503.write(oprot) + for kiter542, viter543 in self.partStats.items(): + oprot.writeString(kiter542.encode('utf-8') if sys.version_info[0] == 2 else kiter542) + oprot.writeListBegin(TType.STRUCT, len(viter543)) + for iter544 in viter543: + iter544.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() if self.isStatsCompliant is not None: - oprot.writeFieldBegin("isStatsCompliant", TType.BOOL, 2) + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 2) oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11323,12 +10786,13 @@ def write(self, oprot): def validate(self): if self.partStats is None: - raise TProtocolException(message="Required field partStats is unset!") + raise TProtocolException(message='Required field partStats is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -11337,7 +10801,7 @@ def __ne__(self, other): return not (self == other) -class TableStatsRequest: +class TableStatsRequest(object): """ Attributes: - dbName @@ -11349,17 +10813,10 @@ class TableStatsRequest: - id """ + thrift_spec = None + - def __init__( - self, - dbName=None, - tblName=None, - colNames=None, - catName=None, - validWriteIdList=None, - engine=None, - id=-1, - ): + def __init__(self, dbName = None, tblName = None, colNames = None, catName = None, validWriteIdList = None, engine = "hive", id = -1,): self.dbName = dbName self.tblName = tblName self.colNames = colNames @@ -11369,11 +10826,7 @@ def __init__( self.id = id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11383,51 +10836,37 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype507, _size504) = iprot.readListBegin() - for _i508 in range(_size504): - _elem509 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.colNames.append(_elem509) + (_etype548, _size545) = iprot.readListBegin() + for _i549 in range(_size545): + _elem550 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.colNames.append(_elem550) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.engine = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.engine = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -11441,39 +10880,40 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TableStatsRequest") + oprot.writeStructBegin('TableStatsRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.colNames is not None: - oprot.writeFieldBegin("colNames", TType.LIST, 3) + oprot.writeFieldBegin('colNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.colNames)) - for iter510 in self.colNames: - oprot.writeString(iter510.encode("utf-8") if sys.version_info[0] == 2 else iter510) + for iter551 in self.colNames: + oprot.writeString(iter551.encode('utf-8') if sys.version_info[0] == 2 else iter551) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 4) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 4) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 5) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 5) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.engine is not None: - oprot.writeFieldBegin("engine", TType.STRING, 6) - oprot.writeString(self.engine.encode("utf-8") if sys.version_info[0] == 2 else self.engine) + oprot.writeFieldBegin('engine', TType.STRING, 6) + oprot.writeString(self.engine.encode('utf-8') if sys.version_info[0] == 2 else self.engine) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 7) + oprot.writeFieldBegin('id', TType.I64, 7) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11481,18 +10921,17 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.colNames is None: - raise TProtocolException(message="Required field colNames is unset!") - if self.engine is None: - raise TProtocolException(message="Required field engine is unset!") + raise TProtocolException(message='Required field colNames is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -11501,7 +10940,7 @@ def __ne__(self, other): return not (self == other) -class PartitionsStatsRequest: +class PartitionsStatsRequest(object): """ Attributes: - dbName @@ -11513,17 +10952,10 @@ class PartitionsStatsRequest: - engine """ + thrift_spec = None - def __init__( - self, - dbName=None, - tblName=None, - colNames=None, - partNames=None, - catName=None, - validWriteIdList=None, - engine=None, - ): + + def __init__(self, dbName = None, tblName = None, colNames = None, partNames = None, catName = None, validWriteIdList = None, engine = "hive",): self.dbName = dbName self.tblName = tblName self.colNames = colNames @@ -11533,11 +10965,7 @@ def __init__( self.engine = engine def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11547,65 +10975,47 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype514, _size511) = iprot.readListBegin() - for _i515 in range(_size511): - _elem516 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.colNames.append(_elem516) + (_etype555, _size552) = iprot.readListBegin() + for _i556 in range(_size552): + _elem557 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.colNames.append(_elem557) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partNames = [] - (_etype520, _size517) = iprot.readListBegin() - for _i521 in range(_size517): - _elem522 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partNames.append(_elem522) + (_etype561, _size558) = iprot.readListBegin() + for _i562 in range(_size558): + _elem563 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partNames.append(_elem563) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.engine = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.engine = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -11614,63 +11024,63 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionsStatsRequest") + oprot.writeStructBegin('PartitionsStatsRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.colNames is not None: - oprot.writeFieldBegin("colNames", TType.LIST, 3) + oprot.writeFieldBegin('colNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.colNames)) - for iter523 in self.colNames: - oprot.writeString(iter523.encode("utf-8") if sys.version_info[0] == 2 else iter523) + for iter564 in self.colNames: + oprot.writeString(iter564.encode('utf-8') if sys.version_info[0] == 2 else iter564) oprot.writeListEnd() oprot.writeFieldEnd() if self.partNames is not None: - oprot.writeFieldBegin("partNames", TType.LIST, 4) + oprot.writeFieldBegin('partNames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter524 in self.partNames: - oprot.writeString(iter524.encode("utf-8") if sys.version_info[0] == 2 else iter524) + for iter565 in self.partNames: + oprot.writeString(iter565.encode('utf-8') if sys.version_info[0] == 2 else iter565) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 5) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 5) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 6) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 6) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.engine is not None: - oprot.writeFieldBegin("engine", TType.STRING, 7) - oprot.writeString(self.engine.encode("utf-8") if sys.version_info[0] == 2 else self.engine) + oprot.writeFieldBegin('engine', TType.STRING, 7) + oprot.writeString(self.engine.encode('utf-8') if sys.version_info[0] == 2 else self.engine) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.colNames is None: - raise TProtocolException(message="Required field colNames is unset!") + raise TProtocolException(message='Required field colNames is unset!') if self.partNames is None: - raise TProtocolException(message="Required field partNames is unset!") - if self.engine is None: - raise TProtocolException(message="Required field engine is unset!") + raise TProtocolException(message='Required field partNames is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -11679,28 +11089,24 @@ def __ne__(self, other): return not (self == other) -class AddPartitionsResult: +class AddPartitionsResult(object): """ Attributes: - partitions - isStatsCompliant + - partitionColSchema """ + thrift_spec = None + - def __init__( - self, - partitions=None, - isStatsCompliant=None, - ): + def __init__(self, partitions = None, isStatsCompliant = None, partitionColSchema = None,): self.partitions = partitions self.isStatsCompliant = isStatsCompliant + self.partitionColSchema = partitionColSchema def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11711,11 +11117,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype528, _size525) = iprot.readListBegin() - for _i529 in range(_size525): - _elem530 = Partition() - _elem530.read(iprot) - self.partitions.append(_elem530) + (_etype569, _size566) = iprot.readListBegin() + for _i570 in range(_size566): + _elem571 = Partition() + _elem571.read(iprot) + self.partitions.append(_elem571) iprot.readListEnd() else: iprot.skip(ftype) @@ -11724,27 +11130,46 @@ def read(self, iprot): self.isStatsCompliant = iprot.readBool() else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.partitionColSchema = [] + (_etype575, _size572) = iprot.readListBegin() + for _i576 in range(_size572): + _elem577 = FieldSchema() + _elem577.read(iprot) + self.partitionColSchema.append(_elem577) + iprot.readListEnd() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddPartitionsResult") + oprot.writeStructBegin('AddPartitionsResult') if self.partitions is not None: - oprot.writeFieldBegin("partitions", TType.LIST, 1) + oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter531 in self.partitions: - iter531.write(oprot) + for iter578 in self.partitions: + iter578.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.isStatsCompliant is not None: - oprot.writeFieldBegin("isStatsCompliant", TType.BOOL, 2) + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 2) oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() + if self.partitionColSchema is not None: + oprot.writeFieldBegin('partitionColSchema', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.partitionColSchema)) + for iter579 in self.partitionColSchema: + iter579.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11752,8 +11177,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -11762,7 +11188,7 @@ def __ne__(self, other): return not (self == other) -class AddPartitionsRequest: +class AddPartitionsRequest(object): """ Attributes: - dbName @@ -11772,19 +11198,15 @@ class AddPartitionsRequest: - needResult - catName - validWriteIdList + - skipColumnSchemaForPartition + - partitionColSchema + - environmentContext """ + thrift_spec = None + - def __init__( - self, - dbName=None, - tblName=None, - parts=None, - ifNotExists=None, - needResult=True, - catName=None, - validWriteIdList=None, - ): + def __init__(self, dbName = None, tblName = None, parts = None, ifNotExists = None, needResult = True, catName = None, validWriteIdList = None, skipColumnSchemaForPartition = None, partitionColSchema = None, environmentContext = None,): self.dbName = dbName self.tblName = tblName self.parts = parts @@ -11792,13 +11214,12 @@ def __init__( self.needResult = needResult self.catName = catName self.validWriteIdList = validWriteIdList + self.skipColumnSchemaForPartition = skipColumnSchemaForPartition + self.partitionColSchema = partitionColSchema + self.environmentContext = environmentContext def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11808,26 +11229,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.parts = [] - (_etype535, _size532) = iprot.readListBegin() - for _i536 in range(_size532): - _elem537 = Partition() - _elem537.read(iprot) - self.parts.append(_elem537) + (_etype583, _size580) = iprot.readListBegin() + for _i584 in range(_size580): + _elem585 = Partition() + _elem585.read(iprot) + self.parts.append(_elem585) iprot.readListEnd() else: iprot.skip(ftype) @@ -11843,76 +11260,111 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - + elif fid == 8: + if ftype == TType.BOOL: + self.skipColumnSchemaForPartition = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.LIST: + self.partitionColSchema = [] + (_etype589, _size586) = iprot.readListBegin() + for _i590 in range(_size586): + _elem591 = FieldSchema() + _elem591.read(iprot) + self.partitionColSchema.append(_elem591) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRUCT: + self.environmentContext = EnvironmentContext() + self.environmentContext.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddPartitionsRequest") + oprot.writeStructBegin('AddPartitionsRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.parts is not None: - oprot.writeFieldBegin("parts", TType.LIST, 3) + oprot.writeFieldBegin('parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.parts)) - for iter538 in self.parts: - iter538.write(oprot) + for iter592 in self.parts: + iter592.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: - oprot.writeFieldBegin("ifNotExists", TType.BOOL, 4) + oprot.writeFieldBegin('ifNotExists', TType.BOOL, 4) oprot.writeBool(self.ifNotExists) oprot.writeFieldEnd() if self.needResult is not None: - oprot.writeFieldBegin("needResult", TType.BOOL, 5) + oprot.writeFieldBegin('needResult', TType.BOOL, 5) oprot.writeBool(self.needResult) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 6) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 6) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 7) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 7) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldEnd() + if self.skipColumnSchemaForPartition is not None: + oprot.writeFieldBegin('skipColumnSchemaForPartition', TType.BOOL, 8) + oprot.writeBool(self.skipColumnSchemaForPartition) + oprot.writeFieldEnd() + if self.partitionColSchema is not None: + oprot.writeFieldBegin('partitionColSchema', TType.LIST, 9) + oprot.writeListBegin(TType.STRUCT, len(self.partitionColSchema)) + for iter593 in self.partitionColSchema: + iter593.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.environmentContext is not None: + oprot.writeFieldBegin('environmentContext', TType.STRUCT, 10) + self.environmentContext.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.parts is None: - raise TProtocolException(message="Required field parts is unset!") + raise TProtocolException(message='Required field parts is unset!') if self.ifNotExists is None: - raise TProtocolException(message="Required field ifNotExists is unset!") + raise TProtocolException(message='Required field ifNotExists is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -11921,25 +11373,20 @@ def __ne__(self, other): return not (self == other) -class DropPartitionsResult: +class DropPartitionsResult(object): """ Attributes: - partitions """ + thrift_spec = None - def __init__( - self, - partitions=None, - ): + + def __init__(self, partitions = None,): self.partitions = partitions def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11950,11 +11397,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype542, _size539) = iprot.readListBegin() - for _i543 in range(_size539): - _elem544 = Partition() - _elem544.read(iprot) - self.partitions.append(_elem544) + (_etype597, _size594) = iprot.readListBegin() + for _i598 in range(_size594): + _elem599 = Partition() + _elem599.read(iprot) + self.partitions.append(_elem599) iprot.readListEnd() else: iprot.skip(ftype) @@ -11964,15 +11411,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DropPartitionsResult") + oprot.writeStructBegin('DropPartitionsResult') if self.partitions is not None: - oprot.writeFieldBegin("partitions", TType.LIST, 1) + oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter545 in self.partitions: - iter545.write(oprot) + for iter600 in self.partitions: + iter600.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11982,8 +11430,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -11992,28 +11441,22 @@ def __ne__(self, other): return not (self == other) -class DropPartitionsExpr: +class DropPartitionsExpr(object): """ Attributes: - expr - partArchiveLevel """ + thrift_spec = None + - def __init__( - self, - expr=None, - partArchiveLevel=None, - ): + def __init__(self, expr = None, partArchiveLevel = None,): self.expr = expr self.partArchiveLevel = partArchiveLevel def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12037,16 +11480,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DropPartitionsExpr") + oprot.writeStructBegin('DropPartitionsExpr') if self.expr is not None: - oprot.writeFieldBegin("expr", TType.STRING, 1) + oprot.writeFieldBegin('expr', TType.STRING, 1) oprot.writeBinary(self.expr) oprot.writeFieldEnd() if self.partArchiveLevel is not None: - oprot.writeFieldBegin("partArchiveLevel", TType.I32, 2) + oprot.writeFieldBegin('partArchiveLevel', TType.I32, 2) oprot.writeI32(self.partArchiveLevel) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12054,12 +11498,13 @@ def write(self, oprot): def validate(self): if self.expr is None: - raise TProtocolException(message="Required field expr is unset!") + raise TProtocolException(message='Required field expr is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -12068,28 +11513,22 @@ def __ne__(self, other): return not (self == other) -class RequestPartsSpec: +class RequestPartsSpec(object): """ Attributes: - names - exprs """ + thrift_spec = None - def __init__( - self, - names=None, - exprs=None, - ): + + def __init__(self, names = None, exprs = None,): self.names = names self.exprs = exprs def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12100,25 +11539,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype549, _size546) = iprot.readListBegin() - for _i550 in range(_size546): - _elem551 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.names.append(_elem551) + (_etype604, _size601) = iprot.readListBegin() + for _i605 in range(_size601): + _elem606 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.names.append(_elem606) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.exprs = [] - (_etype555, _size552) = iprot.readListBegin() - for _i556 in range(_size552): - _elem557 = DropPartitionsExpr() - _elem557.read(iprot) - self.exprs.append(_elem557) + (_etype610, _size607) = iprot.readListBegin() + for _i611 in range(_size607): + _elem612 = DropPartitionsExpr() + _elem612.read(iprot) + self.exprs.append(_elem612) iprot.readListEnd() else: iprot.skip(ftype) @@ -12128,22 +11563,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("RequestPartsSpec") + oprot.writeStructBegin('RequestPartsSpec') if self.names is not None: - oprot.writeFieldBegin("names", TType.LIST, 1) + oprot.writeFieldBegin('names', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter558 in self.names: - oprot.writeString(iter558.encode("utf-8") if sys.version_info[0] == 2 else iter558) + for iter613 in self.names: + oprot.writeString(iter613.encode('utf-8') if sys.version_info[0] == 2 else iter613) oprot.writeListEnd() oprot.writeFieldEnd() if self.exprs is not None: - oprot.writeFieldBegin("exprs", TType.LIST, 2) + oprot.writeFieldBegin('exprs', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.exprs)) - for iter559 in self.exprs: - iter559.write(oprot) + for iter614 in self.exprs: + iter614.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12153,8 +11589,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -12163,7 +11600,7 @@ def __ne__(self, other): return not (self == other) -class DropPartitionsRequest: +class DropPartitionsRequest(object): """ Attributes: - dbName @@ -12175,21 +11612,13 @@ class DropPartitionsRequest: - environmentContext - needResult - catName + - skipColumnSchemaForPartition """ + thrift_spec = None + - def __init__( - self, - dbName=None, - tblName=None, - parts=None, - deleteData=None, - ifExists=True, - ignoreProtection=None, - environmentContext=None, - needResult=True, - catName=None, - ): + def __init__(self, dbName = None, tblName = None, parts = None, deleteData = None, ifExists = True, ignoreProtection = None, environmentContext = None, needResult = True, catName = None, skipColumnSchemaForPartition = None,): self.dbName = dbName self.tblName = tblName self.parts = parts @@ -12199,13 +11628,10 @@ def __init__( self.environmentContext = environmentContext self.needResult = needResult self.catName = catName + self.skipColumnSchemaForPartition = skipColumnSchemaForPartition def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12215,16 +11641,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -12261,9 +11683,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.BOOL: + self.skipColumnSchemaForPartition = iprot.readBool() else: iprot.skip(ftype) else: @@ -12272,61 +11697,205 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DropPartitionsRequest") + oprot.writeStructBegin('DropPartitionsRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.parts is not None: - oprot.writeFieldBegin("parts", TType.STRUCT, 3) + oprot.writeFieldBegin('parts', TType.STRUCT, 3) self.parts.write(oprot) oprot.writeFieldEnd() if self.deleteData is not None: - oprot.writeFieldBegin("deleteData", TType.BOOL, 4) + oprot.writeFieldBegin('deleteData', TType.BOOL, 4) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() if self.ifExists is not None: - oprot.writeFieldBegin("ifExists", TType.BOOL, 5) + oprot.writeFieldBegin('ifExists', TType.BOOL, 5) oprot.writeBool(self.ifExists) oprot.writeFieldEnd() if self.ignoreProtection is not None: - oprot.writeFieldBegin("ignoreProtection", TType.BOOL, 6) + oprot.writeFieldBegin('ignoreProtection', TType.BOOL, 6) oprot.writeBool(self.ignoreProtection) oprot.writeFieldEnd() if self.environmentContext is not None: - oprot.writeFieldBegin("environmentContext", TType.STRUCT, 7) + oprot.writeFieldBegin('environmentContext', TType.STRUCT, 7) self.environmentContext.write(oprot) oprot.writeFieldEnd() if self.needResult is not None: - oprot.writeFieldBegin("needResult", TType.BOOL, 8) + oprot.writeFieldBegin('needResult', TType.BOOL, 8) oprot.writeBool(self.needResult) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 9) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 9) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldEnd() + if self.skipColumnSchemaForPartition is not None: + oprot.writeFieldBegin('skipColumnSchemaForPartition', TType.BOOL, 10) + oprot.writeBool(self.skipColumnSchemaForPartition) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.parts is None: - raise TProtocolException(message="Required field parts is unset!") + raise TProtocolException(message='Required field parts is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 DropPartitionRequest(object): + """ + Attributes: + - catName + - dbName + - tblName + - partName + - partVals + - deleteData + - environmentContext + + """ + thrift_spec = None + + + def __init__(self, catName = None, dbName = None, tblName = None, partName = None, partVals = None, deleteData = None, environmentContext = None,): + self.catName = catName + self.dbName = dbName + self.tblName = tblName + self.partName = partName + self.partVals = partVals + self.deleteData = deleteData + self.environmentContext = environmentContext + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.partName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.partVals = [] + (_etype618, _size615) = iprot.readListBegin() + for _i619 in range(_size615): + _elem620 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partVals.append(_elem620) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.deleteData = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRUCT: + self.environmentContext = EnvironmentContext() + self.environmentContext.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('DropPartitionRequest') + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldEnd() + if self.partName is not None: + oprot.writeFieldBegin('partName', TType.STRING, 4) + oprot.writeString(self.partName.encode('utf-8') if sys.version_info[0] == 2 else self.partName) + oprot.writeFieldEnd() + if self.partVals is not None: + oprot.writeFieldBegin('partVals', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.partVals)) + for iter621 in self.partVals: + oprot.writeString(iter621.encode('utf-8') if sys.version_info[0] == 2 else iter621) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.deleteData is not None: + oprot.writeFieldBegin('deleteData', TType.BOOL, 6) + oprot.writeBool(self.deleteData) + oprot.writeFieldEnd() + if self.environmentContext is not None: + oprot.writeFieldBegin('environmentContext', TType.STRUCT, 7) + self.environmentContext.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocolException(message='Required field dbName is unset!') + if self.tblName is None: + raise TProtocolException(message='Required field tblName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -12335,7 +11904,7 @@ def __ne__(self, other): return not (self == other) -class PartitionValuesRequest: +class PartitionValuesRequest(object): """ Attributes: - dbName @@ -12350,20 +11919,10 @@ class PartitionValuesRequest: - validWriteIdList """ + thrift_spec = None + - def __init__( - self, - dbName=None, - tblName=None, - partitionKeys=None, - applyDistinct=True, - filter=None, - partitionOrder=None, - ascending=True, - maxParts=-1, - catName=None, - validWriteIdList=None, - ): + def __init__(self, dbName = None, tblName = None, partitionKeys = None, applyDistinct = True, filter = None, partitionOrder = None, ascending = True, maxParts = -1, catName = None, validWriteIdList = None,): self.dbName = dbName self.tblName = tblName self.partitionKeys = partitionKeys @@ -12376,11 +11935,7 @@ def __init__( self.validWriteIdList = validWriteIdList def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12390,26 +11945,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.partitionKeys = [] - (_etype563, _size560) = iprot.readListBegin() - for _i564 in range(_size560): - _elem565 = FieldSchema() - _elem565.read(iprot) - self.partitionKeys.append(_elem565) + (_etype625, _size622) = iprot.readListBegin() + for _i626 in range(_size622): + _elem627 = FieldSchema() + _elem627.read(iprot) + self.partitionKeys.append(_elem627) iprot.readListEnd() else: iprot.skip(ftype) @@ -12420,19 +11971,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.filter = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.filter = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.partitionOrder = [] - (_etype569, _size566) = iprot.readListBegin() - for _i570 in range(_size566): - _elem571 = FieldSchema() - _elem571.read(iprot) - self.partitionOrder.append(_elem571) + (_etype631, _size628) = iprot.readListBegin() + for _i632 in range(_size628): + _elem633 = FieldSchema() + _elem633.read(iprot) + self.partitionOrder.append(_elem633) iprot.readListEnd() else: iprot.skip(ftype) @@ -12448,16 +11997,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -12466,71 +12011,73 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionValuesRequest") + oprot.writeStructBegin('PartitionValuesRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.partitionKeys is not None: - oprot.writeFieldBegin("partitionKeys", TType.LIST, 3) + oprot.writeFieldBegin('partitionKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) - for iter572 in self.partitionKeys: - iter572.write(oprot) + for iter634 in self.partitionKeys: + iter634.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.applyDistinct is not None: - oprot.writeFieldBegin("applyDistinct", TType.BOOL, 4) + oprot.writeFieldBegin('applyDistinct', TType.BOOL, 4) oprot.writeBool(self.applyDistinct) oprot.writeFieldEnd() if self.filter is not None: - oprot.writeFieldBegin("filter", TType.STRING, 5) - oprot.writeString(self.filter.encode("utf-8") if sys.version_info[0] == 2 else self.filter) + oprot.writeFieldBegin('filter', TType.STRING, 5) + oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter) oprot.writeFieldEnd() if self.partitionOrder is not None: - oprot.writeFieldBegin("partitionOrder", TType.LIST, 6) + oprot.writeFieldBegin('partitionOrder', TType.LIST, 6) oprot.writeListBegin(TType.STRUCT, len(self.partitionOrder)) - for iter573 in self.partitionOrder: - iter573.write(oprot) + for iter635 in self.partitionOrder: + iter635.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ascending is not None: - oprot.writeFieldBegin("ascending", TType.BOOL, 7) + oprot.writeFieldBegin('ascending', TType.BOOL, 7) oprot.writeBool(self.ascending) oprot.writeFieldEnd() if self.maxParts is not None: - oprot.writeFieldBegin("maxParts", TType.I64, 8) + oprot.writeFieldBegin('maxParts', TType.I64, 8) oprot.writeI64(self.maxParts) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 9) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 9) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 10) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 10) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.partitionKeys is None: - raise TProtocolException(message="Required field partitionKeys is unset!") + raise TProtocolException(message='Required field partitionKeys is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -12539,25 +12086,20 @@ def __ne__(self, other): return not (self == other) -class PartitionValuesRow: +class PartitionValuesRow(object): """ Attributes: - row """ + thrift_spec = None + - def __init__( - self, - row=None, - ): + def __init__(self, row = None,): self.row = row def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12568,14 +12110,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.row = [] - (_etype577, _size574) = iprot.readListBegin() - for _i578 in range(_size574): - _elem579 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.row.append(_elem579) + (_etype639, _size636) = iprot.readListBegin() + for _i640 in range(_size636): + _elem641 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.row.append(_elem641) iprot.readListEnd() else: iprot.skip(ftype) @@ -12585,15 +12123,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionValuesRow") + oprot.writeStructBegin('PartitionValuesRow') if self.row is not None: - oprot.writeFieldBegin("row", TType.LIST, 1) + oprot.writeFieldBegin('row', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.row)) - for iter580 in self.row: - oprot.writeString(iter580.encode("utf-8") if sys.version_info[0] == 2 else iter580) + for iter642 in self.row: + oprot.writeString(iter642.encode('utf-8') if sys.version_info[0] == 2 else iter642) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12601,12 +12140,13 @@ def write(self, oprot): def validate(self): if self.row is None: - raise TProtocolException(message="Required field row is unset!") + raise TProtocolException(message='Required field row is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -12615,25 +12155,20 @@ def __ne__(self, other): return not (self == other) -class PartitionValuesResponse: +class PartitionValuesResponse(object): """ Attributes: - partitionValues """ + thrift_spec = None - def __init__( - self, - partitionValues=None, - ): + + def __init__(self, partitionValues = None,): self.partitionValues = partitionValues def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12644,11 +12179,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionValues = [] - (_etype584, _size581) = iprot.readListBegin() - for _i585 in range(_size581): - _elem586 = PartitionValuesRow() - _elem586.read(iprot) - self.partitionValues.append(_elem586) + (_etype646, _size643) = iprot.readListBegin() + for _i647 in range(_size643): + _elem648 = PartitionValuesRow() + _elem648.read(iprot) + self.partitionValues.append(_elem648) iprot.readListEnd() else: iprot.skip(ftype) @@ -12658,15 +12193,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionValuesResponse") + oprot.writeStructBegin('PartitionValuesResponse') if self.partitionValues is not None: - oprot.writeFieldBegin("partitionValues", TType.LIST, 1) + oprot.writeFieldBegin('partitionValues', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitionValues)) - for iter587 in self.partitionValues: - iter587.write(oprot) + for iter649 in self.partitionValues: + iter649.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12674,12 +12210,13 @@ def write(self, oprot): def validate(self): if self.partitionValues is None: - raise TProtocolException(message="Required field partitionValues is unset!") + raise TProtocolException(message='Required field partitionValues is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -12688,7 +12225,7 @@ def __ne__(self, other): return not (self == other) -class GetPartitionsByNamesRequest: +class GetPartitionsByNamesRequest(object): """ Attributes: - db_name @@ -12701,22 +12238,15 @@ class GetPartitionsByNamesRequest: - validWriteIdList - getFileMetadata - id + - skipColumnSchemaForPartition + - includeParamKeyPattern + - excludeParamKeyPattern """ + thrift_spec = None + - def __init__( - self, - db_name=None, - tbl_name=None, - names=None, - get_col_stats=None, - processorCapabilities=None, - processorIdentifier=None, - engine=None, - validWriteIdList=None, - getFileMetadata=None, - id=-1, - ): + def __init__(self, db_name = None, tbl_name = None, names = None, get_col_stats = None, processorCapabilities = None, processorIdentifier = None, engine = "hive", validWriteIdList = None, getFileMetadata = None, id = -1, skipColumnSchemaForPartition = None, includeParamKeyPattern = None, excludeParamKeyPattern = None,): self.db_name = db_name self.tbl_name = tbl_name self.names = names @@ -12727,13 +12257,12 @@ def __init__( self.validWriteIdList = validWriteIdList self.getFileMetadata = getFileMetadata self.id = id + self.skipColumnSchemaForPartition = skipColumnSchemaForPartition + self.includeParamKeyPattern = includeParamKeyPattern + self.excludeParamKeyPattern = excludeParamKeyPattern def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12743,29 +12272,21 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype591, _size588) = iprot.readListBegin() - for _i592 in range(_size588): - _elem593 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.names.append(_elem593) + (_etype653, _size650) = iprot.readListBegin() + for _i654 in range(_size650): + _elem655 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.names.append(_elem655) iprot.readListEnd() else: iprot.skip(ftype) @@ -12777,36 +12298,26 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype597, _size594) = iprot.readListBegin() - for _i598 in range(_size594): - _elem599 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.processorCapabilities.append(_elem599) + (_etype659, _size656) = iprot.readListBegin() + for _i660 in range(_size656): + _elem661 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.processorCapabilities.append(_elem661) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.processorIdentifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.processorIdentifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.engine = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.engine = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: @@ -12819,75 +12330,104 @@ def read(self, iprot): self.id = iprot.readI64() else: iprot.skip(ftype) + elif fid == 11: + if ftype == TType.BOOL: + self.skipColumnSchemaForPartition = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.includeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.STRING: + self.excludeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionsByNamesRequest") + oprot.writeStructBegin('GetPartitionsByNamesRequest') if self.db_name is not None: - oprot.writeFieldBegin("db_name", TType.STRING, 1) - oprot.writeString(self.db_name.encode("utf-8") if sys.version_info[0] == 2 else self.db_name) + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() if self.tbl_name is not None: - oprot.writeFieldBegin("tbl_name", TType.STRING, 2) - oprot.writeString(self.tbl_name.encode("utf-8") if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) oprot.writeFieldEnd() if self.names is not None: - oprot.writeFieldBegin("names", TType.LIST, 3) + oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter600 in self.names: - oprot.writeString(iter600.encode("utf-8") if sys.version_info[0] == 2 else iter600) + for iter662 in self.names: + oprot.writeString(iter662.encode('utf-8') if sys.version_info[0] == 2 else iter662) oprot.writeListEnd() oprot.writeFieldEnd() if self.get_col_stats is not None: - oprot.writeFieldBegin("get_col_stats", TType.BOOL, 4) + oprot.writeFieldBegin('get_col_stats', TType.BOOL, 4) oprot.writeBool(self.get_col_stats) oprot.writeFieldEnd() if self.processorCapabilities is not None: - oprot.writeFieldBegin("processorCapabilities", TType.LIST, 5) + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter601 in self.processorCapabilities: - oprot.writeString(iter601.encode("utf-8") if sys.version_info[0] == 2 else iter601) + for iter663 in self.processorCapabilities: + oprot.writeString(iter663.encode('utf-8') if sys.version_info[0] == 2 else iter663) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: - oprot.writeFieldBegin("processorIdentifier", TType.STRING, 6) - oprot.writeString(self.processorIdentifier.encode("utf-8") if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 6) + oprot.writeString(self.processorIdentifier.encode('utf-8') if sys.version_info[0] == 2 else self.processorIdentifier) oprot.writeFieldEnd() if self.engine is not None: - oprot.writeFieldBegin("engine", TType.STRING, 7) - oprot.writeString(self.engine.encode("utf-8") if sys.version_info[0] == 2 else self.engine) + oprot.writeFieldBegin('engine', TType.STRING, 7) + oprot.writeString(self.engine.encode('utf-8') if sys.version_info[0] == 2 else self.engine) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 8) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 8) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.getFileMetadata is not None: - oprot.writeFieldBegin("getFileMetadata", TType.BOOL, 9) + oprot.writeFieldBegin('getFileMetadata', TType.BOOL, 9) oprot.writeBool(self.getFileMetadata) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 10) + oprot.writeFieldBegin('id', TType.I64, 10) oprot.writeI64(self.id) oprot.writeFieldEnd() + if self.skipColumnSchemaForPartition is not None: + oprot.writeFieldBegin('skipColumnSchemaForPartition', TType.BOOL, 11) + oprot.writeBool(self.skipColumnSchemaForPartition) + oprot.writeFieldEnd() + if self.includeParamKeyPattern is not None: + oprot.writeFieldBegin('includeParamKeyPattern', TType.STRING, 12) + oprot.writeString(self.includeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.includeParamKeyPattern) + oprot.writeFieldEnd() + if self.excludeParamKeyPattern is not None: + oprot.writeFieldBegin('excludeParamKeyPattern', TType.STRING, 13) + oprot.writeString(self.excludeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.excludeParamKeyPattern) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.db_name is None: - raise TProtocolException(message="Required field db_name is unset!") + raise TProtocolException(message='Required field db_name is unset!') if self.tbl_name is None: - raise TProtocolException(message="Required field tbl_name is unset!") + raise TProtocolException(message='Required field tbl_name is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -12896,28 +12436,22 @@ def __ne__(self, other): return not (self == other) -class GetPartitionsByNamesResult: +class GetPartitionsByNamesResult(object): """ Attributes: - partitions - dictionary """ + thrift_spec = None + - def __init__( - self, - partitions=None, - dictionary=None, - ): + def __init__(self, partitions = None, dictionary = None,): self.partitions = partitions self.dictionary = dictionary def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12928,11 +12462,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype605, _size602) = iprot.readListBegin() - for _i606 in range(_size602): - _elem607 = Partition() - _elem607.read(iprot) - self.partitions.append(_elem607) + (_etype667, _size664) = iprot.readListBegin() + for _i668 in range(_size664): + _elem669 = Partition() + _elem669.read(iprot) + self.partitions.append(_elem669) iprot.readListEnd() else: iprot.skip(ftype) @@ -12948,19 +12482,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionsByNamesResult") + oprot.writeStructBegin('GetPartitionsByNamesResult') if self.partitions is not None: - oprot.writeFieldBegin("partitions", TType.LIST, 1) + oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter608 in self.partitions: - iter608.write(oprot) + for iter670 in self.partitions: + iter670.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.dictionary is not None: - oprot.writeFieldBegin("dictionary", TType.STRUCT, 2) + oprot.writeFieldBegin('dictionary', TType.STRUCT, 2) self.dictionary.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12968,12 +12503,13 @@ def write(self, oprot): def validate(self): if self.partitions is None: - raise TProtocolException(message="Required field partitions is unset!") + raise TProtocolException(message='Required field partitions is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -12982,7 +12518,7 @@ def __ne__(self, other): return not (self == other) -class DataConnector: +class DataConnector(object): """ Attributes: - name @@ -12995,18 +12531,10 @@ class DataConnector: - createTime """ + thrift_spec = None - def __init__( - self, - name=None, - type=None, - url=None, - description=None, - parameters=None, - ownerName=None, - ownerType=None, - createTime=None, - ): + + def __init__(self, name = None, type = None, url = None, description = None, parameters = None, ownerName = None, ownerType = None, createTime = None,): self.name = name self.type = type self.url = url @@ -13017,11 +12545,7 @@ def __init__( self.createTime = createTime def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13031,56 +12555,38 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.type = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.type = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.url = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.url = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.MAP: self.parameters = {} - (_ktype610, _vtype611, _size609) = iprot.readMapBegin() - for _i613 in range(_size609): - _key614 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val615 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.parameters[_key614] = _val615 + (_ktype672, _vtype673, _size671) = iprot.readMapBegin() + for _i675 in range(_size671): + _key676 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val677 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.parameters[_key676] = _val677 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.ownerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ownerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -13099,44 +12605,45 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DataConnector") + oprot.writeStructBegin('DataConnector') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.STRING, 2) - oprot.writeString(self.type.encode("utf-8") if sys.version_info[0] == 2 else self.type) + oprot.writeFieldBegin('type', TType.STRING, 2) + oprot.writeString(self.type.encode('utf-8') if sys.version_info[0] == 2 else self.type) oprot.writeFieldEnd() if self.url is not None: - oprot.writeFieldBegin("url", TType.STRING, 3) - oprot.writeString(self.url.encode("utf-8") if sys.version_info[0] == 2 else self.url) + oprot.writeFieldBegin('url', TType.STRING, 3) + oprot.writeString(self.url.encode('utf-8') if sys.version_info[0] == 2 else self.url) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 4) - oprot.writeString(self.description.encode("utf-8") if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin('description', TType.STRING, 4) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() if self.parameters is not None: - oprot.writeFieldBegin("parameters", TType.MAP, 5) + oprot.writeFieldBegin('parameters', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter616, viter617 in self.parameters.items(): - oprot.writeString(kiter616.encode("utf-8") if sys.version_info[0] == 2 else kiter616) - oprot.writeString(viter617.encode("utf-8") if sys.version_info[0] == 2 else viter617) + for kiter678, viter679 in self.parameters.items(): + oprot.writeString(kiter678.encode('utf-8') if sys.version_info[0] == 2 else kiter678) + oprot.writeString(viter679.encode('utf-8') if sys.version_info[0] == 2 else viter679) oprot.writeMapEnd() oprot.writeFieldEnd() if self.ownerName is not None: - oprot.writeFieldBegin("ownerName", TType.STRING, 6) - oprot.writeString(self.ownerName.encode("utf-8") if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldBegin('ownerName', TType.STRING, 6) + oprot.writeString(self.ownerName.encode('utf-8') if sys.version_info[0] == 2 else self.ownerName) oprot.writeFieldEnd() if self.ownerType is not None: - oprot.writeFieldBegin("ownerType", TType.I32, 7) + oprot.writeFieldBegin('ownerType', TType.I32, 7) oprot.writeI32(self.ownerType) oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 8) + oprot.writeFieldBegin('createTime', TType.I32, 8) oprot.writeI32(self.createTime) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13146,8 +12653,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -13156,28 +12664,22 @@ def __ne__(self, other): return not (self == other) -class ResourceUri: +class ResourceUri(object): """ Attributes: - resourceType - uri """ + thrift_spec = None + - def __init__( - self, - resourceType=None, - uri=None, - ): + def __init__(self, resourceType = None, uri = None,): self.resourceType = resourceType self.uri = uri def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13192,9 +12694,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.uri = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.uri = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -13203,17 +12703,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ResourceUri") + oprot.writeStructBegin('ResourceUri') if self.resourceType is not None: - oprot.writeFieldBegin("resourceType", TType.I32, 1) + oprot.writeFieldBegin('resourceType', TType.I32, 1) oprot.writeI32(self.resourceType) oprot.writeFieldEnd() if self.uri is not None: - oprot.writeFieldBegin("uri", TType.STRING, 2) - oprot.writeString(self.uri.encode("utf-8") if sys.version_info[0] == 2 else self.uri) + oprot.writeFieldBegin('uri', TType.STRING, 2) + oprot.writeString(self.uri.encode('utf-8') if sys.version_info[0] == 2 else self.uri) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13222,8 +12723,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -13232,7 +12734,7 @@ def __ne__(self, other): return not (self == other) -class Function: +class Function(object): """ Attributes: - functionName @@ -13246,19 +12748,10 @@ class Function: - catName """ + thrift_spec = None - def __init__( - self, - functionName=None, - dbName=None, - className=None, - ownerName=None, - ownerType=None, - createTime=None, - functionType=None, - resourceUris=None, - catName=None, - ): + + def __init__(self, functionName = None, dbName = None, className = None, ownerName = None, ownerType = None, createTime = None, functionType = None, resourceUris = None, catName = None,): self.functionName = functionName self.dbName = dbName self.className = className @@ -13270,11 +12763,7 @@ def __init__( self.catName = catName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13284,30 +12773,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.functionName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.functionName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.className = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.className = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.ownerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ownerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -13328,19 +12809,17 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype621, _size618) = iprot.readListBegin() - for _i622 in range(_size618): - _elem623 = ResourceUri() - _elem623.read(iprot) - self.resourceUris.append(_elem623) + (_etype683, _size680) = iprot.readListBegin() + for _i684 in range(_size680): + _elem685 = ResourceUri() + _elem685.read(iprot) + self.resourceUris.append(_elem685) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -13349,48 +12828,49 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Function") + oprot.writeStructBegin('Function') if self.functionName is not None: - oprot.writeFieldBegin("functionName", TType.STRING, 1) - oprot.writeString(self.functionName.encode("utf-8") if sys.version_info[0] == 2 else self.functionName) + oprot.writeFieldBegin('functionName', TType.STRING, 1) + oprot.writeString(self.functionName.encode('utf-8') if sys.version_info[0] == 2 else self.functionName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.className is not None: - oprot.writeFieldBegin("className", TType.STRING, 3) - oprot.writeString(self.className.encode("utf-8") if sys.version_info[0] == 2 else self.className) + oprot.writeFieldBegin('className', TType.STRING, 3) + oprot.writeString(self.className.encode('utf-8') if sys.version_info[0] == 2 else self.className) oprot.writeFieldEnd() if self.ownerName is not None: - oprot.writeFieldBegin("ownerName", TType.STRING, 4) - oprot.writeString(self.ownerName.encode("utf-8") if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldBegin('ownerName', TType.STRING, 4) + oprot.writeString(self.ownerName.encode('utf-8') if sys.version_info[0] == 2 else self.ownerName) oprot.writeFieldEnd() if self.ownerType is not None: - oprot.writeFieldBegin("ownerType", TType.I32, 5) + oprot.writeFieldBegin('ownerType', TType.I32, 5) oprot.writeI32(self.ownerType) oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 6) + oprot.writeFieldBegin('createTime', TType.I32, 6) oprot.writeI32(self.createTime) oprot.writeFieldEnd() if self.functionType is not None: - oprot.writeFieldBegin("functionType", TType.I32, 7) + oprot.writeFieldBegin('functionType', TType.I32, 7) oprot.writeI32(self.functionType) oprot.writeFieldEnd() if self.resourceUris is not None: - oprot.writeFieldBegin("resourceUris", TType.LIST, 8) + oprot.writeFieldBegin('resourceUris', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.resourceUris)) - for iter624 in self.resourceUris: - iter624.write(oprot) + for iter686 in self.resourceUris: + iter686.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 9) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 9) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13399,8 +12879,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -13409,7 +12890,7 @@ def __ne__(self, other): return not (self == other) -class TxnInfo: +class TxnInfo(object): """ Attributes: - id @@ -13423,19 +12904,10 @@ class TxnInfo: - lastHeartbeatTime """ + thrift_spec = None + - def __init__( - self, - id=None, - state=None, - user=None, - hostname=None, - agentInfo="Unknown", - heartbeatCount=0, - metaInfo=None, - startedTime=None, - lastHeartbeatTime=None, - ): + def __init__(self, id = None, state = None, user = None, hostname = None, agentInfo = "Unknown", heartbeatCount = 0, metaInfo = None, startedTime = None, lastHeartbeatTime = None,): self.id = id self.state = state self.user = user @@ -13447,11 +12919,7 @@ def __init__( self.lastHeartbeatTime = lastHeartbeatTime def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13471,23 +12939,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.hostname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.hostname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.agentInfo = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.agentInfo = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -13497,9 +12959,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.metaInfo = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.metaInfo = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: @@ -13518,44 +12978,45 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TxnInfo") + oprot.writeStructBegin('TxnInfo') if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 1) + oprot.writeFieldBegin('id', TType.I64, 1) oprot.writeI64(self.id) oprot.writeFieldEnd() if self.state is not None: - oprot.writeFieldBegin("state", TType.I32, 2) + oprot.writeFieldBegin('state', TType.I32, 2) oprot.writeI32(self.state) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 3) - oprot.writeString(self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin('user', TType.STRING, 3) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() if self.hostname is not None: - oprot.writeFieldBegin("hostname", TType.STRING, 4) - oprot.writeString(self.hostname.encode("utf-8") if sys.version_info[0] == 2 else self.hostname) + oprot.writeFieldBegin('hostname', TType.STRING, 4) + oprot.writeString(self.hostname.encode('utf-8') if sys.version_info[0] == 2 else self.hostname) oprot.writeFieldEnd() if self.agentInfo is not None: - oprot.writeFieldBegin("agentInfo", TType.STRING, 5) - oprot.writeString(self.agentInfo.encode("utf-8") if sys.version_info[0] == 2 else self.agentInfo) + oprot.writeFieldBegin('agentInfo', TType.STRING, 5) + oprot.writeString(self.agentInfo.encode('utf-8') if sys.version_info[0] == 2 else self.agentInfo) oprot.writeFieldEnd() if self.heartbeatCount is not None: - oprot.writeFieldBegin("heartbeatCount", TType.I32, 6) + oprot.writeFieldBegin('heartbeatCount', TType.I32, 6) oprot.writeI32(self.heartbeatCount) oprot.writeFieldEnd() if self.metaInfo is not None: - oprot.writeFieldBegin("metaInfo", TType.STRING, 7) - oprot.writeString(self.metaInfo.encode("utf-8") if sys.version_info[0] == 2 else self.metaInfo) + oprot.writeFieldBegin('metaInfo', TType.STRING, 7) + oprot.writeString(self.metaInfo.encode('utf-8') if sys.version_info[0] == 2 else self.metaInfo) oprot.writeFieldEnd() if self.startedTime is not None: - oprot.writeFieldBegin("startedTime", TType.I64, 8) + oprot.writeFieldBegin('startedTime', TType.I64, 8) oprot.writeI64(self.startedTime) oprot.writeFieldEnd() if self.lastHeartbeatTime is not None: - oprot.writeFieldBegin("lastHeartbeatTime", TType.I64, 9) + oprot.writeFieldBegin('lastHeartbeatTime', TType.I64, 9) oprot.writeI64(self.lastHeartbeatTime) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13563,18 +13024,19 @@ def write(self, oprot): def validate(self): if self.id is None: - raise TProtocolException(message="Required field id is unset!") + raise TProtocolException(message='Required field id is unset!') if self.state is None: - raise TProtocolException(message="Required field state is unset!") + raise TProtocolException(message='Required field state is unset!') if self.user is None: - raise TProtocolException(message="Required field user is unset!") + raise TProtocolException(message='Required field user is unset!') if self.hostname is None: - raise TProtocolException(message="Required field hostname is unset!") + raise TProtocolException(message='Required field hostname is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -13583,28 +13045,22 @@ def __ne__(self, other): return not (self == other) -class GetOpenTxnsInfoResponse: +class GetOpenTxnsInfoResponse(object): """ Attributes: - txn_high_water_mark - open_txns """ + thrift_spec = None - def __init__( - self, - txn_high_water_mark=None, - open_txns=None, - ): + + def __init__(self, txn_high_water_mark = None, open_txns = None,): self.txn_high_water_mark = txn_high_water_mark self.open_txns = open_txns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13620,11 +13076,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype628, _size625) = iprot.readListBegin() - for _i629 in range(_size625): - _elem630 = TxnInfo() - _elem630.read(iprot) - self.open_txns.append(_elem630) + (_etype690, _size687) = iprot.readListBegin() + for _i691 in range(_size687): + _elem692 = TxnInfo() + _elem692.read(iprot) + self.open_txns.append(_elem692) iprot.readListEnd() else: iprot.skip(ftype) @@ -13634,19 +13090,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetOpenTxnsInfoResponse") + oprot.writeStructBegin('GetOpenTxnsInfoResponse') if self.txn_high_water_mark is not None: - oprot.writeFieldBegin("txn_high_water_mark", TType.I64, 1) + oprot.writeFieldBegin('txn_high_water_mark', TType.I64, 1) oprot.writeI64(self.txn_high_water_mark) oprot.writeFieldEnd() if self.open_txns is not None: - oprot.writeFieldBegin("open_txns", TType.LIST, 2) + oprot.writeFieldBegin('open_txns', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.open_txns)) - for iter631 in self.open_txns: - iter631.write(oprot) + for iter693 in self.open_txns: + iter693.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13654,14 +13111,15 @@ def write(self, oprot): def validate(self): if self.txn_high_water_mark is None: - raise TProtocolException(message="Required field txn_high_water_mark is unset!") + raise TProtocolException(message='Required field txn_high_water_mark is unset!') if self.open_txns is None: - raise TProtocolException(message="Required field open_txns is unset!") + raise TProtocolException(message='Required field open_txns is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -13670,7 +13128,7 @@ def __ne__(self, other): return not (self == other) -class GetOpenTxnsResponse: +class GetOpenTxnsResponse(object): """ Attributes: - txn_high_water_mark @@ -13679,25 +13137,17 @@ class GetOpenTxnsResponse: - abortedBits """ + thrift_spec = None + - def __init__( - self, - txn_high_water_mark=None, - open_txns=None, - min_open_txn=None, - abortedBits=None, - ): + def __init__(self, txn_high_water_mark = None, open_txns = None, min_open_txn = None, abortedBits = None,): self.txn_high_water_mark = txn_high_water_mark self.open_txns = open_txns self.min_open_txn = min_open_txn self.abortedBits = abortedBits def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13713,10 +13163,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype635, _size632) = iprot.readListBegin() - for _i636 in range(_size632): - _elem637 = iprot.readI64() - self.open_txns.append(_elem637) + (_etype697, _size694) = iprot.readListBegin() + for _i698 in range(_size694): + _elem699 = iprot.readI64() + self.open_txns.append(_elem699) iprot.readListEnd() else: iprot.skip(ftype) @@ -13736,27 +13186,28 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetOpenTxnsResponse") + oprot.writeStructBegin('GetOpenTxnsResponse') if self.txn_high_water_mark is not None: - oprot.writeFieldBegin("txn_high_water_mark", TType.I64, 1) + oprot.writeFieldBegin('txn_high_water_mark', TType.I64, 1) oprot.writeI64(self.txn_high_water_mark) oprot.writeFieldEnd() if self.open_txns is not None: - oprot.writeFieldBegin("open_txns", TType.LIST, 2) + oprot.writeFieldBegin('open_txns', TType.LIST, 2) oprot.writeListBegin(TType.I64, len(self.open_txns)) - for iter638 in self.open_txns: - oprot.writeI64(iter638) + for iter700 in self.open_txns: + oprot.writeI64(iter700) oprot.writeListEnd() oprot.writeFieldEnd() if self.min_open_txn is not None: - oprot.writeFieldBegin("min_open_txn", TType.I64, 3) + oprot.writeFieldBegin('min_open_txn', TType.I64, 3) oprot.writeI64(self.min_open_txn) oprot.writeFieldEnd() if self.abortedBits is not None: - oprot.writeFieldBegin("abortedBits", TType.STRING, 4) + oprot.writeFieldBegin('abortedBits', TType.STRING, 4) oprot.writeBinary(self.abortedBits) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13764,16 +13215,17 @@ def write(self, oprot): def validate(self): if self.txn_high_water_mark is None: - raise TProtocolException(message="Required field txn_high_water_mark is unset!") + raise TProtocolException(message='Required field txn_high_water_mark is unset!') if self.open_txns is None: - raise TProtocolException(message="Required field open_txns is unset!") + raise TProtocolException(message='Required field open_txns is unset!') if self.abortedBits is None: - raise TProtocolException(message="Required field abortedBits is unset!") + raise TProtocolException(message='Required field abortedBits is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -13782,7 +13234,7 @@ def __ne__(self, other): return not (self == other) -class OpenTxnRequest: +class OpenTxnRequest(object): """ Attributes: - num_txns @@ -13794,17 +13246,10 @@ class OpenTxnRequest: - txn_type """ + thrift_spec = None - def __init__( - self, - num_txns=None, - user=None, - hostname=None, - agentInfo="Unknown", - replPolicy=None, - replSrcTxnIds=None, - txn_type=0, - ): + + def __init__(self, num_txns = None, user = None, hostname = None, agentInfo = "Unknown", replPolicy = None, replSrcTxnIds = None, txn_type = 0,): self.num_txns = num_txns self.user = user self.hostname = hostname @@ -13814,11 +13259,7 @@ def __init__( self.txn_type = txn_type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13833,39 +13274,31 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.hostname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.hostname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.agentInfo = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.agentInfo = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.replPolicy = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.replPolicy = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.replSrcTxnIds = [] - (_etype642, _size639) = iprot.readListBegin() - for _i643 in range(_size639): - _elem644 = iprot.readI64() - self.replSrcTxnIds.append(_elem644) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in range(_size701): + _elem706 = iprot.readI64() + self.replSrcTxnIds.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -13880,39 +13313,40 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("OpenTxnRequest") + oprot.writeStructBegin('OpenTxnRequest') if self.num_txns is not None: - oprot.writeFieldBegin("num_txns", TType.I32, 1) + oprot.writeFieldBegin('num_txns', TType.I32, 1) oprot.writeI32(self.num_txns) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 2) - oprot.writeString(self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin('user', TType.STRING, 2) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() if self.hostname is not None: - oprot.writeFieldBegin("hostname", TType.STRING, 3) - oprot.writeString(self.hostname.encode("utf-8") if sys.version_info[0] == 2 else self.hostname) + oprot.writeFieldBegin('hostname', TType.STRING, 3) + oprot.writeString(self.hostname.encode('utf-8') if sys.version_info[0] == 2 else self.hostname) oprot.writeFieldEnd() if self.agentInfo is not None: - oprot.writeFieldBegin("agentInfo", TType.STRING, 4) - oprot.writeString(self.agentInfo.encode("utf-8") if sys.version_info[0] == 2 else self.agentInfo) + oprot.writeFieldBegin('agentInfo', TType.STRING, 4) + oprot.writeString(self.agentInfo.encode('utf-8') if sys.version_info[0] == 2 else self.agentInfo) oprot.writeFieldEnd() if self.replPolicy is not None: - oprot.writeFieldBegin("replPolicy", TType.STRING, 5) - oprot.writeString(self.replPolicy.encode("utf-8") if sys.version_info[0] == 2 else self.replPolicy) + oprot.writeFieldBegin('replPolicy', TType.STRING, 5) + oprot.writeString(self.replPolicy.encode('utf-8') if sys.version_info[0] == 2 else self.replPolicy) oprot.writeFieldEnd() if self.replSrcTxnIds is not None: - oprot.writeFieldBegin("replSrcTxnIds", TType.LIST, 6) + oprot.writeFieldBegin('replSrcTxnIds', TType.LIST, 6) oprot.writeListBegin(TType.I64, len(self.replSrcTxnIds)) - for iter645 in self.replSrcTxnIds: - oprot.writeI64(iter645) + for iter707 in self.replSrcTxnIds: + oprot.writeI64(iter707) oprot.writeListEnd() oprot.writeFieldEnd() if self.txn_type is not None: - oprot.writeFieldBegin("txn_type", TType.I32, 7) + oprot.writeFieldBegin('txn_type', TType.I32, 7) oprot.writeI32(self.txn_type) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13920,16 +13354,17 @@ def write(self, oprot): def validate(self): if self.num_txns is None: - raise TProtocolException(message="Required field num_txns is unset!") + raise TProtocolException(message='Required field num_txns is unset!') if self.user is None: - raise TProtocolException(message="Required field user is unset!") + raise TProtocolException(message='Required field user is unset!') if self.hostname is None: - raise TProtocolException(message="Required field hostname is unset!") + raise TProtocolException(message='Required field hostname is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -13938,25 +13373,20 @@ def __ne__(self, other): return not (self == other) -class OpenTxnsResponse: +class OpenTxnsResponse(object): """ Attributes: - txn_ids """ + thrift_spec = None + - def __init__( - self, - txn_ids=None, - ): + def __init__(self, txn_ids = None,): self.txn_ids = txn_ids def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13967,10 +13397,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype649, _size646) = iprot.readListBegin() - for _i650 in range(_size646): - _elem651 = iprot.readI64() - self.txn_ids.append(_elem651) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in range(_size708): + _elem713 = iprot.readI64() + self.txn_ids.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -13980,15 +13410,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("OpenTxnsResponse") + oprot.writeStructBegin('OpenTxnsResponse') if self.txn_ids is not None: - oprot.writeFieldBegin("txn_ids", TType.LIST, 1) + oprot.writeFieldBegin('txn_ids', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txn_ids)) - for iter652 in self.txn_ids: - oprot.writeI64(iter652) + for iter714 in self.txn_ids: + oprot.writeI64(iter714) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13996,12 +13427,13 @@ def write(self, oprot): def validate(self): if self.txn_ids is None: - raise TProtocolException(message="Required field txn_ids is unset!") + raise TProtocolException(message='Required field txn_ids is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -14010,31 +13442,26 @@ def __ne__(self, other): return not (self == other) -class AbortTxnRequest: +class AbortTxnRequest(object): """ Attributes: - txnid - replPolicy - txn_type + - errorCode """ + thrift_spec = None + - def __init__( - self, - txnid=None, - replPolicy=None, - txn_type=None, - ): + def __init__(self, txnid = None, replPolicy = None, txn_type = None, errorCode = None,): self.txnid = txnid self.replPolicy = replPolicy self.txn_type = txn_type + self.errorCode = errorCode def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14049,9 +13476,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.replPolicy = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.replPolicy = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -14059,39 +13484,50 @@ def read(self, iprot): self.txn_type = iprot.readI32() else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I64: + self.errorCode = iprot.readI64() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AbortTxnRequest") + oprot.writeStructBegin('AbortTxnRequest') if self.txnid is not None: - oprot.writeFieldBegin("txnid", TType.I64, 1) + oprot.writeFieldBegin('txnid', TType.I64, 1) oprot.writeI64(self.txnid) oprot.writeFieldEnd() if self.replPolicy is not None: - oprot.writeFieldBegin("replPolicy", TType.STRING, 2) - oprot.writeString(self.replPolicy.encode("utf-8") if sys.version_info[0] == 2 else self.replPolicy) + oprot.writeFieldBegin('replPolicy', TType.STRING, 2) + oprot.writeString(self.replPolicy.encode('utf-8') if sys.version_info[0] == 2 else self.replPolicy) oprot.writeFieldEnd() if self.txn_type is not None: - oprot.writeFieldBegin("txn_type", TType.I32, 3) + oprot.writeFieldBegin('txn_type', TType.I32, 3) oprot.writeI32(self.txn_type) oprot.writeFieldEnd() + if self.errorCode is not None: + oprot.writeFieldBegin('errorCode', TType.I64, 4) + oprot.writeI64(self.errorCode) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.txnid is None: - raise TProtocolException(message="Required field txnid is unset!") + raise TProtocolException(message='Required field txnid is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -14100,25 +13536,22 @@ def __ne__(self, other): return not (self == other) -class AbortTxnsRequest: +class AbortTxnsRequest(object): """ Attributes: - txn_ids + - errorCode """ + thrift_spec = None + - def __init__( - self, - txn_ids=None, - ): + def __init__(self, txn_ids = None, errorCode = None,): self.txn_ids = txn_ids + self.errorCode = errorCode def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14129,41 +13562,52 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype656, _size653) = iprot.readListBegin() - for _i657 in range(_size653): - _elem658 = iprot.readI64() - self.txn_ids.append(_elem658) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in range(_size715): + _elem720 = iprot.readI64() + self.txn_ids.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.errorCode = iprot.readI64() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AbortTxnsRequest") + oprot.writeStructBegin('AbortTxnsRequest') if self.txn_ids is not None: - oprot.writeFieldBegin("txn_ids", TType.LIST, 1) + oprot.writeFieldBegin('txn_ids', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txn_ids)) - for iter659 in self.txn_ids: - oprot.writeI64(iter659) + for iter721 in self.txn_ids: + oprot.writeI64(iter721) oprot.writeListEnd() oprot.writeFieldEnd() + if self.errorCode is not None: + oprot.writeFieldBegin('errorCode', TType.I64, 2) + oprot.writeI64(self.errorCode) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.txn_ids is None: - raise TProtocolException(message="Required field txn_ids is unset!") + raise TProtocolException(message='Required field txn_ids is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -14172,7 +13616,7 @@ def __ne__(self, other): return not (self == other) -class CommitTxnKeyValue: +class CommitTxnKeyValue(object): """ Attributes: - tableId @@ -14180,23 +13624,16 @@ class CommitTxnKeyValue: - value """ + thrift_spec = None + - def __init__( - self, - tableId=None, - key=None, - value=None, - ): + def __init__(self, tableId = None, key = None, value = None,): self.tableId = tableId self.key = key self.value = value def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14211,16 +13648,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.key = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.key = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.value = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.value = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -14229,37 +13662,39 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CommitTxnKeyValue") + oprot.writeStructBegin('CommitTxnKeyValue') if self.tableId is not None: - oprot.writeFieldBegin("tableId", TType.I64, 1) + oprot.writeFieldBegin('tableId', TType.I64, 1) oprot.writeI64(self.tableId) oprot.writeFieldEnd() if self.key is not None: - oprot.writeFieldBegin("key", TType.STRING, 2) - oprot.writeString(self.key.encode("utf-8") if sys.version_info[0] == 2 else self.key) + oprot.writeFieldBegin('key', TType.STRING, 2) + oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key) oprot.writeFieldEnd() if self.value is not None: - oprot.writeFieldBegin("value", TType.STRING, 3) - oprot.writeString(self.value.encode("utf-8") if sys.version_info[0] == 2 else self.value) + oprot.writeFieldBegin('value', TType.STRING, 3) + oprot.writeString(self.value.encode('utf-8') if sys.version_info[0] == 2 else self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.tableId is None: - raise TProtocolException(message="Required field tableId is unset!") + raise TProtocolException(message='Required field tableId is unset!') if self.key is None: - raise TProtocolException(message="Required field key is unset!") + raise TProtocolException(message='Required field key is unset!') if self.value is None: - raise TProtocolException(message="Required field value is unset!") + raise TProtocolException(message='Required field value is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -14268,7 +13703,7 @@ def __ne__(self, other): return not (self == other) -class WriteEventInfo: +class WriteEventInfo(object): """ Attributes: - writeId @@ -14280,17 +13715,10 @@ class WriteEventInfo: - partitionObj """ + thrift_spec = None - def __init__( - self, - writeId=None, - database=None, - table=None, - files=None, - partition=None, - tableObj=None, - partitionObj=None, - ): + + def __init__(self, writeId = None, database = None, table = None, files = None, partition = None, tableObj = None, partitionObj = None,): self.writeId = writeId self.database = database self.table = table @@ -14300,11 +13728,7 @@ def __init__( self.partitionObj = partitionObj def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14319,44 +13743,32 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.database = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.database = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.table = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.files = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.files = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.partition = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partition = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.tableObj = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableObj = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.partitionObj = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partitionObj = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -14365,55 +13777,57 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WriteEventInfo") + oprot.writeStructBegin('WriteEventInfo') if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 1) + oprot.writeFieldBegin('writeId', TType.I64, 1) oprot.writeI64(self.writeId) oprot.writeFieldEnd() if self.database is not None: - oprot.writeFieldBegin("database", TType.STRING, 2) - oprot.writeString(self.database.encode("utf-8") if sys.version_info[0] == 2 else self.database) + oprot.writeFieldBegin('database', TType.STRING, 2) + oprot.writeString(self.database.encode('utf-8') if sys.version_info[0] == 2 else self.database) oprot.writeFieldEnd() if self.table is not None: - oprot.writeFieldBegin("table", TType.STRING, 3) - oprot.writeString(self.table.encode("utf-8") if sys.version_info[0] == 2 else self.table) + oprot.writeFieldBegin('table', TType.STRING, 3) + oprot.writeString(self.table.encode('utf-8') if sys.version_info[0] == 2 else self.table) oprot.writeFieldEnd() if self.files is not None: - oprot.writeFieldBegin("files", TType.STRING, 4) - oprot.writeString(self.files.encode("utf-8") if sys.version_info[0] == 2 else self.files) + oprot.writeFieldBegin('files', TType.STRING, 4) + oprot.writeString(self.files.encode('utf-8') if sys.version_info[0] == 2 else self.files) oprot.writeFieldEnd() if self.partition is not None: - oprot.writeFieldBegin("partition", TType.STRING, 5) - oprot.writeString(self.partition.encode("utf-8") if sys.version_info[0] == 2 else self.partition) + oprot.writeFieldBegin('partition', TType.STRING, 5) + oprot.writeString(self.partition.encode('utf-8') if sys.version_info[0] == 2 else self.partition) oprot.writeFieldEnd() if self.tableObj is not None: - oprot.writeFieldBegin("tableObj", TType.STRING, 6) - oprot.writeString(self.tableObj.encode("utf-8") if sys.version_info[0] == 2 else self.tableObj) + oprot.writeFieldBegin('tableObj', TType.STRING, 6) + oprot.writeString(self.tableObj.encode('utf-8') if sys.version_info[0] == 2 else self.tableObj) oprot.writeFieldEnd() if self.partitionObj is not None: - oprot.writeFieldBegin("partitionObj", TType.STRING, 7) - oprot.writeString(self.partitionObj.encode("utf-8") if sys.version_info[0] == 2 else self.partitionObj) + oprot.writeFieldBegin('partitionObj', TType.STRING, 7) + oprot.writeString(self.partitionObj.encode('utf-8') if sys.version_info[0] == 2 else self.partitionObj) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.writeId is None: - raise TProtocolException(message="Required field writeId is unset!") + raise TProtocolException(message='Required field writeId is unset!') if self.database is None: - raise TProtocolException(message="Required field database is unset!") + raise TProtocolException(message='Required field database is unset!') if self.table is None: - raise TProtocolException(message="Required field table is unset!") + raise TProtocolException(message='Required field table is unset!') if self.files is None: - raise TProtocolException(message="Required field files is unset!") + raise TProtocolException(message='Required field files is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -14422,7 +13836,7 @@ def __ne__(self, other): return not (self == other) -class ReplLastIdInfo: +class ReplLastIdInfo(object): """ Attributes: - database @@ -14432,15 +13846,10 @@ class ReplLastIdInfo: - partitionList """ + thrift_spec = None + - def __init__( - self, - database=None, - lastReplId=None, - table=None, - catalog=None, - partitionList=None, - ): + def __init__(self, database = None, lastReplId = None, table = None, catalog = None, partitionList = None,): self.database = database self.lastReplId = lastReplId self.table = table @@ -14448,11 +13857,7 @@ def __init__( self.partitionList = partitionList def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14462,9 +13867,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.database = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.database = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -14474,29 +13877,21 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.table = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.catalog = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catalog = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.partitionList = [] - (_etype663, _size660) = iprot.readListBegin() - for _i664 in range(_size660): - _elem665 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partitionList.append(_elem665) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in range(_size722): + _elem727 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partitionList.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -14506,31 +13901,32 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ReplLastIdInfo") + oprot.writeStructBegin('ReplLastIdInfo') if self.database is not None: - oprot.writeFieldBegin("database", TType.STRING, 1) - oprot.writeString(self.database.encode("utf-8") if sys.version_info[0] == 2 else self.database) + oprot.writeFieldBegin('database', TType.STRING, 1) + oprot.writeString(self.database.encode('utf-8') if sys.version_info[0] == 2 else self.database) oprot.writeFieldEnd() if self.lastReplId is not None: - oprot.writeFieldBegin("lastReplId", TType.I64, 2) + oprot.writeFieldBegin('lastReplId', TType.I64, 2) oprot.writeI64(self.lastReplId) oprot.writeFieldEnd() if self.table is not None: - oprot.writeFieldBegin("table", TType.STRING, 3) - oprot.writeString(self.table.encode("utf-8") if sys.version_info[0] == 2 else self.table) + oprot.writeFieldBegin('table', TType.STRING, 3) + oprot.writeString(self.table.encode('utf-8') if sys.version_info[0] == 2 else self.table) oprot.writeFieldEnd() if self.catalog is not None: - oprot.writeFieldBegin("catalog", TType.STRING, 4) - oprot.writeString(self.catalog.encode("utf-8") if sys.version_info[0] == 2 else self.catalog) + oprot.writeFieldBegin('catalog', TType.STRING, 4) + oprot.writeString(self.catalog.encode('utf-8') if sys.version_info[0] == 2 else self.catalog) oprot.writeFieldEnd() if self.partitionList is not None: - oprot.writeFieldBegin("partitionList", TType.LIST, 5) + oprot.writeFieldBegin('partitionList', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionList)) - for iter666 in self.partitionList: - oprot.writeString(iter666.encode("utf-8") if sys.version_info[0] == 2 else iter666) + for iter728 in self.partitionList: + oprot.writeString(iter728.encode('utf-8') if sys.version_info[0] == 2 else iter728) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14538,14 +13934,15 @@ def write(self, oprot): def validate(self): if self.database is None: - raise TProtocolException(message="Required field database is unset!") + raise TProtocolException(message='Required field database is unset!') if self.lastReplId is None: - raise TProtocolException(message="Required field lastReplId is unset!") + raise TProtocolException(message='Required field lastReplId is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -14554,7 +13951,7 @@ def __ne__(self, other): return not (self == other) -class UpdateTransactionalStatsRequest: +class UpdateTransactionalStatsRequest(object): """ Attributes: - tableId @@ -14563,25 +13960,17 @@ class UpdateTransactionalStatsRequest: - deletedCount """ + thrift_spec = None - def __init__( - self, - tableId=None, - insertCount=None, - updatedCount=None, - deletedCount=None, - ): + + def __init__(self, tableId = None, insertCount = None, updatedCount = None, deletedCount = None,): self.tableId = tableId self.insertCount = insertCount self.updatedCount = updatedCount self.deletedCount = deletedCount def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14615,24 +14004,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("UpdateTransactionalStatsRequest") + oprot.writeStructBegin('UpdateTransactionalStatsRequest') if self.tableId is not None: - oprot.writeFieldBegin("tableId", TType.I64, 1) + oprot.writeFieldBegin('tableId', TType.I64, 1) oprot.writeI64(self.tableId) oprot.writeFieldEnd() if self.insertCount is not None: - oprot.writeFieldBegin("insertCount", TType.I64, 2) + oprot.writeFieldBegin('insertCount', TType.I64, 2) oprot.writeI64(self.insertCount) oprot.writeFieldEnd() if self.updatedCount is not None: - oprot.writeFieldBegin("updatedCount", TType.I64, 3) + oprot.writeFieldBegin('updatedCount', TType.I64, 3) oprot.writeI64(self.updatedCount) oprot.writeFieldEnd() if self.deletedCount is not None: - oprot.writeFieldBegin("deletedCount", TType.I64, 4) + oprot.writeFieldBegin('deletedCount', TType.I64, 4) oprot.writeI64(self.deletedCount) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14640,18 +14030,19 @@ def write(self, oprot): def validate(self): if self.tableId is None: - raise TProtocolException(message="Required field tableId is unset!") + raise TProtocolException(message='Required field tableId is unset!') if self.insertCount is None: - raise TProtocolException(message="Required field insertCount is unset!") + raise TProtocolException(message='Required field insertCount is unset!') if self.updatedCount is None: - raise TProtocolException(message="Required field updatedCount is unset!") + raise TProtocolException(message='Required field updatedCount is unset!') if self.deletedCount is None: - raise TProtocolException(message="Required field deletedCount is unset!") + raise TProtocolException(message='Required field deletedCount is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -14660,7 +14051,7 @@ def __ne__(self, other): return not (self == other) -class CommitTxnRequest: +class CommitTxnRequest(object): """ Attributes: - txnid @@ -14672,17 +14063,10 @@ class CommitTxnRequest: - txn_type """ + thrift_spec = None + - def __init__( - self, - txnid=None, - replPolicy=None, - writeEventInfos=None, - replLastIdInfo=None, - keyValue=None, - exclWriteEnabled=True, - txn_type=None, - ): + def __init__(self, txnid = None, replPolicy = None, writeEventInfos = None, replLastIdInfo = None, keyValue = None, exclWriteEnabled = True, txn_type = None,): self.txnid = txnid self.replPolicy = replPolicy self.writeEventInfos = writeEventInfos @@ -14692,11 +14076,7 @@ def __init__( self.txn_type = txn_type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14711,19 +14091,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.replPolicy = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.replPolicy = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.writeEventInfos = [] - (_etype670, _size667) = iprot.readListBegin() - for _i671 in range(_size667): - _elem672 = WriteEventInfo() - _elem672.read(iprot) - self.writeEventInfos.append(_elem672) + (_etype732, _size729) = iprot.readListBegin() + for _i733 in range(_size729): + _elem734 = WriteEventInfo() + _elem734.read(iprot) + self.writeEventInfos.append(_elem734) iprot.readListEnd() else: iprot.skip(ftype) @@ -14755,39 +14133,40 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CommitTxnRequest") + oprot.writeStructBegin('CommitTxnRequest') if self.txnid is not None: - oprot.writeFieldBegin("txnid", TType.I64, 1) + oprot.writeFieldBegin('txnid', TType.I64, 1) oprot.writeI64(self.txnid) oprot.writeFieldEnd() if self.replPolicy is not None: - oprot.writeFieldBegin("replPolicy", TType.STRING, 2) - oprot.writeString(self.replPolicy.encode("utf-8") if sys.version_info[0] == 2 else self.replPolicy) + oprot.writeFieldBegin('replPolicy', TType.STRING, 2) + oprot.writeString(self.replPolicy.encode('utf-8') if sys.version_info[0] == 2 else self.replPolicy) oprot.writeFieldEnd() if self.writeEventInfos is not None: - oprot.writeFieldBegin("writeEventInfos", TType.LIST, 3) + oprot.writeFieldBegin('writeEventInfos', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.writeEventInfos)) - for iter673 in self.writeEventInfos: - iter673.write(oprot) + for iter735 in self.writeEventInfos: + iter735.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.replLastIdInfo is not None: - oprot.writeFieldBegin("replLastIdInfo", TType.STRUCT, 4) + oprot.writeFieldBegin('replLastIdInfo', TType.STRUCT, 4) self.replLastIdInfo.write(oprot) oprot.writeFieldEnd() if self.keyValue is not None: - oprot.writeFieldBegin("keyValue", TType.STRUCT, 5) + oprot.writeFieldBegin('keyValue', TType.STRUCT, 5) self.keyValue.write(oprot) oprot.writeFieldEnd() if self.exclWriteEnabled is not None: - oprot.writeFieldBegin("exclWriteEnabled", TType.BOOL, 6) + oprot.writeFieldBegin('exclWriteEnabled', TType.BOOL, 6) oprot.writeBool(self.exclWriteEnabled) oprot.writeFieldEnd() if self.txn_type is not None: - oprot.writeFieldBegin("txn_type", TType.I32, 7) + oprot.writeFieldBegin('txn_type', TType.I32, 7) oprot.writeI32(self.txn_type) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14795,12 +14174,13 @@ def write(self, oprot): def validate(self): if self.txnid is None: - raise TProtocolException(message="Required field txnid is unset!") + raise TProtocolException(message='Required field txnid is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -14809,7 +14189,7 @@ def __ne__(self, other): return not (self == other) -class ReplTblWriteIdStateRequest: +class ReplTblWriteIdStateRequest(object): """ Attributes: - validWriteIdlist @@ -14820,16 +14200,10 @@ class ReplTblWriteIdStateRequest: - partNames """ + thrift_spec = None - def __init__( - self, - validWriteIdlist=None, - user=None, - hostName=None, - dbName=None, - tableName=None, - partNames=None, - ): + + def __init__(self, validWriteIdlist = None, user = None, hostName = None, dbName = None, tableName = None, partNames = None,): self.validWriteIdlist = validWriteIdlist self.user = user self.hostName = hostName @@ -14838,11 +14212,7 @@ def __init__( self.partNames = partNames def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14852,50 +14222,36 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.validWriteIdlist = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdlist = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.hostName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.hostName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.partNames = [] - (_etype677, _size674) = iprot.readListBegin() - for _i678 in range(_size674): - _elem679 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partNames.append(_elem679) + (_etype739, _size736) = iprot.readListBegin() + for _i740 in range(_size736): + _elem741 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partNames.append(_elem741) iprot.readListEnd() else: iprot.skip(ftype) @@ -14905,35 +14261,36 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ReplTblWriteIdStateRequest") + oprot.writeStructBegin('ReplTblWriteIdStateRequest') if self.validWriteIdlist is not None: - oprot.writeFieldBegin("validWriteIdlist", TType.STRING, 1) - oprot.writeString(self.validWriteIdlist.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdlist) + oprot.writeFieldBegin('validWriteIdlist', TType.STRING, 1) + oprot.writeString(self.validWriteIdlist.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdlist) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 2) - oprot.writeString(self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin('user', TType.STRING, 2) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() if self.hostName is not None: - oprot.writeFieldBegin("hostName", TType.STRING, 3) - oprot.writeString(self.hostName.encode("utf-8") if sys.version_info[0] == 2 else self.hostName) + oprot.writeFieldBegin('hostName', TType.STRING, 3) + oprot.writeString(self.hostName.encode('utf-8') if sys.version_info[0] == 2 else self.hostName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 4) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 4) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 5) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 5) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.partNames is not None: - oprot.writeFieldBegin("partNames", TType.LIST, 6) + oprot.writeFieldBegin('partNames', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter680 in self.partNames: - oprot.writeString(iter680.encode("utf-8") if sys.version_info[0] == 2 else iter680) + for iter742 in self.partNames: + oprot.writeString(iter742.encode('utf-8') if sys.version_info[0] == 2 else iter742) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14941,20 +14298,21 @@ def write(self, oprot): def validate(self): if self.validWriteIdlist is None: - raise TProtocolException(message="Required field validWriteIdlist is unset!") + raise TProtocolException(message='Required field validWriteIdlist is unset!') if self.user is None: - raise TProtocolException(message="Required field user is unset!") + raise TProtocolException(message='Required field user is unset!') if self.hostName is None: - raise TProtocolException(message="Required field hostName is unset!") + raise TProtocolException(message='Required field hostName is unset!') if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -14963,7 +14321,7 @@ def __ne__(self, other): return not (self == other) -class GetValidWriteIdsRequest: +class GetValidWriteIdsRequest(object): """ Attributes: - fullTableNames @@ -14971,23 +14329,16 @@ class GetValidWriteIdsRequest: - writeId """ + thrift_spec = None + - def __init__( - self, - fullTableNames=None, - validTxnList=None, - writeId=None, - ): + def __init__(self, fullTableNames = None, validTxnList = None, writeId = None,): self.fullTableNames = fullTableNames self.validTxnList = validTxnList self.writeId = writeId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14998,22 +14349,16 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fullTableNames = [] - (_etype684, _size681) = iprot.readListBegin() - for _i685 in range(_size681): - _elem686 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.fullTableNames.append(_elem686) + (_etype746, _size743) = iprot.readListBegin() + for _i747 in range(_size743): + _elem748 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.fullTableNames.append(_elem748) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.validTxnList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validTxnList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -15027,23 +14372,24 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetValidWriteIdsRequest") + oprot.writeStructBegin('GetValidWriteIdsRequest') if self.fullTableNames is not None: - oprot.writeFieldBegin("fullTableNames", TType.LIST, 1) + oprot.writeFieldBegin('fullTableNames', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.fullTableNames)) - for iter687 in self.fullTableNames: - oprot.writeString(iter687.encode("utf-8") if sys.version_info[0] == 2 else iter687) + for iter749 in self.fullTableNames: + oprot.writeString(iter749.encode('utf-8') if sys.version_info[0] == 2 else iter749) oprot.writeListEnd() oprot.writeFieldEnd() if self.validTxnList is not None: - oprot.writeFieldBegin("validTxnList", TType.STRING, 2) - oprot.writeString(self.validTxnList.encode("utf-8") if sys.version_info[0] == 2 else self.validTxnList) + oprot.writeFieldBegin('validTxnList', TType.STRING, 2) + oprot.writeString(self.validTxnList.encode('utf-8') if sys.version_info[0] == 2 else self.validTxnList) oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 3) + oprot.writeFieldBegin('writeId', TType.I64, 3) oprot.writeI64(self.writeId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15051,12 +14397,13 @@ def write(self, oprot): def validate(self): if self.fullTableNames is None: - raise TProtocolException(message="Required field fullTableNames is unset!") + raise TProtocolException(message='Required field fullTableNames is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15065,7 +14412,7 @@ def __ne__(self, other): return not (self == other) -class TableValidWriteIds: +class TableValidWriteIds(object): """ Attributes: - fullTableName @@ -15075,15 +14422,10 @@ class TableValidWriteIds: - abortedBits """ + thrift_spec = None + - def __init__( - self, - fullTableName=None, - writeIdHighWaterMark=None, - invalidWriteIds=None, - minOpenWriteId=None, - abortedBits=None, - ): + def __init__(self, fullTableName = None, writeIdHighWaterMark = None, invalidWriteIds = None, minOpenWriteId = None, abortedBits = None,): self.fullTableName = fullTableName self.writeIdHighWaterMark = writeIdHighWaterMark self.invalidWriteIds = invalidWriteIds @@ -15091,11 +14433,7 @@ def __init__( self.abortedBits = abortedBits def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15105,9 +14443,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.fullTableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.fullTableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -15118,10 +14454,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.invalidWriteIds = [] - (_etype691, _size688) = iprot.readListBegin() - for _i692 in range(_size688): - _elem693 = iprot.readI64() - self.invalidWriteIds.append(_elem693) + (_etype753, _size750) = iprot.readListBegin() + for _i754 in range(_size750): + _elem755 = iprot.readI64() + self.invalidWriteIds.append(_elem755) iprot.readListEnd() else: iprot.skip(ftype) @@ -15141,31 +14477,32 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TableValidWriteIds") + oprot.writeStructBegin('TableValidWriteIds') if self.fullTableName is not None: - oprot.writeFieldBegin("fullTableName", TType.STRING, 1) - oprot.writeString(self.fullTableName.encode("utf-8") if sys.version_info[0] == 2 else self.fullTableName) + oprot.writeFieldBegin('fullTableName', TType.STRING, 1) + oprot.writeString(self.fullTableName.encode('utf-8') if sys.version_info[0] == 2 else self.fullTableName) oprot.writeFieldEnd() if self.writeIdHighWaterMark is not None: - oprot.writeFieldBegin("writeIdHighWaterMark", TType.I64, 2) + oprot.writeFieldBegin('writeIdHighWaterMark', TType.I64, 2) oprot.writeI64(self.writeIdHighWaterMark) oprot.writeFieldEnd() if self.invalidWriteIds is not None: - oprot.writeFieldBegin("invalidWriteIds", TType.LIST, 3) + oprot.writeFieldBegin('invalidWriteIds', TType.LIST, 3) oprot.writeListBegin(TType.I64, len(self.invalidWriteIds)) - for iter694 in self.invalidWriteIds: - oprot.writeI64(iter694) + for iter756 in self.invalidWriteIds: + oprot.writeI64(iter756) oprot.writeListEnd() oprot.writeFieldEnd() if self.minOpenWriteId is not None: - oprot.writeFieldBegin("minOpenWriteId", TType.I64, 4) + oprot.writeFieldBegin('minOpenWriteId', TType.I64, 4) oprot.writeI64(self.minOpenWriteId) oprot.writeFieldEnd() if self.abortedBits is not None: - oprot.writeFieldBegin("abortedBits", TType.STRING, 5) + oprot.writeFieldBegin('abortedBits', TType.STRING, 5) oprot.writeBinary(self.abortedBits) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15173,18 +14510,19 @@ def write(self, oprot): def validate(self): if self.fullTableName is None: - raise TProtocolException(message="Required field fullTableName is unset!") + raise TProtocolException(message='Required field fullTableName is unset!') if self.writeIdHighWaterMark is None: - raise TProtocolException(message="Required field writeIdHighWaterMark is unset!") + raise TProtocolException(message='Required field writeIdHighWaterMark is unset!') if self.invalidWriteIds is None: - raise TProtocolException(message="Required field invalidWriteIds is unset!") + raise TProtocolException(message='Required field invalidWriteIds is unset!') if self.abortedBits is None: - raise TProtocolException(message="Required field abortedBits is unset!") + raise TProtocolException(message='Required field abortedBits is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15193,25 +14531,20 @@ def __ne__(self, other): return not (self == other) -class GetValidWriteIdsResponse: +class GetValidWriteIdsResponse(object): """ Attributes: - tblValidWriteIds """ + thrift_spec = None - def __init__( - self, - tblValidWriteIds=None, - ): + + def __init__(self, tblValidWriteIds = None,): self.tblValidWriteIds = tblValidWriteIds def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15222,11 +14555,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tblValidWriteIds = [] - (_etype698, _size695) = iprot.readListBegin() - for _i699 in range(_size695): - _elem700 = TableValidWriteIds() - _elem700.read(iprot) - self.tblValidWriteIds.append(_elem700) + (_etype760, _size757) = iprot.readListBegin() + for _i761 in range(_size757): + _elem762 = TableValidWriteIds() + _elem762.read(iprot) + self.tblValidWriteIds.append(_elem762) iprot.readListEnd() else: iprot.skip(ftype) @@ -15236,15 +14569,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetValidWriteIdsResponse") + oprot.writeStructBegin('GetValidWriteIdsResponse') if self.tblValidWriteIds is not None: - oprot.writeFieldBegin("tblValidWriteIds", TType.LIST, 1) + oprot.writeFieldBegin('tblValidWriteIds', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tblValidWriteIds)) - for iter701 in self.tblValidWriteIds: - iter701.write(oprot) + for iter763 in self.tblValidWriteIds: + iter763.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15252,12 +14586,13 @@ def write(self, oprot): def validate(self): if self.tblValidWriteIds is None: - raise TProtocolException(message="Required field tblValidWriteIds is unset!") + raise TProtocolException(message='Required field tblValidWriteIds is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15266,28 +14601,22 @@ def __ne__(self, other): return not (self == other) -class TxnToWriteId: +class TxnToWriteId(object): """ Attributes: - txnId - writeId """ + thrift_spec = None + - def __init__( - self, - txnId=None, - writeId=None, - ): + def __init__(self, txnId = None, writeId = None,): self.txnId = txnId self.writeId = writeId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15311,16 +14640,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TxnToWriteId") + oprot.writeStructBegin('TxnToWriteId') if self.txnId is not None: - oprot.writeFieldBegin("txnId", TType.I64, 1) + oprot.writeFieldBegin('txnId', TType.I64, 1) oprot.writeI64(self.txnId) oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 2) + oprot.writeFieldBegin('writeId', TType.I64, 2) oprot.writeI64(self.writeId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15328,14 +14658,15 @@ def write(self, oprot): def validate(self): if self.txnId is None: - raise TProtocolException(message="Required field txnId is unset!") + raise TProtocolException(message='Required field txnId is unset!') if self.writeId is None: - raise TProtocolException(message="Required field writeId is unset!") + raise TProtocolException(message='Required field writeId is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15344,7 +14675,7 @@ def __ne__(self, other): return not (self == other) -class AllocateTableWriteIdsRequest: +class AllocateTableWriteIdsRequest(object): """ Attributes: - dbName @@ -15352,29 +14683,22 @@ class AllocateTableWriteIdsRequest: - txnIds - replPolicy - srcTxnToWriteIdList + - reallocate """ + thrift_spec = None - def __init__( - self, - dbName=None, - tableName=None, - txnIds=None, - replPolicy=None, - srcTxnToWriteIdList=None, - ): + + def __init__(self, dbName = None, tableName = None, txnIds = None, replPolicy = None, srcTxnToWriteIdList = None, reallocate = False,): self.dbName = dbName self.tableName = tableName self.txnIds = txnIds self.replPolicy = replPolicy self.srcTxnToWriteIdList = srcTxnToWriteIdList + self.reallocate = reallocate def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15384,95 +14708,100 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.txnIds = [] - (_etype705, _size702) = iprot.readListBegin() - for _i706 in range(_size702): - _elem707 = iprot.readI64() - self.txnIds.append(_elem707) + (_etype767, _size764) = iprot.readListBegin() + for _i768 in range(_size764): + _elem769 = iprot.readI64() + self.txnIds.append(_elem769) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.replPolicy = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.replPolicy = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.srcTxnToWriteIdList = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in range(_size708): - _elem713 = TxnToWriteId() - _elem713.read(iprot) - self.srcTxnToWriteIdList.append(_elem713) + (_etype773, _size770) = iprot.readListBegin() + for _i774 in range(_size770): + _elem775 = TxnToWriteId() + _elem775.read(iprot) + self.srcTxnToWriteIdList.append(_elem775) iprot.readListEnd() else: iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.reallocate = iprot.readBool() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AllocateTableWriteIdsRequest") + oprot.writeStructBegin('AllocateTableWriteIdsRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 2) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.txnIds is not None: - oprot.writeFieldBegin("txnIds", TType.LIST, 3) + oprot.writeFieldBegin('txnIds', TType.LIST, 3) oprot.writeListBegin(TType.I64, len(self.txnIds)) - for iter714 in self.txnIds: - oprot.writeI64(iter714) + for iter776 in self.txnIds: + oprot.writeI64(iter776) oprot.writeListEnd() oprot.writeFieldEnd() if self.replPolicy is not None: - oprot.writeFieldBegin("replPolicy", TType.STRING, 4) - oprot.writeString(self.replPolicy.encode("utf-8") if sys.version_info[0] == 2 else self.replPolicy) + oprot.writeFieldBegin('replPolicy', TType.STRING, 4) + oprot.writeString(self.replPolicy.encode('utf-8') if sys.version_info[0] == 2 else self.replPolicy) oprot.writeFieldEnd() if self.srcTxnToWriteIdList is not None: - oprot.writeFieldBegin("srcTxnToWriteIdList", TType.LIST, 5) + oprot.writeFieldBegin('srcTxnToWriteIdList', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.srcTxnToWriteIdList)) - for iter715 in self.srcTxnToWriteIdList: - iter715.write(oprot) + for iter777 in self.srcTxnToWriteIdList: + iter777.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() + if self.reallocate is not None: + oprot.writeFieldBegin('reallocate', TType.BOOL, 6) + oprot.writeBool(self.reallocate) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15481,25 +14810,20 @@ def __ne__(self, other): return not (self == other) -class AllocateTableWriteIdsResponse: +class AllocateTableWriteIdsResponse(object): """ Attributes: - txnToWriteIds """ + thrift_spec = None + - def __init__( - self, - txnToWriteIds=None, - ): + def __init__(self, txnToWriteIds = None,): self.txnToWriteIds = txnToWriteIds def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15510,11 +14834,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txnToWriteIds = [] - (_etype719, _size716) = iprot.readListBegin() - for _i720 in range(_size716): - _elem721 = TxnToWriteId() - _elem721.read(iprot) - self.txnToWriteIds.append(_elem721) + (_etype781, _size778) = iprot.readListBegin() + for _i782 in range(_size778): + _elem783 = TxnToWriteId() + _elem783.read(iprot) + self.txnToWriteIds.append(_elem783) iprot.readListEnd() else: iprot.skip(ftype) @@ -15524,15 +14848,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AllocateTableWriteIdsResponse") + oprot.writeStructBegin('AllocateTableWriteIdsResponse') if self.txnToWriteIds is not None: - oprot.writeFieldBegin("txnToWriteIds", TType.LIST, 1) + oprot.writeFieldBegin('txnToWriteIds', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.txnToWriteIds)) - for iter722 in self.txnToWriteIds: - iter722.write(oprot) + for iter784 in self.txnToWriteIds: + iter784.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15540,12 +14865,13 @@ def write(self, oprot): def validate(self): if self.txnToWriteIds is None: - raise TProtocolException(message="Required field txnToWriteIds is unset!") + raise TProtocolException(message='Required field txnToWriteIds is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15554,28 +14880,22 @@ def __ne__(self, other): return not (self == other) -class MaxAllocatedTableWriteIdRequest: +class MaxAllocatedTableWriteIdRequest(object): """ Attributes: - dbName - tableName """ + thrift_spec = None - def __init__( - self, - dbName=None, - tableName=None, - ): + + def __init__(self, dbName = None, tableName = None,): self.dbName = dbName self.tableName = tableName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15585,16 +14905,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -15603,31 +14919,33 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("MaxAllocatedTableWriteIdRequest") + oprot.writeStructBegin('MaxAllocatedTableWriteIdRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 2) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15636,25 +14954,20 @@ def __ne__(self, other): return not (self == other) -class MaxAllocatedTableWriteIdResponse: +class MaxAllocatedTableWriteIdResponse(object): """ Attributes: - maxWriteId """ + thrift_spec = None + - def __init__( - self, - maxWriteId=None, - ): + def __init__(self, maxWriteId = None,): self.maxWriteId = maxWriteId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15673,12 +14986,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("MaxAllocatedTableWriteIdResponse") + oprot.writeStructBegin('MaxAllocatedTableWriteIdResponse') if self.maxWriteId is not None: - oprot.writeFieldBegin("maxWriteId", TType.I64, 1) + oprot.writeFieldBegin('maxWriteId', TType.I64, 1) oprot.writeI64(self.maxWriteId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15686,12 +15000,13 @@ def write(self, oprot): def validate(self): if self.maxWriteId is None: - raise TProtocolException(message="Required field maxWriteId is unset!") + raise TProtocolException(message='Required field maxWriteId is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15700,7 +15015,7 @@ def __ne__(self, other): return not (self == other) -class SeedTableWriteIdsRequest: +class SeedTableWriteIdsRequest(object): """ Attributes: - dbName @@ -15708,23 +15023,16 @@ class SeedTableWriteIdsRequest: - seedWriteId """ + thrift_spec = None - def __init__( - self, - dbName=None, - tableName=None, - seedWriteId=None, - ): + + def __init__(self, dbName = None, tableName = None, seedWriteId = None,): self.dbName = dbName self.tableName = tableName self.seedWriteId = seedWriteId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15734,16 +15042,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -15757,20 +15061,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SeedTableWriteIdsRequest") + oprot.writeStructBegin('SeedTableWriteIdsRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 2) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.seedWriteId is not None: - oprot.writeFieldBegin("seedWriteId", TType.I64, 3) + oprot.writeFieldBegin('seedWriteId', TType.I64, 3) oprot.writeI64(self.seedWriteId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15778,16 +15083,17 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') if self.seedWriteId is None: - raise TProtocolException(message="Required field seedWriteId is unset!") + raise TProtocolException(message='Required field seedWriteId is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15796,25 +15102,20 @@ def __ne__(self, other): return not (self == other) -class SeedTxnIdRequest: +class SeedTxnIdRequest(object): """ Attributes: - seedTxnId """ + thrift_spec = None + - def __init__( - self, - seedTxnId=None, - ): + def __init__(self, seedTxnId = None,): self.seedTxnId = seedTxnId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15833,12 +15134,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SeedTxnIdRequest") + oprot.writeStructBegin('SeedTxnIdRequest') if self.seedTxnId is not None: - oprot.writeFieldBegin("seedTxnId", TType.I64, 1) + oprot.writeFieldBegin('seedTxnId', TType.I64, 1) oprot.writeI64(self.seedTxnId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15846,12 +15148,13 @@ def write(self, oprot): def validate(self): if self.seedTxnId is None: - raise TProtocolException(message="Required field seedTxnId is unset!") + raise TProtocolException(message='Required field seedTxnId is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -15860,7 +15163,7 @@ def __ne__(self, other): return not (self == other) -class LockComponent: +class LockComponent(object): """ Attributes: - type @@ -15873,18 +15176,10 @@ class LockComponent: - isDynamicPartitionWrite """ + thrift_spec = None - def __init__( - self, - type=None, - level=None, - dbname=None, - tablename=None, - partitionname=None, - operationType=5, - isTransactional=False, - isDynamicPartitionWrite=False, - ): + + def __init__(self, type = None, level = None, dbname = None, tablename = None, partitionname = None, operationType = 5, isTransactional = False, isDynamicPartitionWrite = False,): self.type = type self.level = level self.dbname = dbname @@ -15895,11 +15190,7 @@ def __init__( self.isDynamicPartitionWrite = isDynamicPartitionWrite def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15919,23 +15210,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.partitionname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partitionname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -15959,40 +15244,41 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("LockComponent") + oprot.writeStructBegin('LockComponent') if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 1) + oprot.writeFieldBegin('type', TType.I32, 1) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.level is not None: - oprot.writeFieldBegin("level", TType.I32, 2) + oprot.writeFieldBegin('level', TType.I32, 2) oprot.writeI32(self.level) oprot.writeFieldEnd() if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 3) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 3) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 4) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldBegin('tablename', TType.STRING, 4) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) oprot.writeFieldEnd() if self.partitionname is not None: - oprot.writeFieldBegin("partitionname", TType.STRING, 5) - oprot.writeString(self.partitionname.encode("utf-8") if sys.version_info[0] == 2 else self.partitionname) + oprot.writeFieldBegin('partitionname', TType.STRING, 5) + oprot.writeString(self.partitionname.encode('utf-8') if sys.version_info[0] == 2 else self.partitionname) oprot.writeFieldEnd() if self.operationType is not None: - oprot.writeFieldBegin("operationType", TType.I32, 6) + oprot.writeFieldBegin('operationType', TType.I32, 6) oprot.writeI32(self.operationType) oprot.writeFieldEnd() if self.isTransactional is not None: - oprot.writeFieldBegin("isTransactional", TType.BOOL, 7) + oprot.writeFieldBegin('isTransactional', TType.BOOL, 7) oprot.writeBool(self.isTransactional) oprot.writeFieldEnd() if self.isDynamicPartitionWrite is not None: - oprot.writeFieldBegin("isDynamicPartitionWrite", TType.BOOL, 8) + oprot.writeFieldBegin('isDynamicPartitionWrite', TType.BOOL, 8) oprot.writeBool(self.isDynamicPartitionWrite) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16000,16 +15286,17 @@ def write(self, oprot): def validate(self): if self.type is None: - raise TProtocolException(message="Required field type is unset!") + raise TProtocolException(message='Required field type is unset!') if self.level is None: - raise TProtocolException(message="Required field level is unset!") + raise TProtocolException(message='Required field level is unset!') if self.dbname is None: - raise TProtocolException(message="Required field dbname is unset!") + raise TProtocolException(message='Required field dbname is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -16018,7 +15305,7 @@ def __ne__(self, other): return not (self == other) -class LockRequest: +class LockRequest(object): """ Attributes: - component @@ -16028,19 +15315,13 @@ class LockRequest: - agentInfo - zeroWaitReadEnabled - exclusiveCTAS + - locklessReadsEnabled """ + thrift_spec = None + - def __init__( - self, - component=None, - txnid=None, - user=None, - hostname=None, - agentInfo="Unknown", - zeroWaitReadEnabled=False, - exclusiveCTAS=False, - ): + def __init__(self, component = None, txnid = None, user = None, hostname = None, agentInfo = "Unknown", zeroWaitReadEnabled = False, exclusiveCTAS = False, locklessReadsEnabled = False,): self.component = component self.txnid = txnid self.user = user @@ -16048,13 +15329,10 @@ def __init__( self.agentInfo = agentInfo self.zeroWaitReadEnabled = zeroWaitReadEnabled self.exclusiveCTAS = exclusiveCTAS + self.locklessReadsEnabled = locklessReadsEnabled def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -16065,11 +15343,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype726, _size723) = iprot.readListBegin() - for _i727 in range(_size723): - _elem728 = LockComponent() - _elem728.read(iprot) - self.component.append(_elem728) + (_etype788, _size785) = iprot.readListBegin() + for _i789 in range(_size785): + _elem790 = LockComponent() + _elem790.read(iprot) + self.component.append(_elem790) iprot.readListEnd() else: iprot.skip(ftype) @@ -16080,23 +15358,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.hostname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.hostname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.agentInfo = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.agentInfo = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -16109,62 +15381,73 @@ def read(self, iprot): self.exclusiveCTAS = iprot.readBool() else: iprot.skip(ftype) + elif fid == 8: + if ftype == TType.BOOL: + self.locklessReadsEnabled = iprot.readBool() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("LockRequest") + oprot.writeStructBegin('LockRequest') if self.component is not None: - oprot.writeFieldBegin("component", TType.LIST, 1) + oprot.writeFieldBegin('component', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.component)) - for iter729 in self.component: - iter729.write(oprot) + for iter791 in self.component: + iter791.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: - oprot.writeFieldBegin("txnid", TType.I64, 2) + oprot.writeFieldBegin('txnid', TType.I64, 2) oprot.writeI64(self.txnid) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 3) - oprot.writeString(self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin('user', TType.STRING, 3) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() if self.hostname is not None: - oprot.writeFieldBegin("hostname", TType.STRING, 4) - oprot.writeString(self.hostname.encode("utf-8") if sys.version_info[0] == 2 else self.hostname) + oprot.writeFieldBegin('hostname', TType.STRING, 4) + oprot.writeString(self.hostname.encode('utf-8') if sys.version_info[0] == 2 else self.hostname) oprot.writeFieldEnd() if self.agentInfo is not None: - oprot.writeFieldBegin("agentInfo", TType.STRING, 5) - oprot.writeString(self.agentInfo.encode("utf-8") if sys.version_info[0] == 2 else self.agentInfo) + oprot.writeFieldBegin('agentInfo', TType.STRING, 5) + oprot.writeString(self.agentInfo.encode('utf-8') if sys.version_info[0] == 2 else self.agentInfo) oprot.writeFieldEnd() if self.zeroWaitReadEnabled is not None: - oprot.writeFieldBegin("zeroWaitReadEnabled", TType.BOOL, 6) + oprot.writeFieldBegin('zeroWaitReadEnabled', TType.BOOL, 6) oprot.writeBool(self.zeroWaitReadEnabled) oprot.writeFieldEnd() if self.exclusiveCTAS is not None: - oprot.writeFieldBegin("exclusiveCTAS", TType.BOOL, 7) + oprot.writeFieldBegin('exclusiveCTAS', TType.BOOL, 7) oprot.writeBool(self.exclusiveCTAS) oprot.writeFieldEnd() + if self.locklessReadsEnabled is not None: + oprot.writeFieldBegin('locklessReadsEnabled', TType.BOOL, 8) + oprot.writeBool(self.locklessReadsEnabled) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.component is None: - raise TProtocolException(message="Required field component is unset!") + raise TProtocolException(message='Required field component is unset!') if self.user is None: - raise TProtocolException(message="Required field user is unset!") + raise TProtocolException(message='Required field user is unset!') if self.hostname is None: - raise TProtocolException(message="Required field hostname is unset!") + raise TProtocolException(message='Required field hostname is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -16173,7 +15456,7 @@ def __ne__(self, other): return not (self == other) -class LockResponse: +class LockResponse(object): """ Attributes: - lockid @@ -16181,23 +15464,16 @@ class LockResponse: - errorMessage """ + thrift_spec = None + - def __init__( - self, - lockid=None, - state=None, - errorMessage=None, - ): + def __init__(self, lockid = None, state = None, errorMessage = None,): self.lockid = lockid self.state = state self.errorMessage = errorMessage def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -16217,9 +15493,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.errorMessage = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.errorMessage = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -16228,35 +15502,37 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("LockResponse") + oprot.writeStructBegin('LockResponse') if self.lockid is not None: - oprot.writeFieldBegin("lockid", TType.I64, 1) + oprot.writeFieldBegin('lockid', TType.I64, 1) oprot.writeI64(self.lockid) oprot.writeFieldEnd() if self.state is not None: - oprot.writeFieldBegin("state", TType.I32, 2) + oprot.writeFieldBegin('state', TType.I32, 2) oprot.writeI32(self.state) oprot.writeFieldEnd() if self.errorMessage is not None: - oprot.writeFieldBegin("errorMessage", TType.STRING, 3) - oprot.writeString(self.errorMessage.encode("utf-8") if sys.version_info[0] == 2 else self.errorMessage) + oprot.writeFieldBegin('errorMessage', TType.STRING, 3) + oprot.writeString(self.errorMessage.encode('utf-8') if sys.version_info[0] == 2 else self.errorMessage) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.lockid is None: - raise TProtocolException(message="Required field lockid is unset!") + raise TProtocolException(message='Required field lockid is unset!') if self.state is None: - raise TProtocolException(message="Required field state is unset!") + raise TProtocolException(message='Required field state is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -16265,7 +15541,7 @@ def __ne__(self, other): return not (self == other) -class CheckLockRequest: +class CheckLockRequest(object): """ Attributes: - lockid @@ -16273,23 +15549,16 @@ class CheckLockRequest: - elapsed_ms """ + thrift_spec = None - def __init__( - self, - lockid=None, - txnid=None, - elapsed_ms=None, - ): + + def __init__(self, lockid = None, txnid = None, elapsed_ms = None,): self.lockid = lockid self.txnid = txnid self.elapsed_ms = elapsed_ms def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -16318,20 +15587,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CheckLockRequest") + oprot.writeStructBegin('CheckLockRequest') if self.lockid is not None: - oprot.writeFieldBegin("lockid", TType.I64, 1) + oprot.writeFieldBegin('lockid', TType.I64, 1) oprot.writeI64(self.lockid) oprot.writeFieldEnd() if self.txnid is not None: - oprot.writeFieldBegin("txnid", TType.I64, 2) + oprot.writeFieldBegin('txnid', TType.I64, 2) oprot.writeI64(self.txnid) oprot.writeFieldEnd() if self.elapsed_ms is not None: - oprot.writeFieldBegin("elapsed_ms", TType.I64, 3) + oprot.writeFieldBegin('elapsed_ms', TType.I64, 3) oprot.writeI64(self.elapsed_ms) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16339,12 +15609,13 @@ def write(self, oprot): def validate(self): if self.lockid is None: - raise TProtocolException(message="Required field lockid is unset!") + raise TProtocolException(message='Required field lockid is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -16353,25 +15624,20 @@ def __ne__(self, other): return not (self == other) -class UnlockRequest: +class UnlockRequest(object): """ Attributes: - lockid """ + thrift_spec = None + - def __init__( - self, - lockid=None, - ): + def __init__(self, lockid = None,): self.lockid = lockid def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -16390,12 +15656,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("UnlockRequest") + oprot.writeStructBegin('UnlockRequest') if self.lockid is not None: - oprot.writeFieldBegin("lockid", TType.I64, 1) + oprot.writeFieldBegin('lockid', TType.I64, 1) oprot.writeI64(self.lockid) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16403,12 +15670,13 @@ def write(self, oprot): def validate(self): if self.lockid is None: - raise TProtocolException(message="Required field lockid is unset!") + raise TProtocolException(message='Required field lockid is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -16417,7 +15685,7 @@ def __ne__(self, other): return not (self == other) -class ShowLocksRequest: +class ShowLocksRequest(object): """ Attributes: - dbname @@ -16427,15 +15695,10 @@ class ShowLocksRequest: - txnid """ + thrift_spec = None - def __init__( - self, - dbname=None, - tablename=None, - partname=None, - isExtended=False, - txnid=None, - ): + + def __init__(self, dbname = None, tablename = None, partname = None, isExtended = False, txnid = None,): self.dbname = dbname self.tablename = tablename self.partname = partname @@ -16443,11 +15706,7 @@ def __init__( self.txnid = txnid def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -16457,23 +15716,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.partname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -16492,28 +15745,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ShowLocksRequest") + oprot.writeStructBegin('ShowLocksRequest') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 2) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldBegin('tablename', TType.STRING, 2) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) oprot.writeFieldEnd() if self.partname is not None: - oprot.writeFieldBegin("partname", TType.STRING, 3) - oprot.writeString(self.partname.encode("utf-8") if sys.version_info[0] == 2 else self.partname) + oprot.writeFieldBegin('partname', TType.STRING, 3) + oprot.writeString(self.partname.encode('utf-8') if sys.version_info[0] == 2 else self.partname) oprot.writeFieldEnd() if self.isExtended is not None: - oprot.writeFieldBegin("isExtended", TType.BOOL, 4) + oprot.writeFieldBegin('isExtended', TType.BOOL, 4) oprot.writeBool(self.isExtended) oprot.writeFieldEnd() if self.txnid is not None: - oprot.writeFieldBegin("txnid", TType.I64, 5) + oprot.writeFieldBegin('txnid', TType.I64, 5) oprot.writeI64(self.txnid) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16523,8 +15777,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -16533,7 +15788,7 @@ def __ne__(self, other): return not (self == other) -class ShowLocksResponseElement: +class ShowLocksResponseElement(object): """ Attributes: - lockid @@ -16554,26 +15809,10 @@ class ShowLocksResponseElement: - lockIdInternal """ + thrift_spec = None + - def __init__( - self, - lockid=None, - dbname=None, - tablename=None, - partname=None, - state=None, - type=None, - txnid=None, - lastheartbeat=None, - acquiredat=None, - user=None, - hostname=None, - heartbeatCount=0, - agentInfo=None, - blockedByExtId=None, - blockedByIntId=None, - lockIdInternal=None, - ): + def __init__(self, lockid = None, dbname = None, tablename = None, partname = None, state = None, type = None, txnid = None, lastheartbeat = None, acquiredat = None, user = None, hostname = None, heartbeatCount = 0, agentInfo = None, blockedByExtId = None, blockedByIntId = None, lockIdInternal = None,): self.lockid = lockid self.dbname = dbname self.tablename = tablename @@ -16592,11 +15831,7 @@ def __init__( self.lockIdInternal = lockIdInternal def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -16611,23 +15846,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.partname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -16657,16 +15886,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: - self.hostname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.hostname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 12: @@ -16676,9 +15901,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 13: if ftype == TType.STRING: - self.agentInfo = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.agentInfo = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 14: @@ -16702,72 +15925,73 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ShowLocksResponseElement") + oprot.writeStructBegin('ShowLocksResponseElement') if self.lockid is not None: - oprot.writeFieldBegin("lockid", TType.I64, 1) + oprot.writeFieldBegin('lockid', TType.I64, 1) oprot.writeI64(self.lockid) oprot.writeFieldEnd() if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 2) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 2) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 3) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldBegin('tablename', TType.STRING, 3) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) oprot.writeFieldEnd() if self.partname is not None: - oprot.writeFieldBegin("partname", TType.STRING, 4) - oprot.writeString(self.partname.encode("utf-8") if sys.version_info[0] == 2 else self.partname) + oprot.writeFieldBegin('partname', TType.STRING, 4) + oprot.writeString(self.partname.encode('utf-8') if sys.version_info[0] == 2 else self.partname) oprot.writeFieldEnd() if self.state is not None: - oprot.writeFieldBegin("state", TType.I32, 5) + oprot.writeFieldBegin('state', TType.I32, 5) oprot.writeI32(self.state) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 6) + oprot.writeFieldBegin('type', TType.I32, 6) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.txnid is not None: - oprot.writeFieldBegin("txnid", TType.I64, 7) + oprot.writeFieldBegin('txnid', TType.I64, 7) oprot.writeI64(self.txnid) oprot.writeFieldEnd() if self.lastheartbeat is not None: - oprot.writeFieldBegin("lastheartbeat", TType.I64, 8) + oprot.writeFieldBegin('lastheartbeat', TType.I64, 8) oprot.writeI64(self.lastheartbeat) oprot.writeFieldEnd() if self.acquiredat is not None: - oprot.writeFieldBegin("acquiredat", TType.I64, 9) + oprot.writeFieldBegin('acquiredat', TType.I64, 9) oprot.writeI64(self.acquiredat) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 10) - oprot.writeString(self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin('user', TType.STRING, 10) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() if self.hostname is not None: - oprot.writeFieldBegin("hostname", TType.STRING, 11) - oprot.writeString(self.hostname.encode("utf-8") if sys.version_info[0] == 2 else self.hostname) + oprot.writeFieldBegin('hostname', TType.STRING, 11) + oprot.writeString(self.hostname.encode('utf-8') if sys.version_info[0] == 2 else self.hostname) oprot.writeFieldEnd() if self.heartbeatCount is not None: - oprot.writeFieldBegin("heartbeatCount", TType.I32, 12) + oprot.writeFieldBegin('heartbeatCount', TType.I32, 12) oprot.writeI32(self.heartbeatCount) oprot.writeFieldEnd() if self.agentInfo is not None: - oprot.writeFieldBegin("agentInfo", TType.STRING, 13) - oprot.writeString(self.agentInfo.encode("utf-8") if sys.version_info[0] == 2 else self.agentInfo) + oprot.writeFieldBegin('agentInfo', TType.STRING, 13) + oprot.writeString(self.agentInfo.encode('utf-8') if sys.version_info[0] == 2 else self.agentInfo) oprot.writeFieldEnd() if self.blockedByExtId is not None: - oprot.writeFieldBegin("blockedByExtId", TType.I64, 14) + oprot.writeFieldBegin('blockedByExtId', TType.I64, 14) oprot.writeI64(self.blockedByExtId) oprot.writeFieldEnd() if self.blockedByIntId is not None: - oprot.writeFieldBegin("blockedByIntId", TType.I64, 15) + oprot.writeFieldBegin('blockedByIntId', TType.I64, 15) oprot.writeI64(self.blockedByIntId) oprot.writeFieldEnd() if self.lockIdInternal is not None: - oprot.writeFieldBegin("lockIdInternal", TType.I64, 16) + oprot.writeFieldBegin('lockIdInternal', TType.I64, 16) oprot.writeI64(self.lockIdInternal) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16775,24 +15999,25 @@ def write(self, oprot): def validate(self): if self.lockid is None: - raise TProtocolException(message="Required field lockid is unset!") + raise TProtocolException(message='Required field lockid is unset!') if self.dbname is None: - raise TProtocolException(message="Required field dbname is unset!") + raise TProtocolException(message='Required field dbname is unset!') if self.state is None: - raise TProtocolException(message="Required field state is unset!") + raise TProtocolException(message='Required field state is unset!') if self.type is None: - raise TProtocolException(message="Required field type is unset!") + raise TProtocolException(message='Required field type is unset!') if self.lastheartbeat is None: - raise TProtocolException(message="Required field lastheartbeat is unset!") + raise TProtocolException(message='Required field lastheartbeat is unset!') if self.user is None: - raise TProtocolException(message="Required field user is unset!") + raise TProtocolException(message='Required field user is unset!') if self.hostname is None: - raise TProtocolException(message="Required field hostname is unset!") + raise TProtocolException(message='Required field hostname is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -16801,25 +16026,20 @@ def __ne__(self, other): return not (self == other) -class ShowLocksResponse: +class ShowLocksResponse(object): """ Attributes: - locks """ + thrift_spec = None - def __init__( - self, - locks=None, - ): + + def __init__(self, locks = None,): self.locks = locks def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -16830,11 +16050,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype733, _size730) = iprot.readListBegin() - for _i734 in range(_size730): - _elem735 = ShowLocksResponseElement() - _elem735.read(iprot) - self.locks.append(_elem735) + (_etype795, _size792) = iprot.readListBegin() + for _i796 in range(_size792): + _elem797 = ShowLocksResponseElement() + _elem797.read(iprot) + self.locks.append(_elem797) iprot.readListEnd() else: iprot.skip(ftype) @@ -16844,15 +16064,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ShowLocksResponse") + oprot.writeStructBegin('ShowLocksResponse') if self.locks is not None: - oprot.writeFieldBegin("locks", TType.LIST, 1) + oprot.writeFieldBegin('locks', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.locks)) - for iter736 in self.locks: - iter736.write(oprot) + for iter798 in self.locks: + iter798.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16862,8 +16083,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -16872,28 +16094,22 @@ def __ne__(self, other): return not (self == other) -class HeartbeatRequest: +class HeartbeatRequest(object): """ Attributes: - lockid - txnid """ + thrift_spec = None + - def __init__( - self, - lockid=None, - txnid=None, - ): + def __init__(self, lockid = None, txnid = None,): self.lockid = lockid self.txnid = txnid def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -16917,16 +16133,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("HeartbeatRequest") + oprot.writeStructBegin('HeartbeatRequest') if self.lockid is not None: - oprot.writeFieldBegin("lockid", TType.I64, 1) + oprot.writeFieldBegin('lockid', TType.I64, 1) oprot.writeI64(self.lockid) oprot.writeFieldEnd() if self.txnid is not None: - oprot.writeFieldBegin("txnid", TType.I64, 2) + oprot.writeFieldBegin('txnid', TType.I64, 2) oprot.writeI64(self.txnid) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16936,8 +16153,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -16946,28 +16164,22 @@ def __ne__(self, other): return not (self == other) -class HeartbeatTxnRangeRequest: +class HeartbeatTxnRangeRequest(object): """ Attributes: - min - max """ + thrift_spec = None - def __init__( - self, - min=None, - max=None, - ): + + def __init__(self, min = None, max = None,): self.min = min self.max = max def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -16991,16 +16203,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("HeartbeatTxnRangeRequest") + oprot.writeStructBegin('HeartbeatTxnRangeRequest') if self.min is not None: - oprot.writeFieldBegin("min", TType.I64, 1) + oprot.writeFieldBegin('min', TType.I64, 1) oprot.writeI64(self.min) oprot.writeFieldEnd() if self.max is not None: - oprot.writeFieldBegin("max", TType.I64, 2) + oprot.writeFieldBegin('max', TType.I64, 2) oprot.writeI64(self.max) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17008,14 +16221,15 @@ def write(self, oprot): def validate(self): if self.min is None: - raise TProtocolException(message="Required field min is unset!") + raise TProtocolException(message='Required field min is unset!') if self.max is None: - raise TProtocolException(message="Required field max is unset!") + raise TProtocolException(message='Required field max is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -17024,28 +16238,22 @@ def __ne__(self, other): return not (self == other) -class HeartbeatTxnRangeResponse: +class HeartbeatTxnRangeResponse(object): """ Attributes: - aborted - nosuch """ + thrift_spec = None + - def __init__( - self, - aborted=None, - nosuch=None, - ): + def __init__(self, aborted = None, nosuch = None,): self.aborted = aborted self.nosuch = nosuch def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -17056,20 +16264,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype740, _size737) = iprot.readSetBegin() - for _i741 in range(_size737): - _elem742 = iprot.readI64() - self.aborted.add(_elem742) + (_etype802, _size799) = iprot.readSetBegin() + for _i803 in range(_size799): + _elem804 = iprot.readI64() + self.aborted.add(_elem804) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype746, _size743) = iprot.readSetBegin() - for _i747 in range(_size743): - _elem748 = iprot.readI64() - self.nosuch.add(_elem748) + (_etype808, _size805) = iprot.readSetBegin() + for _i809 in range(_size805): + _elem810 = iprot.readI64() + self.nosuch.add(_elem810) iprot.readSetEnd() else: iprot.skip(ftype) @@ -17079,22 +16287,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("HeartbeatTxnRangeResponse") + oprot.writeStructBegin('HeartbeatTxnRangeResponse') if self.aborted is not None: - oprot.writeFieldBegin("aborted", TType.SET, 1) + oprot.writeFieldBegin('aborted', TType.SET, 1) oprot.writeSetBegin(TType.I64, len(self.aborted)) - for iter749 in self.aborted: - oprot.writeI64(iter749) + for iter811 in self.aborted: + oprot.writeI64(iter811) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: - oprot.writeFieldBegin("nosuch", TType.SET, 2) + oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter750 in self.nosuch: - oprot.writeI64(iter750) + for iter812 in self.nosuch: + oprot.writeI64(iter812) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17102,14 +16311,15 @@ def write(self, oprot): def validate(self): if self.aborted is None: - raise TProtocolException(message="Required field aborted is unset!") + raise TProtocolException(message='Required field aborted is unset!') if self.nosuch is None: - raise TProtocolException(message="Required field nosuch is unset!") + raise TProtocolException(message='Required field nosuch is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -17118,7 +16328,7 @@ def __ne__(self, other): return not (self == other) -class CompactionRequest: +class CompactionRequest(object): """ Attributes: - dbname @@ -17129,20 +16339,15 @@ class CompactionRequest: - properties - initiatorId - initiatorVersion + - poolName + - numberOfBuckets + - orderByClause """ + thrift_spec = None + - def __init__( - self, - dbname=None, - tablename=None, - partitionname=None, - type=None, - runas=None, - properties=None, - initiatorId=None, - initiatorVersion=None, - ): + def __init__(self, dbname = None, tablename = None, partitionname = None, type = None, runas = None, properties = None, initiatorId = None, initiatorVersion = None, poolName = None, numberOfBuckets = None, orderByClause = None,): self.dbname = dbname self.tablename = tablename self.partitionname = partitionname @@ -17151,13 +16356,12 @@ def __init__( self.properties = properties self.initiatorId = initiatorId self.initiatorVersion = initiatorVersion + self.poolName = poolName + self.numberOfBuckets = numberOfBuckets + self.orderByClause = orderByClause def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -17167,23 +16371,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.partitionname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partitionname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -17193,42 +16391,43 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.runas = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.runas = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype752, _vtype753, _size751) = iprot.readMapBegin() - for _i755 in range(_size751): - _key756 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val757 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.properties[_key756] = _val757 + (_ktype814, _vtype815, _size813) = iprot.readMapBegin() + for _i817 in range(_size813): + _key818 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val819 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.properties[_key818] = _val819 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.initiatorId = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.initiatorId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.initiatorVersion = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.initiatorVersion = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.poolName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I32: + self.numberOfBuckets = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.orderByClause = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -17237,61 +16436,75 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CompactionRequest") + oprot.writeStructBegin('CompactionRequest') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 2) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldBegin('tablename', TType.STRING, 2) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) oprot.writeFieldEnd() if self.partitionname is not None: - oprot.writeFieldBegin("partitionname", TType.STRING, 3) - oprot.writeString(self.partitionname.encode("utf-8") if sys.version_info[0] == 2 else self.partitionname) + oprot.writeFieldBegin('partitionname', TType.STRING, 3) + oprot.writeString(self.partitionname.encode('utf-8') if sys.version_info[0] == 2 else self.partitionname) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 4) + oprot.writeFieldBegin('type', TType.I32, 4) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.runas is not None: - oprot.writeFieldBegin("runas", TType.STRING, 5) - oprot.writeString(self.runas.encode("utf-8") if sys.version_info[0] == 2 else self.runas) + oprot.writeFieldBegin('runas', TType.STRING, 5) + oprot.writeString(self.runas.encode('utf-8') if sys.version_info[0] == 2 else self.runas) oprot.writeFieldEnd() if self.properties is not None: - oprot.writeFieldBegin("properties", TType.MAP, 6) + oprot.writeFieldBegin('properties', TType.MAP, 6) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter758, viter759 in self.properties.items(): - oprot.writeString(kiter758.encode("utf-8") if sys.version_info[0] == 2 else kiter758) - oprot.writeString(viter759.encode("utf-8") if sys.version_info[0] == 2 else viter759) + for kiter820, viter821 in self.properties.items(): + oprot.writeString(kiter820.encode('utf-8') if sys.version_info[0] == 2 else kiter820) + oprot.writeString(viter821.encode('utf-8') if sys.version_info[0] == 2 else viter821) oprot.writeMapEnd() oprot.writeFieldEnd() if self.initiatorId is not None: - oprot.writeFieldBegin("initiatorId", TType.STRING, 7) - oprot.writeString(self.initiatorId.encode("utf-8") if sys.version_info[0] == 2 else self.initiatorId) + oprot.writeFieldBegin('initiatorId', TType.STRING, 7) + oprot.writeString(self.initiatorId.encode('utf-8') if sys.version_info[0] == 2 else self.initiatorId) oprot.writeFieldEnd() if self.initiatorVersion is not None: - oprot.writeFieldBegin("initiatorVersion", TType.STRING, 8) - oprot.writeString(self.initiatorVersion.encode("utf-8") if sys.version_info[0] == 2 else self.initiatorVersion) + oprot.writeFieldBegin('initiatorVersion', TType.STRING, 8) + oprot.writeString(self.initiatorVersion.encode('utf-8') if sys.version_info[0] == 2 else self.initiatorVersion) + oprot.writeFieldEnd() + if self.poolName is not None: + oprot.writeFieldBegin('poolName', TType.STRING, 9) + oprot.writeString(self.poolName.encode('utf-8') if sys.version_info[0] == 2 else self.poolName) + oprot.writeFieldEnd() + if self.numberOfBuckets is not None: + oprot.writeFieldBegin('numberOfBuckets', TType.I32, 10) + oprot.writeI32(self.numberOfBuckets) + oprot.writeFieldEnd() + if self.orderByClause is not None: + oprot.writeFieldBegin('orderByClause', TType.STRING, 11) + oprot.writeString(self.orderByClause.encode('utf-8') if sys.version_info[0] == 2 else self.orderByClause) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbname is None: - raise TProtocolException(message="Required field dbname is unset!") + raise TProtocolException(message='Required field dbname is unset!') if self.tablename is None: - raise TProtocolException(message="Required field tablename is unset!") + raise TProtocolException(message='Required field tablename is unset!') if self.type is None: - raise TProtocolException(message="Required field type is unset!") + raise TProtocolException(message='Required field type is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -17300,7 +16513,7 @@ def __ne__(self, other): return not (self == other) -class CompactionInfoStruct: +class CompactionInfoStruct(object): """ Attributes: - id @@ -17319,28 +16532,15 @@ class CompactionInfoStruct: - hasoldabort - enqueueTime - retryRetention + - poolname + - numberOfBuckets + - orderByClause """ + thrift_spec = None + - def __init__( - self, - id=None, - dbname=None, - tablename=None, - partitionname=None, - type=None, - runas=None, - properties=None, - toomanyaborts=None, - state=None, - workerId=None, - start=None, - highestWriteId=None, - errorMessage=None, - hasoldabort=None, - enqueueTime=None, - retryRetention=None, - ): + def __init__(self, id = None, dbname = None, tablename = None, partitionname = None, type = None, runas = None, properties = None, toomanyaborts = None, state = None, workerId = None, start = None, highestWriteId = None, errorMessage = None, hasoldabort = None, enqueueTime = None, retryRetention = None, poolname = None, numberOfBuckets = None, orderByClause = None,): self.id = id self.dbname = dbname self.tablename = tablename @@ -17357,13 +16557,12 @@ def __init__( self.hasoldabort = hasoldabort self.enqueueTime = enqueueTime self.retryRetention = retryRetention + self.poolname = poolname + self.numberOfBuckets = numberOfBuckets + self.orderByClause = orderByClause def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -17378,23 +16577,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.partitionname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partitionname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -17404,16 +16597,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.runas = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.runas = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.properties = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.properties = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: @@ -17423,16 +16612,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.state = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.state = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.workerId = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.workerId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: @@ -17447,9 +16632,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 13: if ftype == TType.STRING: - self.errorMessage = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.errorMessage = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 14: @@ -17467,97 +16650,126 @@ def read(self, iprot): self.retryRetention = iprot.readI64() else: iprot.skip(ftype) + elif fid == 17: + if ftype == TType.STRING: + self.poolname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 18: + if ftype == TType.I32: + self.numberOfBuckets = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 19: + if ftype == TType.STRING: + self.orderByClause = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CompactionInfoStruct") + oprot.writeStructBegin('CompactionInfoStruct') if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 1) + oprot.writeFieldBegin('id', TType.I64, 1) oprot.writeI64(self.id) oprot.writeFieldEnd() if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 2) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 2) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 3) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldBegin('tablename', TType.STRING, 3) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) oprot.writeFieldEnd() if self.partitionname is not None: - oprot.writeFieldBegin("partitionname", TType.STRING, 4) - oprot.writeString(self.partitionname.encode("utf-8") if sys.version_info[0] == 2 else self.partitionname) + oprot.writeFieldBegin('partitionname', TType.STRING, 4) + oprot.writeString(self.partitionname.encode('utf-8') if sys.version_info[0] == 2 else self.partitionname) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 5) + oprot.writeFieldBegin('type', TType.I32, 5) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.runas is not None: - oprot.writeFieldBegin("runas", TType.STRING, 6) - oprot.writeString(self.runas.encode("utf-8") if sys.version_info[0] == 2 else self.runas) + oprot.writeFieldBegin('runas', TType.STRING, 6) + oprot.writeString(self.runas.encode('utf-8') if sys.version_info[0] == 2 else self.runas) oprot.writeFieldEnd() if self.properties is not None: - oprot.writeFieldBegin("properties", TType.STRING, 7) - oprot.writeString(self.properties.encode("utf-8") if sys.version_info[0] == 2 else self.properties) + oprot.writeFieldBegin('properties', TType.STRING, 7) + oprot.writeString(self.properties.encode('utf-8') if sys.version_info[0] == 2 else self.properties) oprot.writeFieldEnd() if self.toomanyaborts is not None: - oprot.writeFieldBegin("toomanyaborts", TType.BOOL, 8) + oprot.writeFieldBegin('toomanyaborts', TType.BOOL, 8) oprot.writeBool(self.toomanyaborts) oprot.writeFieldEnd() if self.state is not None: - oprot.writeFieldBegin("state", TType.STRING, 9) - oprot.writeString(self.state.encode("utf-8") if sys.version_info[0] == 2 else self.state) + oprot.writeFieldBegin('state', TType.STRING, 9) + oprot.writeString(self.state.encode('utf-8') if sys.version_info[0] == 2 else self.state) oprot.writeFieldEnd() if self.workerId is not None: - oprot.writeFieldBegin("workerId", TType.STRING, 10) - oprot.writeString(self.workerId.encode("utf-8") if sys.version_info[0] == 2 else self.workerId) + oprot.writeFieldBegin('workerId', TType.STRING, 10) + oprot.writeString(self.workerId.encode('utf-8') if sys.version_info[0] == 2 else self.workerId) oprot.writeFieldEnd() if self.start is not None: - oprot.writeFieldBegin("start", TType.I64, 11) + oprot.writeFieldBegin('start', TType.I64, 11) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.highestWriteId is not None: - oprot.writeFieldBegin("highestWriteId", TType.I64, 12) + oprot.writeFieldBegin('highestWriteId', TType.I64, 12) oprot.writeI64(self.highestWriteId) oprot.writeFieldEnd() if self.errorMessage is not None: - oprot.writeFieldBegin("errorMessage", TType.STRING, 13) - oprot.writeString(self.errorMessage.encode("utf-8") if sys.version_info[0] == 2 else self.errorMessage) + oprot.writeFieldBegin('errorMessage', TType.STRING, 13) + oprot.writeString(self.errorMessage.encode('utf-8') if sys.version_info[0] == 2 else self.errorMessage) oprot.writeFieldEnd() if self.hasoldabort is not None: - oprot.writeFieldBegin("hasoldabort", TType.BOOL, 14) + oprot.writeFieldBegin('hasoldabort', TType.BOOL, 14) oprot.writeBool(self.hasoldabort) oprot.writeFieldEnd() if self.enqueueTime is not None: - oprot.writeFieldBegin("enqueueTime", TType.I64, 15) + oprot.writeFieldBegin('enqueueTime', TType.I64, 15) oprot.writeI64(self.enqueueTime) oprot.writeFieldEnd() if self.retryRetention is not None: - oprot.writeFieldBegin("retryRetention", TType.I64, 16) + oprot.writeFieldBegin('retryRetention', TType.I64, 16) oprot.writeI64(self.retryRetention) oprot.writeFieldEnd() + if self.poolname is not None: + oprot.writeFieldBegin('poolname', TType.STRING, 17) + oprot.writeString(self.poolname.encode('utf-8') if sys.version_info[0] == 2 else self.poolname) + oprot.writeFieldEnd() + if self.numberOfBuckets is not None: + oprot.writeFieldBegin('numberOfBuckets', TType.I32, 18) + oprot.writeI32(self.numberOfBuckets) + oprot.writeFieldEnd() + if self.orderByClause is not None: + oprot.writeFieldBegin('orderByClause', TType.STRING, 19) + oprot.writeString(self.orderByClause.encode('utf-8') if sys.version_info[0] == 2 else self.orderByClause) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.id is None: - raise TProtocolException(message="Required field id is unset!") + raise TProtocolException(message='Required field id is unset!') if self.dbname is None: - raise TProtocolException(message="Required field dbname is unset!") + raise TProtocolException(message='Required field dbname is unset!') if self.tablename is None: - raise TProtocolException(message="Required field tablename is unset!") + raise TProtocolException(message='Required field tablename is unset!') if self.type is None: - raise TProtocolException(message="Required field type is unset!") + raise TProtocolException(message='Required field type is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -17566,25 +16778,20 @@ def __ne__(self, other): return not (self == other) -class OptionalCompactionInfoStruct: +class OptionalCompactionInfoStruct(object): """ Attributes: - ci """ + thrift_spec = None + - def __init__( - self, - ci=None, - ): + def __init__(self, ci = None,): self.ci = ci def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -17604,12 +16811,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("OptionalCompactionInfoStruct") + oprot.writeStructBegin('OptionalCompactionInfoStruct') if self.ci is not None: - oprot.writeFieldBegin("ci", TType.STRUCT, 1) + oprot.writeFieldBegin('ci', TType.STRUCT, 1) self.ci.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17619,8 +16827,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -17629,7 +16838,7 @@ def __ne__(self, other): return not (self == other) -class CompactionMetricsDataStruct: +class CompactionMetricsDataStruct(object): """ Attributes: - dbname @@ -17641,17 +16850,10 @@ class CompactionMetricsDataStruct: - threshold """ + thrift_spec = None - def __init__( - self, - dbname=None, - tblname=None, - partitionname=None, - type=None, - metricvalue=None, - version=None, - threshold=None, - ): + + def __init__(self, dbname = None, tblname = None, partitionname = None, type = None, metricvalue = None, version = None, threshold = None,): self.dbname = dbname self.tblname = tblname self.partitionname = partitionname @@ -17661,11 +16863,7 @@ def __init__( self.threshold = threshold def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -17675,23 +16873,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.partitionname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partitionname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -17720,36 +16912,37 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CompactionMetricsDataStruct") + oprot.writeStructBegin('CompactionMetricsDataStruct') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tblname is not None: - oprot.writeFieldBegin("tblname", TType.STRING, 2) - oprot.writeString(self.tblname.encode("utf-8") if sys.version_info[0] == 2 else self.tblname) + oprot.writeFieldBegin('tblname', TType.STRING, 2) + oprot.writeString(self.tblname.encode('utf-8') if sys.version_info[0] == 2 else self.tblname) oprot.writeFieldEnd() if self.partitionname is not None: - oprot.writeFieldBegin("partitionname", TType.STRING, 3) - oprot.writeString(self.partitionname.encode("utf-8") if sys.version_info[0] == 2 else self.partitionname) + oprot.writeFieldBegin('partitionname', TType.STRING, 3) + oprot.writeString(self.partitionname.encode('utf-8') if sys.version_info[0] == 2 else self.partitionname) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 4) + oprot.writeFieldBegin('type', TType.I32, 4) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.metricvalue is not None: - oprot.writeFieldBegin("metricvalue", TType.I32, 5) + oprot.writeFieldBegin('metricvalue', TType.I32, 5) oprot.writeI32(self.metricvalue) oprot.writeFieldEnd() if self.version is not None: - oprot.writeFieldBegin("version", TType.I32, 6) + oprot.writeFieldBegin('version', TType.I32, 6) oprot.writeI32(self.version) oprot.writeFieldEnd() if self.threshold is not None: - oprot.writeFieldBegin("threshold", TType.I32, 7) + oprot.writeFieldBegin('threshold', TType.I32, 7) oprot.writeI32(self.threshold) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17757,22 +16950,23 @@ def write(self, oprot): def validate(self): if self.dbname is None: - raise TProtocolException(message="Required field dbname is unset!") + raise TProtocolException(message='Required field dbname is unset!') if self.tblname is None: - raise TProtocolException(message="Required field tblname is unset!") + raise TProtocolException(message='Required field tblname is unset!') if self.type is None: - raise TProtocolException(message="Required field type is unset!") + raise TProtocolException(message='Required field type is unset!') if self.metricvalue is None: - raise TProtocolException(message="Required field metricvalue is unset!") + raise TProtocolException(message='Required field metricvalue is unset!') if self.version is None: - raise TProtocolException(message="Required field version is unset!") + raise TProtocolException(message='Required field version is unset!') if self.threshold is None: - raise TProtocolException(message="Required field threshold is unset!") + raise TProtocolException(message='Required field threshold is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -17781,25 +16975,20 @@ def __ne__(self, other): return not (self == other) -class CompactionMetricsDataResponse: +class CompactionMetricsDataResponse(object): """ Attributes: - data """ + thrift_spec = None + - def __init__( - self, - data=None, - ): + def __init__(self, data = None,): self.data = data def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -17819,12 +17008,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CompactionMetricsDataResponse") + oprot.writeStructBegin('CompactionMetricsDataResponse') if self.data is not None: - oprot.writeFieldBegin("data", TType.STRUCT, 1) + oprot.writeFieldBegin('data', TType.STRUCT, 1) self.data.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17834,8 +17024,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -17844,7 +17035,7 @@ def __ne__(self, other): return not (self == other) -class CompactionMetricsDataRequest: +class CompactionMetricsDataRequest(object): """ Attributes: - dbName @@ -17853,25 +17044,17 @@ class CompactionMetricsDataRequest: - type """ + thrift_spec = None - def __init__( - self, - dbName=None, - tblName=None, - partitionName=None, - type=None, - ): + + def __init__(self, dbName = None, tblName = None, partitionName = None, type = None,): self.dbName = dbName self.tblName = tblName self.partitionName = partitionName self.type = type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -17881,23 +17064,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.partitionName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partitionName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -17911,24 +17088,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CompactionMetricsDataRequest") + oprot.writeStructBegin('CompactionMetricsDataRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.partitionName is not None: - oprot.writeFieldBegin("partitionName", TType.STRING, 3) - oprot.writeString(self.partitionName.encode("utf-8") if sys.version_info[0] == 2 else self.partitionName) + oprot.writeFieldBegin('partitionName', TType.STRING, 3) + oprot.writeString(self.partitionName.encode('utf-8') if sys.version_info[0] == 2 else self.partitionName) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 4) + oprot.writeFieldBegin('type', TType.I32, 4) oprot.writeI32(self.type) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17936,16 +17114,17 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.type is None: - raise TProtocolException(message="Required field type is unset!") + raise TProtocolException(message='Required field type is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -17954,7 +17133,7 @@ def __ne__(self, other): return not (self == other) -class CompactionResponse: +class CompactionResponse(object): """ Attributes: - id @@ -17963,25 +17142,17 @@ class CompactionResponse: - errormessage """ + thrift_spec = None + - def __init__( - self, - id=None, - state=None, - accepted=None, - errormessage=None, - ): + def __init__(self, id = None, state = None, accepted = None, errormessage = None,): self.id = id self.state = state self.accepted = accepted self.errormessage = errormessage def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -17996,9 +17167,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.state = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.state = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -18008,9 +17177,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.errormessage = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.errormessage = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -18019,41 +17186,43 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CompactionResponse") + oprot.writeStructBegin('CompactionResponse') if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 1) + oprot.writeFieldBegin('id', TType.I64, 1) oprot.writeI64(self.id) oprot.writeFieldEnd() if self.state is not None: - oprot.writeFieldBegin("state", TType.STRING, 2) - oprot.writeString(self.state.encode("utf-8") if sys.version_info[0] == 2 else self.state) + oprot.writeFieldBegin('state', TType.STRING, 2) + oprot.writeString(self.state.encode('utf-8') if sys.version_info[0] == 2 else self.state) oprot.writeFieldEnd() if self.accepted is not None: - oprot.writeFieldBegin("accepted", TType.BOOL, 3) + oprot.writeFieldBegin('accepted', TType.BOOL, 3) oprot.writeBool(self.accepted) oprot.writeFieldEnd() if self.errormessage is not None: - oprot.writeFieldBegin("errormessage", TType.STRING, 4) - oprot.writeString(self.errormessage.encode("utf-8") if sys.version_info[0] == 2 else self.errormessage) + oprot.writeFieldBegin('errormessage', TType.STRING, 4) + oprot.writeString(self.errormessage.encode('utf-8') if sys.version_info[0] == 2 else self.errormessage) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.id is None: - raise TProtocolException(message="Required field id is unset!") + raise TProtocolException(message='Required field id is unset!') if self.state is None: - raise TProtocolException(message="Required field state is unset!") + raise TProtocolException(message='Required field state is unset!') if self.accepted is None: - raise TProtocolException(message="Required field accepted is unset!") + raise TProtocolException(message='Required field accepted is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -18062,13 +17231,36 @@ def __ne__(self, other): return not (self == other) -class ShowCompactRequest: +class ShowCompactRequest(object): + """ + Attributes: + - id + - poolName + - dbName + - tbName + - partName + - type + - state + - limit + - order + + """ + thrift_spec = None + + + def __init__(self, id = None, poolName = None, dbName = None, tbName = None, partName = None, type = None, state = None, limit = None, order = None,): + self.id = id + self.poolName = poolName + self.dbName = dbName + self.tbName = tbName + self.partName = partName + self.type = type + self.state = state + self.limit = limit + self.order = order + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -18076,16 +17268,98 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.I64: + self.id = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.poolName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.tbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.partName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.state = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I64: + self.limit = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.order = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ShowCompactRequest") + oprot.writeStructBegin('ShowCompactRequest') + if self.id is not None: + oprot.writeFieldBegin('id', TType.I64, 1) + oprot.writeI64(self.id) + oprot.writeFieldEnd() + if self.poolName is not None: + oprot.writeFieldBegin('poolName', TType.STRING, 2) + oprot.writeString(self.poolName.encode('utf-8') if sys.version_info[0] == 2 else self.poolName) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 3) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldEnd() + if self.tbName is not None: + oprot.writeFieldBegin('tbName', TType.STRING, 4) + oprot.writeString(self.tbName.encode('utf-8') if sys.version_info[0] == 2 else self.tbName) + oprot.writeFieldEnd() + if self.partName is not None: + oprot.writeFieldBegin('partName', TType.STRING, 5) + oprot.writeString(self.partName.encode('utf-8') if sys.version_info[0] == 2 else self.partName) + oprot.writeFieldEnd() + if self.type is not None: + oprot.writeFieldBegin('type', TType.I32, 6) + oprot.writeI32(self.type) + oprot.writeFieldEnd() + if self.state is not None: + oprot.writeFieldBegin('state', TType.STRING, 7) + oprot.writeString(self.state.encode('utf-8') if sys.version_info[0] == 2 else self.state) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I64, 8) + oprot.writeI64(self.limit) + oprot.writeFieldEnd() + if self.order is not None: + oprot.writeFieldBegin('order', TType.STRING, 9) + oprot.writeString(self.order.encode('utf-8') if sys.version_info[0] == 2 else self.order) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -18093,8 +17367,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -18103,7 +17378,7 @@ def __ne__(self, other): return not (self == other) -class ShowCompactResponseElement: +class ShowCompactResponseElement(object): """ Attributes: - dbname @@ -18125,31 +17400,17 @@ class ShowCompactResponseElement: - initiatorId - initiatorVersion - cleanerStart + - poolName + - nextTxnId + - txnId + - commitTime + - hightestWriteId """ + thrift_spec = None - def __init__( - self, - dbname=None, - tablename=None, - partitionname=None, - type=None, - state=None, - workerid=None, - start=None, - runAs=None, - hightestTxnId=None, - metaInfo=None, - endTime=None, - hadoopJobId="None", - id=None, - errorMessage=None, - enqueueTime=None, - workerVersion=None, - initiatorId=None, - initiatorVersion=None, - cleanerStart=None, - ): + + def __init__(self, dbname = None, tablename = None, partitionname = None, type = None, state = None, workerid = None, start = None, runAs = None, hightestTxnId = None, metaInfo = None, endTime = None, hadoopJobId = "None", id = None, errorMessage = None, enqueueTime = None, workerVersion = None, initiatorId = None, initiatorVersion = None, cleanerStart = None, poolName = None, nextTxnId = None, txnId = None, commitTime = None, hightestWriteId = None,): self.dbname = dbname self.tablename = tablename self.partitionname = partitionname @@ -18169,13 +17430,14 @@ def __init__( self.initiatorId = initiatorId self.initiatorVersion = initiatorVersion self.cleanerStart = cleanerStart + self.poolName = poolName + self.nextTxnId = nextTxnId + self.txnId = txnId + self.commitTime = commitTime + self.hightestWriteId = hightestWriteId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -18185,23 +17447,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.partitionname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partitionname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -18211,16 +17467,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.state = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.state = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.workerid = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.workerid = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -18230,9 +17482,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.runAs = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.runAs = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: @@ -18242,9 +17492,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.metaInfo = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.metaInfo = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: @@ -18254,9 +17502,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: - self.hadoopJobId = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.hadoopJobId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 13: @@ -18266,9 +17512,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 14: if ftype == TType.STRING: - self.errorMessage = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.errorMessage = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 15: @@ -18278,23 +17522,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 16: if ftype == TType.STRING: - self.workerVersion = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.workerVersion = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 17: if ftype == TType.STRING: - self.initiatorId = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.initiatorId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 18: if ftype == TType.STRING: - self.initiatorVersion = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.initiatorVersion = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 19: @@ -18302,109 +17540,156 @@ def read(self, iprot): self.cleanerStart = iprot.readI64() else: iprot.skip(ftype) + elif fid == 20: + if ftype == TType.STRING: + self.poolName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.I64: + self.nextTxnId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 22: + if ftype == TType.I64: + self.txnId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 23: + if ftype == TType.I64: + self.commitTime = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 24: + if ftype == TType.I64: + self.hightestWriteId = iprot.readI64() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ShowCompactResponseElement") + oprot.writeStructBegin('ShowCompactResponseElement') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 2) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldBegin('tablename', TType.STRING, 2) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) oprot.writeFieldEnd() if self.partitionname is not None: - oprot.writeFieldBegin("partitionname", TType.STRING, 3) - oprot.writeString(self.partitionname.encode("utf-8") if sys.version_info[0] == 2 else self.partitionname) + oprot.writeFieldBegin('partitionname', TType.STRING, 3) + oprot.writeString(self.partitionname.encode('utf-8') if sys.version_info[0] == 2 else self.partitionname) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 4) + oprot.writeFieldBegin('type', TType.I32, 4) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.state is not None: - oprot.writeFieldBegin("state", TType.STRING, 5) - oprot.writeString(self.state.encode("utf-8") if sys.version_info[0] == 2 else self.state) + oprot.writeFieldBegin('state', TType.STRING, 5) + oprot.writeString(self.state.encode('utf-8') if sys.version_info[0] == 2 else self.state) oprot.writeFieldEnd() if self.workerid is not None: - oprot.writeFieldBegin("workerid", TType.STRING, 6) - oprot.writeString(self.workerid.encode("utf-8") if sys.version_info[0] == 2 else self.workerid) + oprot.writeFieldBegin('workerid', TType.STRING, 6) + oprot.writeString(self.workerid.encode('utf-8') if sys.version_info[0] == 2 else self.workerid) oprot.writeFieldEnd() if self.start is not None: - oprot.writeFieldBegin("start", TType.I64, 7) + oprot.writeFieldBegin('start', TType.I64, 7) oprot.writeI64(self.start) oprot.writeFieldEnd() if self.runAs is not None: - oprot.writeFieldBegin("runAs", TType.STRING, 8) - oprot.writeString(self.runAs.encode("utf-8") if sys.version_info[0] == 2 else self.runAs) + oprot.writeFieldBegin('runAs', TType.STRING, 8) + oprot.writeString(self.runAs.encode('utf-8') if sys.version_info[0] == 2 else self.runAs) oprot.writeFieldEnd() if self.hightestTxnId is not None: - oprot.writeFieldBegin("hightestTxnId", TType.I64, 9) + oprot.writeFieldBegin('hightestTxnId', TType.I64, 9) oprot.writeI64(self.hightestTxnId) oprot.writeFieldEnd() if self.metaInfo is not None: - oprot.writeFieldBegin("metaInfo", TType.STRING, 10) - oprot.writeString(self.metaInfo.encode("utf-8") if sys.version_info[0] == 2 else self.metaInfo) + oprot.writeFieldBegin('metaInfo', TType.STRING, 10) + oprot.writeString(self.metaInfo.encode('utf-8') if sys.version_info[0] == 2 else self.metaInfo) oprot.writeFieldEnd() if self.endTime is not None: - oprot.writeFieldBegin("endTime", TType.I64, 11) + oprot.writeFieldBegin('endTime', TType.I64, 11) oprot.writeI64(self.endTime) oprot.writeFieldEnd() if self.hadoopJobId is not None: - oprot.writeFieldBegin("hadoopJobId", TType.STRING, 12) - oprot.writeString(self.hadoopJobId.encode("utf-8") if sys.version_info[0] == 2 else self.hadoopJobId) + oprot.writeFieldBegin('hadoopJobId', TType.STRING, 12) + oprot.writeString(self.hadoopJobId.encode('utf-8') if sys.version_info[0] == 2 else self.hadoopJobId) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 13) + oprot.writeFieldBegin('id', TType.I64, 13) oprot.writeI64(self.id) oprot.writeFieldEnd() if self.errorMessage is not None: - oprot.writeFieldBegin("errorMessage", TType.STRING, 14) - oprot.writeString(self.errorMessage.encode("utf-8") if sys.version_info[0] == 2 else self.errorMessage) + oprot.writeFieldBegin('errorMessage', TType.STRING, 14) + oprot.writeString(self.errorMessage.encode('utf-8') if sys.version_info[0] == 2 else self.errorMessage) oprot.writeFieldEnd() if self.enqueueTime is not None: - oprot.writeFieldBegin("enqueueTime", TType.I64, 15) + oprot.writeFieldBegin('enqueueTime', TType.I64, 15) oprot.writeI64(self.enqueueTime) oprot.writeFieldEnd() if self.workerVersion is not None: - oprot.writeFieldBegin("workerVersion", TType.STRING, 16) - oprot.writeString(self.workerVersion.encode("utf-8") if sys.version_info[0] == 2 else self.workerVersion) + oprot.writeFieldBegin('workerVersion', TType.STRING, 16) + oprot.writeString(self.workerVersion.encode('utf-8') if sys.version_info[0] == 2 else self.workerVersion) oprot.writeFieldEnd() if self.initiatorId is not None: - oprot.writeFieldBegin("initiatorId", TType.STRING, 17) - oprot.writeString(self.initiatorId.encode("utf-8") if sys.version_info[0] == 2 else self.initiatorId) + oprot.writeFieldBegin('initiatorId', TType.STRING, 17) + oprot.writeString(self.initiatorId.encode('utf-8') if sys.version_info[0] == 2 else self.initiatorId) oprot.writeFieldEnd() if self.initiatorVersion is not None: - oprot.writeFieldBegin("initiatorVersion", TType.STRING, 18) - oprot.writeString(self.initiatorVersion.encode("utf-8") if sys.version_info[0] == 2 else self.initiatorVersion) + oprot.writeFieldBegin('initiatorVersion', TType.STRING, 18) + oprot.writeString(self.initiatorVersion.encode('utf-8') if sys.version_info[0] == 2 else self.initiatorVersion) oprot.writeFieldEnd() if self.cleanerStart is not None: - oprot.writeFieldBegin("cleanerStart", TType.I64, 19) + oprot.writeFieldBegin('cleanerStart', TType.I64, 19) oprot.writeI64(self.cleanerStart) oprot.writeFieldEnd() + if self.poolName is not None: + oprot.writeFieldBegin('poolName', TType.STRING, 20) + oprot.writeString(self.poolName.encode('utf-8') if sys.version_info[0] == 2 else self.poolName) + oprot.writeFieldEnd() + if self.nextTxnId is not None: + oprot.writeFieldBegin('nextTxnId', TType.I64, 21) + oprot.writeI64(self.nextTxnId) + oprot.writeFieldEnd() + if self.txnId is not None: + oprot.writeFieldBegin('txnId', TType.I64, 22) + oprot.writeI64(self.txnId) + oprot.writeFieldEnd() + if self.commitTime is not None: + oprot.writeFieldBegin('commitTime', TType.I64, 23) + oprot.writeI64(self.commitTime) + oprot.writeFieldEnd() + if self.hightestWriteId is not None: + oprot.writeFieldBegin('hightestWriteId', TType.I64, 24) + oprot.writeI64(self.hightestWriteId) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbname is None: - raise TProtocolException(message="Required field dbname is unset!") + raise TProtocolException(message='Required field dbname is unset!') if self.tablename is None: - raise TProtocolException(message="Required field tablename is unset!") + raise TProtocolException(message='Required field tablename is unset!') if self.type is None: - raise TProtocolException(message="Required field type is unset!") + raise TProtocolException(message='Required field type is unset!') if self.state is None: - raise TProtocolException(message="Required field state is unset!") + raise TProtocolException(message='Required field state is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -18413,25 +17698,20 @@ def __ne__(self, other): return not (self == other) -class ShowCompactResponse: +class ShowCompactResponse(object): """ Attributes: - compacts """ + thrift_spec = None - def __init__( - self, - compacts=None, - ): + + def __init__(self, compacts = None,): self.compacts = compacts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -18442,11 +17722,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype763, _size760) = iprot.readListBegin() - for _i764 in range(_size760): - _elem765 = ShowCompactResponseElement() - _elem765.read(iprot) - self.compacts.append(_elem765) + (_etype825, _size822) = iprot.readListBegin() + for _i826 in range(_size822): + _elem827 = ShowCompactResponseElement() + _elem827.read(iprot) + self.compacts.append(_elem827) iprot.readListEnd() else: iprot.skip(ftype) @@ -18456,15 +17736,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ShowCompactResponse") + oprot.writeStructBegin('ShowCompactResponse') if self.compacts is not None: - oprot.writeFieldBegin("compacts", TType.LIST, 1) + oprot.writeFieldBegin('compacts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.compacts)) - for iter766 in self.compacts: - iter766.write(oprot) + for iter828 in self.compacts: + iter828.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18472,12 +17753,13 @@ def write(self, oprot): def validate(self): if self.compacts is None: - raise TProtocolException(message="Required field compacts is unset!") + raise TProtocolException(message='Required field compacts is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -18486,34 +17768,24 @@ def __ne__(self, other): return not (self == other) -class GetLatestCommittedCompactionInfoRequest: +class AbortCompactionRequest(object): """ Attributes: - - dbname - - tablename - - partitionnames - - lastCompactionId + - compactionIds + - type + - poolName """ + thrift_spec = None - def __init__( - self, - dbname=None, - tablename=None, - partitionnames=None, - lastCompactionId=None, - ): - self.dbname = dbname - self.tablename = tablename - self.partitionnames = partitionnames - self.lastCompactionId = lastCompactionId + + def __init__(self, compactionIds = None, type = None, poolName = None,): + self.compactionIds = compactionIds + self.type = type + self.poolName = poolName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -18522,36 +17794,23 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.LIST: + self.compactionIds = [] + (_etype832, _size829) = iprot.readListBegin() + for _i833 in range(_size829): + _elem834 = iprot.readI64() + self.compactionIds.append(_elem834) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.type = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.LIST: - self.partitionnames = [] - (_etype770, _size767) = iprot.readListBegin() - for _i771 in range(_size767): - _elem772 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partitionnames.append(_elem772) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I64: - self.lastCompactionId = iprot.readI64() + if ftype == TType.STRING: + self.poolName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -18560,42 +17819,38 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetLatestCommittedCompactionInfoRequest") - if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 1) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) - oprot.writeFieldEnd() - if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 2) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) - oprot.writeFieldEnd() - if self.partitionnames is not None: - oprot.writeFieldBegin("partitionnames", TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter773 in self.partitionnames: - oprot.writeString(iter773.encode("utf-8") if sys.version_info[0] == 2 else iter773) + oprot.writeStructBegin('AbortCompactionRequest') + if self.compactionIds is not None: + oprot.writeFieldBegin('compactionIds', TType.LIST, 1) + oprot.writeListBegin(TType.I64, len(self.compactionIds)) + for iter835 in self.compactionIds: + oprot.writeI64(iter835) oprot.writeListEnd() oprot.writeFieldEnd() - if self.lastCompactionId is not None: - oprot.writeFieldBegin("lastCompactionId", TType.I64, 4) - oprot.writeI64(self.lastCompactionId) + if self.type is not None: + oprot.writeFieldBegin('type', TType.STRING, 2) + oprot.writeString(self.type.encode('utf-8') if sys.version_info[0] == 2 else self.type) + oprot.writeFieldEnd() + if self.poolName is not None: + oprot.writeFieldBegin('poolName', TType.STRING, 3) + oprot.writeString(self.poolName.encode('utf-8') if sys.version_info[0] == 2 else self.poolName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.dbname is None: - raise TProtocolException(message="Required field dbname is unset!") - if self.tablename is None: - raise TProtocolException(message="Required field tablename is unset!") + if self.compactionIds is None: + raise TProtocolException(message='Required field compactionIds is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -18604,25 +17859,24 @@ def __ne__(self, other): return not (self == other) -class GetLatestCommittedCompactionInfoResponse: +class AbortCompactionResponseElement(object): """ Attributes: - - compactions + - compactionId + - status + - message """ + thrift_spec = None - def __init__( - self, - compactions=None, - ): - self.compactions = compactions + + def __init__(self, compactionId = None, status = None, message = None,): + self.compactionId = compactionId + self.status = status + self.message = message def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -18631,14 +17885,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.LIST: - self.compactions = [] - (_etype777, _size774) = iprot.readListBegin() - for _i778 in range(_size774): - _elem779 = CompactionInfoStruct() - _elem779.read(iprot) - self.compactions.append(_elem779) - iprot.readListEnd() + if ftype == TType.I64: + self.compactionId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.status = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -18647,28 +17905,35 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetLatestCommittedCompactionInfoResponse") - if self.compactions is not None: - oprot.writeFieldBegin("compactions", TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.compactions)) - for iter780 in self.compactions: - iter780.write(oprot) - oprot.writeListEnd() + oprot.writeStructBegin('AbortCompactionResponseElement') + if self.compactionId is not None: + oprot.writeFieldBegin('compactionId', TType.I64, 1) + oprot.writeI64(self.compactionId) + oprot.writeFieldEnd() + if self.status is not None: + oprot.writeFieldBegin('status', TType.STRING, 2) + oprot.writeString(self.status.encode('utf-8') if sys.version_info[0] == 2 else self.status) + oprot.writeFieldEnd() + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRING, 3) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.compactions is None: - raise TProtocolException(message="Required field compactions is unset!") + if self.compactionId is None: + raise TProtocolException(message='Required field compactionId is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -18677,28 +17942,20 @@ def __ne__(self, other): return not (self == other) -class FindNextCompactRequest: +class AbortCompactResponse(object): """ Attributes: - - workerId - - workerVersion + - abortedcompacts """ + thrift_spec = None - def __init__( - self, - workerId=None, - workerVersion=None, - ): - self.workerId = workerId - self.workerVersion = workerVersion + + def __init__(self, abortedcompacts = None,): + self.abortedcompacts = abortedcompacts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -18707,17 +17964,15 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.workerId = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.workerVersion = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.MAP: + self.abortedcompacts = {} + (_ktype837, _vtype838, _size836) = iprot.readMapBegin() + for _i840 in range(_size836): + _key841 = iprot.readI64() + _val842 = AbortCompactionResponseElement() + _val842.read(iprot) + self.abortedcompacts[_key841] = _val842 + iprot.readMapEnd() else: iprot.skip(ftype) else: @@ -18726,27 +17981,31 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("FindNextCompactRequest") - if self.workerId is not None: - oprot.writeFieldBegin("workerId", TType.STRING, 1) - oprot.writeString(self.workerId.encode("utf-8") if sys.version_info[0] == 2 else self.workerId) - oprot.writeFieldEnd() - if self.workerVersion is not None: - oprot.writeFieldBegin("workerVersion", TType.STRING, 2) - oprot.writeString(self.workerVersion.encode("utf-8") if sys.version_info[0] == 2 else self.workerVersion) + oprot.writeStructBegin('AbortCompactResponse') + if self.abortedcompacts is not None: + oprot.writeFieldBegin('abortedcompacts', TType.MAP, 1) + oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.abortedcompacts)) + for kiter843, viter844 in self.abortedcompacts.items(): + oprot.writeI64(kiter843) + viter844.write(oprot) + oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.abortedcompacts is None: + raise TProtocolException(message='Required field abortedcompacts is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -18755,40 +18014,26 @@ def __ne__(self, other): return not (self == other) -class AddDynamicPartitions: +class GetLatestCommittedCompactionInfoRequest(object): """ Attributes: - - txnid - - writeid - dbname - tablename - partitionnames - - operationType + - lastCompactionId """ + thrift_spec = None - def __init__( - self, - txnid=None, - writeid=None, - dbname=None, - tablename=None, - partitionnames=None, - operationType=5, - ): - self.txnid = txnid - self.writeid = writeid + + def __init__(self, dbname = None, tablename = None, partitionnames = None, lastCompactionId = None,): self.dbname = dbname self.tablename = tablename self.partitionnames = partitionnames - self.operationType = operationType + self.lastCompactionId = lastCompactionId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -18797,46 +18042,28 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I64: - self.txnid = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.I64: - self.writeid = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 3: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) - elif fid == 4: + elif fid == 2: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) - elif fid == 5: + elif fid == 3: if ftype == TType.LIST: self.partitionnames = [] - (_etype784, _size781) = iprot.readListBegin() - for _i785 in range(_size781): - _elem786 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partitionnames.append(_elem786) + (_etype848, _size845) = iprot.readListBegin() + for _i849 in range(_size845): + _elem850 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partitionnames.append(_elem850) iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I32: - self.operationType = iprot.readI32() + elif fid == 4: + if ftype == TType.I64: + self.lastCompactionId = iprot.readI64() else: iprot.skip(ftype) else: @@ -18845,56 +18072,44 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddDynamicPartitions") - if self.txnid is not None: - oprot.writeFieldBegin("txnid", TType.I64, 1) - oprot.writeI64(self.txnid) - oprot.writeFieldEnd() - if self.writeid is not None: - oprot.writeFieldBegin("writeid", TType.I64, 2) - oprot.writeI64(self.writeid) - oprot.writeFieldEnd() + oprot.writeStructBegin('GetLatestCommittedCompactionInfoRequest') if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 3) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 1) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 4) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldBegin('tablename', TType.STRING, 2) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) oprot.writeFieldEnd() if self.partitionnames is not None: - oprot.writeFieldBegin("partitionnames", TType.LIST, 5) + oprot.writeFieldBegin('partitionnames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter787 in self.partitionnames: - oprot.writeString(iter787.encode("utf-8") if sys.version_info[0] == 2 else iter787) + for iter851 in self.partitionnames: + oprot.writeString(iter851.encode('utf-8') if sys.version_info[0] == 2 else iter851) oprot.writeListEnd() oprot.writeFieldEnd() - if self.operationType is not None: - oprot.writeFieldBegin("operationType", TType.I32, 6) - oprot.writeI32(self.operationType) + if self.lastCompactionId is not None: + oprot.writeFieldBegin('lastCompactionId', TType.I64, 4) + oprot.writeI64(self.lastCompactionId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.txnid is None: - raise TProtocolException(message="Required field txnid is unset!") - if self.writeid is None: - raise TProtocolException(message="Required field writeid is unset!") if self.dbname is None: - raise TProtocolException(message="Required field dbname is unset!") + raise TProtocolException(message='Required field dbname is unset!') if self.tablename is None: - raise TProtocolException(message="Required field tablename is unset!") - if self.partitionnames is None: - raise TProtocolException(message="Required field partitionnames is unset!") + raise TProtocolException(message='Required field tablename is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -18903,27 +18118,304 @@ def __ne__(self, other): return not (self == other) -class BasicTxnInfo: +class GetLatestCommittedCompactionInfoResponse(object): """ Attributes: - - isnull - - time - - txnid - - dbname - - tablename + - compactions + + """ + thrift_spec = None + + + def __init__(self, compactions = None,): + self.compactions = compactions + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.LIST: + self.compactions = [] + (_etype855, _size852) = iprot.readListBegin() + for _i856 in range(_size852): + _elem857 = CompactionInfoStruct() + _elem857.read(iprot) + self.compactions.append(_elem857) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('GetLatestCommittedCompactionInfoResponse') + if self.compactions is not None: + oprot.writeFieldBegin('compactions', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.compactions)) + for iter858 in self.compactions: + iter858.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.compactions is None: + raise TProtocolException(message='Required field compactions is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 FindNextCompactRequest(object): + """ + Attributes: + - workerId + - workerVersion + - poolName + + """ + thrift_spec = None + + + def __init__(self, workerId = None, workerVersion = None, poolName = None,): + self.workerId = workerId + self.workerVersion = workerVersion + self.poolName = poolName + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.workerId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.workerVersion = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.poolName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('FindNextCompactRequest') + if self.workerId is not None: + oprot.writeFieldBegin('workerId', TType.STRING, 1) + oprot.writeString(self.workerId.encode('utf-8') if sys.version_info[0] == 2 else self.workerId) + oprot.writeFieldEnd() + if self.workerVersion is not None: + oprot.writeFieldBegin('workerVersion', TType.STRING, 2) + oprot.writeString(self.workerVersion.encode('utf-8') if sys.version_info[0] == 2 else self.workerVersion) + oprot.writeFieldEnd() + if self.poolName is not None: + oprot.writeFieldBegin('poolName', TType.STRING, 3) + oprot.writeString(self.poolName.encode('utf-8') if sys.version_info[0] == 2 else self.poolName) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 AddDynamicPartitions(object): + """ + Attributes: + - txnid + - writeid + - dbname + - tablename + - partitionnames + - operationType + + """ + thrift_spec = None + + + def __init__(self, txnid = None, writeid = None, dbname = None, tablename = None, partitionnames = None, operationType = 5,): + self.txnid = txnid + self.writeid = writeid + self.dbname = dbname + self.tablename = tablename + self.partitionnames = partitionnames + self.operationType = operationType + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.I64: + self.txnid = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.writeid = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.partitionnames = [] + (_etype862, _size859) = iprot.readListBegin() + for _i863 in range(_size859): + _elem864 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partitionnames.append(_elem864) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.operationType = iprot.readI32() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('AddDynamicPartitions') + if self.txnid is not None: + oprot.writeFieldBegin('txnid', TType.I64, 1) + oprot.writeI64(self.txnid) + oprot.writeFieldEnd() + if self.writeid is not None: + oprot.writeFieldBegin('writeid', TType.I64, 2) + oprot.writeI64(self.writeid) + oprot.writeFieldEnd() + if self.dbname is not None: + oprot.writeFieldBegin('dbname', TType.STRING, 3) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldEnd() + if self.tablename is not None: + oprot.writeFieldBegin('tablename', TType.STRING, 4) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldEnd() + if self.partitionnames is not None: + oprot.writeFieldBegin('partitionnames', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.partitionnames)) + for iter865 in self.partitionnames: + oprot.writeString(iter865.encode('utf-8') if sys.version_info[0] == 2 else iter865) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.operationType is not None: + oprot.writeFieldBegin('operationType', TType.I32, 6) + oprot.writeI32(self.operationType) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.txnid is None: + raise TProtocolException(message='Required field txnid is unset!') + if self.writeid is None: + raise TProtocolException(message='Required field writeid is unset!') + if self.dbname is None: + raise TProtocolException(message='Required field dbname is unset!') + if self.tablename is None: + raise TProtocolException(message='Required field tablename is unset!') + if self.partitionnames is None: + raise TProtocolException(message='Required field partitionnames is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 BasicTxnInfo(object): + """ + Attributes: + - isnull + - time + - txnid + - dbname + - tablename - partitionname """ + thrift_spec = None + - def __init__( - self, - isnull=None, - time=None, - txnid=None, - dbname=None, - tablename=None, - partitionname=None, - ): + def __init__(self, isnull = None, time = None, txnid = None, dbname = None, tablename = None, partitionname = None,): self.isnull = isnull self.time = time self.txnid = txnid @@ -18932,11 +18424,7 @@ def __init__( self.partitionname = partitionname def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -18961,23 +18449,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.dbname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.tablename = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablename = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.partitionname = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partitionname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -18986,45 +18468,47 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("BasicTxnInfo") + oprot.writeStructBegin('BasicTxnInfo') if self.isnull is not None: - oprot.writeFieldBegin("isnull", TType.BOOL, 1) + oprot.writeFieldBegin('isnull', TType.BOOL, 1) oprot.writeBool(self.isnull) oprot.writeFieldEnd() if self.time is not None: - oprot.writeFieldBegin("time", TType.I64, 2) + oprot.writeFieldBegin('time', TType.I64, 2) oprot.writeI64(self.time) oprot.writeFieldEnd() if self.txnid is not None: - oprot.writeFieldBegin("txnid", TType.I64, 3) + oprot.writeFieldBegin('txnid', TType.I64, 3) oprot.writeI64(self.txnid) oprot.writeFieldEnd() if self.dbname is not None: - oprot.writeFieldBegin("dbname", TType.STRING, 4) - oprot.writeString(self.dbname.encode("utf-8") if sys.version_info[0] == 2 else self.dbname) + oprot.writeFieldBegin('dbname', TType.STRING, 4) + oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname) oprot.writeFieldEnd() if self.tablename is not None: - oprot.writeFieldBegin("tablename", TType.STRING, 5) - oprot.writeString(self.tablename.encode("utf-8") if sys.version_info[0] == 2 else self.tablename) + oprot.writeFieldBegin('tablename', TType.STRING, 5) + oprot.writeString(self.tablename.encode('utf-8') if sys.version_info[0] == 2 else self.tablename) oprot.writeFieldEnd() if self.partitionname is not None: - oprot.writeFieldBegin("partitionname", TType.STRING, 6) - oprot.writeString(self.partitionname.encode("utf-8") if sys.version_info[0] == 2 else self.partitionname) + oprot.writeFieldBegin('partitionname', TType.STRING, 6) + oprot.writeString(self.partitionname.encode('utf-8') if sys.version_info[0] == 2 else self.partitionname) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.isnull is None: - raise TProtocolException(message="Required field isnull is unset!") + raise TProtocolException(message='Required field isnull is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -19033,31 +18517,32 @@ def __ne__(self, other): return not (self == other) -class NotificationEventRequest: +class NotificationEventRequest(object): """ Attributes: - lastEvent - maxEvents - eventTypeSkipList + - catName + - dbName + - tableNames + - eventTypeList """ + thrift_spec = None - def __init__( - self, - lastEvent=None, - maxEvents=None, - eventTypeSkipList=None, - ): + + def __init__(self, lastEvent = None, maxEvents = None, eventTypeSkipList = None, catName = None, dbName = None, tableNames = None, eventTypeList = None,): self.lastEvent = lastEvent self.maxEvents = maxEvents self.eventTypeSkipList = eventTypeSkipList + self.catName = catName + self.dbName = dbName + self.tableNames = tableNames + self.eventTypeList = eventTypeList def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -19078,14 +18563,40 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.eventTypeSkipList = [] - (_etype791, _size788) = iprot.readListBegin() - for _i792 in range(_size788): - _elem793 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.eventTypeSkipList.append(_elem793) + (_etype869, _size866) = iprot.readListBegin() + for _i870 in range(_size866): + _elem871 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.eventTypeSkipList.append(_elem871) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.tableNames = [] + (_etype875, _size872) = iprot.readListBegin() + for _i876 in range(_size872): + _elem877 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.tableNames.append(_elem877) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.LIST: + self.eventTypeList = [] + (_etype881, _size878) = iprot.readListBegin() + for _i882 in range(_size878): + _elem883 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.eventTypeList.append(_elem883) iprot.readListEnd() else: iprot.skip(ftype) @@ -19095,23 +18606,46 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NotificationEventRequest") + oprot.writeStructBegin('NotificationEventRequest') if self.lastEvent is not None: - oprot.writeFieldBegin("lastEvent", TType.I64, 1) + oprot.writeFieldBegin('lastEvent', TType.I64, 1) oprot.writeI64(self.lastEvent) oprot.writeFieldEnd() if self.maxEvents is not None: - oprot.writeFieldBegin("maxEvents", TType.I32, 2) + oprot.writeFieldBegin('maxEvents', TType.I32, 2) oprot.writeI32(self.maxEvents) oprot.writeFieldEnd() if self.eventTypeSkipList is not None: - oprot.writeFieldBegin("eventTypeSkipList", TType.LIST, 3) + oprot.writeFieldBegin('eventTypeSkipList', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.eventTypeSkipList)) - for iter794 in self.eventTypeSkipList: - oprot.writeString(iter794.encode("utf-8") if sys.version_info[0] == 2 else iter794) + for iter884 in self.eventTypeSkipList: + oprot.writeString(iter884.encode('utf-8') if sys.version_info[0] == 2 else iter884) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 4) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 5) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldEnd() + if self.tableNames is not None: + oprot.writeFieldBegin('tableNames', TType.LIST, 6) + oprot.writeListBegin(TType.STRING, len(self.tableNames)) + for iter885 in self.tableNames: + oprot.writeString(iter885.encode('utf-8') if sys.version_info[0] == 2 else iter885) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.eventTypeList is not None: + oprot.writeFieldBegin('eventTypeList', TType.LIST, 7) + oprot.writeListBegin(TType.STRING, len(self.eventTypeList)) + for iter886 in self.eventTypeList: + oprot.writeString(iter886.encode('utf-8') if sys.version_info[0] == 2 else iter886) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19119,12 +18653,13 @@ def write(self, oprot): def validate(self): if self.lastEvent is None: - raise TProtocolException(message="Required field lastEvent is unset!") + raise TProtocolException(message='Required field lastEvent is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -19133,7 +18668,7 @@ def __ne__(self, other): return not (self == other) -class NotificationEvent: +class NotificationEvent(object): """ Attributes: - eventId @@ -19146,18 +18681,10 @@ class NotificationEvent: - catName """ + thrift_spec = None - def __init__( - self, - eventId=None, - eventTime=None, - eventType=None, - dbName=None, - tableName=None, - message=None, - messageFormat=None, - catName=None, - ): + + def __init__(self, eventId = None, eventTime = None, eventType = None, dbName = None, tableName = None, message = None, messageFormat = None, catName = None,): self.eventId = eventId self.eventTime = eventTime self.eventType = eventType @@ -19168,11 +18695,7 @@ def __init__( self.catName = catName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -19192,44 +18715,32 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.eventType = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.eventType = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.messageFormat = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.messageFormat = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -19238,59 +18749,61 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NotificationEvent") + oprot.writeStructBegin('NotificationEvent') if self.eventId is not None: - oprot.writeFieldBegin("eventId", TType.I64, 1) + oprot.writeFieldBegin('eventId', TType.I64, 1) oprot.writeI64(self.eventId) oprot.writeFieldEnd() if self.eventTime is not None: - oprot.writeFieldBegin("eventTime", TType.I32, 2) + oprot.writeFieldBegin('eventTime', TType.I32, 2) oprot.writeI32(self.eventTime) oprot.writeFieldEnd() if self.eventType is not None: - oprot.writeFieldBegin("eventType", TType.STRING, 3) - oprot.writeString(self.eventType.encode("utf-8") if sys.version_info[0] == 2 else self.eventType) + oprot.writeFieldBegin('eventType', TType.STRING, 3) + oprot.writeString(self.eventType.encode('utf-8') if sys.version_info[0] == 2 else self.eventType) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 4) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 4) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 5) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 5) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 6) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 6) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() if self.messageFormat is not None: - oprot.writeFieldBegin("messageFormat", TType.STRING, 7) - oprot.writeString(self.messageFormat.encode("utf-8") if sys.version_info[0] == 2 else self.messageFormat) + oprot.writeFieldBegin('messageFormat', TType.STRING, 7) + oprot.writeString(self.messageFormat.encode('utf-8') if sys.version_info[0] == 2 else self.messageFormat) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 8) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 8) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.eventId is None: - raise TProtocolException(message="Required field eventId is unset!") + raise TProtocolException(message='Required field eventId is unset!') if self.eventTime is None: - raise TProtocolException(message="Required field eventTime is unset!") + raise TProtocolException(message='Required field eventTime is unset!') if self.eventType is None: - raise TProtocolException(message="Required field eventType is unset!") + raise TProtocolException(message='Required field eventType is unset!') if self.message is None: - raise TProtocolException(message="Required field message is unset!") + raise TProtocolException(message='Required field message is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -19299,25 +18812,20 @@ def __ne__(self, other): return not (self == other) -class NotificationEventResponse: +class NotificationEventResponse(object): """ Attributes: - events """ + thrift_spec = None + - def __init__( - self, - events=None, - ): + def __init__(self, events = None,): self.events = events def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -19328,11 +18836,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype798, _size795) = iprot.readListBegin() - for _i799 in range(_size795): - _elem800 = NotificationEvent() - _elem800.read(iprot) - self.events.append(_elem800) + (_etype890, _size887) = iprot.readListBegin() + for _i891 in range(_size887): + _elem892 = NotificationEvent() + _elem892.read(iprot) + self.events.append(_elem892) iprot.readListEnd() else: iprot.skip(ftype) @@ -19342,15 +18850,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NotificationEventResponse") + oprot.writeStructBegin('NotificationEventResponse') if self.events is not None: - oprot.writeFieldBegin("events", TType.LIST, 1) + oprot.writeFieldBegin('events', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.events)) - for iter801 in self.events: - iter801.write(oprot) + for iter893 in self.events: + iter893.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19358,12 +18867,13 @@ def write(self, oprot): def validate(self): if self.events is None: - raise TProtocolException(message="Required field events is unset!") + raise TProtocolException(message='Required field events is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -19372,25 +18882,20 @@ def __ne__(self, other): return not (self == other) -class CurrentNotificationEventId: +class CurrentNotificationEventId(object): """ Attributes: - eventId """ + thrift_spec = None - def __init__( - self, - eventId=None, - ): + + def __init__(self, eventId = None,): self.eventId = eventId def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -19409,12 +18914,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CurrentNotificationEventId") + oprot.writeStructBegin('CurrentNotificationEventId') if self.eventId is not None: - oprot.writeFieldBegin("eventId", TType.I64, 1) + oprot.writeFieldBegin('eventId', TType.I64, 1) oprot.writeI64(self.eventId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19422,12 +18928,13 @@ def write(self, oprot): def validate(self): if self.eventId is None: - raise TProtocolException(message="Required field eventId is unset!") + raise TProtocolException(message='Required field eventId is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -19436,7 +18943,7 @@ def __ne__(self, other): return not (self == other) -class NotificationEventsCountRequest: +class NotificationEventsCountRequest(object): """ Attributes: - fromEventId @@ -19444,29 +18951,22 @@ class NotificationEventsCountRequest: - catName - toEventId - limit + - tableNames """ + thrift_spec = None + - def __init__( - self, - fromEventId=None, - dbName=None, - catName=None, - toEventId=None, - limit=None, - ): + def __init__(self, fromEventId = None, dbName = None, catName = None, toEventId = None, limit = None, tableNames = None,): self.fromEventId = fromEventId self.dbName = dbName self.catName = catName self.toEventId = toEventId self.limit = limit + self.tableNames = tableNames def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -19481,16 +18981,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -19503,49 +18999,68 @@ def read(self, iprot): self.limit = iprot.readI64() else: iprot.skip(ftype) - else: - iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.tableNames = [] + (_etype897, _size894) = iprot.readListBegin() + for _i898 in range(_size894): + _elem899 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.tableNames.append(_elem899) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NotificationEventsCountRequest") + oprot.writeStructBegin('NotificationEventsCountRequest') if self.fromEventId is not None: - oprot.writeFieldBegin("fromEventId", TType.I64, 1) + oprot.writeFieldBegin('fromEventId', TType.I64, 1) oprot.writeI64(self.fromEventId) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 3) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 3) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.toEventId is not None: - oprot.writeFieldBegin("toEventId", TType.I64, 4) + oprot.writeFieldBegin('toEventId', TType.I64, 4) oprot.writeI64(self.toEventId) oprot.writeFieldEnd() if self.limit is not None: - oprot.writeFieldBegin("limit", TType.I64, 5) + oprot.writeFieldBegin('limit', TType.I64, 5) oprot.writeI64(self.limit) oprot.writeFieldEnd() + if self.tableNames is not None: + oprot.writeFieldBegin('tableNames', TType.LIST, 6) + oprot.writeListBegin(TType.STRING, len(self.tableNames)) + for iter900 in self.tableNames: + oprot.writeString(iter900.encode('utf-8') if sys.version_info[0] == 2 else iter900) + oprot.writeListEnd() + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.fromEventId is None: - raise TProtocolException(message="Required field fromEventId is unset!") + raise TProtocolException(message='Required field fromEventId is unset!') if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -19554,25 +19069,20 @@ def __ne__(self, other): return not (self == other) -class NotificationEventsCountResponse: +class NotificationEventsCountResponse(object): """ Attributes: - eventsCount """ + thrift_spec = None + - def __init__( - self, - eventsCount=None, - ): + def __init__(self, eventsCount = None,): self.eventsCount = eventsCount def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -19591,12 +19101,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NotificationEventsCountResponse") + oprot.writeStructBegin('NotificationEventsCountResponse') if self.eventsCount is not None: - oprot.writeFieldBegin("eventsCount", TType.I64, 1) + oprot.writeFieldBegin('eventsCount', TType.I64, 1) oprot.writeI64(self.eventsCount) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19604,12 +19115,13 @@ def write(self, oprot): def validate(self): if self.eventsCount is None: - raise TProtocolException(message="Required field eventsCount is unset!") + raise TProtocolException(message='Required field eventsCount is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -19618,7 +19130,7 @@ def __ne__(self, other): return not (self == other) -class InsertEventRequestData: +class InsertEventRequestData(object): """ Attributes: - replace @@ -19628,15 +19140,10 @@ class InsertEventRequestData: - partitionVal """ + thrift_spec = None - def __init__( - self, - replace=None, - filesAdded=None, - filesAddedChecksum=None, - subDirectoryList=None, - partitionVal=None, - ): + + def __init__(self, replace = None, filesAdded = None, filesAddedChecksum = None, subDirectoryList = None, partitionVal = None,): self.replace = replace self.filesAdded = filesAdded self.filesAddedChecksum = filesAddedChecksum @@ -19644,11 +19151,7 @@ def __init__( self.partitionVal = partitionVal def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -19664,56 +19167,40 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.filesAdded = [] - (_etype805, _size802) = iprot.readListBegin() - for _i806 in range(_size802): - _elem807 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.filesAdded.append(_elem807) + (_etype904, _size901) = iprot.readListBegin() + for _i905 in range(_size901): + _elem906 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.filesAdded.append(_elem906) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype811, _size808) = iprot.readListBegin() - for _i812 in range(_size808): - _elem813 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.filesAddedChecksum.append(_elem813) + (_etype910, _size907) = iprot.readListBegin() + for _i911 in range(_size907): + _elem912 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.filesAddedChecksum.append(_elem912) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.subDirectoryList = [] - (_etype817, _size814) = iprot.readListBegin() - for _i818 in range(_size814): - _elem819 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.subDirectoryList.append(_elem819) + (_etype916, _size913) = iprot.readListBegin() + for _i917 in range(_size913): + _elem918 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.subDirectoryList.append(_elem918) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.partitionVal = [] - (_etype823, _size820) = iprot.readListBegin() - for _i824 in range(_size820): - _elem825 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partitionVal.append(_elem825) + (_etype922, _size919) = iprot.readListBegin() + for _i923 in range(_size919): + _elem924 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partitionVal.append(_elem924) iprot.readListEnd() else: iprot.skip(ftype) @@ -19723,40 +19210,41 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("InsertEventRequestData") + oprot.writeStructBegin('InsertEventRequestData') if self.replace is not None: - oprot.writeFieldBegin("replace", TType.BOOL, 1) + oprot.writeFieldBegin('replace', TType.BOOL, 1) oprot.writeBool(self.replace) oprot.writeFieldEnd() if self.filesAdded is not None: - oprot.writeFieldBegin("filesAdded", TType.LIST, 2) + oprot.writeFieldBegin('filesAdded', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.filesAdded)) - for iter826 in self.filesAdded: - oprot.writeString(iter826.encode("utf-8") if sys.version_info[0] == 2 else iter826) + for iter925 in self.filesAdded: + oprot.writeString(iter925.encode('utf-8') if sys.version_info[0] == 2 else iter925) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: - oprot.writeFieldBegin("filesAddedChecksum", TType.LIST, 3) + oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter827 in self.filesAddedChecksum: - oprot.writeString(iter827.encode("utf-8") if sys.version_info[0] == 2 else iter827) + for iter926 in self.filesAddedChecksum: + oprot.writeString(iter926.encode('utf-8') if sys.version_info[0] == 2 else iter926) oprot.writeListEnd() oprot.writeFieldEnd() if self.subDirectoryList is not None: - oprot.writeFieldBegin("subDirectoryList", TType.LIST, 4) + oprot.writeFieldBegin('subDirectoryList', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.subDirectoryList)) - for iter828 in self.subDirectoryList: - oprot.writeString(iter828.encode("utf-8") if sys.version_info[0] == 2 else iter828) + for iter927 in self.subDirectoryList: + oprot.writeString(iter927.encode('utf-8') if sys.version_info[0] == 2 else iter927) oprot.writeListEnd() oprot.writeFieldEnd() if self.partitionVal is not None: - oprot.writeFieldBegin("partitionVal", TType.LIST, 5) + oprot.writeFieldBegin('partitionVal', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionVal)) - for iter829 in self.partitionVal: - oprot.writeString(iter829.encode("utf-8") if sys.version_info[0] == 2 else iter829) + for iter928 in self.partitionVal: + oprot.writeString(iter928.encode('utf-8') if sys.version_info[0] == 2 else iter928) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19764,12 +19252,13 @@ def write(self, oprot): def validate(self): if self.filesAdded is None: - raise TProtocolException(message="Required field filesAdded is unset!") + raise TProtocolException(message='Required field filesAdded is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -19778,28 +19267,24 @@ def __ne__(self, other): return not (self == other) -class FireEventRequestData: +class FireEventRequestData(object): """ Attributes: - insertData - insertDatas + - refreshEvent """ + thrift_spec = None + - def __init__( - self, - insertData=None, - insertDatas=None, - ): + def __init__(self, insertData = None, insertDatas = None, refreshEvent = None,): self.insertData = insertData self.insertDatas = insertDatas + self.refreshEvent = refreshEvent def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -19816,35 +19301,45 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.insertDatas = [] - (_etype833, _size830) = iprot.readListBegin() - for _i834 in range(_size830): - _elem835 = InsertEventRequestData() - _elem835.read(iprot) - self.insertDatas.append(_elem835) + (_etype932, _size929) = iprot.readListBegin() + for _i933 in range(_size929): + _elem934 = InsertEventRequestData() + _elem934.read(iprot) + self.insertDatas.append(_elem934) iprot.readListEnd() else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.refreshEvent = iprot.readBool() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("FireEventRequestData") + oprot.writeStructBegin('FireEventRequestData') if self.insertData is not None: - oprot.writeFieldBegin("insertData", TType.STRUCT, 1) + oprot.writeFieldBegin('insertData', TType.STRUCT, 1) self.insertData.write(oprot) oprot.writeFieldEnd() if self.insertDatas is not None: - oprot.writeFieldBegin("insertDatas", TType.LIST, 2) + oprot.writeFieldBegin('insertDatas', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.insertDatas)) - for iter836 in self.insertDatas: - iter836.write(oprot) + for iter935 in self.insertDatas: + iter935.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() + if self.refreshEvent is not None: + oprot.writeFieldBegin('refreshEvent', TType.BOOL, 3) + oprot.writeBool(self.refreshEvent) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -19852,8 +19347,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -19862,7 +19358,7 @@ def __ne__(self, other): return not (self == other) -class FireEventRequest: +class FireEventRequest(object): """ Attributes: - successful @@ -19871,31 +19367,25 @@ class FireEventRequest: - tableName - partitionVals - catName + - tblParams + - batchPartitionValsForRefresh """ + thrift_spec = None + - def __init__( - self, - successful=None, - data=None, - dbName=None, - tableName=None, - partitionVals=None, - catName=None, - ): + def __init__(self, successful = None, data = None, dbName = None, tableName = None, partitionVals = None, catName = None, tblParams = None, batchPartitionValsForRefresh = None,): self.successful = successful self.data = data self.dbName = dbName self.tableName = tableName self.partitionVals = partitionVals self.catName = catName + self.tblParams = tblParams + self.batchPartitionValsForRefresh = batchPartitionValsForRefresh def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -19916,37 +19406,53 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype840, _size837) = iprot.readListBegin() - for _i841 in range(_size837): - _elem842 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partitionVals.append(_elem842) + (_etype939, _size936) = iprot.readListBegin() + for _i940 in range(_size936): + _elem941 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partitionVals.append(_elem941) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.MAP: + self.tblParams = {} + (_ktype943, _vtype944, _size942) = iprot.readMapBegin() + for _i946 in range(_size942): + _key947 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val948 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.tblParams[_key947] = _val948 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.LIST: + self.batchPartitionValsForRefresh = [] + (_etype952, _size949) = iprot.readListBegin() + for _i953 in range(_size949): + _elem954 = [] + (_etype958, _size955) = iprot.readListBegin() + for _i959 in range(_size955): + _elem960 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _elem954.append(_elem960) + iprot.readListEnd() + self.batchPartitionValsForRefresh.append(_elem954) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -19955,50 +19461,70 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("FireEventRequest") + oprot.writeStructBegin('FireEventRequest') if self.successful is not None: - oprot.writeFieldBegin("successful", TType.BOOL, 1) + oprot.writeFieldBegin('successful', TType.BOOL, 1) oprot.writeBool(self.successful) oprot.writeFieldEnd() if self.data is not None: - oprot.writeFieldBegin("data", TType.STRUCT, 2) + oprot.writeFieldBegin('data', TType.STRUCT, 2) self.data.write(oprot) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 3) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 3) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 4) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 4) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.partitionVals is not None: - oprot.writeFieldBegin("partitionVals", TType.LIST, 5) + oprot.writeFieldBegin('partitionVals', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter843 in self.partitionVals: - oprot.writeString(iter843.encode("utf-8") if sys.version_info[0] == 2 else iter843) + for iter961 in self.partitionVals: + oprot.writeString(iter961.encode('utf-8') if sys.version_info[0] == 2 else iter961) oprot.writeListEnd() oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 6) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 6) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldEnd() + if self.tblParams is not None: + oprot.writeFieldBegin('tblParams', TType.MAP, 7) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.tblParams)) + for kiter962, viter963 in self.tblParams.items(): + oprot.writeString(kiter962.encode('utf-8') if sys.version_info[0] == 2 else kiter962) + oprot.writeString(viter963.encode('utf-8') if sys.version_info[0] == 2 else viter963) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.batchPartitionValsForRefresh is not None: + oprot.writeFieldBegin('batchPartitionValsForRefresh', TType.LIST, 8) + oprot.writeListBegin(TType.LIST, len(self.batchPartitionValsForRefresh)) + for iter964 in self.batchPartitionValsForRefresh: + oprot.writeListBegin(TType.STRING, len(iter964)) + for iter965 in iter964: + oprot.writeString(iter965.encode('utf-8') if sys.version_info[0] == 2 else iter965) + oprot.writeListEnd() + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.successful is None: - raise TProtocolException(message="Required field successful is unset!") + raise TProtocolException(message='Required field successful is unset!') if self.data is None: - raise TProtocolException(message="Required field data is unset!") + raise TProtocolException(message='Required field data is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20007,25 +19533,20 @@ def __ne__(self, other): return not (self == other) -class FireEventResponse: +class FireEventResponse(object): """ Attributes: - eventIds """ + thrift_spec = None + - def __init__( - self, - eventIds=None, - ): + def __init__(self, eventIds = None,): self.eventIds = eventIds def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20036,10 +19557,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.eventIds = [] - (_etype847, _size844) = iprot.readListBegin() - for _i848 in range(_size844): - _elem849 = iprot.readI64() - self.eventIds.append(_elem849) + (_etype969, _size966) = iprot.readListBegin() + for _i970 in range(_size966): + _elem971 = iprot.readI64() + self.eventIds.append(_elem971) iprot.readListEnd() else: iprot.skip(ftype) @@ -20049,15 +19570,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("FireEventResponse") + oprot.writeStructBegin('FireEventResponse') if self.eventIds is not None: - oprot.writeFieldBegin("eventIds", TType.LIST, 1) + oprot.writeFieldBegin('eventIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.eventIds)) - for iter850 in self.eventIds: - oprot.writeI64(iter850) + for iter972 in self.eventIds: + oprot.writeI64(iter972) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20067,8 +19589,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20077,7 +19600,7 @@ def __ne__(self, other): return not (self == other) -class WriteNotificationLogRequest: +class WriteNotificationLogRequest(object): """ Attributes: - txnId @@ -20088,16 +19611,10 @@ class WriteNotificationLogRequest: - partitionVals """ + thrift_spec = None - def __init__( - self, - txnId=None, - writeId=None, - db=None, - table=None, - fileInfo=None, - partitionVals=None, - ): + + def __init__(self, txnId = None, writeId = None, db = None, table = None, fileInfo = None, partitionVals = None,): self.txnId = txnId self.writeId = writeId self.db = db @@ -20106,11 +19623,7 @@ def __init__( self.partitionVals = partitionVals def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20130,16 +19643,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.table = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -20151,14 +19660,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.partitionVals = [] - (_etype854, _size851) = iprot.readListBegin() - for _i855 in range(_size851): - _elem856 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partitionVals.append(_elem856) + (_etype976, _size973) = iprot.readListBegin() + for _i977 in range(_size973): + _elem978 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partitionVals.append(_elem978) iprot.readListEnd() else: iprot.skip(ftype) @@ -20168,35 +19673,36 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WriteNotificationLogRequest") + oprot.writeStructBegin('WriteNotificationLogRequest') if self.txnId is not None: - oprot.writeFieldBegin("txnId", TType.I64, 1) + oprot.writeFieldBegin('txnId', TType.I64, 1) oprot.writeI64(self.txnId) oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 2) + oprot.writeFieldBegin('writeId', TType.I64, 2) oprot.writeI64(self.writeId) oprot.writeFieldEnd() if self.db is not None: - oprot.writeFieldBegin("db", TType.STRING, 3) - oprot.writeString(self.db.encode("utf-8") if sys.version_info[0] == 2 else self.db) + oprot.writeFieldBegin('db', TType.STRING, 3) + oprot.writeString(self.db.encode('utf-8') if sys.version_info[0] == 2 else self.db) oprot.writeFieldEnd() if self.table is not None: - oprot.writeFieldBegin("table", TType.STRING, 4) - oprot.writeString(self.table.encode("utf-8") if sys.version_info[0] == 2 else self.table) + oprot.writeFieldBegin('table', TType.STRING, 4) + oprot.writeString(self.table.encode('utf-8') if sys.version_info[0] == 2 else self.table) oprot.writeFieldEnd() if self.fileInfo is not None: - oprot.writeFieldBegin("fileInfo", TType.STRUCT, 5) + oprot.writeFieldBegin('fileInfo', TType.STRUCT, 5) self.fileInfo.write(oprot) oprot.writeFieldEnd() if self.partitionVals is not None: - oprot.writeFieldBegin("partitionVals", TType.LIST, 6) + oprot.writeFieldBegin('partitionVals', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter857 in self.partitionVals: - oprot.writeString(iter857.encode("utf-8") if sys.version_info[0] == 2 else iter857) + for iter979 in self.partitionVals: + oprot.writeString(iter979.encode('utf-8') if sys.version_info[0] == 2 else iter979) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20204,20 +19710,21 @@ def write(self, oprot): def validate(self): if self.txnId is None: - raise TProtocolException(message="Required field txnId is unset!") + raise TProtocolException(message='Required field txnId is unset!') if self.writeId is None: - raise TProtocolException(message="Required field writeId is unset!") + raise TProtocolException(message='Required field writeId is unset!') if self.db is None: - raise TProtocolException(message="Required field db is unset!") + raise TProtocolException(message='Required field db is unset!') if self.table is None: - raise TProtocolException(message="Required field table is unset!") + raise TProtocolException(message='Required field table is unset!') if self.fileInfo is None: - raise TProtocolException(message="Required field fileInfo is unset!") + raise TProtocolException(message='Required field fileInfo is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20226,13 +19733,12 @@ def __ne__(self, other): return not (self == other) -class WriteNotificationLogResponse: +class WriteNotificationLogResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20246,10 +19752,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WriteNotificationLogResponse") + oprot.writeStructBegin('WriteNotificationLogResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -20257,8 +19764,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20267,7 +19775,7 @@ def __ne__(self, other): return not (self == other) -class WriteNotificationLogBatchRequest: +class WriteNotificationLogBatchRequest(object): """ Attributes: - catalog @@ -20276,25 +19784,17 @@ class WriteNotificationLogBatchRequest: - requestList """ + thrift_spec = None + - def __init__( - self, - catalog=None, - db=None, - table=None, - requestList=None, - ): + def __init__(self, catalog = None, db = None, table = None, requestList = None,): self.catalog = catalog self.db = db self.table = table self.requestList = requestList def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20304,33 +19804,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catalog = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catalog = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.db = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.table = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.table = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.requestList = [] - (_etype861, _size858) = iprot.readListBegin() - for _i862 in range(_size858): - _elem863 = WriteNotificationLogRequest() - _elem863.read(iprot) - self.requestList.append(_elem863) + (_etype983, _size980) = iprot.readListBegin() + for _i984 in range(_size980): + _elem985 = WriteNotificationLogRequest() + _elem985.read(iprot) + self.requestList.append(_elem985) iprot.readListEnd() else: iprot.skip(ftype) @@ -20340,27 +19834,28 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WriteNotificationLogBatchRequest") + oprot.writeStructBegin('WriteNotificationLogBatchRequest') if self.catalog is not None: - oprot.writeFieldBegin("catalog", TType.STRING, 1) - oprot.writeString(self.catalog.encode("utf-8") if sys.version_info[0] == 2 else self.catalog) + oprot.writeFieldBegin('catalog', TType.STRING, 1) + oprot.writeString(self.catalog.encode('utf-8') if sys.version_info[0] == 2 else self.catalog) oprot.writeFieldEnd() if self.db is not None: - oprot.writeFieldBegin("db", TType.STRING, 2) - oprot.writeString(self.db.encode("utf-8") if sys.version_info[0] == 2 else self.db) + oprot.writeFieldBegin('db', TType.STRING, 2) + oprot.writeString(self.db.encode('utf-8') if sys.version_info[0] == 2 else self.db) oprot.writeFieldEnd() if self.table is not None: - oprot.writeFieldBegin("table", TType.STRING, 3) - oprot.writeString(self.table.encode("utf-8") if sys.version_info[0] == 2 else self.table) + oprot.writeFieldBegin('table', TType.STRING, 3) + oprot.writeString(self.table.encode('utf-8') if sys.version_info[0] == 2 else self.table) oprot.writeFieldEnd() if self.requestList is not None: - oprot.writeFieldBegin("requestList", TType.LIST, 4) + oprot.writeFieldBegin('requestList', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.requestList)) - for iter864 in self.requestList: - iter864.write(oprot) + for iter986 in self.requestList: + iter986.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20368,18 +19863,19 @@ def write(self, oprot): def validate(self): if self.catalog is None: - raise TProtocolException(message="Required field catalog is unset!") + raise TProtocolException(message='Required field catalog is unset!') if self.db is None: - raise TProtocolException(message="Required field db is unset!") + raise TProtocolException(message='Required field db is unset!') if self.table is None: - raise TProtocolException(message="Required field table is unset!") + raise TProtocolException(message='Required field table is unset!') if self.requestList is None: - raise TProtocolException(message="Required field requestList is unset!") + raise TProtocolException(message='Required field requestList is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20388,13 +19884,12 @@ def __ne__(self, other): return not (self == other) -class WriteNotificationLogBatchResponse: +class WriteNotificationLogBatchResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20408,10 +19903,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WriteNotificationLogBatchResponse") + oprot.writeStructBegin('WriteNotificationLogBatchResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -20419,8 +19915,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20429,28 +19926,22 @@ def __ne__(self, other): return not (self == other) -class MetadataPpdResult: +class MetadataPpdResult(object): """ Attributes: - metadata - includeBitset """ + thrift_spec = None - def __init__( - self, - metadata=None, - includeBitset=None, - ): + + def __init__(self, metadata = None, includeBitset = None,): self.metadata = metadata self.includeBitset = includeBitset def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20474,16 +19965,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("MetadataPpdResult") + oprot.writeStructBegin('MetadataPpdResult') if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.STRING, 1) + oprot.writeFieldBegin('metadata', TType.STRING, 1) oprot.writeBinary(self.metadata) oprot.writeFieldEnd() if self.includeBitset is not None: - oprot.writeFieldBegin("includeBitset", TType.STRING, 2) + oprot.writeFieldBegin('includeBitset', TType.STRING, 2) oprot.writeBinary(self.includeBitset) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20493,8 +19985,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20503,28 +19996,22 @@ def __ne__(self, other): return not (self == other) -class GetFileMetadataByExprResult: +class GetFileMetadataByExprResult(object): """ Attributes: - metadata - isSupported """ + thrift_spec = None + - def __init__( - self, - metadata=None, - isSupported=None, - ): + def __init__(self, metadata = None, isSupported = None,): self.metadata = metadata self.isSupported = isSupported def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20535,12 +20022,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype866, _vtype867, _size865) = iprot.readMapBegin() - for _i869 in range(_size865): - _key870 = iprot.readI64() - _val871 = MetadataPpdResult() - _val871.read(iprot) - self.metadata[_key870] = _val871 + (_ktype988, _vtype989, _size987) = iprot.readMapBegin() + for _i991 in range(_size987): + _key992 = iprot.readI64() + _val993 = MetadataPpdResult() + _val993.read(iprot) + self.metadata[_key992] = _val993 iprot.readMapEnd() else: iprot.skip(ftype) @@ -20555,20 +20042,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetFileMetadataByExprResult") + oprot.writeStructBegin('GetFileMetadataByExprResult') if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.MAP, 1) + oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.metadata)) - for kiter872, viter873 in self.metadata.items(): - oprot.writeI64(kiter872) - viter873.write(oprot) + for kiter994, viter995 in self.metadata.items(): + oprot.writeI64(kiter994) + viter995.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: - oprot.writeFieldBegin("isSupported", TType.BOOL, 2) + oprot.writeFieldBegin('isSupported', TType.BOOL, 2) oprot.writeBool(self.isSupported) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20576,14 +20064,15 @@ def write(self, oprot): def validate(self): if self.metadata is None: - raise TProtocolException(message="Required field metadata is unset!") + raise TProtocolException(message='Required field metadata is unset!') if self.isSupported is None: - raise TProtocolException(message="Required field isSupported is unset!") + raise TProtocolException(message='Required field isSupported is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20592,7 +20081,7 @@ def __ne__(self, other): return not (self == other) -class GetFileMetadataByExprRequest: +class GetFileMetadataByExprRequest(object): """ Attributes: - fileIds @@ -20601,25 +20090,17 @@ class GetFileMetadataByExprRequest: - type """ + thrift_spec = None - def __init__( - self, - fileIds=None, - expr=None, - doGetFooters=None, - type=None, - ): + + def __init__(self, fileIds = None, expr = None, doGetFooters = None, type = None,): self.fileIds = fileIds self.expr = expr self.doGetFooters = doGetFooters self.type = type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20630,10 +20111,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype877, _size874) = iprot.readListBegin() - for _i878 in range(_size874): - _elem879 = iprot.readI64() - self.fileIds.append(_elem879) + (_etype999, _size996) = iprot.readListBegin() + for _i1000 in range(_size996): + _elem1001 = iprot.readI64() + self.fileIds.append(_elem1001) iprot.readListEnd() else: iprot.skip(ftype) @@ -20658,27 +20139,28 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetFileMetadataByExprRequest") + oprot.writeStructBegin('GetFileMetadataByExprRequest') if self.fileIds is not None: - oprot.writeFieldBegin("fileIds", TType.LIST, 1) + oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter880 in self.fileIds: - oprot.writeI64(iter880) + for iter1002 in self.fileIds: + oprot.writeI64(iter1002) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: - oprot.writeFieldBegin("expr", TType.STRING, 2) + oprot.writeFieldBegin('expr', TType.STRING, 2) oprot.writeBinary(self.expr) oprot.writeFieldEnd() if self.doGetFooters is not None: - oprot.writeFieldBegin("doGetFooters", TType.BOOL, 3) + oprot.writeFieldBegin('doGetFooters', TType.BOOL, 3) oprot.writeBool(self.doGetFooters) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 4) + oprot.writeFieldBegin('type', TType.I32, 4) oprot.writeI32(self.type) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20686,14 +20168,15 @@ def write(self, oprot): def validate(self): if self.fileIds is None: - raise TProtocolException(message="Required field fileIds is unset!") + raise TProtocolException(message='Required field fileIds is unset!') if self.expr is None: - raise TProtocolException(message="Required field expr is unset!") + raise TProtocolException(message='Required field expr is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20702,28 +20185,22 @@ def __ne__(self, other): return not (self == other) -class GetFileMetadataResult: +class GetFileMetadataResult(object): """ Attributes: - metadata - isSupported """ + thrift_spec = None + - def __init__( - self, - metadata=None, - isSupported=None, - ): + def __init__(self, metadata = None, isSupported = None,): self.metadata = metadata self.isSupported = isSupported def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20734,11 +20211,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype882, _vtype883, _size881) = iprot.readMapBegin() - for _i885 in range(_size881): - _key886 = iprot.readI64() - _val887 = iprot.readBinary() - self.metadata[_key886] = _val887 + (_ktype1004, _vtype1005, _size1003) = iprot.readMapBegin() + for _i1007 in range(_size1003): + _key1008 = iprot.readI64() + _val1009 = iprot.readBinary() + self.metadata[_key1008] = _val1009 iprot.readMapEnd() else: iprot.skip(ftype) @@ -20753,20 +20230,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetFileMetadataResult") + oprot.writeStructBegin('GetFileMetadataResult') if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.MAP, 1) + oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRING, len(self.metadata)) - for kiter888, viter889 in self.metadata.items(): - oprot.writeI64(kiter888) - oprot.writeBinary(viter889) + for kiter1010, viter1011 in self.metadata.items(): + oprot.writeI64(kiter1010) + oprot.writeBinary(viter1011) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: - oprot.writeFieldBegin("isSupported", TType.BOOL, 2) + oprot.writeFieldBegin('isSupported', TType.BOOL, 2) oprot.writeBool(self.isSupported) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20774,14 +20252,15 @@ def write(self, oprot): def validate(self): if self.metadata is None: - raise TProtocolException(message="Required field metadata is unset!") + raise TProtocolException(message='Required field metadata is unset!') if self.isSupported is None: - raise TProtocolException(message="Required field isSupported is unset!") + raise TProtocolException(message='Required field isSupported is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20790,25 +20269,20 @@ def __ne__(self, other): return not (self == other) -class GetFileMetadataRequest: +class GetFileMetadataRequest(object): """ Attributes: - fileIds """ + thrift_spec = None - def __init__( - self, - fileIds=None, - ): + + def __init__(self, fileIds = None,): self.fileIds = fileIds def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20819,10 +20293,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype893, _size890) = iprot.readListBegin() - for _i894 in range(_size890): - _elem895 = iprot.readI64() - self.fileIds.append(_elem895) + (_etype1015, _size1012) = iprot.readListBegin() + for _i1016 in range(_size1012): + _elem1017 = iprot.readI64() + self.fileIds.append(_elem1017) iprot.readListEnd() else: iprot.skip(ftype) @@ -20832,15 +20306,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetFileMetadataRequest") + oprot.writeStructBegin('GetFileMetadataRequest') if self.fileIds is not None: - oprot.writeFieldBegin("fileIds", TType.LIST, 1) + oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter896 in self.fileIds: - oprot.writeI64(iter896) + for iter1018 in self.fileIds: + oprot.writeI64(iter1018) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20848,12 +20323,13 @@ def write(self, oprot): def validate(self): if self.fileIds is None: - raise TProtocolException(message="Required field fileIds is unset!") + raise TProtocolException(message='Required field fileIds is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20862,13 +20338,12 @@ def __ne__(self, other): return not (self == other) -class PutFileMetadataResult: +class PutFileMetadataResult(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20882,10 +20357,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PutFileMetadataResult") + oprot.writeStructBegin('PutFileMetadataResult') oprot.writeFieldStop() oprot.writeStructEnd() @@ -20893,8 +20369,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -20903,7 +20380,7 @@ def __ne__(self, other): return not (self == other) -class PutFileMetadataRequest: +class PutFileMetadataRequest(object): """ Attributes: - fileIds @@ -20911,23 +20388,16 @@ class PutFileMetadataRequest: - type """ + thrift_spec = None + - def __init__( - self, - fileIds=None, - metadata=None, - type=None, - ): + def __init__(self, fileIds = None, metadata = None, type = None,): self.fileIds = fileIds self.metadata = metadata self.type = type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -20938,20 +20408,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype900, _size897) = iprot.readListBegin() - for _i901 in range(_size897): - _elem902 = iprot.readI64() - self.fileIds.append(_elem902) + (_etype1022, _size1019) = iprot.readListBegin() + for _i1023 in range(_size1019): + _elem1024 = iprot.readI64() + self.fileIds.append(_elem1024) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype906, _size903) = iprot.readListBegin() - for _i907 in range(_size903): - _elem908 = iprot.readBinary() - self.metadata.append(_elem908) + (_etype1028, _size1025) = iprot.readListBegin() + for _i1029 in range(_size1025): + _elem1030 = iprot.readBinary() + self.metadata.append(_elem1030) iprot.readListEnd() else: iprot.skip(ftype) @@ -20966,26 +20436,27 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PutFileMetadataRequest") + oprot.writeStructBegin('PutFileMetadataRequest') if self.fileIds is not None: - oprot.writeFieldBegin("fileIds", TType.LIST, 1) + oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter909 in self.fileIds: - oprot.writeI64(iter909) + for iter1031 in self.fileIds: + oprot.writeI64(iter1031) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.LIST, 2) + oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter910 in self.metadata: - oprot.writeBinary(iter910) + for iter1032 in self.metadata: + oprot.writeBinary(iter1032) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 3) + oprot.writeFieldBegin('type', TType.I32, 3) oprot.writeI32(self.type) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20993,14 +20464,15 @@ def write(self, oprot): def validate(self): if self.fileIds is None: - raise TProtocolException(message="Required field fileIds is unset!") + raise TProtocolException(message='Required field fileIds is unset!') if self.metadata is None: - raise TProtocolException(message="Required field metadata is unset!") + raise TProtocolException(message='Required field metadata is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21009,13 +20481,12 @@ def __ne__(self, other): return not (self == other) -class ClearFileMetadataResult: +class ClearFileMetadataResult(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21029,10 +20500,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ClearFileMetadataResult") + oprot.writeStructBegin('ClearFileMetadataResult') oprot.writeFieldStop() oprot.writeStructEnd() @@ -21040,8 +20512,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21050,25 +20523,20 @@ def __ne__(self, other): return not (self == other) -class ClearFileMetadataRequest: +class ClearFileMetadataRequest(object): """ Attributes: - fileIds """ + thrift_spec = None - def __init__( - self, - fileIds=None, - ): + + def __init__(self, fileIds = None,): self.fileIds = fileIds def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21079,10 +20547,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype914, _size911) = iprot.readListBegin() - for _i915 in range(_size911): - _elem916 = iprot.readI64() - self.fileIds.append(_elem916) + (_etype1036, _size1033) = iprot.readListBegin() + for _i1037 in range(_size1033): + _elem1038 = iprot.readI64() + self.fileIds.append(_elem1038) iprot.readListEnd() else: iprot.skip(ftype) @@ -21092,15 +20560,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ClearFileMetadataRequest") + oprot.writeStructBegin('ClearFileMetadataRequest') if self.fileIds is not None: - oprot.writeFieldBegin("fileIds", TType.LIST, 1) + oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter917 in self.fileIds: - oprot.writeI64(iter917) + for iter1039 in self.fileIds: + oprot.writeI64(iter1039) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21108,12 +20577,13 @@ def write(self, oprot): def validate(self): if self.fileIds is None: - raise TProtocolException(message="Required field fileIds is unset!") + raise TProtocolException(message='Required field fileIds is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21122,25 +20592,20 @@ def __ne__(self, other): return not (self == other) -class CacheFileMetadataResult: +class CacheFileMetadataResult(object): """ Attributes: - isSupported """ + thrift_spec = None + - def __init__( - self, - isSupported=None, - ): + def __init__(self, isSupported = None,): self.isSupported = isSupported def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21159,12 +20624,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CacheFileMetadataResult") + oprot.writeStructBegin('CacheFileMetadataResult') if self.isSupported is not None: - oprot.writeFieldBegin("isSupported", TType.BOOL, 1) + oprot.writeFieldBegin('isSupported', TType.BOOL, 1) oprot.writeBool(self.isSupported) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21172,12 +20638,13 @@ def write(self, oprot): def validate(self): if self.isSupported is None: - raise TProtocolException(message="Required field isSupported is unset!") + raise TProtocolException(message='Required field isSupported is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21186,7 +20653,7 @@ def __ne__(self, other): return not (self == other) -class CacheFileMetadataRequest: +class CacheFileMetadataRequest(object): """ Attributes: - dbName @@ -21195,25 +20662,17 @@ class CacheFileMetadataRequest: - isAllParts """ + thrift_spec = None - def __init__( - self, - dbName=None, - tblName=None, - partName=None, - isAllParts=None, - ): + + def __init__(self, dbName = None, tblName = None, partName = None, isAllParts = None,): self.dbName = dbName self.tblName = tblName self.partName = partName self.isAllParts = isAllParts def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21223,23 +20682,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.partName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.partName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -21253,24 +20706,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CacheFileMetadataRequest") + oprot.writeStructBegin('CacheFileMetadataRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.partName is not None: - oprot.writeFieldBegin("partName", TType.STRING, 3) - oprot.writeString(self.partName.encode("utf-8") if sys.version_info[0] == 2 else self.partName) + oprot.writeFieldBegin('partName', TType.STRING, 3) + oprot.writeString(self.partName.encode('utf-8') if sys.version_info[0] == 2 else self.partName) oprot.writeFieldEnd() if self.isAllParts is not None: - oprot.writeFieldBegin("isAllParts", TType.BOOL, 4) + oprot.writeFieldBegin('isAllParts', TType.BOOL, 4) oprot.writeBool(self.isAllParts) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21278,14 +20732,15 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21294,25 +20749,20 @@ def __ne__(self, other): return not (self == other) -class GetAllFunctionsResponse: +class GetAllFunctionsResponse(object): """ Attributes: - functions """ + thrift_spec = None + - def __init__( - self, - functions=None, - ): + def __init__(self, functions = None,): self.functions = functions def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21323,11 +20773,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype921, _size918) = iprot.readListBegin() - for _i922 in range(_size918): - _elem923 = Function() - _elem923.read(iprot) - self.functions.append(_elem923) + (_etype1043, _size1040) = iprot.readListBegin() + for _i1044 in range(_size1040): + _elem1045 = Function() + _elem1045.read(iprot) + self.functions.append(_elem1045) iprot.readListEnd() else: iprot.skip(ftype) @@ -21337,15 +20787,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetAllFunctionsResponse") + oprot.writeStructBegin('GetAllFunctionsResponse') if self.functions is not None: - oprot.writeFieldBegin("functions", TType.LIST, 1) + oprot.writeFieldBegin('functions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.functions)) - for iter924 in self.functions: - iter924.write(oprot) + for iter1046 in self.functions: + iter1046.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21355,8 +20806,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21365,25 +20817,20 @@ def __ne__(self, other): return not (self == other) -class ClientCapabilities: +class ClientCapabilities(object): """ Attributes: - values """ + thrift_spec = None - def __init__( - self, - values=None, - ): + + def __init__(self, values = None,): self.values = values def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21394,10 +20841,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype928, _size925) = iprot.readListBegin() - for _i929 in range(_size925): - _elem930 = iprot.readI32() - self.values.append(_elem930) + (_etype1050, _size1047) = iprot.readListBegin() + for _i1051 in range(_size1047): + _elem1052 = iprot.readI32() + self.values.append(_elem1052) iprot.readListEnd() else: iprot.skip(ftype) @@ -21407,15 +20854,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ClientCapabilities") + oprot.writeStructBegin('ClientCapabilities') if self.values is not None: - oprot.writeFieldBegin("values", TType.LIST, 1) + oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.I32, len(self.values)) - for iter931 in self.values: - oprot.writeI32(iter931) + for iter1053 in self.values: + oprot.writeI32(iter1053) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21423,12 +20871,13 @@ def write(self, oprot): def validate(self): if self.values is None: - raise TProtocolException(message="Required field values is unset!") + raise TProtocolException(message='Required field values is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21437,7 +20886,7 @@ def __ne__(self, other): return not (self == other) -class GetProjectionsSpec: +class GetProjectionsSpec(object): """ Attributes: - fieldList @@ -21445,23 +20894,16 @@ class GetProjectionsSpec: - excludeParamKeyPattern """ + thrift_spec = None + - def __init__( - self, - fieldList=None, - includeParamKeyPattern=None, - excludeParamKeyPattern=None, - ): + def __init__(self, fieldList = None, includeParamKeyPattern = None, excludeParamKeyPattern = None,): self.fieldList = fieldList self.includeParamKeyPattern = includeParamKeyPattern self.excludeParamKeyPattern = excludeParamKeyPattern def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21472,29 +20914,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldList = [] - (_etype935, _size932) = iprot.readListBegin() - for _i936 in range(_size932): - _elem937 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.fieldList.append(_elem937) + (_etype1057, _size1054) = iprot.readListBegin() + for _i1058 in range(_size1054): + _elem1059 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.fieldList.append(_elem1059) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.includeParamKeyPattern = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.includeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.excludeParamKeyPattern = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.excludeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -21503,28 +20937,25 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetProjectionsSpec") + oprot.writeStructBegin('GetProjectionsSpec') if self.fieldList is not None: - oprot.writeFieldBegin("fieldList", TType.LIST, 1) + oprot.writeFieldBegin('fieldList', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.fieldList)) - for iter938 in self.fieldList: - oprot.writeString(iter938.encode("utf-8") if sys.version_info[0] == 2 else iter938) + for iter1060 in self.fieldList: + oprot.writeString(iter1060.encode('utf-8') if sys.version_info[0] == 2 else iter1060) oprot.writeListEnd() oprot.writeFieldEnd() if self.includeParamKeyPattern is not None: - oprot.writeFieldBegin("includeParamKeyPattern", TType.STRING, 2) - oprot.writeString( - self.includeParamKeyPattern.encode("utf-8") if sys.version_info[0] == 2 else self.includeParamKeyPattern - ) + oprot.writeFieldBegin('includeParamKeyPattern', TType.STRING, 2) + oprot.writeString(self.includeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.includeParamKeyPattern) oprot.writeFieldEnd() if self.excludeParamKeyPattern is not None: - oprot.writeFieldBegin("excludeParamKeyPattern", TType.STRING, 3) - oprot.writeString( - self.excludeParamKeyPattern.encode("utf-8") if sys.version_info[0] == 2 else self.excludeParamKeyPattern - ) + oprot.writeFieldBegin('excludeParamKeyPattern', TType.STRING, 3) + oprot.writeString(self.excludeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.excludeParamKeyPattern) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -21533,8 +20964,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21543,7 +20975,7 @@ def __ne__(self, other): return not (self == other) -class GetTableRequest: +class GetTableRequest(object): """ Attributes: - dbName @@ -21558,20 +20990,10 @@ class GetTableRequest: - id """ + thrift_spec = None - def __init__( - self, - dbName=None, - tblName=None, - capabilities=None, - catName=None, - validWriteIdList=None, - getColumnStats=None, - processorCapabilities=None, - processorIdentifier=None, - engine=None, - id=-1, - ): + + def __init__(self, dbName = None, tblName = None, capabilities = None, catName = None, validWriteIdList = None, getColumnStats = None, processorCapabilities = None, processorIdentifier = None, engine = "hive", id = -1,): self.dbName = dbName self.tblName = tblName self.capabilities = capabilities @@ -21584,11 +21006,7 @@ def __init__( self.id = id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21598,16 +21016,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -21618,16 +21032,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -21638,29 +21048,21 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype942, _size939) = iprot.readListBegin() - for _i943 in range(_size939): - _elem944 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.processorCapabilities.append(_elem944) + (_etype1064, _size1061) = iprot.readListBegin() + for _i1065 in range(_size1061): + _elem1066 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.processorCapabilities.append(_elem1066) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.processorIdentifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.processorIdentifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.engine = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.engine = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: @@ -21674,51 +21076,52 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetTableRequest") + oprot.writeStructBegin('GetTableRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 2) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.capabilities is not None: - oprot.writeFieldBegin("capabilities", TType.STRUCT, 3) + oprot.writeFieldBegin('capabilities', TType.STRUCT, 3) self.capabilities.write(oprot) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 4) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 4) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 6) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 6) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.getColumnStats is not None: - oprot.writeFieldBegin("getColumnStats", TType.BOOL, 7) + oprot.writeFieldBegin('getColumnStats', TType.BOOL, 7) oprot.writeBool(self.getColumnStats) oprot.writeFieldEnd() if self.processorCapabilities is not None: - oprot.writeFieldBegin("processorCapabilities", TType.LIST, 8) + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter945 in self.processorCapabilities: - oprot.writeString(iter945.encode("utf-8") if sys.version_info[0] == 2 else iter945) + for iter1067 in self.processorCapabilities: + oprot.writeString(iter1067.encode('utf-8') if sys.version_info[0] == 2 else iter1067) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: - oprot.writeFieldBegin("processorIdentifier", TType.STRING, 9) - oprot.writeString(self.processorIdentifier.encode("utf-8") if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 9) + oprot.writeString(self.processorIdentifier.encode('utf-8') if sys.version_info[0] == 2 else self.processorIdentifier) oprot.writeFieldEnd() if self.engine is not None: - oprot.writeFieldBegin("engine", TType.STRING, 10) - oprot.writeString(self.engine.encode("utf-8") if sys.version_info[0] == 2 else self.engine) + oprot.writeFieldBegin('engine', TType.STRING, 10) + oprot.writeString(self.engine.encode('utf-8') if sys.version_info[0] == 2 else self.engine) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 11) + oprot.writeFieldBegin('id', TType.I64, 11) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21726,14 +21129,15 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21742,28 +21146,22 @@ def __ne__(self, other): return not (self == other) -class GetTableResult: +class GetTableResult(object): """ Attributes: - table - isStatsCompliant """ + thrift_spec = None + - def __init__( - self, - table=None, - isStatsCompliant=None, - ): + def __init__(self, table = None, isStatsCompliant = None,): self.table = table self.isStatsCompliant = isStatsCompliant def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21788,16 +21186,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetTableResult") + oprot.writeStructBegin('GetTableResult') if self.table is not None: - oprot.writeFieldBegin("table", TType.STRUCT, 1) + oprot.writeFieldBegin('table', TType.STRUCT, 1) self.table.write(oprot) oprot.writeFieldEnd() if self.isStatsCompliant is not None: - oprot.writeFieldBegin("isStatsCompliant", TType.BOOL, 2) + oprot.writeFieldBegin('isStatsCompliant', TType.BOOL, 2) oprot.writeBool(self.isStatsCompliant) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21805,12 +21204,13 @@ def write(self, oprot): def validate(self): if self.table is None: - raise TProtocolException(message="Required field table is unset!") + raise TProtocolException(message='Required field table is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -21819,7 +21219,7 @@ def __ne__(self, other): return not (self == other) -class GetTablesRequest: +class GetTablesRequest(object): """ Attributes: - dbName @@ -21832,18 +21232,10 @@ class GetTablesRequest: - tablesPattern """ + thrift_spec = None - def __init__( - self, - dbName=None, - tblNames=None, - capabilities=None, - catName=None, - processorCapabilities=None, - processorIdentifier=None, - projectionSpec=None, - tablesPattern=None, - ): + + def __init__(self, dbName = None, tblNames = None, capabilities = None, catName = None, processorCapabilities = None, processorIdentifier = None, projectionSpec = None, tablesPattern = None,): self.dbName = dbName self.tblNames = tblNames self.capabilities = capabilities @@ -21854,11 +21246,7 @@ def __init__( self.tablesPattern = tablesPattern def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -21868,22 +21256,16 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype949, _size946) = iprot.readListBegin() - for _i950 in range(_size946): - _elem951 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.tblNames.append(_elem951) + (_etype1071, _size1068) = iprot.readListBegin() + for _i1072 in range(_size1068): + _elem1073 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.tblNames.append(_elem1073) iprot.readListEnd() else: iprot.skip(ftype) @@ -21895,30 +21277,22 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype955, _size952) = iprot.readListBegin() - for _i956 in range(_size952): - _elem957 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.processorCapabilities.append(_elem957) + (_etype1077, _size1074) = iprot.readListBegin() + for _i1078 in range(_size1074): + _elem1079 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.processorCapabilities.append(_elem1079) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.processorIdentifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.processorIdentifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -21929,9 +21303,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.tablesPattern = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tablesPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -21940,59 +21312,61 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetTablesRequest") + oprot.writeStructBegin('GetTablesRequest') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblNames is not None: - oprot.writeFieldBegin("tblNames", TType.LIST, 2) + oprot.writeFieldBegin('tblNames', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tblNames)) - for iter958 in self.tblNames: - oprot.writeString(iter958.encode("utf-8") if sys.version_info[0] == 2 else iter958) + for iter1080 in self.tblNames: + oprot.writeString(iter1080.encode('utf-8') if sys.version_info[0] == 2 else iter1080) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: - oprot.writeFieldBegin("capabilities", TType.STRUCT, 3) + oprot.writeFieldBegin('capabilities', TType.STRUCT, 3) self.capabilities.write(oprot) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 4) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 4) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.processorCapabilities is not None: - oprot.writeFieldBegin("processorCapabilities", TType.LIST, 5) + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter959 in self.processorCapabilities: - oprot.writeString(iter959.encode("utf-8") if sys.version_info[0] == 2 else iter959) + for iter1081 in self.processorCapabilities: + oprot.writeString(iter1081.encode('utf-8') if sys.version_info[0] == 2 else iter1081) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: - oprot.writeFieldBegin("processorIdentifier", TType.STRING, 6) - oprot.writeString(self.processorIdentifier.encode("utf-8") if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 6) + oprot.writeString(self.processorIdentifier.encode('utf-8') if sys.version_info[0] == 2 else self.processorIdentifier) oprot.writeFieldEnd() if self.projectionSpec is not None: - oprot.writeFieldBegin("projectionSpec", TType.STRUCT, 7) + oprot.writeFieldBegin('projectionSpec', TType.STRUCT, 7) self.projectionSpec.write(oprot) oprot.writeFieldEnd() if self.tablesPattern is not None: - oprot.writeFieldBegin("tablesPattern", TType.STRING, 8) - oprot.writeString(self.tablesPattern.encode("utf-8") if sys.version_info[0] == 2 else self.tablesPattern) + oprot.writeFieldBegin('tablesPattern', TType.STRING, 8) + oprot.writeString(self.tablesPattern.encode('utf-8') if sys.version_info[0] == 2 else self.tablesPattern) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22001,25 +21375,20 @@ def __ne__(self, other): return not (self == other) -class GetTablesResult: +class GetTablesResult(object): """ Attributes: - tables """ + thrift_spec = None + - def __init__( - self, - tables=None, - ): + def __init__(self, tables = None,): self.tables = tables def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22030,11 +21399,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype963, _size960) = iprot.readListBegin() - for _i964 in range(_size960): - _elem965 = Table() - _elem965.read(iprot) - self.tables.append(_elem965) + (_etype1085, _size1082) = iprot.readListBegin() + for _i1086 in range(_size1082): + _elem1087 = Table() + _elem1087.read(iprot) + self.tables.append(_elem1087) iprot.readListEnd() else: iprot.skip(ftype) @@ -22044,15 +21413,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetTablesResult") + oprot.writeStructBegin('GetTablesResult') if self.tables is not None: - oprot.writeFieldBegin("tables", TType.LIST, 1) + oprot.writeFieldBegin('tables', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tables)) - for iter966 in self.tables: - iter966.write(oprot) + for iter1088 in self.tables: + iter1088.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22060,12 +21430,13 @@ def write(self, oprot): def validate(self): if self.tables is None: - raise TProtocolException(message="Required field tables is unset!") + raise TProtocolException(message='Required field tables is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22074,7 +21445,7 @@ def __ne__(self, other): return not (self == other) -class GetTablesExtRequest: +class GetTablesExtRequest(object): """ Attributes: - catalog @@ -22086,17 +21457,10 @@ class GetTablesExtRequest: - processorIdentifier """ + thrift_spec = None - def __init__( - self, - catalog=None, - database=None, - tableNamePattern=None, - requestedFields=None, - limit=None, - processorCapabilities=None, - processorIdentifier=None, - ): + + def __init__(self, catalog = None, database = None, tableNamePattern = None, requestedFields = None, limit = None, processorCapabilities = None, processorIdentifier = None,): self.catalog = catalog self.database = database self.tableNamePattern = tableNamePattern @@ -22106,11 +21470,7 @@ def __init__( self.processorIdentifier = processorIdentifier def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22120,23 +21480,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catalog = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catalog = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.database = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.database = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableNamePattern = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableNamePattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -22152,22 +21506,16 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype970, _size967) = iprot.readListBegin() - for _i971 in range(_size967): - _elem972 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.processorCapabilities.append(_elem972) + (_etype1092, _size1089) = iprot.readListBegin() + for _i1093 in range(_size1089): + _elem1094 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.processorCapabilities.append(_elem1094) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.processorIdentifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.processorIdentifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -22176,58 +21524,60 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetTablesExtRequest") + oprot.writeStructBegin('GetTablesExtRequest') if self.catalog is not None: - oprot.writeFieldBegin("catalog", TType.STRING, 1) - oprot.writeString(self.catalog.encode("utf-8") if sys.version_info[0] == 2 else self.catalog) + oprot.writeFieldBegin('catalog', TType.STRING, 1) + oprot.writeString(self.catalog.encode('utf-8') if sys.version_info[0] == 2 else self.catalog) oprot.writeFieldEnd() if self.database is not None: - oprot.writeFieldBegin("database", TType.STRING, 2) - oprot.writeString(self.database.encode("utf-8") if sys.version_info[0] == 2 else self.database) + oprot.writeFieldBegin('database', TType.STRING, 2) + oprot.writeString(self.database.encode('utf-8') if sys.version_info[0] == 2 else self.database) oprot.writeFieldEnd() if self.tableNamePattern is not None: - oprot.writeFieldBegin("tableNamePattern", TType.STRING, 3) - oprot.writeString(self.tableNamePattern.encode("utf-8") if sys.version_info[0] == 2 else self.tableNamePattern) + oprot.writeFieldBegin('tableNamePattern', TType.STRING, 3) + oprot.writeString(self.tableNamePattern.encode('utf-8') if sys.version_info[0] == 2 else self.tableNamePattern) oprot.writeFieldEnd() if self.requestedFields is not None: - oprot.writeFieldBegin("requestedFields", TType.I32, 4) + oprot.writeFieldBegin('requestedFields', TType.I32, 4) oprot.writeI32(self.requestedFields) oprot.writeFieldEnd() if self.limit is not None: - oprot.writeFieldBegin("limit", TType.I32, 5) + oprot.writeFieldBegin('limit', TType.I32, 5) oprot.writeI32(self.limit) oprot.writeFieldEnd() if self.processorCapabilities is not None: - oprot.writeFieldBegin("processorCapabilities", TType.LIST, 6) + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter973 in self.processorCapabilities: - oprot.writeString(iter973.encode("utf-8") if sys.version_info[0] == 2 else iter973) + for iter1095 in self.processorCapabilities: + oprot.writeString(iter1095.encode('utf-8') if sys.version_info[0] == 2 else iter1095) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: - oprot.writeFieldBegin("processorIdentifier", TType.STRING, 7) - oprot.writeString(self.processorIdentifier.encode("utf-8") if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 7) + oprot.writeString(self.processorIdentifier.encode('utf-8') if sys.version_info[0] == 2 else self.processorIdentifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.catalog is None: - raise TProtocolException(message="Required field catalog is unset!") + raise TProtocolException(message='Required field catalog is unset!') if self.database is None: - raise TProtocolException(message="Required field database is unset!") + raise TProtocolException(message='Required field database is unset!') if self.tableNamePattern is None: - raise TProtocolException(message="Required field tableNamePattern is unset!") + raise TProtocolException(message='Required field tableNamePattern is unset!') if self.requestedFields is None: - raise TProtocolException(message="Required field requestedFields is unset!") + raise TProtocolException(message='Required field requestedFields is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22236,7 +21586,7 @@ def __ne__(self, other): return not (self == other) -class ExtendedTableInfo: +class ExtendedTableInfo(object): """ Attributes: - tblName @@ -22245,25 +21595,17 @@ class ExtendedTableInfo: - requiredWriteCapabilities """ + thrift_spec = None + - def __init__( - self, - tblName=None, - accessType=None, - requiredReadCapabilities=None, - requiredWriteCapabilities=None, - ): + def __init__(self, tblName = None, accessType = None, requiredReadCapabilities = None, requiredWriteCapabilities = None,): self.tblName = tblName self.accessType = accessType self.requiredReadCapabilities = requiredReadCapabilities self.requiredWriteCapabilities = requiredWriteCapabilities def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22273,9 +21615,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -22286,28 +21626,20 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.requiredReadCapabilities = [] - (_etype977, _size974) = iprot.readListBegin() - for _i978 in range(_size974): - _elem979 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.requiredReadCapabilities.append(_elem979) + (_etype1099, _size1096) = iprot.readListBegin() + for _i1100 in range(_size1096): + _elem1101 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.requiredReadCapabilities.append(_elem1101) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.requiredWriteCapabilities = [] - (_etype983, _size980) = iprot.readListBegin() - for _i984 in range(_size980): - _elem985 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.requiredWriteCapabilities.append(_elem985) + (_etype1105, _size1102) = iprot.readListBegin() + for _i1106 in range(_size1102): + _elem1107 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.requiredWriteCapabilities.append(_elem1107) iprot.readListEnd() else: iprot.skip(ftype) @@ -22317,30 +21649,31 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ExtendedTableInfo") + oprot.writeStructBegin('ExtendedTableInfo') if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 1) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 1) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.accessType is not None: - oprot.writeFieldBegin("accessType", TType.I32, 2) + oprot.writeFieldBegin('accessType', TType.I32, 2) oprot.writeI32(self.accessType) oprot.writeFieldEnd() if self.requiredReadCapabilities is not None: - oprot.writeFieldBegin("requiredReadCapabilities", TType.LIST, 3) + oprot.writeFieldBegin('requiredReadCapabilities', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.requiredReadCapabilities)) - for iter986 in self.requiredReadCapabilities: - oprot.writeString(iter986.encode("utf-8") if sys.version_info[0] == 2 else iter986) + for iter1108 in self.requiredReadCapabilities: + oprot.writeString(iter1108.encode('utf-8') if sys.version_info[0] == 2 else iter1108) oprot.writeListEnd() oprot.writeFieldEnd() if self.requiredWriteCapabilities is not None: - oprot.writeFieldBegin("requiredWriteCapabilities", TType.LIST, 4) + oprot.writeFieldBegin('requiredWriteCapabilities', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.requiredWriteCapabilities)) - for iter987 in self.requiredWriteCapabilities: - oprot.writeString(iter987.encode("utf-8") if sys.version_info[0] == 2 else iter987) + for iter1109 in self.requiredWriteCapabilities: + oprot.writeString(iter1109.encode('utf-8') if sys.version_info[0] == 2 else iter1109) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22348,12 +21681,132 @@ def write(self, oprot): def validate(self): if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 DropTableRequest(object): + """ + Attributes: + - catalogName + - dbName + - tableName + - deleteData + - envContext + - dropPartitions + + """ + thrift_spec = None + + + def __init__(self, catalogName = None, dbName = None, tableName = None, deleteData = None, envContext = None, dropPartitions = None,): + self.catalogName = catalogName + self.dbName = dbName + self.tableName = tableName + self.deleteData = deleteData + self.envContext = envContext + self.dropPartitions = dropPartitions + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.deleteData = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.envContext = EnvironmentContext() + self.envContext.read(iprot) + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.dropPartitions = iprot.readBool() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('DropTableRequest') + if self.catalogName is not None: + oprot.writeFieldBegin('catalogName', TType.STRING, 1) + oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldEnd() + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldEnd() + if self.deleteData is not None: + oprot.writeFieldBegin('deleteData', TType.BOOL, 4) + oprot.writeBool(self.deleteData) + oprot.writeFieldEnd() + if self.envContext is not None: + oprot.writeFieldBegin('envContext', TType.STRUCT, 5) + self.envContext.write(oprot) + oprot.writeFieldEnd() + if self.dropPartitions is not None: + oprot.writeFieldBegin('dropPartitions', TType.BOOL, 6) + oprot.writeBool(self.dropPartitions) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocolException(message='Required field dbName is unset!') + if self.tableName is None: + raise TProtocolException(message='Required field tableName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22362,7 +21815,7 @@ def __ne__(self, other): return not (self == other) -class GetDatabaseRequest: +class GetDatabaseRequest(object): """ Attributes: - name @@ -22371,25 +21824,17 @@ class GetDatabaseRequest: - processorIdentifier """ + thrift_spec = None + - def __init__( - self, - name=None, - catalogName=None, - processorCapabilities=None, - processorIdentifier=None, - ): + def __init__(self, name = None, catalogName = None, processorCapabilities = None, processorIdentifier = None,): self.name = name self.catalogName = catalogName self.processorCapabilities = processorCapabilities self.processorIdentifier = processorIdentifier def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22399,37 +21844,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.catalogName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype991, _size988) = iprot.readListBegin() - for _i992 in range(_size988): - _elem993 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.processorCapabilities.append(_elem993) + (_etype1113, _size1110) = iprot.readListBegin() + for _i1114 in range(_size1110): + _elem1115 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.processorCapabilities.append(_elem1115) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.processorIdentifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.processorIdentifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -22438,38 +21873,115 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetDatabaseRequest") + oprot.writeStructBegin('GetDatabaseRequest') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.catalogName is not None: - oprot.writeFieldBegin("catalogName", TType.STRING, 2) - oprot.writeString(self.catalogName.encode("utf-8") if sys.version_info[0] == 2 else self.catalogName) + oprot.writeFieldBegin('catalogName', TType.STRING, 2) + oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) oprot.writeFieldEnd() if self.processorCapabilities is not None: - oprot.writeFieldBegin("processorCapabilities", TType.LIST, 3) + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter994 in self.processorCapabilities: - oprot.writeString(iter994.encode("utf-8") if sys.version_info[0] == 2 else iter994) + for iter1116 in self.processorCapabilities: + oprot.writeString(iter1116.encode('utf-8') if sys.version_info[0] == 2 else iter1116) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: - oprot.writeFieldBegin("processorIdentifier", TType.STRING, 4) - oprot.writeString(self.processorIdentifier.encode("utf-8") if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 4) + oprot.writeString(self.processorIdentifier.encode('utf-8') if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 AlterDatabaseRequest(object): + """ + Attributes: + - oldDbName + - newDb + + """ + thrift_spec = None + + + def __init__(self, oldDbName = None, newDb = None,): + self.oldDbName = oldDbName + self.newDb = newDb + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.oldDbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.newDb = Database() + self.newDb.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('AlterDatabaseRequest') + if self.oldDbName is not None: + oprot.writeFieldBegin('oldDbName', TType.STRING, 1) + oprot.writeString(self.oldDbName.encode('utf-8') if sys.version_info[0] == 2 else self.oldDbName) + oprot.writeFieldEnd() + if self.newDb is not None: + oprot.writeFieldBegin('newDb', TType.STRUCT, 2) + self.newDb.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.oldDbName is None: + raise TProtocolException(message='Required field oldDbName is unset!') + if self.newDb is None: + raise TProtocolException(message='Required field newDb is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22478,7 +21990,7 @@ def __ne__(self, other): return not (self == other) -class DropDatabaseRequest: +class DropDatabaseRequest(object): """ Attributes: - name @@ -22491,18 +22003,10 @@ class DropDatabaseRequest: - deleteManagedDir """ + thrift_spec = None + - def __init__( - self, - name=None, - catalogName=None, - ignoreUnknownDb=None, - deleteData=None, - cascade=None, - softDelete=False, - txnId=0, - deleteManagedDir=True, - ): + def __init__(self, name = None, catalogName = None, ignoreUnknownDb = None, deleteData = None, cascade = None, softDelete = False, txnId = 0, deleteManagedDir = True,): self.name = name self.catalogName = catalogName self.ignoreUnknownDb = ignoreUnknownDb @@ -22513,11 +22017,7 @@ def __init__( self.deleteManagedDir = deleteManagedDir def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22527,16 +22027,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.catalogName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -22575,40 +22071,41 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DropDatabaseRequest") + oprot.writeStructBegin('DropDatabaseRequest') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.catalogName is not None: - oprot.writeFieldBegin("catalogName", TType.STRING, 2) - oprot.writeString(self.catalogName.encode("utf-8") if sys.version_info[0] == 2 else self.catalogName) + oprot.writeFieldBegin('catalogName', TType.STRING, 2) + oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) oprot.writeFieldEnd() if self.ignoreUnknownDb is not None: - oprot.writeFieldBegin("ignoreUnknownDb", TType.BOOL, 3) + oprot.writeFieldBegin('ignoreUnknownDb', TType.BOOL, 3) oprot.writeBool(self.ignoreUnknownDb) oprot.writeFieldEnd() if self.deleteData is not None: - oprot.writeFieldBegin("deleteData", TType.BOOL, 4) + oprot.writeFieldBegin('deleteData', TType.BOOL, 4) oprot.writeBool(self.deleteData) oprot.writeFieldEnd() if self.cascade is not None: - oprot.writeFieldBegin("cascade", TType.BOOL, 5) + oprot.writeFieldBegin('cascade', TType.BOOL, 5) oprot.writeBool(self.cascade) oprot.writeFieldEnd() if self.softDelete is not None: - oprot.writeFieldBegin("softDelete", TType.BOOL, 6) + oprot.writeFieldBegin('softDelete', TType.BOOL, 6) oprot.writeBool(self.softDelete) oprot.writeFieldEnd() if self.txnId is not None: - oprot.writeFieldBegin("txnId", TType.I64, 7) + oprot.writeFieldBegin('txnId', TType.I64, 7) oprot.writeI64(self.txnId) oprot.writeFieldEnd() if self.deleteManagedDir is not None: - oprot.writeFieldBegin("deleteManagedDir", TType.BOOL, 8) + oprot.writeFieldBegin('deleteManagedDir', TType.BOOL, 8) oprot.writeBool(self.deleteManagedDir) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22616,18 +22113,19 @@ def write(self, oprot): def validate(self): if self.name is None: - raise TProtocolException(message="Required field name is unset!") + raise TProtocolException(message='Required field name is unset!') if self.ignoreUnknownDb is None: - raise TProtocolException(message="Required field ignoreUnknownDb is unset!") + raise TProtocolException(message='Required field ignoreUnknownDb is unset!') if self.deleteData is None: - raise TProtocolException(message="Required field deleteData is unset!") + raise TProtocolException(message='Required field deleteData is unset!') if self.cascade is None: - raise TProtocolException(message="Required field cascade is unset!") + raise TProtocolException(message='Required field cascade is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22636,28 +22134,26 @@ def __ne__(self, other): return not (self == other) -class CmRecycleRequest: +class GetFunctionsRequest(object): """ Attributes: - - dataPath - - purge + - dbName + - catalogName + - pattern + - returnNames """ + thrift_spec = None - def __init__( - self, - dataPath=None, - purge=None, - ): - self.dataPath = dataPath - self.purge = purge + + def __init__(self, dbName = None, catalogName = None, pattern = None, returnNames = True,): + self.dbName = dbName + self.catalogName = catalogName + self.pattern = pattern + self.returnNames = returnNames def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22667,14 +22163,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dataPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: + if ftype == TType.STRING: + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.pattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.BOOL: - self.purge = iprot.readBool() + self.returnNames = iprot.readBool() else: iprot.skip(ftype) else: @@ -22683,31 +22187,39 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CmRecycleRequest") - if self.dataPath is not None: - oprot.writeFieldBegin("dataPath", TType.STRING, 1) - oprot.writeString(self.dataPath.encode("utf-8") if sys.version_info[0] == 2 else self.dataPath) + oprot.writeStructBegin('GetFunctionsRequest') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() - if self.purge is not None: - oprot.writeFieldBegin("purge", TType.BOOL, 2) - oprot.writeBool(self.purge) + if self.catalogName is not None: + oprot.writeFieldBegin('catalogName', TType.STRING, 2) + oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) + oprot.writeFieldEnd() + if self.pattern is not None: + oprot.writeFieldBegin('pattern', TType.STRING, 3) + oprot.writeString(self.pattern.encode('utf-8') if sys.version_info[0] == 2 else self.pattern) + oprot.writeFieldEnd() + if self.returnNames is not None: + oprot.writeFieldBegin('returnNames', TType.BOOL, 4) + oprot.writeBool(self.returnNames) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.dataPath is None: - raise TProtocolException(message="Required field dataPath is unset!") - if self.purge is None: - raise TProtocolException(message="Required field purge is unset!") + if self.dbName is None: + raise TProtocolException(message='Required field dbName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22716,13 +22228,22 @@ def __ne__(self, other): return not (self == other) -class CmRecycleResponse: +class GetFunctionsResponse(object): + """ + Attributes: + - function_names + - functions + + """ + thrift_spec = None + + + def __init__(self, function_names = None, functions = None,): + self.function_names = function_names + self.functions = functions + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22730,16 +22251,168 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) - return - oprot.writeStructBegin("CmRecycleResponse") + if fid == 1: + if ftype == TType.LIST: + self.function_names = [] + (_etype1120, _size1117) = iprot.readListBegin() + for _i1121 in range(_size1117): + _elem1122 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.function_names.append(_elem1122) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.functions = [] + (_etype1126, _size1123) = iprot.readListBegin() + for _i1127 in range(_size1123): + _elem1128 = Function() + _elem1128.read(iprot) + self.functions.append(_elem1128) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('GetFunctionsResponse') + if self.function_names is not None: + oprot.writeFieldBegin('function_names', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.function_names)) + for iter1129 in self.function_names: + oprot.writeString(iter1129.encode('utf-8') if sys.version_info[0] == 2 else iter1129) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.functions is not None: + oprot.writeFieldBegin('functions', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.functions)) + for iter1130 in self.functions: + iter1130.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 CmRecycleRequest(object): + """ + Attributes: + - dataPath + - purge + + """ + thrift_spec = None + + + def __init__(self, dataPath = None, purge = None,): + self.dataPath = dataPath + self.purge = purge + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.dataPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.purge = iprot.readBool() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('CmRecycleRequest') + if self.dataPath is not None: + oprot.writeFieldBegin('dataPath', TType.STRING, 1) + oprot.writeString(self.dataPath.encode('utf-8') if sys.version_info[0] == 2 else self.dataPath) + oprot.writeFieldEnd() + if self.purge is not None: + oprot.writeFieldBegin('purge', TType.BOOL, 2) + oprot.writeBool(self.purge) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dataPath is None: + raise TProtocolException(message='Required field dataPath is unset!') + if self.purge is None: + raise TProtocolException(message='Required field purge is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 CmRecycleResponse(object): + thrift_spec = None + + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('CmRecycleResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -22747,8 +22420,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22757,7 +22431,7 @@ def __ne__(self, other): return not (self == other) -class TableMeta: +class TableMeta(object): """ Attributes: - dbName @@ -22765,29 +22439,24 @@ class TableMeta: - tableType - comments - catName + - ownerName + - ownerType """ + thrift_spec = None - def __init__( - self, - dbName=None, - tableName=None, - tableType=None, - comments=None, - catName=None, - ): + + def __init__(self, dbName = None, tableName = None, tableType = None, comments = None, catName = None, ownerName = None, ownerType = None,): self.dbName = dbName self.tableName = tableName self.tableType = tableType self.comments = comments self.catName = catName + self.ownerName = ownerName + self.ownerType = ownerType def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22797,37 +22466,37 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableType = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableType = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.comments = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.comments = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.ownerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.ownerType = iprot.readI32() else: iprot.skip(ftype) else: @@ -22836,45 +22505,55 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TableMeta") + oprot.writeStructBegin('TableMeta') if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 1) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 2) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 2) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.tableType is not None: - oprot.writeFieldBegin("tableType", TType.STRING, 3) - oprot.writeString(self.tableType.encode("utf-8") if sys.version_info[0] == 2 else self.tableType) + oprot.writeFieldBegin('tableType', TType.STRING, 3) + oprot.writeString(self.tableType.encode('utf-8') if sys.version_info[0] == 2 else self.tableType) oprot.writeFieldEnd() if self.comments is not None: - oprot.writeFieldBegin("comments", TType.STRING, 4) - oprot.writeString(self.comments.encode("utf-8") if sys.version_info[0] == 2 else self.comments) + oprot.writeFieldBegin('comments', TType.STRING, 4) + oprot.writeString(self.comments.encode('utf-8') if sys.version_info[0] == 2 else self.comments) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 5) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 5) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldEnd() + if self.ownerName is not None: + oprot.writeFieldBegin('ownerName', TType.STRING, 6) + oprot.writeString(self.ownerName.encode('utf-8') if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldEnd() + if self.ownerType is not None: + oprot.writeFieldBegin('ownerType', TType.I32, 7) + oprot.writeI32(self.ownerType) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') if self.tableType is None: - raise TProtocolException(message="Required field tableType is unset!") + raise TProtocolException(message='Required field tableType is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22883,28 +22562,22 @@ def __ne__(self, other): return not (self == other) -class Materialization: +class Materialization(object): """ Attributes: - sourceTablesUpdateDeleteModified - sourceTablesCompacted """ + thrift_spec = None + - def __init__( - self, - sourceTablesUpdateDeleteModified=None, - sourceTablesCompacted=None, - ): + def __init__(self, sourceTablesUpdateDeleteModified = None, sourceTablesCompacted = None,): self.sourceTablesUpdateDeleteModified = sourceTablesUpdateDeleteModified self.sourceTablesCompacted = sourceTablesCompacted def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -22928,16 +22601,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Materialization") + oprot.writeStructBegin('Materialization') if self.sourceTablesUpdateDeleteModified is not None: - oprot.writeFieldBegin("sourceTablesUpdateDeleteModified", TType.BOOL, 1) + oprot.writeFieldBegin('sourceTablesUpdateDeleteModified', TType.BOOL, 1) oprot.writeBool(self.sourceTablesUpdateDeleteModified) oprot.writeFieldEnd() if self.sourceTablesCompacted is not None: - oprot.writeFieldBegin("sourceTablesCompacted", TType.BOOL, 2) + oprot.writeFieldBegin('sourceTablesCompacted', TType.BOOL, 2) oprot.writeBool(self.sourceTablesCompacted) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22945,14 +22619,15 @@ def write(self, oprot): def validate(self): if self.sourceTablesUpdateDeleteModified is None: - raise TProtocolException(message="Required field sourceTablesUpdateDeleteModified is unset!") + raise TProtocolException(message='Required field sourceTablesUpdateDeleteModified is unset!') if self.sourceTablesCompacted is None: - raise TProtocolException(message="Required field sourceTablesCompacted is unset!") + raise TProtocolException(message='Required field sourceTablesCompacted is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -22961,7 +22636,7 @@ def __ne__(self, other): return not (self == other) -class WMResourcePlan: +class WMResourcePlan(object): """ Attributes: - name @@ -22971,15 +22646,10 @@ class WMResourcePlan: - ns """ + thrift_spec = None - def __init__( - self, - name=None, - status=None, - queryParallelism=None, - defaultPoolPath=None, - ns=None, - ): + + def __init__(self, name = None, status = None, queryParallelism = None, defaultPoolPath = None, ns = None,): self.name = name self.status = status self.queryParallelism = queryParallelism @@ -22987,11 +22657,7 @@ def __init__( self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23001,9 +22667,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -23018,16 +22682,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.defaultPoolPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.defaultPoolPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -23036,41 +22696,43 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMResourcePlan") + oprot.writeStructBegin('WMResourcePlan') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.status is not None: - oprot.writeFieldBegin("status", TType.I32, 2) + oprot.writeFieldBegin('status', TType.I32, 2) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.queryParallelism is not None: - oprot.writeFieldBegin("queryParallelism", TType.I32, 3) + oprot.writeFieldBegin('queryParallelism', TType.I32, 3) oprot.writeI32(self.queryParallelism) oprot.writeFieldEnd() if self.defaultPoolPath is not None: - oprot.writeFieldBegin("defaultPoolPath", TType.STRING, 4) - oprot.writeString(self.defaultPoolPath.encode("utf-8") if sys.version_info[0] == 2 else self.defaultPoolPath) + oprot.writeFieldBegin('defaultPoolPath', TType.STRING, 4) + oprot.writeString(self.defaultPoolPath.encode('utf-8') if sys.version_info[0] == 2 else self.defaultPoolPath) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 5) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 5) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.name is None: - raise TProtocolException(message="Required field name is unset!") + raise TProtocolException(message='Required field name is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -23079,7 +22741,7 @@ def __ne__(self, other): return not (self == other) -class WMNullableResourcePlan: +class WMNullableResourcePlan(object): """ Attributes: - name @@ -23091,17 +22753,10 @@ class WMNullableResourcePlan: - ns """ + thrift_spec = None + - def __init__( - self, - name=None, - status=None, - queryParallelism=None, - isSetQueryParallelism=None, - defaultPoolPath=None, - isSetDefaultPoolPath=None, - ns=None, - ): + def __init__(self, name = None, status = None, queryParallelism = None, isSetQueryParallelism = None, defaultPoolPath = None, isSetDefaultPoolPath = None, ns = None,): self.name = name self.status = status self.queryParallelism = queryParallelism @@ -23111,11 +22766,7 @@ def __init__( self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23125,9 +22776,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -23147,9 +22796,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.defaultPoolPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.defaultPoolPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -23159,9 +22806,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -23170,37 +22815,38 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMNullableResourcePlan") + oprot.writeStructBegin('WMNullableResourcePlan') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.status is not None: - oprot.writeFieldBegin("status", TType.I32, 2) + oprot.writeFieldBegin('status', TType.I32, 2) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.queryParallelism is not None: - oprot.writeFieldBegin("queryParallelism", TType.I32, 4) + oprot.writeFieldBegin('queryParallelism', TType.I32, 4) oprot.writeI32(self.queryParallelism) oprot.writeFieldEnd() if self.isSetQueryParallelism is not None: - oprot.writeFieldBegin("isSetQueryParallelism", TType.BOOL, 5) + oprot.writeFieldBegin('isSetQueryParallelism', TType.BOOL, 5) oprot.writeBool(self.isSetQueryParallelism) oprot.writeFieldEnd() if self.defaultPoolPath is not None: - oprot.writeFieldBegin("defaultPoolPath", TType.STRING, 6) - oprot.writeString(self.defaultPoolPath.encode("utf-8") if sys.version_info[0] == 2 else self.defaultPoolPath) + oprot.writeFieldBegin('defaultPoolPath', TType.STRING, 6) + oprot.writeString(self.defaultPoolPath.encode('utf-8') if sys.version_info[0] == 2 else self.defaultPoolPath) oprot.writeFieldEnd() if self.isSetDefaultPoolPath is not None: - oprot.writeFieldBegin("isSetDefaultPoolPath", TType.BOOL, 7) + oprot.writeFieldBegin('isSetDefaultPoolPath', TType.BOOL, 7) oprot.writeBool(self.isSetDefaultPoolPath) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 8) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 8) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -23209,8 +22855,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -23219,7 +22866,7 @@ def __ne__(self, other): return not (self == other) -class WMPool: +class WMPool(object): """ Attributes: - resourcePlanName @@ -23230,16 +22877,10 @@ class WMPool: - ns """ + thrift_spec = None - def __init__( - self, - resourcePlanName=None, - poolPath=None, - allocFraction=None, - queryParallelism=None, - schedulingPolicy=None, - ns=None, - ): + + def __init__(self, resourcePlanName = None, poolPath = None, allocFraction = None, queryParallelism = None, schedulingPolicy = None, ns = None,): self.resourcePlanName = resourcePlanName self.poolPath = poolPath self.allocFraction = allocFraction @@ -23248,11 +22889,7 @@ def __init__( self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23262,16 +22899,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.poolPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.poolPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -23286,16 +22919,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.schedulingPolicy = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.schedulingPolicy = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -23304,47 +22933,49 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMPool") + oprot.writeStructBegin('WMPool') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.poolPath is not None: - oprot.writeFieldBegin("poolPath", TType.STRING, 2) - oprot.writeString(self.poolPath.encode("utf-8") if sys.version_info[0] == 2 else self.poolPath) + oprot.writeFieldBegin('poolPath', TType.STRING, 2) + oprot.writeString(self.poolPath.encode('utf-8') if sys.version_info[0] == 2 else self.poolPath) oprot.writeFieldEnd() if self.allocFraction is not None: - oprot.writeFieldBegin("allocFraction", TType.DOUBLE, 3) + oprot.writeFieldBegin('allocFraction', TType.DOUBLE, 3) oprot.writeDouble(self.allocFraction) oprot.writeFieldEnd() if self.queryParallelism is not None: - oprot.writeFieldBegin("queryParallelism", TType.I32, 4) + oprot.writeFieldBegin('queryParallelism', TType.I32, 4) oprot.writeI32(self.queryParallelism) oprot.writeFieldEnd() if self.schedulingPolicy is not None: - oprot.writeFieldBegin("schedulingPolicy", TType.STRING, 5) - oprot.writeString(self.schedulingPolicy.encode("utf-8") if sys.version_info[0] == 2 else self.schedulingPolicy) + oprot.writeFieldBegin('schedulingPolicy', TType.STRING, 5) + oprot.writeString(self.schedulingPolicy.encode('utf-8') if sys.version_info[0] == 2 else self.schedulingPolicy) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 6) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 6) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.resourcePlanName is None: - raise TProtocolException(message="Required field resourcePlanName is unset!") + raise TProtocolException(message='Required field resourcePlanName is unset!') if self.poolPath is None: - raise TProtocolException(message="Required field poolPath is unset!") + raise TProtocolException(message='Required field poolPath is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -23353,7 +22984,7 @@ def __ne__(self, other): return not (self == other) -class WMNullablePool: +class WMNullablePool(object): """ Attributes: - resourcePlanName @@ -23365,17 +22996,10 @@ class WMNullablePool: - ns """ + thrift_spec = None + - def __init__( - self, - resourcePlanName=None, - poolPath=None, - allocFraction=None, - queryParallelism=None, - schedulingPolicy=None, - isSetSchedulingPolicy=None, - ns=None, - ): + def __init__(self, resourcePlanName = None, poolPath = None, allocFraction = None, queryParallelism = None, schedulingPolicy = None, isSetSchedulingPolicy = None, ns = None,): self.resourcePlanName = resourcePlanName self.poolPath = poolPath self.allocFraction = allocFraction @@ -23385,11 +23009,7 @@ def __init__( self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23399,16 +23019,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.poolPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.poolPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -23423,9 +23039,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.schedulingPolicy = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.schedulingPolicy = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -23435,9 +23049,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -23446,51 +23058,53 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMNullablePool") + oprot.writeStructBegin('WMNullablePool') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.poolPath is not None: - oprot.writeFieldBegin("poolPath", TType.STRING, 2) - oprot.writeString(self.poolPath.encode("utf-8") if sys.version_info[0] == 2 else self.poolPath) + oprot.writeFieldBegin('poolPath', TType.STRING, 2) + oprot.writeString(self.poolPath.encode('utf-8') if sys.version_info[0] == 2 else self.poolPath) oprot.writeFieldEnd() if self.allocFraction is not None: - oprot.writeFieldBegin("allocFraction", TType.DOUBLE, 3) + oprot.writeFieldBegin('allocFraction', TType.DOUBLE, 3) oprot.writeDouble(self.allocFraction) oprot.writeFieldEnd() if self.queryParallelism is not None: - oprot.writeFieldBegin("queryParallelism", TType.I32, 4) + oprot.writeFieldBegin('queryParallelism', TType.I32, 4) oprot.writeI32(self.queryParallelism) oprot.writeFieldEnd() if self.schedulingPolicy is not None: - oprot.writeFieldBegin("schedulingPolicy", TType.STRING, 5) - oprot.writeString(self.schedulingPolicy.encode("utf-8") if sys.version_info[0] == 2 else self.schedulingPolicy) + oprot.writeFieldBegin('schedulingPolicy', TType.STRING, 5) + oprot.writeString(self.schedulingPolicy.encode('utf-8') if sys.version_info[0] == 2 else self.schedulingPolicy) oprot.writeFieldEnd() if self.isSetSchedulingPolicy is not None: - oprot.writeFieldBegin("isSetSchedulingPolicy", TType.BOOL, 6) + oprot.writeFieldBegin('isSetSchedulingPolicy', TType.BOOL, 6) oprot.writeBool(self.isSetSchedulingPolicy) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 7) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 7) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.resourcePlanName is None: - raise TProtocolException(message="Required field resourcePlanName is unset!") + raise TProtocolException(message='Required field resourcePlanName is unset!') if self.poolPath is None: - raise TProtocolException(message="Required field poolPath is unset!") + raise TProtocolException(message='Required field poolPath is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -23499,7 +23113,7 @@ def __ne__(self, other): return not (self == other) -class WMTrigger: +class WMTrigger(object): """ Attributes: - resourcePlanName @@ -23510,16 +23124,10 @@ class WMTrigger: - ns """ + thrift_spec = None - def __init__( - self, - resourcePlanName=None, - triggerName=None, - triggerExpression=None, - actionExpression=None, - isInUnmanaged=None, - ns=None, - ): + + def __init__(self, resourcePlanName = None, triggerName = None, triggerExpression = None, actionExpression = None, isInUnmanaged = None, ns = None,): self.resourcePlanName = resourcePlanName self.triggerName = triggerName self.triggerExpression = triggerExpression @@ -23528,11 +23136,7 @@ def __init__( self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23542,30 +23146,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.triggerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.triggerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.triggerExpression = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.triggerExpression = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.actionExpression = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.actionExpression = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -23575,9 +23171,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -23586,47 +23180,49 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMTrigger") + oprot.writeStructBegin('WMTrigger') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.triggerName is not None: - oprot.writeFieldBegin("triggerName", TType.STRING, 2) - oprot.writeString(self.triggerName.encode("utf-8") if sys.version_info[0] == 2 else self.triggerName) + oprot.writeFieldBegin('triggerName', TType.STRING, 2) + oprot.writeString(self.triggerName.encode('utf-8') if sys.version_info[0] == 2 else self.triggerName) oprot.writeFieldEnd() if self.triggerExpression is not None: - oprot.writeFieldBegin("triggerExpression", TType.STRING, 3) - oprot.writeString(self.triggerExpression.encode("utf-8") if sys.version_info[0] == 2 else self.triggerExpression) + oprot.writeFieldBegin('triggerExpression', TType.STRING, 3) + oprot.writeString(self.triggerExpression.encode('utf-8') if sys.version_info[0] == 2 else self.triggerExpression) oprot.writeFieldEnd() if self.actionExpression is not None: - oprot.writeFieldBegin("actionExpression", TType.STRING, 4) - oprot.writeString(self.actionExpression.encode("utf-8") if sys.version_info[0] == 2 else self.actionExpression) + oprot.writeFieldBegin('actionExpression', TType.STRING, 4) + oprot.writeString(self.actionExpression.encode('utf-8') if sys.version_info[0] == 2 else self.actionExpression) oprot.writeFieldEnd() if self.isInUnmanaged is not None: - oprot.writeFieldBegin("isInUnmanaged", TType.BOOL, 5) + oprot.writeFieldBegin('isInUnmanaged', TType.BOOL, 5) oprot.writeBool(self.isInUnmanaged) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 6) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 6) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.resourcePlanName is None: - raise TProtocolException(message="Required field resourcePlanName is unset!") + raise TProtocolException(message='Required field resourcePlanName is unset!') if self.triggerName is None: - raise TProtocolException(message="Required field triggerName is unset!") + raise TProtocolException(message='Required field triggerName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -23635,7 +23231,7 @@ def __ne__(self, other): return not (self == other) -class WMMapping: +class WMMapping(object): """ Attributes: - resourcePlanName @@ -23646,16 +23242,10 @@ class WMMapping: - ns """ + thrift_spec = None + - def __init__( - self, - resourcePlanName=None, - entityType=None, - entityName=None, - poolPath=None, - ordering=None, - ns=None, - ): + def __init__(self, resourcePlanName = None, entityType = None, entityName = None, poolPath = None, ordering = None, ns = None,): self.resourcePlanName = resourcePlanName self.entityType = entityType self.entityName = entityName @@ -23664,11 +23254,7 @@ def __init__( self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23678,30 +23264,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.entityType = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.entityType = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.entityName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.entityName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.poolPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.poolPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -23711,9 +23289,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -23722,49 +23298,51 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMMapping") + oprot.writeStructBegin('WMMapping') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.entityType is not None: - oprot.writeFieldBegin("entityType", TType.STRING, 2) - oprot.writeString(self.entityType.encode("utf-8") if sys.version_info[0] == 2 else self.entityType) + oprot.writeFieldBegin('entityType', TType.STRING, 2) + oprot.writeString(self.entityType.encode('utf-8') if sys.version_info[0] == 2 else self.entityType) oprot.writeFieldEnd() if self.entityName is not None: - oprot.writeFieldBegin("entityName", TType.STRING, 3) - oprot.writeString(self.entityName.encode("utf-8") if sys.version_info[0] == 2 else self.entityName) + oprot.writeFieldBegin('entityName', TType.STRING, 3) + oprot.writeString(self.entityName.encode('utf-8') if sys.version_info[0] == 2 else self.entityName) oprot.writeFieldEnd() if self.poolPath is not None: - oprot.writeFieldBegin("poolPath", TType.STRING, 4) - oprot.writeString(self.poolPath.encode("utf-8") if sys.version_info[0] == 2 else self.poolPath) + oprot.writeFieldBegin('poolPath', TType.STRING, 4) + oprot.writeString(self.poolPath.encode('utf-8') if sys.version_info[0] == 2 else self.poolPath) oprot.writeFieldEnd() if self.ordering is not None: - oprot.writeFieldBegin("ordering", TType.I32, 5) + oprot.writeFieldBegin('ordering', TType.I32, 5) oprot.writeI32(self.ordering) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 6) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 6) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.resourcePlanName is None: - raise TProtocolException(message="Required field resourcePlanName is unset!") + raise TProtocolException(message='Required field resourcePlanName is unset!') if self.entityType is None: - raise TProtocolException(message="Required field entityType is unset!") + raise TProtocolException(message='Required field entityType is unset!') if self.entityName is None: - raise TProtocolException(message="Required field entityName is unset!") + raise TProtocolException(message='Required field entityName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -23773,7 +23351,7 @@ def __ne__(self, other): return not (self == other) -class WMPoolTrigger: +class WMPoolTrigger(object): """ Attributes: - pool @@ -23781,23 +23359,16 @@ class WMPoolTrigger: - ns """ + thrift_spec = None - def __init__( - self, - pool=None, - trigger=None, - ns=None, - ): + + def __init__(self, pool = None, trigger = None, ns = None,): self.pool = pool self.trigger = trigger self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23807,23 +23378,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.pool = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.pool = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.trigger = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.trigger = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -23832,35 +23397,37 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMPoolTrigger") + oprot.writeStructBegin('WMPoolTrigger') if self.pool is not None: - oprot.writeFieldBegin("pool", TType.STRING, 1) - oprot.writeString(self.pool.encode("utf-8") if sys.version_info[0] == 2 else self.pool) + oprot.writeFieldBegin('pool', TType.STRING, 1) + oprot.writeString(self.pool.encode('utf-8') if sys.version_info[0] == 2 else self.pool) oprot.writeFieldEnd() if self.trigger is not None: - oprot.writeFieldBegin("trigger", TType.STRING, 2) - oprot.writeString(self.trigger.encode("utf-8") if sys.version_info[0] == 2 else self.trigger) + oprot.writeFieldBegin('trigger', TType.STRING, 2) + oprot.writeString(self.trigger.encode('utf-8') if sys.version_info[0] == 2 else self.trigger) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 3) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 3) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.pool is None: - raise TProtocolException(message="Required field pool is unset!") + raise TProtocolException(message='Required field pool is unset!') if self.trigger is None: - raise TProtocolException(message="Required field trigger is unset!") + raise TProtocolException(message='Required field trigger is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -23869,7 +23436,7 @@ def __ne__(self, other): return not (self == other) -class WMFullResourcePlan: +class WMFullResourcePlan(object): """ Attributes: - plan @@ -23879,15 +23446,10 @@ class WMFullResourcePlan: - poolTriggers """ + thrift_spec = None + - def __init__( - self, - plan=None, - pools=None, - mappings=None, - triggers=None, - poolTriggers=None, - ): + def __init__(self, plan = None, pools = None, mappings = None, triggers = None, poolTriggers = None,): self.plan = plan self.pools = pools self.mappings = mappings @@ -23895,11 +23457,7 @@ def __init__( self.poolTriggers = poolTriggers def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -23916,44 +23474,44 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.pools = [] - (_etype998, _size995) = iprot.readListBegin() - for _i999 in range(_size995): - _elem1000 = WMPool() - _elem1000.read(iprot) - self.pools.append(_elem1000) + (_etype1134, _size1131) = iprot.readListBegin() + for _i1135 in range(_size1131): + _elem1136 = WMPool() + _elem1136.read(iprot) + self.pools.append(_elem1136) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.mappings = [] - (_etype1004, _size1001) = iprot.readListBegin() - for _i1005 in range(_size1001): - _elem1006 = WMMapping() - _elem1006.read(iprot) - self.mappings.append(_elem1006) + (_etype1140, _size1137) = iprot.readListBegin() + for _i1141 in range(_size1137): + _elem1142 = WMMapping() + _elem1142.read(iprot) + self.mappings.append(_elem1142) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.triggers = [] - (_etype1010, _size1007) = iprot.readListBegin() - for _i1011 in range(_size1007): - _elem1012 = WMTrigger() - _elem1012.read(iprot) - self.triggers.append(_elem1012) + (_etype1146, _size1143) = iprot.readListBegin() + for _i1147 in range(_size1143): + _elem1148 = WMTrigger() + _elem1148.read(iprot) + self.triggers.append(_elem1148) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.poolTriggers = [] - (_etype1016, _size1013) = iprot.readListBegin() - for _i1017 in range(_size1013): - _elem1018 = WMPoolTrigger() - _elem1018.read(iprot) - self.poolTriggers.append(_elem1018) + (_etype1152, _size1149) = iprot.readListBegin() + for _i1153 in range(_size1149): + _elem1154 = WMPoolTrigger() + _elem1154.read(iprot) + self.poolTriggers.append(_elem1154) iprot.readListEnd() else: iprot.skip(ftype) @@ -23963,40 +23521,41 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMFullResourcePlan") + oprot.writeStructBegin('WMFullResourcePlan') if self.plan is not None: - oprot.writeFieldBegin("plan", TType.STRUCT, 1) + oprot.writeFieldBegin('plan', TType.STRUCT, 1) self.plan.write(oprot) oprot.writeFieldEnd() if self.pools is not None: - oprot.writeFieldBegin("pools", TType.LIST, 2) + oprot.writeFieldBegin('pools', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.pools)) - for iter1019 in self.pools: - iter1019.write(oprot) + for iter1155 in self.pools: + iter1155.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.mappings is not None: - oprot.writeFieldBegin("mappings", TType.LIST, 3) + oprot.writeFieldBegin('mappings', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.mappings)) - for iter1020 in self.mappings: - iter1020.write(oprot) + for iter1156 in self.mappings: + iter1156.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.triggers is not None: - oprot.writeFieldBegin("triggers", TType.LIST, 4) + oprot.writeFieldBegin('triggers', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter1021 in self.triggers: - iter1021.write(oprot) + for iter1157 in self.triggers: + iter1157.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.poolTriggers is not None: - oprot.writeFieldBegin("poolTriggers", TType.LIST, 5) + oprot.writeFieldBegin('poolTriggers', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.poolTriggers)) - for iter1022 in self.poolTriggers: - iter1022.write(oprot) + for iter1158 in self.poolTriggers: + iter1158.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24004,14 +23563,15 @@ def write(self, oprot): def validate(self): if self.plan is None: - raise TProtocolException(message="Required field plan is unset!") + raise TProtocolException(message='Required field plan is unset!') if self.pools is None: - raise TProtocolException(message="Required field pools is unset!") + raise TProtocolException(message='Required field pools is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24020,28 +23580,22 @@ def __ne__(self, other): return not (self == other) -class WMCreateResourcePlanRequest: +class WMCreateResourcePlanRequest(object): """ Attributes: - resourcePlan - copyFrom """ + thrift_spec = None + - def __init__( - self, - resourcePlan=None, - copyFrom=None, - ): + def __init__(self, resourcePlan = None, copyFrom = None,): self.resourcePlan = resourcePlan self.copyFrom = copyFrom def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24057,9 +23611,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.copyFrom = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.copyFrom = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -24068,17 +23620,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreateResourcePlanRequest") + oprot.writeStructBegin('WMCreateResourcePlanRequest') if self.resourcePlan is not None: - oprot.writeFieldBegin("resourcePlan", TType.STRUCT, 1) + oprot.writeFieldBegin('resourcePlan', TType.STRUCT, 1) self.resourcePlan.write(oprot) oprot.writeFieldEnd() if self.copyFrom is not None: - oprot.writeFieldBegin("copyFrom", TType.STRING, 2) - oprot.writeString(self.copyFrom.encode("utf-8") if sys.version_info[0] == 2 else self.copyFrom) + oprot.writeFieldBegin('copyFrom', TType.STRING, 2) + oprot.writeString(self.copyFrom.encode('utf-8') if sys.version_info[0] == 2 else self.copyFrom) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24087,8 +23640,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24097,13 +23651,12 @@ def __ne__(self, other): return not (self == other) -class WMCreateResourcePlanResponse: +class WMCreateResourcePlanResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24117,10 +23670,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreateResourcePlanResponse") + oprot.writeStructBegin('WMCreateResourcePlanResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -24128,8 +23682,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24138,25 +23693,20 @@ def __ne__(self, other): return not (self == other) -class WMGetActiveResourcePlanRequest: +class WMGetActiveResourcePlanRequest(object): """ Attributes: - ns """ + thrift_spec = None - def __init__( - self, - ns=None, - ): + + def __init__(self, ns = None,): self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24166,9 +23716,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -24177,13 +23725,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMGetActiveResourcePlanRequest") + oprot.writeStructBegin('WMGetActiveResourcePlanRequest') if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 1) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 1) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24192,8 +23741,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24202,25 +23752,20 @@ def __ne__(self, other): return not (self == other) -class WMGetActiveResourcePlanResponse: +class WMGetActiveResourcePlanResponse(object): """ Attributes: - resourcePlan """ + thrift_spec = None + - def __init__( - self, - resourcePlan=None, - ): + def __init__(self, resourcePlan = None,): self.resourcePlan = resourcePlan def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24240,12 +23785,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMGetActiveResourcePlanResponse") + oprot.writeStructBegin('WMGetActiveResourcePlanResponse') if self.resourcePlan is not None: - oprot.writeFieldBegin("resourcePlan", TType.STRUCT, 1) + oprot.writeFieldBegin('resourcePlan', TType.STRUCT, 1) self.resourcePlan.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24255,8 +23801,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24265,28 +23812,22 @@ def __ne__(self, other): return not (self == other) -class WMGetResourcePlanRequest: +class WMGetResourcePlanRequest(object): """ Attributes: - resourcePlanName - ns """ + thrift_spec = None - def __init__( - self, - resourcePlanName=None, - ns=None, - ): + + def __init__(self, resourcePlanName = None, ns = None,): self.resourcePlanName = resourcePlanName self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24296,16 +23837,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -24314,17 +23851,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMGetResourcePlanRequest") + oprot.writeStructBegin('WMGetResourcePlanRequest') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 2) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 2) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24333,8 +23871,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24343,25 +23882,20 @@ def __ne__(self, other): return not (self == other) -class WMGetResourcePlanResponse: +class WMGetResourcePlanResponse(object): """ Attributes: - resourcePlan """ + thrift_spec = None + - def __init__( - self, - resourcePlan=None, - ): + def __init__(self, resourcePlan = None,): self.resourcePlan = resourcePlan def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24381,12 +23915,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMGetResourcePlanResponse") + oprot.writeStructBegin('WMGetResourcePlanResponse') if self.resourcePlan is not None: - oprot.writeFieldBegin("resourcePlan", TType.STRUCT, 1) + oprot.writeFieldBegin('resourcePlan', TType.STRUCT, 1) self.resourcePlan.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24396,8 +23931,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24406,25 +23942,20 @@ def __ne__(self, other): return not (self == other) -class WMGetAllResourcePlanRequest: +class WMGetAllResourcePlanRequest(object): """ Attributes: - ns """ + thrift_spec = None - def __init__( - self, - ns=None, - ): + + def __init__(self, ns = None,): self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24434,9 +23965,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -24445,13 +23974,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMGetAllResourcePlanRequest") + oprot.writeStructBegin('WMGetAllResourcePlanRequest') if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 1) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 1) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24460,8 +23990,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24470,25 +24001,20 @@ def __ne__(self, other): return not (self == other) -class WMGetAllResourcePlanResponse: +class WMGetAllResourcePlanResponse(object): """ Attributes: - resourcePlans """ + thrift_spec = None + - def __init__( - self, - resourcePlans=None, - ): + def __init__(self, resourcePlans = None,): self.resourcePlans = resourcePlans def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24499,11 +24025,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.resourcePlans = [] - (_etype1026, _size1023) = iprot.readListBegin() - for _i1027 in range(_size1023): - _elem1028 = WMResourcePlan() - _elem1028.read(iprot) - self.resourcePlans.append(_elem1028) + (_etype1162, _size1159) = iprot.readListBegin() + for _i1163 in range(_size1159): + _elem1164 = WMResourcePlan() + _elem1164.read(iprot) + self.resourcePlans.append(_elem1164) iprot.readListEnd() else: iprot.skip(ftype) @@ -24513,15 +24039,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMGetAllResourcePlanResponse") + oprot.writeStructBegin('WMGetAllResourcePlanResponse') if self.resourcePlans is not None: - oprot.writeFieldBegin("resourcePlans", TType.LIST, 1) + oprot.writeFieldBegin('resourcePlans', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.resourcePlans)) - for iter1029 in self.resourcePlans: - iter1029.write(oprot) + for iter1165 in self.resourcePlans: + iter1165.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24531,8 +24058,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24541,7 +24069,7 @@ def __ne__(self, other): return not (self == other) -class WMAlterResourcePlanRequest: +class WMAlterResourcePlanRequest(object): """ Attributes: - resourcePlanName @@ -24552,16 +24080,10 @@ class WMAlterResourcePlanRequest: - ns """ + thrift_spec = None - def __init__( - self, - resourcePlanName=None, - resourcePlan=None, - isEnableAndActivate=None, - isForceDeactivate=None, - isReplace=None, - ns=None, - ): + + def __init__(self, resourcePlanName = None, resourcePlan = None, isEnableAndActivate = None, isForceDeactivate = None, isReplace = None, ns = None,): self.resourcePlanName = resourcePlanName self.resourcePlan = resourcePlan self.isEnableAndActivate = isEnableAndActivate @@ -24570,11 +24092,7 @@ def __init__( self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24584,9 +24102,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -24612,9 +24128,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -24623,33 +24137,34 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMAlterResourcePlanRequest") + oprot.writeStructBegin('WMAlterResourcePlanRequest') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.resourcePlan is not None: - oprot.writeFieldBegin("resourcePlan", TType.STRUCT, 2) + oprot.writeFieldBegin('resourcePlan', TType.STRUCT, 2) self.resourcePlan.write(oprot) oprot.writeFieldEnd() if self.isEnableAndActivate is not None: - oprot.writeFieldBegin("isEnableAndActivate", TType.BOOL, 3) + oprot.writeFieldBegin('isEnableAndActivate', TType.BOOL, 3) oprot.writeBool(self.isEnableAndActivate) oprot.writeFieldEnd() if self.isForceDeactivate is not None: - oprot.writeFieldBegin("isForceDeactivate", TType.BOOL, 4) + oprot.writeFieldBegin('isForceDeactivate', TType.BOOL, 4) oprot.writeBool(self.isForceDeactivate) oprot.writeFieldEnd() if self.isReplace is not None: - oprot.writeFieldBegin("isReplace", TType.BOOL, 5) + oprot.writeFieldBegin('isReplace', TType.BOOL, 5) oprot.writeBool(self.isReplace) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 6) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 6) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24658,8 +24173,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24668,25 +24184,20 @@ def __ne__(self, other): return not (self == other) -class WMAlterResourcePlanResponse: +class WMAlterResourcePlanResponse(object): """ Attributes: - fullResourcePlan """ + thrift_spec = None + - def __init__( - self, - fullResourcePlan=None, - ): + def __init__(self, fullResourcePlan = None,): self.fullResourcePlan = fullResourcePlan def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24706,12 +24217,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMAlterResourcePlanResponse") + oprot.writeStructBegin('WMAlterResourcePlanResponse') if self.fullResourcePlan is not None: - oprot.writeFieldBegin("fullResourcePlan", TType.STRUCT, 1) + oprot.writeFieldBegin('fullResourcePlan', TType.STRUCT, 1) self.fullResourcePlan.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24721,8 +24233,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24731,28 +24244,22 @@ def __ne__(self, other): return not (self == other) -class WMValidateResourcePlanRequest: +class WMValidateResourcePlanRequest(object): """ Attributes: - resourcePlanName - ns """ + thrift_spec = None - def __init__( - self, - resourcePlanName=None, - ns=None, - ): + + def __init__(self, resourcePlanName = None, ns = None,): self.resourcePlanName = resourcePlanName self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24762,16 +24269,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -24780,17 +24283,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMValidateResourcePlanRequest") + oprot.writeStructBegin('WMValidateResourcePlanRequest') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 2) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 2) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24799,8 +24303,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24809,28 +24314,22 @@ def __ne__(self, other): return not (self == other) -class WMValidateResourcePlanResponse: +class WMValidateResourcePlanResponse(object): """ Attributes: - errors - warnings """ + thrift_spec = None + - def __init__( - self, - errors=None, - warnings=None, - ): + def __init__(self, errors = None, warnings = None,): self.errors = errors self.warnings = warnings def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24841,28 +24340,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.errors = [] - (_etype1033, _size1030) = iprot.readListBegin() - for _i1034 in range(_size1030): - _elem1035 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.errors.append(_elem1035) + (_etype1169, _size1166) = iprot.readListBegin() + for _i1170 in range(_size1166): + _elem1171 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.errors.append(_elem1171) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.warnings = [] - (_etype1039, _size1036) = iprot.readListBegin() - for _i1040 in range(_size1036): - _elem1041 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.warnings.append(_elem1041) + (_etype1175, _size1172) = iprot.readListBegin() + for _i1176 in range(_size1172): + _elem1177 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.warnings.append(_elem1177) iprot.readListEnd() else: iprot.skip(ftype) @@ -24872,22 +24363,23 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMValidateResourcePlanResponse") + oprot.writeStructBegin('WMValidateResourcePlanResponse') if self.errors is not None: - oprot.writeFieldBegin("errors", TType.LIST, 1) + oprot.writeFieldBegin('errors', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.errors)) - for iter1042 in self.errors: - oprot.writeString(iter1042.encode("utf-8") if sys.version_info[0] == 2 else iter1042) + for iter1178 in self.errors: + oprot.writeString(iter1178.encode('utf-8') if sys.version_info[0] == 2 else iter1178) oprot.writeListEnd() oprot.writeFieldEnd() if self.warnings is not None: - oprot.writeFieldBegin("warnings", TType.LIST, 2) + oprot.writeFieldBegin('warnings', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.warnings)) - for iter1043 in self.warnings: - oprot.writeString(iter1043.encode("utf-8") if sys.version_info[0] == 2 else iter1043) + for iter1179 in self.warnings: + oprot.writeString(iter1179.encode('utf-8') if sys.version_info[0] == 2 else iter1179) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24897,8 +24389,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24907,28 +24400,22 @@ def __ne__(self, other): return not (self == other) -class WMDropResourcePlanRequest: +class WMDropResourcePlanRequest(object): """ Attributes: - resourcePlanName - ns """ + thrift_spec = None - def __init__( - self, - resourcePlanName=None, - ns=None, - ): + + def __init__(self, resourcePlanName = None, ns = None,): self.resourcePlanName = resourcePlanName self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -24938,16 +24425,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -24956,17 +24439,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMDropResourcePlanRequest") + oprot.writeStructBegin('WMDropResourcePlanRequest') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 2) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 2) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -24975,8 +24459,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -24985,13 +24470,12 @@ def __ne__(self, other): return not (self == other) -class WMDropResourcePlanResponse: +class WMDropResourcePlanResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25005,10 +24489,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMDropResourcePlanResponse") + oprot.writeStructBegin('WMDropResourcePlanResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -25016,8 +24501,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25026,25 +24512,20 @@ def __ne__(self, other): return not (self == other) -class WMCreateTriggerRequest: +class WMCreateTriggerRequest(object): """ Attributes: - trigger """ + thrift_spec = None + - def __init__( - self, - trigger=None, - ): + def __init__(self, trigger = None,): self.trigger = trigger def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25064,12 +24545,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreateTriggerRequest") + oprot.writeStructBegin('WMCreateTriggerRequest') if self.trigger is not None: - oprot.writeFieldBegin("trigger", TType.STRUCT, 1) + oprot.writeFieldBegin('trigger', TType.STRUCT, 1) self.trigger.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25079,8 +24561,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25089,13 +24572,12 @@ def __ne__(self, other): return not (self == other) -class WMCreateTriggerResponse: +class WMCreateTriggerResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25109,10 +24591,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreateTriggerResponse") + oprot.writeStructBegin('WMCreateTriggerResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -25120,8 +24603,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25130,25 +24614,20 @@ def __ne__(self, other): return not (self == other) -class WMAlterTriggerRequest: +class WMAlterTriggerRequest(object): """ Attributes: - trigger """ + thrift_spec = None - def __init__( - self, - trigger=None, - ): + + def __init__(self, trigger = None,): self.trigger = trigger def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25168,12 +24647,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMAlterTriggerRequest") + oprot.writeStructBegin('WMAlterTriggerRequest') if self.trigger is not None: - oprot.writeFieldBegin("trigger", TType.STRUCT, 1) + oprot.writeFieldBegin('trigger', TType.STRUCT, 1) self.trigger.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25183,8 +24663,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25193,13 +24674,12 @@ def __ne__(self, other): return not (self == other) -class WMAlterTriggerResponse: +class WMAlterTriggerResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25213,10 +24693,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMAlterTriggerResponse") + oprot.writeStructBegin('WMAlterTriggerResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -25224,8 +24705,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25234,7 +24716,7 @@ def __ne__(self, other): return not (self == other) -class WMDropTriggerRequest: +class WMDropTriggerRequest(object): """ Attributes: - resourcePlanName @@ -25242,23 +24724,16 @@ class WMDropTriggerRequest: - ns """ + thrift_spec = None + - def __init__( - self, - resourcePlanName=None, - triggerName=None, - ns=None, - ): + def __init__(self, resourcePlanName = None, triggerName = None, ns = None,): self.resourcePlanName = resourcePlanName self.triggerName = triggerName self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25268,23 +24743,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.triggerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.triggerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -25293,21 +24762,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMDropTriggerRequest") + oprot.writeStructBegin('WMDropTriggerRequest') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.triggerName is not None: - oprot.writeFieldBegin("triggerName", TType.STRING, 2) - oprot.writeString(self.triggerName.encode("utf-8") if sys.version_info[0] == 2 else self.triggerName) + oprot.writeFieldBegin('triggerName', TType.STRING, 2) + oprot.writeString(self.triggerName.encode('utf-8') if sys.version_info[0] == 2 else self.triggerName) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 3) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 3) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -25316,8 +24786,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25326,13 +24797,12 @@ def __ne__(self, other): return not (self == other) -class WMDropTriggerResponse: +class WMDropTriggerResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25346,10 +24816,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMDropTriggerResponse") + oprot.writeStructBegin('WMDropTriggerResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -25357,8 +24828,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25367,28 +24839,22 @@ def __ne__(self, other): return not (self == other) -class WMGetTriggersForResourePlanRequest: +class WMGetTriggersForResourePlanRequest(object): """ Attributes: - resourcePlanName - ns """ + thrift_spec = None - def __init__( - self, - resourcePlanName=None, - ns=None, - ): + + def __init__(self, resourcePlanName = None, ns = None,): self.resourcePlanName = resourcePlanName self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25398,16 +24864,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -25416,17 +24878,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMGetTriggersForResourePlanRequest") + oprot.writeStructBegin('WMGetTriggersForResourePlanRequest') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 2) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 2) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -25435,8 +24898,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25445,25 +24909,20 @@ def __ne__(self, other): return not (self == other) -class WMGetTriggersForResourePlanResponse: +class WMGetTriggersForResourePlanResponse(object): """ Attributes: - triggers """ + thrift_spec = None + - def __init__( - self, - triggers=None, - ): + def __init__(self, triggers = None,): self.triggers = triggers def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25474,11 +24933,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.triggers = [] - (_etype1047, _size1044) = iprot.readListBegin() - for _i1048 in range(_size1044): - _elem1049 = WMTrigger() - _elem1049.read(iprot) - self.triggers.append(_elem1049) + (_etype1183, _size1180) = iprot.readListBegin() + for _i1184 in range(_size1180): + _elem1185 = WMTrigger() + _elem1185.read(iprot) + self.triggers.append(_elem1185) iprot.readListEnd() else: iprot.skip(ftype) @@ -25488,15 +24947,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMGetTriggersForResourePlanResponse") + oprot.writeStructBegin('WMGetTriggersForResourePlanResponse') if self.triggers is not None: - oprot.writeFieldBegin("triggers", TType.LIST, 1) + oprot.writeFieldBegin('triggers', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.triggers)) - for iter1050 in self.triggers: - iter1050.write(oprot) + for iter1186 in self.triggers: + iter1186.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25506,8 +24966,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25516,25 +24977,20 @@ def __ne__(self, other): return not (self == other) -class WMCreatePoolRequest: +class WMCreatePoolRequest(object): """ Attributes: - pool """ + thrift_spec = None - def __init__( - self, - pool=None, - ): + + def __init__(self, pool = None,): self.pool = pool def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25554,12 +25010,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreatePoolRequest") + oprot.writeStructBegin('WMCreatePoolRequest') if self.pool is not None: - oprot.writeFieldBegin("pool", TType.STRUCT, 1) + oprot.writeFieldBegin('pool', TType.STRUCT, 1) self.pool.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25569,8 +25026,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25579,13 +25037,12 @@ def __ne__(self, other): return not (self == other) -class WMCreatePoolResponse: +class WMCreatePoolResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25599,10 +25056,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreatePoolResponse") + oprot.writeStructBegin('WMCreatePoolResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -25610,8 +25068,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25620,28 +25079,22 @@ def __ne__(self, other): return not (self == other) -class WMAlterPoolRequest: +class WMAlterPoolRequest(object): """ Attributes: - pool - poolPath """ + thrift_spec = None + - def __init__( - self, - pool=None, - poolPath=None, - ): + def __init__(self, pool = None, poolPath = None,): self.pool = pool self.poolPath = poolPath def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25657,9 +25110,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.poolPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.poolPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -25668,17 +25119,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMAlterPoolRequest") + oprot.writeStructBegin('WMAlterPoolRequest') if self.pool is not None: - oprot.writeFieldBegin("pool", TType.STRUCT, 1) + oprot.writeFieldBegin('pool', TType.STRUCT, 1) self.pool.write(oprot) oprot.writeFieldEnd() if self.poolPath is not None: - oprot.writeFieldBegin("poolPath", TType.STRING, 2) - oprot.writeString(self.poolPath.encode("utf-8") if sys.version_info[0] == 2 else self.poolPath) + oprot.writeFieldBegin('poolPath', TType.STRING, 2) + oprot.writeString(self.poolPath.encode('utf-8') if sys.version_info[0] == 2 else self.poolPath) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -25687,8 +25139,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25697,13 +25150,12 @@ def __ne__(self, other): return not (self == other) -class WMAlterPoolResponse: +class WMAlterPoolResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25717,10 +25169,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMAlterPoolResponse") + oprot.writeStructBegin('WMAlterPoolResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -25728,8 +25181,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25738,7 +25192,7 @@ def __ne__(self, other): return not (self == other) -class WMDropPoolRequest: +class WMDropPoolRequest(object): """ Attributes: - resourcePlanName @@ -25746,23 +25200,16 @@ class WMDropPoolRequest: - ns """ + thrift_spec = None - def __init__( - self, - resourcePlanName=None, - poolPath=None, - ns=None, - ): + + def __init__(self, resourcePlanName = None, poolPath = None, ns = None,): self.resourcePlanName = resourcePlanName self.poolPath = poolPath self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25772,23 +25219,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.poolPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.poolPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -25797,21 +25238,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMDropPoolRequest") + oprot.writeStructBegin('WMDropPoolRequest') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.poolPath is not None: - oprot.writeFieldBegin("poolPath", TType.STRING, 2) - oprot.writeString(self.poolPath.encode("utf-8") if sys.version_info[0] == 2 else self.poolPath) + oprot.writeFieldBegin('poolPath', TType.STRING, 2) + oprot.writeString(self.poolPath.encode('utf-8') if sys.version_info[0] == 2 else self.poolPath) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 3) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 3) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -25820,8 +25262,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25830,13 +25273,12 @@ def __ne__(self, other): return not (self == other) -class WMDropPoolResponse: +class WMDropPoolResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25850,10 +25292,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMDropPoolResponse") + oprot.writeStructBegin('WMDropPoolResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -25861,8 +25304,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25871,28 +25315,22 @@ def __ne__(self, other): return not (self == other) -class WMCreateOrUpdateMappingRequest: +class WMCreateOrUpdateMappingRequest(object): """ Attributes: - mapping - update """ + thrift_spec = None + - def __init__( - self, - mapping=None, - update=None, - ): + def __init__(self, mapping = None, update = None,): self.mapping = mapping self.update = update def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25917,16 +25355,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreateOrUpdateMappingRequest") + oprot.writeStructBegin('WMCreateOrUpdateMappingRequest') if self.mapping is not None: - oprot.writeFieldBegin("mapping", TType.STRUCT, 1) + oprot.writeFieldBegin('mapping', TType.STRUCT, 1) self.mapping.write(oprot) oprot.writeFieldEnd() if self.update is not None: - oprot.writeFieldBegin("update", TType.BOOL, 2) + oprot.writeFieldBegin('update', TType.BOOL, 2) oprot.writeBool(self.update) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -25936,8 +25375,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25946,13 +25386,12 @@ def __ne__(self, other): return not (self == other) -class WMCreateOrUpdateMappingResponse: +class WMCreateOrUpdateMappingResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -25966,10 +25405,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreateOrUpdateMappingResponse") + oprot.writeStructBegin('WMCreateOrUpdateMappingResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -25977,8 +25417,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -25987,25 +25428,20 @@ def __ne__(self, other): return not (self == other) -class WMDropMappingRequest: +class WMDropMappingRequest(object): """ Attributes: - mapping """ + thrift_spec = None - def __init__( - self, - mapping=None, - ): + + def __init__(self, mapping = None,): self.mapping = mapping def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26025,12 +25461,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMDropMappingRequest") + oprot.writeStructBegin('WMDropMappingRequest') if self.mapping is not None: - oprot.writeFieldBegin("mapping", TType.STRUCT, 1) + oprot.writeFieldBegin('mapping', TType.STRUCT, 1) self.mapping.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26040,8 +25477,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26050,13 +25488,12 @@ def __ne__(self, other): return not (self == other) -class WMDropMappingResponse: +class WMDropMappingResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26070,10 +25507,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMDropMappingResponse") + oprot.writeStructBegin('WMDropMappingResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -26081,8 +25519,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26091,7 +25530,7 @@ def __ne__(self, other): return not (self == other) -class WMCreateOrDropTriggerToPoolMappingRequest: +class WMCreateOrDropTriggerToPoolMappingRequest(object): """ Attributes: - resourcePlanName @@ -26101,15 +25540,10 @@ class WMCreateOrDropTriggerToPoolMappingRequest: - ns """ + thrift_spec = None + - def __init__( - self, - resourcePlanName=None, - triggerName=None, - poolPath=None, - drop=None, - ns=None, - ): + def __init__(self, resourcePlanName = None, triggerName = None, poolPath = None, drop = None, ns = None,): self.resourcePlanName = resourcePlanName self.triggerName = triggerName self.poolPath = poolPath @@ -26117,11 +25551,7 @@ def __init__( self.ns = ns def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26131,23 +25561,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.resourcePlanName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.resourcePlanName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.triggerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.triggerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.poolPath = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.poolPath = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -26157,9 +25581,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.ns = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ns = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -26168,29 +25590,30 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreateOrDropTriggerToPoolMappingRequest") + oprot.writeStructBegin('WMCreateOrDropTriggerToPoolMappingRequest') if self.resourcePlanName is not None: - oprot.writeFieldBegin("resourcePlanName", TType.STRING, 1) - oprot.writeString(self.resourcePlanName.encode("utf-8") if sys.version_info[0] == 2 else self.resourcePlanName) + oprot.writeFieldBegin('resourcePlanName', TType.STRING, 1) + oprot.writeString(self.resourcePlanName.encode('utf-8') if sys.version_info[0] == 2 else self.resourcePlanName) oprot.writeFieldEnd() if self.triggerName is not None: - oprot.writeFieldBegin("triggerName", TType.STRING, 2) - oprot.writeString(self.triggerName.encode("utf-8") if sys.version_info[0] == 2 else self.triggerName) + oprot.writeFieldBegin('triggerName', TType.STRING, 2) + oprot.writeString(self.triggerName.encode('utf-8') if sys.version_info[0] == 2 else self.triggerName) oprot.writeFieldEnd() if self.poolPath is not None: - oprot.writeFieldBegin("poolPath", TType.STRING, 3) - oprot.writeString(self.poolPath.encode("utf-8") if sys.version_info[0] == 2 else self.poolPath) + oprot.writeFieldBegin('poolPath', TType.STRING, 3) + oprot.writeString(self.poolPath.encode('utf-8') if sys.version_info[0] == 2 else self.poolPath) oprot.writeFieldEnd() if self.drop is not None: - oprot.writeFieldBegin("drop", TType.BOOL, 4) + oprot.writeFieldBegin('drop', TType.BOOL, 4) oprot.writeBool(self.drop) oprot.writeFieldEnd() if self.ns is not None: - oprot.writeFieldBegin("ns", TType.STRING, 5) - oprot.writeString(self.ns.encode("utf-8") if sys.version_info[0] == 2 else self.ns) + oprot.writeFieldBegin('ns', TType.STRING, 5) + oprot.writeString(self.ns.encode('utf-8') if sys.version_info[0] == 2 else self.ns) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26199,8 +25622,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26209,13 +25633,12 @@ def __ne__(self, other): return not (self == other) -class WMCreateOrDropTriggerToPoolMappingResponse: +class WMCreateOrDropTriggerToPoolMappingResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26229,10 +25652,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("WMCreateOrDropTriggerToPoolMappingResponse") + oprot.writeStructBegin('WMCreateOrDropTriggerToPoolMappingResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -26240,8 +25664,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26250,7 +25675,7 @@ def __ne__(self, other): return not (self == other) -class ISchema: +class ISchema(object): """ Attributes: - schemaType @@ -26264,19 +25689,10 @@ class ISchema: - description """ + thrift_spec = None - def __init__( - self, - schemaType=None, - name=None, - catName=None, - dbName=None, - compatibility=None, - validationLevel=None, - canEvolve=None, - schemaGroup=None, - description=None, - ): + + def __init__(self, schemaType = None, name = None, catName = None, dbName = None, compatibility = None, validationLevel = None, canEvolve = None, schemaGroup = None, description = None,): self.schemaType = schemaType self.name = name self.catName = catName @@ -26288,11 +25704,7 @@ def __init__( self.description = description def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26307,23 +25719,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -26343,16 +25749,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.schemaGroup = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.schemaGroup = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -26361,45 +25763,46 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ISchema") + oprot.writeStructBegin('ISchema') if self.schemaType is not None: - oprot.writeFieldBegin("schemaType", TType.I32, 1) + oprot.writeFieldBegin('schemaType', TType.I32, 1) oprot.writeI32(self.schemaType) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 2) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 3) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 3) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 4) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 4) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.compatibility is not None: - oprot.writeFieldBegin("compatibility", TType.I32, 5) + oprot.writeFieldBegin('compatibility', TType.I32, 5) oprot.writeI32(self.compatibility) oprot.writeFieldEnd() if self.validationLevel is not None: - oprot.writeFieldBegin("validationLevel", TType.I32, 6) + oprot.writeFieldBegin('validationLevel', TType.I32, 6) oprot.writeI32(self.validationLevel) oprot.writeFieldEnd() if self.canEvolve is not None: - oprot.writeFieldBegin("canEvolve", TType.BOOL, 7) + oprot.writeFieldBegin('canEvolve', TType.BOOL, 7) oprot.writeBool(self.canEvolve) oprot.writeFieldEnd() if self.schemaGroup is not None: - oprot.writeFieldBegin("schemaGroup", TType.STRING, 8) - oprot.writeString(self.schemaGroup.encode("utf-8") if sys.version_info[0] == 2 else self.schemaGroup) + oprot.writeFieldBegin('schemaGroup', TType.STRING, 8) + oprot.writeString(self.schemaGroup.encode('utf-8') if sys.version_info[0] == 2 else self.schemaGroup) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 9) - oprot.writeString(self.description.encode("utf-8") if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin('description', TType.STRING, 9) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26408,8 +25811,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26418,7 +25822,7 @@ def __ne__(self, other): return not (self == other) -class ISchemaName: +class ISchemaName(object): """ Attributes: - catName @@ -26426,23 +25830,16 @@ class ISchemaName: - schemaName """ + thrift_spec = None + - def __init__( - self, - catName=None, - dbName=None, - schemaName=None, - ): + def __init__(self, catName = None, dbName = None, schemaName = None,): self.catName = catName self.dbName = dbName self.schemaName = schemaName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26452,23 +25849,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.schemaName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.schemaName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -26477,21 +25868,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ISchemaName") + oprot.writeStructBegin('ISchemaName') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.schemaName is not None: - oprot.writeFieldBegin("schemaName", TType.STRING, 3) - oprot.writeString(self.schemaName.encode("utf-8") if sys.version_info[0] == 2 else self.schemaName) + oprot.writeFieldBegin('schemaName', TType.STRING, 3) + oprot.writeString(self.schemaName.encode('utf-8') if sys.version_info[0] == 2 else self.schemaName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26500,8 +25892,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26510,28 +25903,22 @@ def __ne__(self, other): return not (self == other) -class AlterISchemaRequest: +class AlterISchemaRequest(object): """ Attributes: - name - newSchema """ + thrift_spec = None - def __init__( - self, - name=None, - newSchema=None, - ): + + def __init__(self, name = None, newSchema = None,): self.name = name self.newSchema = newSchema def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26557,16 +25944,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AlterISchemaRequest") + oprot.writeStructBegin('AlterISchemaRequest') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRUCT, 1) + oprot.writeFieldBegin('name', TType.STRUCT, 1) self.name.write(oprot) oprot.writeFieldEnd() if self.newSchema is not None: - oprot.writeFieldBegin("newSchema", TType.STRUCT, 3) + oprot.writeFieldBegin('newSchema', TType.STRUCT, 3) self.newSchema.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26576,8 +25964,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26586,7 +25975,7 @@ def __ne__(self, other): return not (self == other) -class SchemaVersion: +class SchemaVersion(object): """ Attributes: - schema @@ -26601,20 +25990,10 @@ class SchemaVersion: - serDe """ + thrift_spec = None + - def __init__( - self, - schema=None, - version=None, - createdAt=None, - cols=None, - state=None, - description=None, - schemaText=None, - fingerprint=None, - name=None, - serDe=None, - ): + def __init__(self, schema = None, version = None, createdAt = None, cols = None, state = None, description = None, schemaText = None, fingerprint = None, name = None, serDe = None,): self.schema = schema self.version = version self.createdAt = createdAt @@ -26627,11 +26006,7 @@ def __init__( self.serDe = serDe def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26658,11 +26033,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.cols = [] - (_etype1054, _size1051) = iprot.readListBegin() - for _i1055 in range(_size1051): - _elem1056 = FieldSchema() - _elem1056.read(iprot) - self.cols.append(_elem1056) + (_etype1190, _size1187) = iprot.readListBegin() + for _i1191 in range(_size1187): + _elem1192 = FieldSchema() + _elem1192.read(iprot) + self.cols.append(_elem1192) iprot.readListEnd() else: iprot.skip(ftype) @@ -26673,30 +26048,22 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.schemaText = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.schemaText = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.fingerprint = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.fingerprint = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 10: @@ -26711,51 +26078,52 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SchemaVersion") + oprot.writeStructBegin('SchemaVersion') if self.schema is not None: - oprot.writeFieldBegin("schema", TType.STRUCT, 1) + oprot.writeFieldBegin('schema', TType.STRUCT, 1) self.schema.write(oprot) oprot.writeFieldEnd() if self.version is not None: - oprot.writeFieldBegin("version", TType.I32, 2) + oprot.writeFieldBegin('version', TType.I32, 2) oprot.writeI32(self.version) oprot.writeFieldEnd() if self.createdAt is not None: - oprot.writeFieldBegin("createdAt", TType.I64, 3) + oprot.writeFieldBegin('createdAt', TType.I64, 3) oprot.writeI64(self.createdAt) oprot.writeFieldEnd() if self.cols is not None: - oprot.writeFieldBegin("cols", TType.LIST, 4) + oprot.writeFieldBegin('cols', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.cols)) - for iter1057 in self.cols: - iter1057.write(oprot) + for iter1193 in self.cols: + iter1193.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.state is not None: - oprot.writeFieldBegin("state", TType.I32, 5) + oprot.writeFieldBegin('state', TType.I32, 5) oprot.writeI32(self.state) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 6) - oprot.writeString(self.description.encode("utf-8") if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin('description', TType.STRING, 6) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() if self.schemaText is not None: - oprot.writeFieldBegin("schemaText", TType.STRING, 7) - oprot.writeString(self.schemaText.encode("utf-8") if sys.version_info[0] == 2 else self.schemaText) + oprot.writeFieldBegin('schemaText', TType.STRING, 7) + oprot.writeString(self.schemaText.encode('utf-8') if sys.version_info[0] == 2 else self.schemaText) oprot.writeFieldEnd() if self.fingerprint is not None: - oprot.writeFieldBegin("fingerprint", TType.STRING, 8) - oprot.writeString(self.fingerprint.encode("utf-8") if sys.version_info[0] == 2 else self.fingerprint) + oprot.writeFieldBegin('fingerprint', TType.STRING, 8) + oprot.writeString(self.fingerprint.encode('utf-8') if sys.version_info[0] == 2 else self.fingerprint) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 9) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin('name', TType.STRING, 9) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.serDe is not None: - oprot.writeFieldBegin("serDe", TType.STRUCT, 10) + oprot.writeFieldBegin('serDe', TType.STRUCT, 10) self.serDe.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26765,8 +26133,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26775,28 +26144,22 @@ def __ne__(self, other): return not (self == other) -class SchemaVersionDescriptor: +class SchemaVersionDescriptor(object): """ Attributes: - schema - version """ + thrift_spec = None - def __init__( - self, - schema=None, - version=None, - ): + + def __init__(self, schema = None, version = None,): self.schema = schema self.version = version def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26821,16 +26184,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SchemaVersionDescriptor") + oprot.writeStructBegin('SchemaVersionDescriptor') if self.schema is not None: - oprot.writeFieldBegin("schema", TType.STRUCT, 1) + oprot.writeFieldBegin('schema', TType.STRUCT, 1) self.schema.write(oprot) oprot.writeFieldEnd() if self.version is not None: - oprot.writeFieldBegin("version", TType.I32, 2) + oprot.writeFieldBegin('version', TType.I32, 2) oprot.writeI32(self.version) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -26840,8 +26204,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26850,7 +26215,7 @@ def __ne__(self, other): return not (self == other) -class FindSchemasByColsRqst: +class FindSchemasByColsRqst(object): """ Attributes: - colName @@ -26858,23 +26223,16 @@ class FindSchemasByColsRqst: - type """ + thrift_spec = None + - def __init__( - self, - colName=None, - colNamespace=None, - type=None, - ): + def __init__(self, colName = None, colNamespace = None, type = None,): self.colName = colName self.colNamespace = colNamespace self.type = type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26884,23 +26242,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.colName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.colName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.colNamespace = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.colNamespace = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.type = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.type = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -26909,21 +26261,22 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("FindSchemasByColsRqst") + oprot.writeStructBegin('FindSchemasByColsRqst') if self.colName is not None: - oprot.writeFieldBegin("colName", TType.STRING, 1) - oprot.writeString(self.colName.encode("utf-8") if sys.version_info[0] == 2 else self.colName) + oprot.writeFieldBegin('colName', TType.STRING, 1) + oprot.writeString(self.colName.encode('utf-8') if sys.version_info[0] == 2 else self.colName) oprot.writeFieldEnd() if self.colNamespace is not None: - oprot.writeFieldBegin("colNamespace", TType.STRING, 2) - oprot.writeString(self.colNamespace.encode("utf-8") if sys.version_info[0] == 2 else self.colNamespace) + oprot.writeFieldBegin('colNamespace', TType.STRING, 2) + oprot.writeString(self.colNamespace.encode('utf-8') if sys.version_info[0] == 2 else self.colNamespace) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.STRING, 3) - oprot.writeString(self.type.encode("utf-8") if sys.version_info[0] == 2 else self.type) + oprot.writeFieldBegin('type', TType.STRING, 3) + oprot.writeString(self.type.encode('utf-8') if sys.version_info[0] == 2 else self.type) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -26932,8 +26285,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -26942,25 +26296,20 @@ def __ne__(self, other): return not (self == other) -class FindSchemasByColsResp: +class FindSchemasByColsResp(object): """ Attributes: - schemaVersions """ + thrift_spec = None - def __init__( - self, - schemaVersions=None, - ): + + def __init__(self, schemaVersions = None,): self.schemaVersions = schemaVersions def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -26971,11 +26320,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.schemaVersions = [] - (_etype1061, _size1058) = iprot.readListBegin() - for _i1062 in range(_size1058): - _elem1063 = SchemaVersionDescriptor() - _elem1063.read(iprot) - self.schemaVersions.append(_elem1063) + (_etype1197, _size1194) = iprot.readListBegin() + for _i1198 in range(_size1194): + _elem1199 = SchemaVersionDescriptor() + _elem1199.read(iprot) + self.schemaVersions.append(_elem1199) iprot.readListEnd() else: iprot.skip(ftype) @@ -26985,15 +26334,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("FindSchemasByColsResp") + oprot.writeStructBegin('FindSchemasByColsResp') if self.schemaVersions is not None: - oprot.writeFieldBegin("schemaVersions", TType.LIST, 1) + oprot.writeFieldBegin('schemaVersions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.schemaVersions)) - for iter1064 in self.schemaVersions: - iter1064.write(oprot) + for iter1200 in self.schemaVersions: + iter1200.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27003,8 +26353,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27013,28 +26364,22 @@ def __ne__(self, other): return not (self == other) -class MapSchemaVersionToSerdeRequest: +class MapSchemaVersionToSerdeRequest(object): """ Attributes: - schemaVersion - serdeName """ + thrift_spec = None + - def __init__( - self, - schemaVersion=None, - serdeName=None, - ): + def __init__(self, schemaVersion = None, serdeName = None,): self.schemaVersion = schemaVersion self.serdeName = serdeName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27050,9 +26395,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.serdeName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.serdeName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -27061,17 +26404,18 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("MapSchemaVersionToSerdeRequest") + oprot.writeStructBegin('MapSchemaVersionToSerdeRequest') if self.schemaVersion is not None: - oprot.writeFieldBegin("schemaVersion", TType.STRUCT, 1) + oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) self.schemaVersion.write(oprot) oprot.writeFieldEnd() if self.serdeName is not None: - oprot.writeFieldBegin("serdeName", TType.STRING, 2) - oprot.writeString(self.serdeName.encode("utf-8") if sys.version_info[0] == 2 else self.serdeName) + oprot.writeFieldBegin('serdeName', TType.STRING, 2) + oprot.writeString(self.serdeName.encode('utf-8') if sys.version_info[0] == 2 else self.serdeName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -27080,8 +26424,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27090,28 +26435,22 @@ def __ne__(self, other): return not (self == other) -class SetSchemaVersionStateRequest: +class SetSchemaVersionStateRequest(object): """ Attributes: - schemaVersion - state """ + thrift_spec = None - def __init__( - self, - schemaVersion=None, - state=None, - ): + + def __init__(self, schemaVersion = None, state = None,): self.schemaVersion = schemaVersion self.state = state def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27136,16 +26475,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("SetSchemaVersionStateRequest") + oprot.writeStructBegin('SetSchemaVersionStateRequest') if self.schemaVersion is not None: - oprot.writeFieldBegin("schemaVersion", TType.STRUCT, 1) + oprot.writeFieldBegin('schemaVersion', TType.STRUCT, 1) self.schemaVersion.write(oprot) oprot.writeFieldEnd() if self.state is not None: - oprot.writeFieldBegin("state", TType.I32, 2) + oprot.writeFieldBegin('state', TType.I32, 2) oprot.writeI32(self.state) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27155,8 +26495,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27165,25 +26506,20 @@ def __ne__(self, other): return not (self == other) -class GetSerdeRequest: +class GetSerdeRequest(object): """ Attributes: - serdeName """ + thrift_spec = None + - def __init__( - self, - serdeName=None, - ): + def __init__(self, serdeName = None,): self.serdeName = serdeName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27193,9 +26529,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.serdeName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.serdeName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -27204,13 +26538,14 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetSerdeRequest") + oprot.writeStructBegin('GetSerdeRequest') if self.serdeName is not None: - oprot.writeFieldBegin("serdeName", TType.STRING, 1) - oprot.writeString(self.serdeName.encode("utf-8") if sys.version_info[0] == 2 else self.serdeName) + oprot.writeFieldBegin('serdeName', TType.STRING, 1) + oprot.writeString(self.serdeName.encode('utf-8') if sys.version_info[0] == 2 else self.serdeName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -27219,8 +26554,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27229,7 +26565,7 @@ def __ne__(self, other): return not (self == other) -class RuntimeStat: +class RuntimeStat(object): """ Attributes: - createTime @@ -27237,23 +26573,16 @@ class RuntimeStat: - payload """ + thrift_spec = None - def __init__( - self, - createTime=None, - weight=None, - payload=None, - ): + + def __init__(self, createTime = None, weight = None, payload = None,): self.createTime = createTime self.weight = weight self.payload = payload def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27282,20 +26611,21 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("RuntimeStat") + oprot.writeStructBegin('RuntimeStat') if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 1) + oprot.writeFieldBegin('createTime', TType.I32, 1) oprot.writeI32(self.createTime) oprot.writeFieldEnd() if self.weight is not None: - oprot.writeFieldBegin("weight", TType.I32, 2) + oprot.writeFieldBegin('weight', TType.I32, 2) oprot.writeI32(self.weight) oprot.writeFieldEnd() if self.payload is not None: - oprot.writeFieldBegin("payload", TType.STRING, 3) + oprot.writeFieldBegin('payload', TType.STRING, 3) oprot.writeBinary(self.payload) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27303,14 +26633,15 @@ def write(self, oprot): def validate(self): if self.weight is None: - raise TProtocolException(message="Required field weight is unset!") + raise TProtocolException(message='Required field weight is unset!') if self.payload is None: - raise TProtocolException(message="Required field payload is unset!") + raise TProtocolException(message='Required field payload is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27319,28 +26650,22 @@ def __ne__(self, other): return not (self == other) -class GetRuntimeStatsRequest: +class GetRuntimeStatsRequest(object): """ Attributes: - maxWeight - maxCreateTime """ + thrift_spec = None + - def __init__( - self, - maxWeight=None, - maxCreateTime=None, - ): + def __init__(self, maxWeight = None, maxCreateTime = None,): self.maxWeight = maxWeight self.maxCreateTime = maxCreateTime def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27364,16 +26689,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetRuntimeStatsRequest") + oprot.writeStructBegin('GetRuntimeStatsRequest') if self.maxWeight is not None: - oprot.writeFieldBegin("maxWeight", TType.I32, 1) + oprot.writeFieldBegin('maxWeight', TType.I32, 1) oprot.writeI32(self.maxWeight) oprot.writeFieldEnd() if self.maxCreateTime is not None: - oprot.writeFieldBegin("maxCreateTime", TType.I32, 2) + oprot.writeFieldBegin('maxCreateTime', TType.I32, 2) oprot.writeI32(self.maxCreateTime) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -27381,14 +26707,15 @@ def write(self, oprot): def validate(self): if self.maxWeight is None: - raise TProtocolException(message="Required field maxWeight is unset!") + raise TProtocolException(message='Required field maxWeight is unset!') if self.maxCreateTime is None: - raise TProtocolException(message="Required field maxCreateTime is unset!") + raise TProtocolException(message='Required field maxCreateTime is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27397,7 +26724,7 @@ def __ne__(self, other): return not (self == other) -class CreateTableRequest: +class CreateTableRequest(object): """ Attributes: - table @@ -27412,20 +26739,10 @@ class CreateTableRequest: - processorIdentifier """ + thrift_spec = None - def __init__( - self, - table=None, - envContext=None, - primaryKeys=None, - foreignKeys=None, - uniqueConstraints=None, - notNullConstraints=None, - defaultConstraints=None, - checkConstraints=None, - processorCapabilities=None, - processorIdentifier=None, - ): + + def __init__(self, table = None, envContext = None, primaryKeys = None, foreignKeys = None, uniqueConstraints = None, notNullConstraints = None, defaultConstraints = None, checkConstraints = None, processorCapabilities = None, processorIdentifier = None,): self.table = table self.envContext = envContext self.primaryKeys = primaryKeys @@ -27438,11 +26755,7 @@ def __init__( self.processorIdentifier = processorIdentifier def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27465,88 +26778,82 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.primaryKeys = [] - (_etype1068, _size1065) = iprot.readListBegin() - for _i1069 in range(_size1065): - _elem1070 = SQLPrimaryKey() - _elem1070.read(iprot) - self.primaryKeys.append(_elem1070) + (_etype1204, _size1201) = iprot.readListBegin() + for _i1205 in range(_size1201): + _elem1206 = SQLPrimaryKey() + _elem1206.read(iprot) + self.primaryKeys.append(_elem1206) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.foreignKeys = [] - (_etype1074, _size1071) = iprot.readListBegin() - for _i1075 in range(_size1071): - _elem1076 = SQLForeignKey() - _elem1076.read(iprot) - self.foreignKeys.append(_elem1076) + (_etype1210, _size1207) = iprot.readListBegin() + for _i1211 in range(_size1207): + _elem1212 = SQLForeignKey() + _elem1212.read(iprot) + self.foreignKeys.append(_elem1212) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.LIST: self.uniqueConstraints = [] - (_etype1080, _size1077) = iprot.readListBegin() - for _i1081 in range(_size1077): - _elem1082 = SQLUniqueConstraint() - _elem1082.read(iprot) - self.uniqueConstraints.append(_elem1082) + (_etype1216, _size1213) = iprot.readListBegin() + for _i1217 in range(_size1213): + _elem1218 = SQLUniqueConstraint() + _elem1218.read(iprot) + self.uniqueConstraints.append(_elem1218) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.notNullConstraints = [] - (_etype1086, _size1083) = iprot.readListBegin() - for _i1087 in range(_size1083): - _elem1088 = SQLNotNullConstraint() - _elem1088.read(iprot) - self.notNullConstraints.append(_elem1088) + (_etype1222, _size1219) = iprot.readListBegin() + for _i1223 in range(_size1219): + _elem1224 = SQLNotNullConstraint() + _elem1224.read(iprot) + self.notNullConstraints.append(_elem1224) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.defaultConstraints = [] - (_etype1092, _size1089) = iprot.readListBegin() - for _i1093 in range(_size1089): - _elem1094 = SQLDefaultConstraint() - _elem1094.read(iprot) - self.defaultConstraints.append(_elem1094) + (_etype1228, _size1225) = iprot.readListBegin() + for _i1229 in range(_size1225): + _elem1230 = SQLDefaultConstraint() + _elem1230.read(iprot) + self.defaultConstraints.append(_elem1230) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.LIST: self.checkConstraints = [] - (_etype1098, _size1095) = iprot.readListBegin() - for _i1099 in range(_size1095): - _elem1100 = SQLCheckConstraint() - _elem1100.read(iprot) - self.checkConstraints.append(_elem1100) + (_etype1234, _size1231) = iprot.readListBegin() + for _i1235 in range(_size1231): + _elem1236 = SQLCheckConstraint() + _elem1236.read(iprot) + self.checkConstraints.append(_elem1236) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype1104, _size1101) = iprot.readListBegin() - for _i1105 in range(_size1101): - _elem1106 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.processorCapabilities.append(_elem1106) + (_etype1240, _size1237) = iprot.readListBegin() + for _i1241 in range(_size1237): + _elem1242 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.processorCapabilities.append(_elem1242) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.processorIdentifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.processorIdentifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -27555,82 +26862,84 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CreateTableRequest") + oprot.writeStructBegin('CreateTableRequest') if self.table is not None: - oprot.writeFieldBegin("table", TType.STRUCT, 1) + oprot.writeFieldBegin('table', TType.STRUCT, 1) self.table.write(oprot) oprot.writeFieldEnd() if self.envContext is not None: - oprot.writeFieldBegin("envContext", TType.STRUCT, 2) + oprot.writeFieldBegin('envContext', TType.STRUCT, 2) self.envContext.write(oprot) oprot.writeFieldEnd() if self.primaryKeys is not None: - oprot.writeFieldBegin("primaryKeys", TType.LIST, 3) + oprot.writeFieldBegin('primaryKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter1107 in self.primaryKeys: - iter1107.write(oprot) + for iter1243 in self.primaryKeys: + iter1243.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.foreignKeys is not None: - oprot.writeFieldBegin("foreignKeys", TType.LIST, 4) + oprot.writeFieldBegin('foreignKeys', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter1108 in self.foreignKeys: - iter1108.write(oprot) + for iter1244 in self.foreignKeys: + iter1244.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.uniqueConstraints is not None: - oprot.writeFieldBegin("uniqueConstraints", TType.LIST, 5) + oprot.writeFieldBegin('uniqueConstraints', TType.LIST, 5) oprot.writeListBegin(TType.STRUCT, len(self.uniqueConstraints)) - for iter1109 in self.uniqueConstraints: - iter1109.write(oprot) + for iter1245 in self.uniqueConstraints: + iter1245.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.notNullConstraints is not None: - oprot.writeFieldBegin("notNullConstraints", TType.LIST, 6) + oprot.writeFieldBegin('notNullConstraints', TType.LIST, 6) oprot.writeListBegin(TType.STRUCT, len(self.notNullConstraints)) - for iter1110 in self.notNullConstraints: - iter1110.write(oprot) + for iter1246 in self.notNullConstraints: + iter1246.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.defaultConstraints is not None: - oprot.writeFieldBegin("defaultConstraints", TType.LIST, 7) + oprot.writeFieldBegin('defaultConstraints', TType.LIST, 7) oprot.writeListBegin(TType.STRUCT, len(self.defaultConstraints)) - for iter1111 in self.defaultConstraints: - iter1111.write(oprot) + for iter1247 in self.defaultConstraints: + iter1247.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.checkConstraints is not None: - oprot.writeFieldBegin("checkConstraints", TType.LIST, 8) + oprot.writeFieldBegin('checkConstraints', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.checkConstraints)) - for iter1112 in self.checkConstraints: - iter1112.write(oprot) + for iter1248 in self.checkConstraints: + iter1248.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorCapabilities is not None: - oprot.writeFieldBegin("processorCapabilities", TType.LIST, 9) + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 9) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter1113 in self.processorCapabilities: - oprot.writeString(iter1113.encode("utf-8") if sys.version_info[0] == 2 else iter1113) + for iter1249 in self.processorCapabilities: + oprot.writeString(iter1249.encode('utf-8') if sys.version_info[0] == 2 else iter1249) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: - oprot.writeFieldBegin("processorIdentifier", TType.STRING, 10) - oprot.writeString(self.processorIdentifier.encode("utf-8") if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 10) + oprot.writeString(self.processorIdentifier.encode('utf-8') if sys.version_info[0] == 2 else self.processorIdentifier) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.table is None: - raise TProtocolException(message="Required field table is unset!") + raise TProtocolException(message='Required field table is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27639,7 +26948,7 @@ def __ne__(self, other): return not (self == other) -class CreateDatabaseRequest: +class CreateDatabaseRequest(object): """ Attributes: - databaseName @@ -27654,24 +26963,13 @@ class CreateDatabaseRequest: - managedLocationUri - type - dataConnectorName + - remote_dbname """ + thrift_spec = None - def __init__( - self, - databaseName=None, - description=None, - locationUri=None, - parameters=None, - privileges=None, - ownerName=None, - ownerType=None, - catalogName=None, - createTime=None, - managedLocationUri=None, - type=None, - dataConnectorName=None, - ): + + def __init__(self, databaseName = None, description = None, locationUri = None, parameters = None, privileges = None, ownerName = None, ownerType = None, catalogName = None, createTime = None, managedLocationUri = None, type = None, dataConnectorName = None, remote_dbname = None,): self.databaseName = databaseName self.description = description self.locationUri = locationUri @@ -27684,13 +26982,10 @@ def __init__( self.managedLocationUri = managedLocationUri self.type = type self.dataConnectorName = dataConnectorName + self.remote_dbname = remote_dbname def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27700,41 +26995,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.databaseName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.databaseName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.locationUri = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.locationUri = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.MAP: self.parameters = {} - (_ktype1115, _vtype1116, _size1114) = iprot.readMapBegin() - for _i1118 in range(_size1114): - _key1119 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val1120 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.parameters[_key1119] = _val1120 + (_ktype1251, _vtype1252, _size1250) = iprot.readMapBegin() + for _i1254 in range(_size1250): + _key1255 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val1256 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.parameters[_key1255] = _val1256 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27746,9 +27027,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.ownerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ownerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -27758,9 +27037,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.catalogName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: @@ -27770,23 +27047,22 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.managedLocationUri = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.managedLocationUri = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: - if ftype == TType.STRING: - self.type = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.I32: + self.type = iprot.readI32() else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: - self.dataConnectorName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dataConnectorName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.STRING: + self.remote_dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -27795,73 +27071,79 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CreateDatabaseRequest") + oprot.writeStructBegin('CreateDatabaseRequest') if self.databaseName is not None: - oprot.writeFieldBegin("databaseName", TType.STRING, 1) - oprot.writeString(self.databaseName.encode("utf-8") if sys.version_info[0] == 2 else self.databaseName) + oprot.writeFieldBegin('databaseName', TType.STRING, 1) + oprot.writeString(self.databaseName.encode('utf-8') if sys.version_info[0] == 2 else self.databaseName) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 2) - oprot.writeString(self.description.encode("utf-8") if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin('description', TType.STRING, 2) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() if self.locationUri is not None: - oprot.writeFieldBegin("locationUri", TType.STRING, 3) - oprot.writeString(self.locationUri.encode("utf-8") if sys.version_info[0] == 2 else self.locationUri) + oprot.writeFieldBegin('locationUri', TType.STRING, 3) + oprot.writeString(self.locationUri.encode('utf-8') if sys.version_info[0] == 2 else self.locationUri) oprot.writeFieldEnd() if self.parameters is not None: - oprot.writeFieldBegin("parameters", TType.MAP, 4) + oprot.writeFieldBegin('parameters', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter1121, viter1122 in self.parameters.items(): - oprot.writeString(kiter1121.encode("utf-8") if sys.version_info[0] == 2 else kiter1121) - oprot.writeString(viter1122.encode("utf-8") if sys.version_info[0] == 2 else viter1122) + for kiter1257, viter1258 in self.parameters.items(): + oprot.writeString(kiter1257.encode('utf-8') if sys.version_info[0] == 2 else kiter1257) + oprot.writeString(viter1258.encode('utf-8') if sys.version_info[0] == 2 else viter1258) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: - oprot.writeFieldBegin("privileges", TType.STRUCT, 5) + oprot.writeFieldBegin('privileges', TType.STRUCT, 5) self.privileges.write(oprot) oprot.writeFieldEnd() if self.ownerName is not None: - oprot.writeFieldBegin("ownerName", TType.STRING, 6) - oprot.writeString(self.ownerName.encode("utf-8") if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldBegin('ownerName', TType.STRING, 6) + oprot.writeString(self.ownerName.encode('utf-8') if sys.version_info[0] == 2 else self.ownerName) oprot.writeFieldEnd() if self.ownerType is not None: - oprot.writeFieldBegin("ownerType", TType.I32, 7) + oprot.writeFieldBegin('ownerType', TType.I32, 7) oprot.writeI32(self.ownerType) oprot.writeFieldEnd() if self.catalogName is not None: - oprot.writeFieldBegin("catalogName", TType.STRING, 8) - oprot.writeString(self.catalogName.encode("utf-8") if sys.version_info[0] == 2 else self.catalogName) + oprot.writeFieldBegin('catalogName', TType.STRING, 8) + oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) oprot.writeFieldEnd() if self.createTime is not None: - oprot.writeFieldBegin("createTime", TType.I32, 9) + oprot.writeFieldBegin('createTime', TType.I32, 9) oprot.writeI32(self.createTime) oprot.writeFieldEnd() if self.managedLocationUri is not None: - oprot.writeFieldBegin("managedLocationUri", TType.STRING, 10) - oprot.writeString(self.managedLocationUri.encode("utf-8") if sys.version_info[0] == 2 else self.managedLocationUri) + oprot.writeFieldBegin('managedLocationUri', TType.STRING, 10) + oprot.writeString(self.managedLocationUri.encode('utf-8') if sys.version_info[0] == 2 else self.managedLocationUri) oprot.writeFieldEnd() if self.type is not None: - oprot.writeFieldBegin("type", TType.STRING, 11) - oprot.writeString(self.type.encode("utf-8") if sys.version_info[0] == 2 else self.type) + oprot.writeFieldBegin('type', TType.I32, 11) + oprot.writeI32(self.type) oprot.writeFieldEnd() if self.dataConnectorName is not None: - oprot.writeFieldBegin("dataConnectorName", TType.STRING, 12) - oprot.writeString(self.dataConnectorName.encode("utf-8") if sys.version_info[0] == 2 else self.dataConnectorName) + oprot.writeFieldBegin('dataConnectorName', TType.STRING, 12) + oprot.writeString(self.dataConnectorName.encode('utf-8') if sys.version_info[0] == 2 else self.dataConnectorName) + oprot.writeFieldEnd() + if self.remote_dbname is not None: + oprot.writeFieldBegin('remote_dbname', TType.STRING, 13) + oprot.writeString(self.remote_dbname.encode('utf-8') if sys.version_info[0] == 2 else self.remote_dbname) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.databaseName is None: - raise TProtocolException(message="Required field databaseName is unset!") + raise TProtocolException(message='Required field databaseName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27870,25 +27152,20 @@ def __ne__(self, other): return not (self == other) -class CreateDataConnectorRequest: +class CreateDataConnectorRequest(object): """ Attributes: - connector """ + thrift_spec = None - def __init__( - self, - connector=None, - ): + + def __init__(self, connector = None,): self.connector = connector def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27908,23 +27185,27 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("CreateDataConnectorRequest") + oprot.writeStructBegin('CreateDataConnectorRequest') if self.connector is not None: - oprot.writeFieldBegin("connector", TType.STRUCT, 1) + oprot.writeFieldBegin('connector', TType.STRUCT, 1) self.connector.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.connector is None: + raise TProtocolException(message='Required field connector is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27933,25 +27214,20 @@ def __ne__(self, other): return not (self == other) -class GetDataConnectorRequest: +class GetDataConnectorRequest(object): """ Attributes: - connectorName """ + thrift_spec = None + - def __init__( - self, - connectorName=None, - ): + def __init__(self, connectorName = None,): self.connectorName = connectorName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -27961,9 +27237,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.connectorName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.connectorName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -27972,25 +27246,27 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetDataConnectorRequest") + oprot.writeStructBegin('GetDataConnectorRequest') if self.connectorName is not None: - oprot.writeFieldBegin("connectorName", TType.STRING, 1) - oprot.writeString(self.connectorName.encode("utf-8") if sys.version_info[0] == 2 else self.connectorName) + oprot.writeFieldBegin('connectorName', TType.STRING, 1) + oprot.writeString(self.connectorName.encode('utf-8') if sys.version_info[0] == 2 else self.connectorName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.connectorName is None: - raise TProtocolException(message="Required field connectorName is unset!") + raise TProtocolException(message='Required field connectorName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -27999,25 +27275,22 @@ def __ne__(self, other): return not (self == other) -class ScheduledQueryPollRequest: +class AlterDataConnectorRequest(object): """ Attributes: - - clusterNamespace + - connectorName + - newConnector """ + thrift_spec = None - def __init__( - self, - clusterNamespace=None, - ): - self.clusterNamespace = clusterNamespace + + def __init__(self, connectorName = None, newConnector = None,): + self.connectorName = connectorName + self.newConnector = newConnector def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28027,9 +27300,13 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.clusterNamespace = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.connectorName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.newConnector = DataConnector() + self.newConnector.read(iprot) else: iprot.skip(ftype) else: @@ -28038,25 +27315,33 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ScheduledQueryPollRequest") - if self.clusterNamespace is not None: - oprot.writeFieldBegin("clusterNamespace", TType.STRING, 1) - oprot.writeString(self.clusterNamespace.encode("utf-8") if sys.version_info[0] == 2 else self.clusterNamespace) + oprot.writeStructBegin('AlterDataConnectorRequest') + if self.connectorName is not None: + oprot.writeFieldBegin('connectorName', TType.STRING, 1) + oprot.writeString(self.connectorName.encode('utf-8') if sys.version_info[0] == 2 else self.connectorName) + oprot.writeFieldEnd() + if self.newConnector is not None: + oprot.writeFieldBegin('newConnector', TType.STRUCT, 2) + self.newConnector.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.clusterNamespace is None: - raise TProtocolException(message="Required field clusterNamespace is unset!") + if self.connectorName is None: + raise TProtocolException(message='Required field connectorName is unset!') + if self.newConnector is None: + raise TProtocolException(message='Required field newConnector is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28065,28 +27350,24 @@ def __ne__(self, other): return not (self == other) -class ScheduledQueryKey: +class DropDataConnectorRequest(object): """ Attributes: - - scheduleName - - clusterNamespace + - connectorName + - ifNotExists + - checkReferences """ + thrift_spec = None - def __init__( - self, - scheduleName=None, - clusterNamespace=None, - ): - self.scheduleName = scheduleName - self.clusterNamespace = clusterNamespace + + def __init__(self, connectorName = None, ifNotExists = None, checkReferences = None,): + self.connectorName = connectorName + self.ifNotExists = ifNotExists + self.checkReferences = checkReferences def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28096,16 +27377,154 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.scheduleName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.connectorName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRING: - self.clusterNamespace = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.BOOL: + self.ifNotExists = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.BOOL: + self.checkReferences = iprot.readBool() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('DropDataConnectorRequest') + if self.connectorName is not None: + oprot.writeFieldBegin('connectorName', TType.STRING, 1) + oprot.writeString(self.connectorName.encode('utf-8') if sys.version_info[0] == 2 else self.connectorName) + oprot.writeFieldEnd() + if self.ifNotExists is not None: + oprot.writeFieldBegin('ifNotExists', TType.BOOL, 2) + oprot.writeBool(self.ifNotExists) + oprot.writeFieldEnd() + if self.checkReferences is not None: + oprot.writeFieldBegin('checkReferences', TType.BOOL, 3) + oprot.writeBool(self.checkReferences) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.connectorName is None: + raise TProtocolException(message='Required field connectorName is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 ScheduledQueryPollRequest(object): + """ + Attributes: + - clusterNamespace + + """ + thrift_spec = None + + + def __init__(self, clusterNamespace = None,): + self.clusterNamespace = clusterNamespace + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.clusterNamespace = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('ScheduledQueryPollRequest') + if self.clusterNamespace is not None: + oprot.writeFieldBegin('clusterNamespace', TType.STRING, 1) + oprot.writeString(self.clusterNamespace.encode('utf-8') if sys.version_info[0] == 2 else self.clusterNamespace) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.clusterNamespace is None: + raise TProtocolException(message='Required field clusterNamespace is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 ScheduledQueryKey(object): + """ + Attributes: + - scheduleName + - clusterNamespace + + """ + thrift_spec = None + + + def __init__(self, scheduleName = None, clusterNamespace = None,): + self.scheduleName = scheduleName + self.clusterNamespace = clusterNamespace + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.scheduleName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.clusterNamespace = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -28114,31 +27533,33 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ScheduledQueryKey") + oprot.writeStructBegin('ScheduledQueryKey') if self.scheduleName is not None: - oprot.writeFieldBegin("scheduleName", TType.STRING, 1) - oprot.writeString(self.scheduleName.encode("utf-8") if sys.version_info[0] == 2 else self.scheduleName) + oprot.writeFieldBegin('scheduleName', TType.STRING, 1) + oprot.writeString(self.scheduleName.encode('utf-8') if sys.version_info[0] == 2 else self.scheduleName) oprot.writeFieldEnd() if self.clusterNamespace is not None: - oprot.writeFieldBegin("clusterNamespace", TType.STRING, 2) - oprot.writeString(self.clusterNamespace.encode("utf-8") if sys.version_info[0] == 2 else self.clusterNamespace) + oprot.writeFieldBegin('clusterNamespace', TType.STRING, 2) + oprot.writeString(self.clusterNamespace.encode('utf-8') if sys.version_info[0] == 2 else self.clusterNamespace) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.scheduleName is None: - raise TProtocolException(message="Required field scheduleName is unset!") + raise TProtocolException(message='Required field scheduleName is unset!') if self.clusterNamespace is None: - raise TProtocolException(message="Required field clusterNamespace is unset!") + raise TProtocolException(message='Required field clusterNamespace is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28147,7 +27568,7 @@ def __ne__(self, other): return not (self == other) -class ScheduledQueryPollResponse: +class ScheduledQueryPollResponse(object): """ Attributes: - scheduleKey @@ -28156,25 +27577,17 @@ class ScheduledQueryPollResponse: - user """ + thrift_spec = None - def __init__( - self, - scheduleKey=None, - executionId=None, - query=None, - user=None, - ): + + def __init__(self, scheduleKey = None, executionId = None, query = None, user = None,): self.scheduleKey = scheduleKey self.executionId = executionId self.query = query self.user = user def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28195,16 +27608,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.query = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.query = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -28213,25 +27622,26 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ScheduledQueryPollResponse") + oprot.writeStructBegin('ScheduledQueryPollResponse') if self.scheduleKey is not None: - oprot.writeFieldBegin("scheduleKey", TType.STRUCT, 1) + oprot.writeFieldBegin('scheduleKey', TType.STRUCT, 1) self.scheduleKey.write(oprot) oprot.writeFieldEnd() if self.executionId is not None: - oprot.writeFieldBegin("executionId", TType.I64, 2) + oprot.writeFieldBegin('executionId', TType.I64, 2) oprot.writeI64(self.executionId) oprot.writeFieldEnd() if self.query is not None: - oprot.writeFieldBegin("query", TType.STRING, 3) - oprot.writeString(self.query.encode("utf-8") if sys.version_info[0] == 2 else self.query) + oprot.writeFieldBegin('query', TType.STRING, 3) + oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 4) - oprot.writeString(self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin('user', TType.STRING, 4) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -28240,8 +27650,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28250,7 +27661,7 @@ def __ne__(self, other): return not (self == other) -class ScheduledQuery: +class ScheduledQuery(object): """ Attributes: - scheduleKey @@ -28261,16 +27672,10 @@ class ScheduledQuery: - nextExecution """ + thrift_spec = None + - def __init__( - self, - scheduleKey=None, - enabled=None, - schedule=None, - user=None, - query=None, - nextExecution=None, - ): + def __init__(self, scheduleKey = None, enabled = None, schedule = None, user = None, query = None, nextExecution = None,): self.scheduleKey = scheduleKey self.enabled = enabled self.schedule = schedule @@ -28279,11 +27684,7 @@ def __init__( self.nextExecution = nextExecution def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28304,23 +27705,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.schedule = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.schedule = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.query = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.query = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -28334,32 +27729,33 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ScheduledQuery") + oprot.writeStructBegin('ScheduledQuery') if self.scheduleKey is not None: - oprot.writeFieldBegin("scheduleKey", TType.STRUCT, 1) + oprot.writeFieldBegin('scheduleKey', TType.STRUCT, 1) self.scheduleKey.write(oprot) oprot.writeFieldEnd() if self.enabled is not None: - oprot.writeFieldBegin("enabled", TType.BOOL, 2) + oprot.writeFieldBegin('enabled', TType.BOOL, 2) oprot.writeBool(self.enabled) oprot.writeFieldEnd() if self.schedule is not None: - oprot.writeFieldBegin("schedule", TType.STRING, 4) - oprot.writeString(self.schedule.encode("utf-8") if sys.version_info[0] == 2 else self.schedule) + oprot.writeFieldBegin('schedule', TType.STRING, 4) + oprot.writeString(self.schedule.encode('utf-8') if sys.version_info[0] == 2 else self.schedule) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 5) - oprot.writeString(self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin('user', TType.STRING, 5) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() if self.query is not None: - oprot.writeFieldBegin("query", TType.STRING, 6) - oprot.writeString(self.query.encode("utf-8") if sys.version_info[0] == 2 else self.query) + oprot.writeFieldBegin('query', TType.STRING, 6) + oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query) oprot.writeFieldEnd() if self.nextExecution is not None: - oprot.writeFieldBegin("nextExecution", TType.I32, 7) + oprot.writeFieldBegin('nextExecution', TType.I32, 7) oprot.writeI32(self.nextExecution) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28367,12 +27763,13 @@ def write(self, oprot): def validate(self): if self.scheduleKey is None: - raise TProtocolException(message="Required field scheduleKey is unset!") + raise TProtocolException(message='Required field scheduleKey is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28381,28 +27778,22 @@ def __ne__(self, other): return not (self == other) -class ScheduledQueryMaintenanceRequest: +class ScheduledQueryMaintenanceRequest(object): """ Attributes: - type - scheduledQuery """ + thrift_spec = None - def __init__( - self, - type=None, - scheduledQuery=None, - ): + + def __init__(self, type = None, scheduledQuery = None,): self.type = type self.scheduledQuery = scheduledQuery def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28427,16 +27818,17 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ScheduledQueryMaintenanceRequest") + oprot.writeStructBegin('ScheduledQueryMaintenanceRequest') if self.type is not None: - oprot.writeFieldBegin("type", TType.I32, 1) + oprot.writeFieldBegin('type', TType.I32, 1) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.scheduledQuery is not None: - oprot.writeFieldBegin("scheduledQuery", TType.STRUCT, 2) + oprot.writeFieldBegin('scheduledQuery', TType.STRUCT, 2) self.scheduledQuery.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28444,14 +27836,15 @@ def write(self, oprot): def validate(self): if self.type is None: - raise TProtocolException(message="Required field type is unset!") + raise TProtocolException(message='Required field type is unset!') if self.scheduledQuery is None: - raise TProtocolException(message="Required field scheduledQuery is unset!") + raise TProtocolException(message='Required field scheduledQuery is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28460,7 +27853,7 @@ def __ne__(self, other): return not (self == other) -class ScheduledQueryProgressInfo: +class ScheduledQueryProgressInfo(object): """ Attributes: - scheduledExecutionId @@ -28469,25 +27862,17 @@ class ScheduledQueryProgressInfo: - errorMessage """ + thrift_spec = None + - def __init__( - self, - scheduledExecutionId=None, - state=None, - executorQueryId=None, - errorMessage=None, - ): + def __init__(self, scheduledExecutionId = None, state = None, executorQueryId = None, errorMessage = None,): self.scheduledExecutionId = scheduledExecutionId self.state = state self.executorQueryId = executorQueryId self.errorMessage = errorMessage def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28507,16 +27892,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.executorQueryId = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.executorQueryId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.errorMessage = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.errorMessage = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -28525,41 +27906,43 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ScheduledQueryProgressInfo") + oprot.writeStructBegin('ScheduledQueryProgressInfo') if self.scheduledExecutionId is not None: - oprot.writeFieldBegin("scheduledExecutionId", TType.I64, 1) + oprot.writeFieldBegin('scheduledExecutionId', TType.I64, 1) oprot.writeI64(self.scheduledExecutionId) oprot.writeFieldEnd() if self.state is not None: - oprot.writeFieldBegin("state", TType.I32, 2) + oprot.writeFieldBegin('state', TType.I32, 2) oprot.writeI32(self.state) oprot.writeFieldEnd() if self.executorQueryId is not None: - oprot.writeFieldBegin("executorQueryId", TType.STRING, 3) - oprot.writeString(self.executorQueryId.encode("utf-8") if sys.version_info[0] == 2 else self.executorQueryId) + oprot.writeFieldBegin('executorQueryId', TType.STRING, 3) + oprot.writeString(self.executorQueryId.encode('utf-8') if sys.version_info[0] == 2 else self.executorQueryId) oprot.writeFieldEnd() if self.errorMessage is not None: - oprot.writeFieldBegin("errorMessage", TType.STRING, 4) - oprot.writeString(self.errorMessage.encode("utf-8") if sys.version_info[0] == 2 else self.errorMessage) + oprot.writeFieldBegin('errorMessage', TType.STRING, 4) + oprot.writeString(self.errorMessage.encode('utf-8') if sys.version_info[0] == 2 else self.errorMessage) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.scheduledExecutionId is None: - raise TProtocolException(message="Required field scheduledExecutionId is unset!") + raise TProtocolException(message='Required field scheduledExecutionId is unset!') if self.state is None: - raise TProtocolException(message="Required field state is unset!") + raise TProtocolException(message='Required field state is unset!') if self.executorQueryId is None: - raise TProtocolException(message="Required field executorQueryId is unset!") + raise TProtocolException(message='Required field executorQueryId is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28568,7 +27951,7 @@ def __ne__(self, other): return not (self == other) -class AlterPartitionsRequest: +class AlterPartitionsRequest(object): """ Attributes: - catName @@ -28578,19 +27961,14 @@ class AlterPartitionsRequest: - environmentContext - writeId - validWriteIdList + - skipColumnSchemaForPartition + - partitionColSchema """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - tableName=None, - partitions=None, - environmentContext=None, - writeId=-1, - validWriteIdList=None, - ): + + def __init__(self, catName = None, dbName = None, tableName = None, partitions = None, environmentContext = None, writeId = -1, validWriteIdList = None, skipColumnSchemaForPartition = None, partitionColSchema = None,): self.catName = catName self.dbName = dbName self.tableName = tableName @@ -28598,13 +27976,11 @@ def __init__( self.environmentContext = environmentContext self.writeId = writeId self.validWriteIdList = validWriteIdList + self.skipColumnSchemaForPartition = skipColumnSchemaForPartition + self.partitionColSchema = partitionColSchema def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28614,33 +27990,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partitions = [] - (_etype1126, _size1123) = iprot.readListBegin() - for _i1127 in range(_size1123): - _elem1128 = Partition() - _elem1128.read(iprot) - self.partitions.append(_elem1128) + (_etype1262, _size1259) = iprot.readListBegin() + for _i1263 in range(_size1259): + _elem1264 = Partition() + _elem1264.read(iprot) + self.partitions.append(_elem1264) iprot.readListEnd() else: iprot.skip(ftype) @@ -28657,9 +28027,23 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.BOOL: + self.skipColumnSchemaForPartition = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.LIST: + self.partitionColSchema = [] + (_etype1268, _size1265) = iprot.readListBegin() + for _i1269 in range(_size1265): + _elem1270 = FieldSchema() + _elem1270.read(iprot) + self.partitionColSchema.append(_elem1270) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -28668,56 +28052,196 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AlterPartitionsRequest") + oprot.writeStructBegin('AlterPartitionsRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 3) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.partitions is not None: - oprot.writeFieldBegin("partitions", TType.LIST, 4) + oprot.writeFieldBegin('partitions', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter1129 in self.partitions: - iter1129.write(oprot) + for iter1271 in self.partitions: + iter1271.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environmentContext is not None: - oprot.writeFieldBegin("environmentContext", TType.STRUCT, 5) + oprot.writeFieldBegin('environmentContext', TType.STRUCT, 5) self.environmentContext.write(oprot) oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 6) + oprot.writeFieldBegin('writeId', TType.I64, 6) oprot.writeI64(self.writeId) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 7) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 7) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldEnd() + if self.skipColumnSchemaForPartition is not None: + oprot.writeFieldBegin('skipColumnSchemaForPartition', TType.BOOL, 8) + oprot.writeBool(self.skipColumnSchemaForPartition) + oprot.writeFieldEnd() + if self.partitionColSchema is not None: + oprot.writeFieldBegin('partitionColSchema', TType.LIST, 9) + oprot.writeListBegin(TType.STRUCT, len(self.partitionColSchema)) + for iter1272 in self.partitionColSchema: + iter1272.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') if self.partitions is None: - raise TProtocolException(message="Required field partitions is unset!") + raise TProtocolException(message='Required field partitions is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 AppendPartitionsRequest(object): + """ + Attributes: + - catalogName + - dbName + - tableName + - name + - partVals + - environmentContext + + """ + thrift_spec = None + + + def __init__(self, catalogName = None, dbName = None, tableName = None, name = None, partVals = None, environmentContext = None,): + self.catalogName = catalogName + self.dbName = dbName + self.tableName = tableName + self.name = name + self.partVals = partVals + self.environmentContext = environmentContext + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.catalogName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.partVals = [] + (_etype1276, _size1273) = iprot.readListBegin() + for _i1277 in range(_size1273): + _elem1278 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partVals.append(_elem1278) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRUCT: + self.environmentContext = EnvironmentContext() + self.environmentContext.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('AppendPartitionsRequest') + if self.catalogName is not None: + oprot.writeFieldBegin('catalogName', TType.STRING, 1) + oprot.writeString(self.catalogName.encode('utf-8') if sys.version_info[0] == 2 else self.catalogName) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldEnd() + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldEnd() + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 4) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldEnd() + if self.partVals is not None: + oprot.writeFieldBegin('partVals', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.partVals)) + for iter1279 in self.partVals: + oprot.writeString(iter1279.encode('utf-8') if sys.version_info[0] == 2 else iter1279) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.environmentContext is not None: + oprot.writeFieldBegin('environmentContext', TType.STRUCT, 6) + self.environmentContext.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocolException(message='Required field dbName is unset!') + if self.tableName is None: + raise TProtocolException(message='Required field tableName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28726,13 +28250,12 @@ def __ne__(self, other): return not (self == other) -class AlterPartitionsResponse: +class AlterPartitionsResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28746,10 +28269,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AlterPartitionsResponse") + oprot.writeStructBegin('AlterPartitionsResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -28757,8 +28281,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28767,7 +28292,7 @@ def __ne__(self, other): return not (self == other) -class RenamePartitionRequest: +class RenamePartitionRequest(object): """ Attributes: - catName @@ -28780,18 +28305,10 @@ class RenamePartitionRequest: - clonePart """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - tableName=None, - partVals=None, - newPart=None, - validWriteIdList=None, - txnId=None, - clonePart=None, - ): + + def __init__(self, catName = None, dbName = None, tableName = None, partVals = None, newPart = None, validWriteIdList = None, txnId = None, clonePart = None,): self.catName = catName self.dbName = dbName self.tableName = tableName @@ -28802,11 +28319,7 @@ def __init__( self.clonePart = clonePart def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28816,36 +28329,26 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partVals = [] - (_etype1133, _size1130) = iprot.readListBegin() - for _i1134 in range(_size1130): - _elem1135 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partVals.append(_elem1135) + (_etype1283, _size1280) = iprot.readListBegin() + for _i1284 in range(_size1280): + _elem1285 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partVals.append(_elem1285) iprot.readListEnd() else: iprot.skip(ftype) @@ -28857,9 +28360,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -28878,43 +28379,44 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("RenamePartitionRequest") + oprot.writeStructBegin('RenamePartitionRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 3) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.partVals is not None: - oprot.writeFieldBegin("partVals", TType.LIST, 4) + oprot.writeFieldBegin('partVals', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partVals)) - for iter1136 in self.partVals: - oprot.writeString(iter1136.encode("utf-8") if sys.version_info[0] == 2 else iter1136) + for iter1286 in self.partVals: + oprot.writeString(iter1286.encode('utf-8') if sys.version_info[0] == 2 else iter1286) oprot.writeListEnd() oprot.writeFieldEnd() if self.newPart is not None: - oprot.writeFieldBegin("newPart", TType.STRUCT, 5) + oprot.writeFieldBegin('newPart', TType.STRUCT, 5) self.newPart.write(oprot) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 6) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 6) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.txnId is not None: - oprot.writeFieldBegin("txnId", TType.I64, 7) + oprot.writeFieldBegin('txnId', TType.I64, 7) oprot.writeI64(self.txnId) oprot.writeFieldEnd() if self.clonePart is not None: - oprot.writeFieldBegin("clonePart", TType.BOOL, 8) + oprot.writeFieldBegin('clonePart', TType.BOOL, 8) oprot.writeBool(self.clonePart) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28922,18 +28424,19 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') if self.partVals is None: - raise TProtocolException(message="Required field partVals is unset!") + raise TProtocolException(message='Required field partVals is unset!') if self.newPart is None: - raise TProtocolException(message="Required field newPart is unset!") + raise TProtocolException(message='Required field newPart is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28942,13 +28445,12 @@ def __ne__(self, other): return not (self == other) -class RenamePartitionResponse: +class RenamePartitionResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -28962,10 +28464,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("RenamePartitionResponse") + oprot.writeStructBegin('RenamePartitionResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -28973,8 +28476,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -28983,7 +28487,7 @@ def __ne__(self, other): return not (self == other) -class AlterTableRequest: +class AlterTableRequest(object): """ Attributes: - catName @@ -28995,21 +28499,14 @@ class AlterTableRequest: - validWriteIdList - processorCapabilities - processorIdentifier + - expectedParameterKey + - expectedParameterValue """ + thrift_spec = None + - def __init__( - self, - catName=None, - dbName=None, - tableName=None, - table=None, - environmentContext=None, - writeId=-1, - validWriteIdList=None, - processorCapabilities=None, - processorIdentifier=None, - ): + def __init__(self, catName = None, dbName = None, tableName = None, table = None, environmentContext = None, writeId = -1, validWriteIdList = None, processorCapabilities = None, processorIdentifier = None, expectedParameterKey = None, expectedParameterValue = None,): self.catName = catName self.dbName = dbName self.tableName = tableName @@ -29019,13 +28516,11 @@ def __init__( self.validWriteIdList = validWriteIdList self.processorCapabilities = processorCapabilities self.processorIdentifier = processorIdentifier + self.expectedParameterKey = expectedParameterKey + self.expectedParameterValue = expectedParameterValue def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29035,23 +28530,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -29073,30 +28562,32 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype1140, _size1137) = iprot.readListBegin() - for _i1141 in range(_size1137): - _elem1142 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.processorCapabilities.append(_elem1142) + (_etype1290, _size1287) = iprot.readListBegin() + for _i1291 in range(_size1287): + _elem1292 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.processorCapabilities.append(_elem1292) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.processorIdentifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.processorIdentifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.expectedParameterKey = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.expectedParameterValue = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -29105,64 +28596,74 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AlterTableRequest") + oprot.writeStructBegin('AlterTableRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 3) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() if self.table is not None: - oprot.writeFieldBegin("table", TType.STRUCT, 4) + oprot.writeFieldBegin('table', TType.STRUCT, 4) self.table.write(oprot) oprot.writeFieldEnd() if self.environmentContext is not None: - oprot.writeFieldBegin("environmentContext", TType.STRUCT, 5) + oprot.writeFieldBegin('environmentContext', TType.STRUCT, 5) self.environmentContext.write(oprot) oprot.writeFieldEnd() if self.writeId is not None: - oprot.writeFieldBegin("writeId", TType.I64, 6) + oprot.writeFieldBegin('writeId', TType.I64, 6) oprot.writeI64(self.writeId) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 7) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 7) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.processorCapabilities is not None: - oprot.writeFieldBegin("processorCapabilities", TType.LIST, 8) + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter1143 in self.processorCapabilities: - oprot.writeString(iter1143.encode("utf-8") if sys.version_info[0] == 2 else iter1143) + for iter1293 in self.processorCapabilities: + oprot.writeString(iter1293.encode('utf-8') if sys.version_info[0] == 2 else iter1293) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: - oprot.writeFieldBegin("processorIdentifier", TType.STRING, 9) - oprot.writeString(self.processorIdentifier.encode("utf-8") if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 9) + oprot.writeString(self.processorIdentifier.encode('utf-8') if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldEnd() + if self.expectedParameterKey is not None: + oprot.writeFieldBegin('expectedParameterKey', TType.STRING, 10) + oprot.writeString(self.expectedParameterKey.encode('utf-8') if sys.version_info[0] == 2 else self.expectedParameterKey) + oprot.writeFieldEnd() + if self.expectedParameterValue is not None: + oprot.writeFieldBegin('expectedParameterValue', TType.STRING, 11) + oprot.writeString(self.expectedParameterValue.encode('utf-8') if sys.version_info[0] == 2 else self.expectedParameterValue) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tableName is None: - raise TProtocolException(message="Required field tableName is unset!") + raise TProtocolException(message='Required field tableName is unset!') if self.table is None: - raise TProtocolException(message="Required field table is unset!") + raise TProtocolException(message='Required field table is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -29171,13 +28672,12 @@ def __ne__(self, other): return not (self == other) -class AlterTableResponse: +class AlterTableResponse(object): + thrift_spec = None + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29191,10 +28691,11 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AlterTableResponse") + oprot.writeStructBegin('AlterTableResponse') oprot.writeFieldStop() oprot.writeStructEnd() @@ -29202,8 +28703,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -29212,28 +28714,22 @@ def __ne__(self, other): return not (self == other) -class GetPartitionsFilterSpec: +class GetPartitionsFilterSpec(object): """ Attributes: - filterMode - filters """ + thrift_spec = None - def __init__( - self, - filterMode=None, - filters=None, - ): + + def __init__(self, filterMode = None, filters = None,): self.filterMode = filterMode self.filters = filters def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29249,14 +28745,10 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.filters = [] - (_etype1147, _size1144) = iprot.readListBegin() - for _i1148 in range(_size1144): - _elem1149 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.filters.append(_elem1149) + (_etype1297, _size1294) = iprot.readListBegin() + for _i1298 in range(_size1294): + _elem1299 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.filters.append(_elem1299) iprot.readListEnd() else: iprot.skip(ftype) @@ -29266,19 +28758,20 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionsFilterSpec") + oprot.writeStructBegin('GetPartitionsFilterSpec') if self.filterMode is not None: - oprot.writeFieldBegin("filterMode", TType.I32, 7) + oprot.writeFieldBegin('filterMode', TType.I32, 7) oprot.writeI32(self.filterMode) oprot.writeFieldEnd() if self.filters is not None: - oprot.writeFieldBegin("filters", TType.LIST, 8) + oprot.writeFieldBegin('filters', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.filters)) - for iter1150 in self.filters: - oprot.writeString(iter1150.encode("utf-8") if sys.version_info[0] == 2 else iter1150) + for iter1300 in self.filters: + oprot.writeString(iter1300.encode('utf-8') if sys.version_info[0] == 2 else iter1300) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29288,8 +28781,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -29298,25 +28792,20 @@ def __ne__(self, other): return not (self == other) -class GetPartitionsResponse: +class GetPartitionsResponse(object): """ Attributes: - partitionSpec """ + thrift_spec = None + - def __init__( - self, - partitionSpec=None, - ): + def __init__(self, partitionSpec = None,): self.partitionSpec = partitionSpec def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29327,11 +28816,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitionSpec = [] - (_etype1154, _size1151) = iprot.readListBegin() - for _i1155 in range(_size1151): - _elem1156 = PartitionSpec() - _elem1156.read(iprot) - self.partitionSpec.append(_elem1156) + (_etype1304, _size1301) = iprot.readListBegin() + for _i1305 in range(_size1301): + _elem1306 = PartitionSpec() + _elem1306.read(iprot) + self.partitionSpec.append(_elem1306) iprot.readListEnd() else: iprot.skip(ftype) @@ -29341,15 +28830,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionsResponse") + oprot.writeStructBegin('GetPartitionsResponse') if self.partitionSpec is not None: - oprot.writeFieldBegin("partitionSpec", TType.LIST, 1) + oprot.writeFieldBegin('partitionSpec', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitionSpec)) - for iter1157 in self.partitionSpec: - iter1157.write(oprot) + for iter1307 in self.partitionSpec: + iter1307.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29359,8 +28849,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -29369,7 +28860,7 @@ def __ne__(self, other): return not (self == other) -class GetPartitionsRequest: +class GetPartitionsRequest(object): """ Attributes: - catName @@ -29385,21 +28876,10 @@ class GetPartitionsRequest: - validWriteIdList """ + thrift_spec = None + - def __init__( - self, - catName=None, - dbName=None, - tblName=None, - withAuth=None, - user=None, - groupNames=None, - projectionSpec=None, - filterSpec=None, - processorCapabilities=None, - processorIdentifier=None, - validWriteIdList=None, - ): + def __init__(self, catName = None, dbName = None, tblName = None, withAuth = None, user = None, groupNames = None, projectionSpec = None, filterSpec = None, processorCapabilities = None, processorIdentifier = None, validWriteIdList = None,): self.catName = catName self.dbName = dbName self.tblName = tblName @@ -29413,11 +28893,7 @@ def __init__( self.validWriteIdList = validWriteIdList def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29427,23 +28903,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -29453,22 +28923,16 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.LIST: self.groupNames = [] - (_etype1161, _size1158) = iprot.readListBegin() - for _i1162 in range(_size1158): - _elem1163 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.groupNames.append(_elem1163) + (_etype1311, _size1308) = iprot.readListBegin() + for _i1312 in range(_size1308): + _elem1313 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.groupNames.append(_elem1313) iprot.readListEnd() else: iprot.skip(ftype) @@ -29487,29 +28951,21 @@ def read(self, iprot): elif fid == 9: if ftype == TType.LIST: self.processorCapabilities = [] - (_etype1167, _size1164) = iprot.readListBegin() - for _i1168 in range(_size1164): - _elem1169 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.processorCapabilities.append(_elem1169) + (_etype1317, _size1314) = iprot.readListBegin() + for _i1318 in range(_size1314): + _elem1319 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.processorCapabilities.append(_elem1319) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.processorIdentifier = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.processorIdentifier = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -29518,59 +28974,60 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionsRequest") + oprot.writeStructBegin('GetPartitionsRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 3) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.withAuth is not None: - oprot.writeFieldBegin("withAuth", TType.BOOL, 4) + oprot.writeFieldBegin('withAuth', TType.BOOL, 4) oprot.writeBool(self.withAuth) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 5) - oprot.writeString(self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin('user', TType.STRING, 5) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() if self.groupNames is not None: - oprot.writeFieldBegin("groupNames", TType.LIST, 6) + oprot.writeFieldBegin('groupNames', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.groupNames)) - for iter1170 in self.groupNames: - oprot.writeString(iter1170.encode("utf-8") if sys.version_info[0] == 2 else iter1170) + for iter1320 in self.groupNames: + oprot.writeString(iter1320.encode('utf-8') if sys.version_info[0] == 2 else iter1320) oprot.writeListEnd() oprot.writeFieldEnd() if self.projectionSpec is not None: - oprot.writeFieldBegin("projectionSpec", TType.STRUCT, 7) + oprot.writeFieldBegin('projectionSpec', TType.STRUCT, 7) self.projectionSpec.write(oprot) oprot.writeFieldEnd() if self.filterSpec is not None: - oprot.writeFieldBegin("filterSpec", TType.STRUCT, 8) + oprot.writeFieldBegin('filterSpec', TType.STRUCT, 8) self.filterSpec.write(oprot) oprot.writeFieldEnd() if self.processorCapabilities is not None: - oprot.writeFieldBegin("processorCapabilities", TType.LIST, 9) + oprot.writeFieldBegin('processorCapabilities', TType.LIST, 9) oprot.writeListBegin(TType.STRING, len(self.processorCapabilities)) - for iter1171 in self.processorCapabilities: - oprot.writeString(iter1171.encode("utf-8") if sys.version_info[0] == 2 else iter1171) + for iter1321 in self.processorCapabilities: + oprot.writeString(iter1321.encode('utf-8') if sys.version_info[0] == 2 else iter1321) oprot.writeListEnd() oprot.writeFieldEnd() if self.processorIdentifier is not None: - oprot.writeFieldBegin("processorIdentifier", TType.STRING, 10) - oprot.writeString(self.processorIdentifier.encode("utf-8") if sys.version_info[0] == 2 else self.processorIdentifier) + oprot.writeFieldBegin('processorIdentifier', TType.STRING, 10) + oprot.writeString(self.processorIdentifier.encode('utf-8') if sys.version_info[0] == 2 else self.processorIdentifier) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 11) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 11) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -29579,8 +29036,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -29589,7 +29047,7 @@ def __ne__(self, other): return not (self == other) -class GetFieldsRequest: +class GetFieldsRequest(object): """ Attributes: - catName @@ -29600,16 +29058,10 @@ class GetFieldsRequest: - id """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - tblName=None, - envContext=None, - validWriteIdList=None, - id=-1, - ): + + def __init__(self, catName = None, dbName = None, tblName = None, envContext = None, validWriteIdList = None, id = -1,): self.catName = catName self.dbName = dbName self.tblName = tblName @@ -29618,11 +29070,7 @@ def __init__( self.id = id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29632,23 +29080,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -29659,9 +29101,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -29675,32 +29115,33 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetFieldsRequest") + oprot.writeStructBegin('GetFieldsRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 3) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.envContext is not None: - oprot.writeFieldBegin("envContext", TType.STRUCT, 4) + oprot.writeFieldBegin('envContext', TType.STRUCT, 4) self.envContext.write(oprot) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 5) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 5) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 6) + oprot.writeFieldBegin('id', TType.I64, 6) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29708,14 +29149,15 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -29724,25 +29166,20 @@ def __ne__(self, other): return not (self == other) -class GetFieldsResponse: +class GetFieldsResponse(object): """ Attributes: - fields """ + thrift_spec = None + - def __init__( - self, - fields=None, - ): + def __init__(self, fields = None,): self.fields = fields def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29753,11 +29190,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fields = [] - (_etype1175, _size1172) = iprot.readListBegin() - for _i1176 in range(_size1172): - _elem1177 = FieldSchema() - _elem1177.read(iprot) - self.fields.append(_elem1177) + (_etype1325, _size1322) = iprot.readListBegin() + for _i1326 in range(_size1322): + _elem1327 = FieldSchema() + _elem1327.read(iprot) + self.fields.append(_elem1327) iprot.readListEnd() else: iprot.skip(ftype) @@ -29767,15 +29204,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetFieldsResponse") + oprot.writeStructBegin('GetFieldsResponse') if self.fields is not None: - oprot.writeFieldBegin("fields", TType.LIST, 1) + oprot.writeFieldBegin('fields', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.fields)) - for iter1178 in self.fields: - iter1178.write(oprot) + for iter1328 in self.fields: + iter1328.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29783,12 +29221,13 @@ def write(self, oprot): def validate(self): if self.fields is None: - raise TProtocolException(message="Required field fields is unset!") + raise TProtocolException(message='Required field fields is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -29797,7 +29236,7 @@ def __ne__(self, other): return not (self == other) -class GetSchemaRequest: +class GetSchemaRequest(object): """ Attributes: - catName @@ -29808,16 +29247,10 @@ class GetSchemaRequest: - id """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - tblName=None, - envContext=None, - validWriteIdList=None, - id=-1, - ): + + def __init__(self, catName = None, dbName = None, tblName = None, envContext = None, validWriteIdList = None, id = -1,): self.catName = catName self.dbName = dbName self.tblName = tblName @@ -29826,11 +29259,7 @@ def __init__( self.id = id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29840,23 +29269,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -29867,9 +29290,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -29883,32 +29304,33 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetSchemaRequest") + oprot.writeStructBegin('GetSchemaRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 3) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.envContext is not None: - oprot.writeFieldBegin("envContext", TType.STRUCT, 4) + oprot.writeFieldBegin('envContext', TType.STRUCT, 4) self.envContext.write(oprot) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 5) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 5) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 6) + oprot.writeFieldBegin('id', TType.I64, 6) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29916,14 +29338,15 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -29932,25 +29355,20 @@ def __ne__(self, other): return not (self == other) -class GetSchemaResponse: +class GetSchemaResponse(object): """ Attributes: - fields """ + thrift_spec = None + - def __init__( - self, - fields=None, - ): + def __init__(self, fields = None,): self.fields = fields def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -29961,11 +29379,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fields = [] - (_etype1182, _size1179) = iprot.readListBegin() - for _i1183 in range(_size1179): - _elem1184 = FieldSchema() - _elem1184.read(iprot) - self.fields.append(_elem1184) + (_etype1332, _size1329) = iprot.readListBegin() + for _i1333 in range(_size1329): + _elem1334 = FieldSchema() + _elem1334.read(iprot) + self.fields.append(_elem1334) iprot.readListEnd() else: iprot.skip(ftype) @@ -29975,15 +29393,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetSchemaResponse") + oprot.writeStructBegin('GetSchemaResponse') if self.fields is not None: - oprot.writeFieldBegin("fields", TType.LIST, 1) + oprot.writeFieldBegin('fields', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.fields)) - for iter1185 in self.fields: - iter1185.write(oprot) + for iter1335 in self.fields: + iter1335.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29991,12 +29410,13 @@ def write(self, oprot): def validate(self): if self.fields is None: - raise TProtocolException(message="Required field fields is unset!") + raise TProtocolException(message='Required field fields is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -30005,7 +29425,7 @@ def __ne__(self, other): return not (self == other) -class GetPartitionRequest: +class GetPartitionRequest(object): """ Attributes: - catName @@ -30016,16 +29436,10 @@ class GetPartitionRequest: - id """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - tblName=None, - partVals=None, - validWriteIdList=None, - id=-1, - ): + + def __init__(self, catName = None, dbName = None, tblName = None, partVals = None, validWriteIdList = None, id = -1,): self.catName = catName self.dbName = dbName self.tblName = tblName @@ -30034,11 +29448,7 @@ def __init__( self.id = id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30048,44 +29458,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partVals = [] - (_etype1189, _size1186) = iprot.readListBegin() - for _i1190 in range(_size1186): - _elem1191 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partVals.append(_elem1191) + (_etype1339, _size1336) = iprot.readListBegin() + for _i1340 in range(_size1336): + _elem1341 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partVals.append(_elem1341) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -30099,35 +29497,36 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionRequest") + oprot.writeStructBegin('GetPartitionRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 3) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.partVals is not None: - oprot.writeFieldBegin("partVals", TType.LIST, 4) + oprot.writeFieldBegin('partVals', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partVals)) - for iter1192 in self.partVals: - oprot.writeString(iter1192.encode("utf-8") if sys.version_info[0] == 2 else iter1192) + for iter1342 in self.partVals: + oprot.writeString(iter1342.encode('utf-8') if sys.version_info[0] == 2 else iter1342) oprot.writeListEnd() oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 5) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 5) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 6) + oprot.writeFieldBegin('id', TType.I64, 6) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30135,16 +29534,17 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') if self.partVals is None: - raise TProtocolException(message="Required field partVals is unset!") + raise TProtocolException(message='Required field partVals is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -30153,25 +29553,20 @@ def __ne__(self, other): return not (self == other) -class GetPartitionResponse: +class GetPartitionResponse(object): """ Attributes: - partition """ + thrift_spec = None + - def __init__( - self, - partition=None, - ): + def __init__(self, partition = None,): self.partition = partition def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30191,12 +29586,13 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionResponse") + oprot.writeStructBegin('GetPartitionResponse') if self.partition is not None: - oprot.writeFieldBegin("partition", TType.STRUCT, 1) + oprot.writeFieldBegin('partition', TType.STRUCT, 1) self.partition.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30204,12 +29600,13 @@ def write(self, oprot): def validate(self): if self.partition is None: - raise TProtocolException(message="Required field partition is unset!") + raise TProtocolException(message='Required field partition is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -30218,7 +29615,7 @@ def __ne__(self, other): return not (self == other) -class PartitionsRequest: +class PartitionsRequest(object): """ Attributes: - catName @@ -30227,31 +29624,27 @@ class PartitionsRequest: - maxParts - validWriteIdList - id + - skipColumnSchemaForPartition + - includeParamKeyPattern + - excludeParamKeyPattern """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - tblName=None, - maxParts=-1, - validWriteIdList=None, - id=-1, - ): + + def __init__(self, catName = None, dbName = None, tblName = None, maxParts = -1, validWriteIdList = None, id = -1, skipColumnSchemaForPartition = None, includeParamKeyPattern = None, excludeParamKeyPattern = None,): self.catName = catName self.dbName = dbName self.tblName = tblName self.maxParts = maxParts self.validWriteIdList = validWriteIdList self.id = id + self.skipColumnSchemaForPartition = skipColumnSchemaForPartition + self.includeParamKeyPattern = includeParamKeyPattern + self.excludeParamKeyPattern = excludeParamKeyPattern def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30261,23 +29654,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -30287,9 +29674,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: @@ -30297,53 +29682,82 @@ def read(self, iprot): self.id = iprot.readI64() else: iprot.skip(ftype) + elif fid == 7: + if ftype == TType.BOOL: + self.skipColumnSchemaForPartition = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.includeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.STRING: + self.excludeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionsRequest") + oprot.writeStructBegin('PartitionsRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 3) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.maxParts is not None: - oprot.writeFieldBegin("maxParts", TType.I16, 4) + oprot.writeFieldBegin('maxParts', TType.I16, 4) oprot.writeI16(self.maxParts) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 5) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 5) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 6) + oprot.writeFieldBegin('id', TType.I64, 6) oprot.writeI64(self.id) oprot.writeFieldEnd() + if self.skipColumnSchemaForPartition is not None: + oprot.writeFieldBegin('skipColumnSchemaForPartition', TType.BOOL, 7) + oprot.writeBool(self.skipColumnSchemaForPartition) + oprot.writeFieldEnd() + if self.includeParamKeyPattern is not None: + oprot.writeFieldBegin('includeParamKeyPattern', TType.STRING, 8) + oprot.writeString(self.includeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.includeParamKeyPattern) + oprot.writeFieldEnd() + if self.excludeParamKeyPattern is not None: + oprot.writeFieldBegin('excludeParamKeyPattern', TType.STRING, 9) + oprot.writeString(self.excludeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.excludeParamKeyPattern) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -30352,25 +29766,20 @@ def __ne__(self, other): return not (self == other) -class PartitionsResponse: +class PartitionsResponse(object): """ Attributes: - partitions """ + thrift_spec = None + - def __init__( - self, - partitions=None, - ): + def __init__(self, partitions = None,): self.partitions = partitions def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30381,11 +29790,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype1196, _size1193) = iprot.readListBegin() - for _i1197 in range(_size1193): - _elem1198 = Partition() - _elem1198.read(iprot) - self.partitions.append(_elem1198) + (_etype1346, _size1343) = iprot.readListBegin() + for _i1347 in range(_size1343): + _elem1348 = Partition() + _elem1348.read(iprot) + self.partitions.append(_elem1348) iprot.readListEnd() else: iprot.skip(ftype) @@ -30395,15 +29804,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PartitionsResponse") + oprot.writeStructBegin('PartitionsResponse') if self.partitions is not None: - oprot.writeFieldBegin("partitions", TType.LIST, 1) + oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter1199 in self.partitions: - iter1199.write(oprot) + for iter1349 in self.partitions: + iter1349.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30411,12 +29821,149 @@ def write(self, oprot): def validate(self): if self.partitions is None: - raise TProtocolException(message="Required field partitions is unset!") + raise TProtocolException(message='Required field partitions is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 GetPartitionsByFilterRequest(object): + """ + Attributes: + - catName + - dbName + - tblName + - filter + - maxParts + - skipColumnSchemaForPartition + - includeParamKeyPattern + - excludeParamKeyPattern + + """ + thrift_spec = None + + + def __init__(self, catName = None, dbName = None, tblName = None, filter = None, maxParts = -1, skipColumnSchemaForPartition = None, includeParamKeyPattern = None, excludeParamKeyPattern = None,): + self.catName = catName + self.dbName = dbName + self.tblName = tblName + self.filter = filter + self.maxParts = maxParts + self.skipColumnSchemaForPartition = skipColumnSchemaForPartition + self.includeParamKeyPattern = includeParamKeyPattern + self.excludeParamKeyPattern = excludeParamKeyPattern + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.filter = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I16: + self.maxParts = iprot.readI16() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.BOOL: + self.skipColumnSchemaForPartition = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.includeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.excludeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('GetPartitionsByFilterRequest') + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldEnd() + if self.filter is not None: + oprot.writeFieldBegin('filter', TType.STRING, 4) + oprot.writeString(self.filter.encode('utf-8') if sys.version_info[0] == 2 else self.filter) + oprot.writeFieldEnd() + if self.maxParts is not None: + oprot.writeFieldBegin('maxParts', TType.I16, 5) + oprot.writeI16(self.maxParts) + oprot.writeFieldEnd() + if self.skipColumnSchemaForPartition is not None: + oprot.writeFieldBegin('skipColumnSchemaForPartition', TType.BOOL, 6) + oprot.writeBool(self.skipColumnSchemaForPartition) + oprot.writeFieldEnd() + if self.includeParamKeyPattern is not None: + oprot.writeFieldBegin('includeParamKeyPattern', TType.STRING, 7) + oprot.writeString(self.includeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.includeParamKeyPattern) + oprot.writeFieldEnd() + if self.excludeParamKeyPattern is not None: + oprot.writeFieldBegin('excludeParamKeyPattern', TType.STRING, 8) + oprot.writeString(self.excludeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.excludeParamKeyPattern) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -30425,7 +29972,7 @@ def __ne__(self, other): return not (self == other) -class GetPartitionNamesPsRequest: +class GetPartitionNamesPsRequest(object): """ Attributes: - catName @@ -30437,17 +29984,10 @@ class GetPartitionNamesPsRequest: - id """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - tblName=None, - partValues=None, - maxParts=-1, - validWriteIdList=None, - id=-1, - ): + + def __init__(self, catName = None, dbName = None, tblName = None, partValues = None, maxParts = -1, validWriteIdList = None, id = -1,): self.catName = catName self.dbName = dbName self.tblName = tblName @@ -30457,11 +29997,7 @@ def __init__( self.id = id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30471,36 +30007,26 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partValues = [] - (_etype1203, _size1200) = iprot.readListBegin() - for _i1204 in range(_size1200): - _elem1205 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partValues.append(_elem1205) + (_etype1353, _size1350) = iprot.readListBegin() + for _i1354 in range(_size1350): + _elem1355 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partValues.append(_elem1355) iprot.readListEnd() else: iprot.skip(ftype) @@ -30511,9 +30037,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -30527,39 +30051,40 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionNamesPsRequest") + oprot.writeStructBegin('GetPartitionNamesPsRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 3) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.partValues is not None: - oprot.writeFieldBegin("partValues", TType.LIST, 4) + oprot.writeFieldBegin('partValues', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partValues)) - for iter1206 in self.partValues: - oprot.writeString(iter1206.encode("utf-8") if sys.version_info[0] == 2 else iter1206) + for iter1356 in self.partValues: + oprot.writeString(iter1356.encode('utf-8') if sys.version_info[0] == 2 else iter1356) oprot.writeListEnd() oprot.writeFieldEnd() if self.maxParts is not None: - oprot.writeFieldBegin("maxParts", TType.I16, 5) + oprot.writeFieldBegin('maxParts', TType.I16, 5) oprot.writeI16(self.maxParts) oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 6) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 6) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 7) + oprot.writeFieldBegin('id', TType.I64, 7) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30567,14 +30092,15 @@ def write(self, oprot): def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -30583,25 +30109,20 @@ def __ne__(self, other): return not (self == other) -class GetPartitionNamesPsResponse: +class GetPartitionNamesPsResponse(object): """ Attributes: - names """ + thrift_spec = None + - def __init__( - self, - names=None, - ): + def __init__(self, names = None,): self.names = names def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30612,14 +30133,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype1210, _size1207) = iprot.readListBegin() - for _i1211 in range(_size1207): - _elem1212 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.names.append(_elem1212) + (_etype1360, _size1357) = iprot.readListBegin() + for _i1361 in range(_size1357): + _elem1362 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.names.append(_elem1362) iprot.readListEnd() else: iprot.skip(ftype) @@ -30629,15 +30146,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionNamesPsResponse") + oprot.writeStructBegin('GetPartitionNamesPsResponse') if self.names is not None: - oprot.writeFieldBegin("names", TType.LIST, 1) + oprot.writeFieldBegin('names', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter1213 in self.names: - oprot.writeString(iter1213.encode("utf-8") if sys.version_info[0] == 2 else iter1213) + for iter1363 in self.names: + oprot.writeString(iter1363.encode('utf-8') if sys.version_info[0] == 2 else iter1363) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30645,12 +30163,13 @@ def write(self, oprot): def validate(self): if self.names is None: - raise TProtocolException(message="Required field names is unset!") + raise TProtocolException(message='Required field names is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -30659,7 +30178,7 @@ def __ne__(self, other): return not (self == other) -class GetPartitionsPsWithAuthRequest: +class GetPartitionsPsWithAuthRequest(object): """ Attributes: - catName @@ -30671,21 +30190,16 @@ class GetPartitionsPsWithAuthRequest: - groupNames - validWriteIdList - id + - skipColumnSchemaForPartition + - includeParamKeyPattern + - excludeParamKeyPattern + - partNames """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - tblName=None, - partVals=None, - maxParts=-1, - userName=None, - groupNames=None, - validWriteIdList=None, - id=-1, - ): + + def __init__(self, catName = None, dbName = None, tblName = None, partVals = None, maxParts = -1, userName = None, groupNames = None, validWriteIdList = None, id = -1, skipColumnSchemaForPartition = None, includeParamKeyPattern = None, excludeParamKeyPattern = None, partNames = None,): self.catName = catName self.dbName = dbName self.tblName = tblName @@ -30695,13 +30209,13 @@ def __init__( self.groupNames = groupNames self.validWriteIdList = validWriteIdList self.id = id + self.skipColumnSchemaForPartition = skipColumnSchemaForPartition + self.includeParamKeyPattern = includeParamKeyPattern + self.excludeParamKeyPattern = excludeParamKeyPattern + self.partNames = partNames def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30711,36 +30225,26 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tblName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tblName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partVals = [] - (_etype1217, _size1214) = iprot.readListBegin() - for _i1218 in range(_size1214): - _elem1219 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.partVals.append(_elem1219) + (_etype1367, _size1364) = iprot.readListBegin() + for _i1368 in range(_size1364): + _elem1369 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partVals.append(_elem1369) iprot.readListEnd() else: iprot.skip(ftype) @@ -30751,30 +30255,22 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.userName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.userName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.LIST: self.groupNames = [] - (_etype1223, _size1220) = iprot.readListBegin() - for _i1224 in range(_size1220): - _elem1225 = ( - iprot.readString().decode("utf-8", errors="replace") - if sys.version_info[0] == 2 - else iprot.readString() - ) - self.groupNames.append(_elem1225) + (_etype1373, _size1370) = iprot.readListBegin() + for _i1374 in range(_size1370): + _elem1375 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.groupNames.append(_elem1375) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.validWriteIdList = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.validWriteIdList = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: @@ -30782,71 +30278,117 @@ def read(self, iprot): self.id = iprot.readI64() else: iprot.skip(ftype) + elif fid == 10: + if ftype == TType.BOOL: + self.skipColumnSchemaForPartition = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.includeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.STRING: + self.excludeParamKeyPattern = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 13: + if ftype == TType.LIST: + self.partNames = [] + (_etype1379, _size1376) = iprot.readListBegin() + for _i1380 in range(_size1376): + _elem1381 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.partNames.append(_elem1381) + iprot.readListEnd() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionsPsWithAuthRequest") + oprot.writeStructBegin('GetPartitionsPsWithAuthRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.tblName is not None: - oprot.writeFieldBegin("tblName", TType.STRING, 3) - oprot.writeString(self.tblName.encode("utf-8") if sys.version_info[0] == 2 else self.tblName) + oprot.writeFieldBegin('tblName', TType.STRING, 3) + oprot.writeString(self.tblName.encode('utf-8') if sys.version_info[0] == 2 else self.tblName) oprot.writeFieldEnd() if self.partVals is not None: - oprot.writeFieldBegin("partVals", TType.LIST, 4) + oprot.writeFieldBegin('partVals', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partVals)) - for iter1226 in self.partVals: - oprot.writeString(iter1226.encode("utf-8") if sys.version_info[0] == 2 else iter1226) + for iter1382 in self.partVals: + oprot.writeString(iter1382.encode('utf-8') if sys.version_info[0] == 2 else iter1382) oprot.writeListEnd() oprot.writeFieldEnd() if self.maxParts is not None: - oprot.writeFieldBegin("maxParts", TType.I16, 5) + oprot.writeFieldBegin('maxParts', TType.I16, 5) oprot.writeI16(self.maxParts) oprot.writeFieldEnd() if self.userName is not None: - oprot.writeFieldBegin("userName", TType.STRING, 6) - oprot.writeString(self.userName.encode("utf-8") if sys.version_info[0] == 2 else self.userName) + oprot.writeFieldBegin('userName', TType.STRING, 6) + oprot.writeString(self.userName.encode('utf-8') if sys.version_info[0] == 2 else self.userName) oprot.writeFieldEnd() if self.groupNames is not None: - oprot.writeFieldBegin("groupNames", TType.LIST, 7) + oprot.writeFieldBegin('groupNames', TType.LIST, 7) oprot.writeListBegin(TType.STRING, len(self.groupNames)) - for iter1227 in self.groupNames: - oprot.writeString(iter1227.encode("utf-8") if sys.version_info[0] == 2 else iter1227) + for iter1383 in self.groupNames: + oprot.writeString(iter1383.encode('utf-8') if sys.version_info[0] == 2 else iter1383) oprot.writeListEnd() oprot.writeFieldEnd() if self.validWriteIdList is not None: - oprot.writeFieldBegin("validWriteIdList", TType.STRING, 8) - oprot.writeString(self.validWriteIdList.encode("utf-8") if sys.version_info[0] == 2 else self.validWriteIdList) + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 8) + oprot.writeString(self.validWriteIdList.encode('utf-8') if sys.version_info[0] == 2 else self.validWriteIdList) oprot.writeFieldEnd() if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 9) + oprot.writeFieldBegin('id', TType.I64, 9) oprot.writeI64(self.id) oprot.writeFieldEnd() + if self.skipColumnSchemaForPartition is not None: + oprot.writeFieldBegin('skipColumnSchemaForPartition', TType.BOOL, 10) + oprot.writeBool(self.skipColumnSchemaForPartition) + oprot.writeFieldEnd() + if self.includeParamKeyPattern is not None: + oprot.writeFieldBegin('includeParamKeyPattern', TType.STRING, 11) + oprot.writeString(self.includeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.includeParamKeyPattern) + oprot.writeFieldEnd() + if self.excludeParamKeyPattern is not None: + oprot.writeFieldBegin('excludeParamKeyPattern', TType.STRING, 12) + oprot.writeString(self.excludeParamKeyPattern.encode('utf-8') if sys.version_info[0] == 2 else self.excludeParamKeyPattern) + oprot.writeFieldEnd() + if self.partNames is not None: + oprot.writeFieldBegin('partNames', TType.LIST, 13) + oprot.writeListBegin(TType.STRING, len(self.partNames)) + for iter1384 in self.partNames: + oprot.writeString(iter1384.encode('utf-8') if sys.version_info[0] == 2 else iter1384) + oprot.writeListEnd() + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") + raise TProtocolException(message='Required field dbName is unset!') if self.tblName is None: - raise TProtocolException(message="Required field tblName is unset!") + raise TProtocolException(message='Required field tblName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -30855,25 +30397,20 @@ def __ne__(self, other): return not (self == other) -class GetPartitionsPsWithAuthResponse: +class GetPartitionsPsWithAuthResponse(object): """ Attributes: - partitions """ + thrift_spec = None - def __init__( - self, - partitions=None, - ): + + def __init__(self, partitions = None,): self.partitions = partitions def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30884,11 +30421,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype1231, _size1228) = iprot.readListBegin() - for _i1232 in range(_size1228): - _elem1233 = Partition() - _elem1233.read(iprot) - self.partitions.append(_elem1233) + (_etype1388, _size1385) = iprot.readListBegin() + for _i1389 in range(_size1385): + _elem1390 = Partition() + _elem1390.read(iprot) + self.partitions.append(_elem1390) iprot.readListEnd() else: iprot.skip(ftype) @@ -30898,15 +30435,16 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPartitionsPsWithAuthResponse") + oprot.writeStructBegin('GetPartitionsPsWithAuthResponse') if self.partitions is not None: - oprot.writeFieldBegin("partitions", TType.LIST, 1) + oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter1234 in self.partitions: - iter1234.write(oprot) + for iter1391 in self.partitions: + iter1391.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30914,12 +30452,13 @@ def write(self, oprot): def validate(self): if self.partitions is None: - raise TProtocolException(message="Required field partitions is unset!") + raise TProtocolException(message='Required field partitions is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -30928,7 +30467,7 @@ def __ne__(self, other): return not (self == other) -class ReplicationMetrics: +class ReplicationMetrics(object): """ Attributes: - scheduledExecutionId @@ -30939,16 +30478,10 @@ class ReplicationMetrics: - messageFormat """ + thrift_spec = None + - def __init__( - self, - scheduledExecutionId=None, - policy=None, - dumpExecutionId=None, - metadata=None, - progress=None, - messageFormat=None, - ): + def __init__(self, scheduledExecutionId = None, policy = None, dumpExecutionId = None, metadata = None, progress = None, messageFormat = None,): self.scheduledExecutionId = scheduledExecutionId self.policy = policy self.dumpExecutionId = dumpExecutionId @@ -30957,11 +30490,7 @@ def __init__( self.messageFormat = messageFormat def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -30976,9 +30505,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.policy = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.policy = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -30988,23 +30515,334 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.metadata = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.metadata = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.progress = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.messageFormat = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('ReplicationMetrics') + if self.scheduledExecutionId is not None: + oprot.writeFieldBegin('scheduledExecutionId', TType.I64, 1) + oprot.writeI64(self.scheduledExecutionId) + oprot.writeFieldEnd() + if self.policy is not None: + oprot.writeFieldBegin('policy', TType.STRING, 2) + oprot.writeString(self.policy.encode('utf-8') if sys.version_info[0] == 2 else self.policy) + oprot.writeFieldEnd() + if self.dumpExecutionId is not None: + oprot.writeFieldBegin('dumpExecutionId', TType.I64, 3) + oprot.writeI64(self.dumpExecutionId) + oprot.writeFieldEnd() + if self.metadata is not None: + oprot.writeFieldBegin('metadata', TType.STRING, 4) + oprot.writeString(self.metadata.encode('utf-8') if sys.version_info[0] == 2 else self.metadata) + oprot.writeFieldEnd() + if self.progress is not None: + oprot.writeFieldBegin('progress', TType.STRING, 5) + oprot.writeString(self.progress.encode('utf-8') if sys.version_info[0] == 2 else self.progress) + oprot.writeFieldEnd() + if self.messageFormat is not None: + oprot.writeFieldBegin('messageFormat', TType.STRING, 6) + oprot.writeString(self.messageFormat.encode('utf-8') if sys.version_info[0] == 2 else self.messageFormat) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.scheduledExecutionId is None: + raise TProtocolException(message='Required field scheduledExecutionId is unset!') + if self.policy is None: + raise TProtocolException(message='Required field policy is unset!') + if self.dumpExecutionId is None: + raise TProtocolException(message='Required field dumpExecutionId is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 ReplicationMetricList(object): + """ + Attributes: + - replicationMetricList + + """ + thrift_spec = None + + + def __init__(self, replicationMetricList = None,): + self.replicationMetricList = replicationMetricList + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.LIST: + self.replicationMetricList = [] + (_etype1395, _size1392) = iprot.readListBegin() + for _i1396 in range(_size1392): + _elem1397 = ReplicationMetrics() + _elem1397.read(iprot) + self.replicationMetricList.append(_elem1397) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('ReplicationMetricList') + if self.replicationMetricList is not None: + oprot.writeFieldBegin('replicationMetricList', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.replicationMetricList)) + for iter1398 in self.replicationMetricList: + iter1398.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.replicationMetricList is None: + raise TProtocolException(message='Required field replicationMetricList is unset!') + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 GetReplicationMetricsRequest(object): + """ + Attributes: + - scheduledExecutionId + - policy + - dumpExecutionId + + """ + thrift_spec = None + + + def __init__(self, scheduledExecutionId = None, policy = None, dumpExecutionId = None,): + self.scheduledExecutionId = scheduledExecutionId + self.policy = policy + self.dumpExecutionId = dumpExecutionId + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.I64: + self.scheduledExecutionId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.policy = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.dumpExecutionId = iprot.readI64() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('GetReplicationMetricsRequest') + if self.scheduledExecutionId is not None: + oprot.writeFieldBegin('scheduledExecutionId', TType.I64, 1) + oprot.writeI64(self.scheduledExecutionId) + oprot.writeFieldEnd() + if self.policy is not None: + oprot.writeFieldBegin('policy', TType.STRING, 2) + oprot.writeString(self.policy.encode('utf-8') if sys.version_info[0] == 2 else self.policy) + oprot.writeFieldEnd() + if self.dumpExecutionId is not None: + oprot.writeFieldBegin('dumpExecutionId', TType.I64, 3) + oprot.writeI64(self.dumpExecutionId) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 GetOpenTxnsRequest(object): + """ + Attributes: + - excludeTxnTypes + + """ + thrift_spec = None + + + def __init__(self, excludeTxnTypes = None,): + self.excludeTxnTypes = excludeTxnTypes + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.LIST: + self.excludeTxnTypes = [] + (_etype1402, _size1399) = iprot.readListBegin() + for _i1403 in range(_size1399): + _elem1404 = iprot.readI32() + self.excludeTxnTypes.append(_elem1404) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + self.validate() + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('GetOpenTxnsRequest') + if self.excludeTxnTypes is not None: + oprot.writeFieldBegin('excludeTxnTypes', TType.LIST, 1) + oprot.writeListBegin(TType.I32, len(self.excludeTxnTypes)) + for iter1405 in self.excludeTxnTypes: + oprot.writeI32(iter1405) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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 StoredProcedureRequest(object): + """ + Attributes: + - catName + - dbName + - procName + + """ + thrift_spec = None + + + def __init__(self, catName = None, dbName = None, procName = None,): + self.catName = catName + self.dbName = dbName + self.procName = procName + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [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.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) - elif fid == 5: + elif fid == 2: if ftype == TType.STRING: - self.progress = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) - elif fid == 6: + elif fid == 3: if ftype == TType.STRING: - self.messageFormat = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.procName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31013,49 +30851,39 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ReplicationMetrics") - if self.scheduledExecutionId is not None: - oprot.writeFieldBegin("scheduledExecutionId", TType.I64, 1) - oprot.writeI64(self.scheduledExecutionId) - oprot.writeFieldEnd() - if self.policy is not None: - oprot.writeFieldBegin("policy", TType.STRING, 2) - oprot.writeString(self.policy.encode("utf-8") if sys.version_info[0] == 2 else self.policy) - oprot.writeFieldEnd() - if self.dumpExecutionId is not None: - oprot.writeFieldBegin("dumpExecutionId", TType.I64, 3) - oprot.writeI64(self.dumpExecutionId) - oprot.writeFieldEnd() - if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.STRING, 4) - oprot.writeString(self.metadata.encode("utf-8") if sys.version_info[0] == 2 else self.metadata) + oprot.writeStructBegin('StoredProcedureRequest') + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() - if self.progress is not None: - oprot.writeFieldBegin("progress", TType.STRING, 5) - oprot.writeString(self.progress.encode("utf-8") if sys.version_info[0] == 2 else self.progress) + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() - if self.messageFormat is not None: - oprot.writeFieldBegin("messageFormat", TType.STRING, 6) - oprot.writeString(self.messageFormat.encode("utf-8") if sys.version_info[0] == 2 else self.messageFormat) + if self.procName is not None: + oprot.writeFieldBegin('procName', TType.STRING, 3) + oprot.writeString(self.procName.encode('utf-8') if sys.version_info[0] == 2 else self.procName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.scheduledExecutionId is None: - raise TProtocolException(message="Required field scheduledExecutionId is unset!") - if self.policy is None: - raise TProtocolException(message="Required field policy is unset!") - if self.dumpExecutionId is None: - raise TProtocolException(message="Required field dumpExecutionId is unset!") + if self.catName is None: + raise TProtocolException(message='Required field catName is unset!') + if self.dbName is None: + raise TProtocolException(message='Required field dbName is unset!') + if self.procName is None: + raise TProtocolException(message='Required field procName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31064,25 +30892,22 @@ def __ne__(self, other): return not (self == other) -class ReplicationMetricList: +class ListStoredProcedureRequest(object): """ Attributes: - - replicationMetricList + - catName + - dbName """ + thrift_spec = None - def __init__( - self, - replicationMetricList=None, - ): - self.replicationMetricList = replicationMetricList + + def __init__(self, catName = None, dbName = None,): + self.catName = catName + self.dbName = dbName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31091,14 +30916,13 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.LIST: - self.replicationMetricList = [] - (_etype1238, _size1235) = iprot.readListBegin() - for _i1239 in range(_size1235): - _elem1240 = ReplicationMetrics() - _elem1240.read(iprot) - self.replicationMetricList.append(_elem1240) - iprot.readListEnd() + if ftype == TType.STRING: + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31107,28 +30931,31 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ReplicationMetricList") - if self.replicationMetricList is not None: - oprot.writeFieldBegin("replicationMetricList", TType.LIST, 1) - oprot.writeListBegin(TType.STRUCT, len(self.replicationMetricList)) - for iter1241 in self.replicationMetricList: - iter1241.write(oprot) - oprot.writeListEnd() + oprot.writeStructBegin('ListStoredProcedureRequest') + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.replicationMetricList is None: - raise TProtocolException(message="Required field replicationMetricList is unset!") + if self.catName is None: + raise TProtocolException(message='Required field catName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31137,31 +30964,28 @@ def __ne__(self, other): return not (self == other) -class GetReplicationMetricsRequest: +class StoredProcedure(object): """ Attributes: - - scheduledExecutionId - - policy - - dumpExecutionId + - name + - dbName + - catName + - ownerName + - source """ + thrift_spec = None - def __init__( - self, - scheduledExecutionId=None, - policy=None, - dumpExecutionId=None, - ): - self.scheduledExecutionId = scheduledExecutionId - self.policy = policy - self.dumpExecutionId = dumpExecutionId + + def __init__(self, name = None, dbName = None, catName = None, ownerName = None, source = None,): + self.name = name + self.dbName = dbName + self.catName = catName + self.ownerName = ownerName + self.source = source def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31170,20 +30994,28 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I64: - self.scheduledExecutionId = iprot.readI64() + if ftype == TType.STRING: + self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.policy = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I64: - self.dumpExecutionId = iprot.readI64() + if ftype == TType.STRING: + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.ownerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.source = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31192,21 +31024,30 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetReplicationMetricsRequest") - if self.scheduledExecutionId is not None: - oprot.writeFieldBegin("scheduledExecutionId", TType.I64, 1) - oprot.writeI64(self.scheduledExecutionId) + oprot.writeStructBegin('StoredProcedure') + if self.name is not None: + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() - if self.policy is not None: - oprot.writeFieldBegin("policy", TType.STRING, 2) - oprot.writeString(self.policy.encode("utf-8") if sys.version_info[0] == 2 else self.policy) + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() - if self.dumpExecutionId is not None: - oprot.writeFieldBegin("dumpExecutionId", TType.I64, 3) - oprot.writeI64(self.dumpExecutionId) + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 3) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldEnd() + if self.ownerName is not None: + oprot.writeFieldBegin('ownerName', TType.STRING, 4) + oprot.writeString(self.ownerName.encode('utf-8') if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldEnd() + if self.source is not None: + oprot.writeFieldBegin('source', TType.STRING, 5) + oprot.writeString(self.source.encode('utf-8') if sys.version_info[0] == 2 else self.source) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -31215,8 +31056,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31225,25 +31067,30 @@ def __ne__(self, other): return not (self == other) -class GetOpenTxnsRequest: +class AddPackageRequest(object): """ Attributes: - - excludeTxnTypes + - catName + - dbName + - packageName + - ownerName + - header + - body """ + thrift_spec = None - def __init__( - self, - excludeTxnTypes=None, - ): - self.excludeTxnTypes = excludeTxnTypes + + def __init__(self, catName = None, dbName = None, packageName = None, ownerName = None, header = None, body = None,): + self.catName = catName + self.dbName = dbName + self.packageName = packageName + self.ownerName = ownerName + self.header = header + self.body = body def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31252,13 +31099,33 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.LIST: - self.excludeTxnTypes = [] - (_etype1245, _size1242) = iprot.readListBegin() - for _i1246 in range(_size1242): - _elem1247 = iprot.readI32() - self.excludeTxnTypes.append(_elem1247) - iprot.readListEnd() + if ftype == TType.STRING: + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.packageName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.ownerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.header = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.body = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31267,16 +31134,34 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetOpenTxnsRequest") - if self.excludeTxnTypes is not None: - oprot.writeFieldBegin("excludeTxnTypes", TType.LIST, 1) - oprot.writeListBegin(TType.I32, len(self.excludeTxnTypes)) - for iter1248 in self.excludeTxnTypes: - oprot.writeI32(iter1248) - oprot.writeListEnd() + oprot.writeStructBegin('AddPackageRequest') + if self.catName is not None: + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldEnd() + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldEnd() + if self.packageName is not None: + oprot.writeFieldBegin('packageName', TType.STRING, 3) + oprot.writeString(self.packageName.encode('utf-8') if sys.version_info[0] == 2 else self.packageName) + oprot.writeFieldEnd() + if self.ownerName is not None: + oprot.writeFieldBegin('ownerName', TType.STRING, 4) + oprot.writeString(self.ownerName.encode('utf-8') if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldEnd() + if self.header is not None: + oprot.writeFieldBegin('header', TType.STRING, 5) + oprot.writeString(self.header.encode('utf-8') if sys.version_info[0] == 2 else self.header) + oprot.writeFieldEnd() + if self.body is not None: + oprot.writeFieldBegin('body', TType.STRING, 6) + oprot.writeString(self.body.encode('utf-8') if sys.version_info[0] == 2 else self.body) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -31285,8 +31170,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31295,31 +31181,24 @@ def __ne__(self, other): return not (self == other) -class StoredProcedureRequest: +class GetPackageRequest(object): """ Attributes: - catName - dbName - - procName + - packageName """ + thrift_spec = None + - def __init__( - self, - catName=None, - dbName=None, - procName=None, - ): + def __init__(self, catName = None, dbName = None, packageName = None,): self.catName = catName self.dbName = dbName - self.procName = procName + self.packageName = packageName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31329,23 +31208,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.procName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.packageName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31354,37 +31227,39 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("StoredProcedureRequest") + oprot.writeStructBegin('GetPackageRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() - if self.procName is not None: - oprot.writeFieldBegin("procName", TType.STRING, 3) - oprot.writeString(self.procName.encode("utf-8") if sys.version_info[0] == 2 else self.procName) + if self.packageName is not None: + oprot.writeFieldBegin('packageName', TType.STRING, 3) + oprot.writeString(self.packageName.encode('utf-8') if sys.version_info[0] == 2 else self.packageName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") + raise TProtocolException(message='Required field catName is unset!') if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") - if self.procName is None: - raise TProtocolException(message="Required field procName is unset!") + raise TProtocolException(message='Required field dbName is unset!') + if self.packageName is None: + raise TProtocolException(message='Required field packageName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31393,28 +31268,24 @@ def __ne__(self, other): return not (self == other) -class ListStoredProcedureRequest: +class DropPackageRequest(object): """ Attributes: - catName - dbName + - packageName """ + thrift_spec = None + - def __init__( - self, - catName=None, - dbName=None, - ): + def __init__(self, catName = None, dbName = None, packageName = None,): self.catName = catName self.dbName = dbName + self.packageName = packageName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31424,16 +31295,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.packageName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31442,29 +31314,39 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ListStoredProcedureRequest") + oprot.writeStructBegin('DropPackageRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldEnd() + if self.packageName is not None: + oprot.writeFieldBegin('packageName', TType.STRING, 3) + oprot.writeString(self.packageName.encode('utf-8') if sys.version_info[0] == 2 else self.packageName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") + raise TProtocolException(message='Required field catName is unset!') + if self.dbName is None: + raise TProtocolException(message='Required field dbName is unset!') + if self.packageName is None: + raise TProtocolException(message='Required field packageName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31473,37 +31355,22 @@ def __ne__(self, other): return not (self == other) -class StoredProcedure: +class ListPackageRequest(object): """ Attributes: - - name - - dbName - catName - - ownerName - - source + - dbName """ + thrift_spec = None - def __init__( - self, - name=None, - dbName=None, - catName=None, - ownerName=None, - source=None, - ): - self.name = name - self.dbName = dbName + + def __init__(self, catName = None, dbName = None,): self.catName = catName - self.ownerName = ownerName - self.source = source + self.dbName = dbName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31513,37 +31380,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.ownerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.source = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31552,39 +31394,31 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("StoredProcedure") - if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString(self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name) - oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) - oprot.writeFieldEnd() + oprot.writeStructBegin('ListPackageRequest') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 3) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) - oprot.writeFieldEnd() - if self.ownerName is not None: - oprot.writeFieldBegin("ownerName", TType.STRING, 4) - oprot.writeString(self.ownerName.encode("utf-8") if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() - if self.source is not None: - oprot.writeFieldBegin("source", TType.STRING, 5) - oprot.writeString(self.source.encode("utf-8") if sys.version_info[0] == 2 else self.source) + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.catName is None: + raise TProtocolException(message='Required field catName is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31593,7 +31427,7 @@ def __ne__(self, other): return not (self == other) -class AddPackageRequest: +class Package(object): """ Attributes: - catName @@ -31604,16 +31438,10 @@ class AddPackageRequest: - body """ + thrift_spec = None + - def __init__( - self, - catName=None, - dbName=None, - packageName=None, - ownerName=None, - header=None, - body=None, - ): + def __init__(self, catName = None, dbName = None, packageName = None, ownerName = None, header = None, body = None,): self.catName = catName self.dbName = dbName self.packageName = packageName @@ -31622,11 +31450,7 @@ def __init__( self.body = body def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31636,44 +31460,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.catName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.packageName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.packageName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.ownerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.ownerName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.header = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.header = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.body = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.body = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31682,33 +31494,34 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AddPackageRequest") + oprot.writeStructBegin('Package') if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeFieldBegin('catName', TType.STRING, 1) + oprot.writeString(self.catName.encode('utf-8') if sys.version_info[0] == 2 else self.catName) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() if self.packageName is not None: - oprot.writeFieldBegin("packageName", TType.STRING, 3) - oprot.writeString(self.packageName.encode("utf-8") if sys.version_info[0] == 2 else self.packageName) + oprot.writeFieldBegin('packageName', TType.STRING, 3) + oprot.writeString(self.packageName.encode('utf-8') if sys.version_info[0] == 2 else self.packageName) oprot.writeFieldEnd() if self.ownerName is not None: - oprot.writeFieldBegin("ownerName", TType.STRING, 4) - oprot.writeString(self.ownerName.encode("utf-8") if sys.version_info[0] == 2 else self.ownerName) + oprot.writeFieldBegin('ownerName', TType.STRING, 4) + oprot.writeString(self.ownerName.encode('utf-8') if sys.version_info[0] == 2 else self.ownerName) oprot.writeFieldEnd() if self.header is not None: - oprot.writeFieldBegin("header", TType.STRING, 5) - oprot.writeString(self.header.encode("utf-8") if sys.version_info[0] == 2 else self.header) + oprot.writeFieldBegin('header', TType.STRING, 5) + oprot.writeString(self.header.encode('utf-8') if sys.version_info[0] == 2 else self.header) oprot.writeFieldEnd() if self.body is not None: - oprot.writeFieldBegin("body", TType.STRING, 6) - oprot.writeString(self.body.encode("utf-8") if sys.version_info[0] == 2 else self.body) + oprot.writeFieldBegin('body', TType.STRING, 6) + oprot.writeString(self.body.encode('utf-8') if sys.version_info[0] == 2 else self.body) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -31717,8 +31530,9 @@ def validate(self): return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31727,31 +31541,24 @@ def __ne__(self, other): return not (self == other) -class GetPackageRequest: +class GetAllWriteEventInfoRequest(object): """ Attributes: - - catName + - txnId - dbName - - packageName + - tableName """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - packageName=None, - ): - self.catName = catName + + def __init__(self, txnId = None, dbName = None, tableName = None,): + self.txnId = txnId self.dbName = dbName - self.packageName = packageName + self.tableName = tableName def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31760,24 +31567,18 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.I64: + self.txnId = iprot.readI64() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.dbName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.packageName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.tableName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -31786,37 +31587,35 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetPackageRequest") - if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeStructBegin('GetAllWriteEventInfoRequest') + if self.txnId is not None: + oprot.writeFieldBegin('txnId', TType.I64, 1) + oprot.writeI64(self.txnId) oprot.writeFieldEnd() if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeFieldBegin('dbName', TType.STRING, 2) + oprot.writeString(self.dbName.encode('utf-8') if sys.version_info[0] == 2 else self.dbName) oprot.writeFieldEnd() - if self.packageName is not None: - oprot.writeFieldBegin("packageName", TType.STRING, 3) - oprot.writeString(self.packageName.encode("utf-8") if sys.version_info[0] == 2 else self.packageName) + if self.tableName is not None: + oprot.writeFieldBegin('tableName', TType.STRING, 3) + oprot.writeString(self.tableName.encode('utf-8') if sys.version_info[0] == 2 else self.tableName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") - if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") - if self.packageName is None: - raise TProtocolException(message="Required field packageName is unset!") + if self.txnId is None: + raise TProtocolException(message='Required field txnId is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31825,31 +31624,32 @@ def __ne__(self, other): return not (self == other) -class DropPackageRequest: +class DeleteColumnStatisticsRequest(object): """ Attributes: - - catName - - dbName - - packageName + - cat_name + - db_name + - tbl_name + - part_names + - col_names + - engine + - tableLevel """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - packageName=None, - ): - self.catName = catName - self.dbName = dbName - self.packageName = packageName + + def __init__(self, cat_name = None, db_name = None, tbl_name = None, part_names = None, col_names = None, engine = "hive", tableLevel = False,): + self.cat_name = cat_name + self.db_name = db_name + self.tbl_name = tbl_name + self.part_names = part_names + self.col_names = col_names + self.engine = engine + self.tableLevel = tableLevel def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31859,23 +31659,47 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.cat_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.tbl_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.LIST: + self.part_names = [] + (_etype1409, _size1406) = iprot.readListBegin() + for _i1410 in range(_size1406): + _elem1411 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.part_names.append(_elem1411) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.LIST: + self.col_names = [] + (_etype1415, _size1412) = iprot.readListBegin() + for _i1416 in range(_size1412): + _elem1417 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.col_names.append(_elem1417) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.engine = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.packageName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + elif fid == 7: + if ftype == TType.BOOL: + self.tableLevel = iprot.readBool() else: iprot.skip(ftype) else: @@ -31884,37 +31708,59 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("DropPackageRequest") - if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) + oprot.writeStructBegin('DeleteColumnStatisticsRequest') + if self.cat_name is not None: + oprot.writeFieldBegin('cat_name', TType.STRING, 1) + oprot.writeString(self.cat_name.encode('utf-8') if sys.version_info[0] == 2 else self.cat_name) oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 2) + oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name) oprot.writeFieldEnd() - if self.packageName is not None: - oprot.writeFieldBegin("packageName", TType.STRING, 3) - oprot.writeString(self.packageName.encode("utf-8") if sys.version_info[0] == 2 else self.packageName) + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 3) + oprot.writeString(self.tbl_name.encode('utf-8') if sys.version_info[0] == 2 else self.tbl_name) + oprot.writeFieldEnd() + if self.part_names is not None: + oprot.writeFieldBegin('part_names', TType.LIST, 4) + oprot.writeListBegin(TType.STRING, len(self.part_names)) + for iter1418 in self.part_names: + oprot.writeString(iter1418.encode('utf-8') if sys.version_info[0] == 2 else iter1418) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.col_names is not None: + oprot.writeFieldBegin('col_names', TType.LIST, 5) + oprot.writeListBegin(TType.STRING, len(self.col_names)) + for iter1419 in self.col_names: + oprot.writeString(iter1419.encode('utf-8') if sys.version_info[0] == 2 else iter1419) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.engine is not None: + oprot.writeFieldBegin('engine', TType.STRING, 6) + oprot.writeString(self.engine.encode('utf-8') if sys.version_info[0] == 2 else self.engine) + oprot.writeFieldEnd() + if self.tableLevel is not None: + oprot.writeFieldBegin('tableLevel', TType.BOOL, 7) + oprot.writeBool(self.tableLevel) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") - if self.dbName is None: - raise TProtocolException(message="Required field dbName is unset!") - if self.packageName is None: - raise TProtocolException(message="Required field packageName is unset!") + if self.db_name is None: + raise TProtocolException(message='Required field db_name is unset!') + if self.tbl_name is None: + raise TProtocolException(message='Required field tbl_name is unset!') return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -31923,28 +31769,20 @@ def __ne__(self, other): return not (self == other) -class ListPackageRequest: +class ReplayedTxnsForPolicyResult(object): """ Attributes: - - catName - - dbName + - replTxnMapEntry """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - ): - self.catName = catName - self.dbName = dbName + + def __init__(self, replTxnMapEntry = None,): + self.replTxnMapEntry = replTxnMapEntry def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -31953,17 +31791,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + if ftype == TType.MAP: + self.replTxnMapEntry = {} + (_ktype1421, _vtype1422, _size1420) = iprot.readMapBegin() + for _i1424 in range(_size1420): + _key1425 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + _val1426 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() + self.replTxnMapEntry[_key1425] = _val1426 + iprot.readMapEnd() else: iprot.skip(ftype) else: @@ -31972,29 +31807,29 @@ def read(self, iprot): iprot.readStructEnd() def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ListPackageRequest") - if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) - oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) + oprot.writeStructBegin('ReplayedTxnsForPolicyResult') + if self.replTxnMapEntry is not None: + oprot.writeFieldBegin('replTxnMapEntry', TType.MAP, 1) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.replTxnMapEntry)) + for kiter1427, viter1428 in self.replTxnMapEntry.items(): + oprot.writeString(kiter1427.encode('utf-8') if sys.version_info[0] == 2 else kiter1427) + oprot.writeString(viter1428.encode('utf-8') if sys.version_info[0] == 2 else viter1428) + oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.catName is None: - raise TProtocolException(message="Required field catName is unset!") return def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32003,122 +31838,59 @@ def __ne__(self, other): return not (self == other) -class Package: +class MetaException(TException): """ Attributes: - - catName - - dbName - - packageName - - ownerName - - header - - body + - message """ + thrift_spec = None - def __init__( - self, - catName=None, - dbName=None, - packageName=None, - ownerName=None, - header=None, - body=None, - ): - self.catName = catName - self.dbName = dbName - self.packageName = packageName - self.ownerName = ownerName - self.header = header - self.body = body - def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): - iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) - return + def __init__(self, message = None,): + super(MetaException, self).__setattr__('message', message) + + def __setattr__(self, *args): + raise TypeError("can't modify immutable instance") + + def __delattr__(self, *args): + raise TypeError("can't modify immutable instance") + + def __hash__(self): + return hash(self.__class__) ^ hash((self.message, )) + + @classmethod + def read(cls, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: + return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() + message = None while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: - self.catName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.packageName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.ownerName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.header = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.STRING: - self.body = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() + return cls( + message=message, + ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Package") - if self.catName is not None: - oprot.writeFieldBegin("catName", TType.STRING, 1) - oprot.writeString(self.catName.encode("utf-8") if sys.version_info[0] == 2 else self.catName) - oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) - oprot.writeFieldEnd() - if self.packageName is not None: - oprot.writeFieldBegin("packageName", TType.STRING, 3) - oprot.writeString(self.packageName.encode("utf-8") if sys.version_info[0] == 2 else self.packageName) - oprot.writeFieldEnd() - if self.ownerName is not None: - oprot.writeFieldBegin("ownerName", TType.STRING, 4) - oprot.writeString(self.ownerName.encode("utf-8") if sys.version_info[0] == 2 else self.ownerName) - oprot.writeFieldEnd() - if self.header is not None: - oprot.writeFieldBegin("header", TType.STRING, 5) - oprot.writeString(self.header.encode("utf-8") if sys.version_info[0] == 2 else self.header) - oprot.writeFieldEnd() - if self.body is not None: - oprot.writeFieldBegin("body", TType.STRING, 6) - oprot.writeString(self.body.encode("utf-8") if sys.version_info[0] == 2 else self.body) + oprot.writeStructBegin('MetaException') + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32126,9 +31898,13 @@ def write(self, oprot): def validate(self): return + def __str__(self): + return repr(self) + def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32137,90 +31913,73 @@ def __ne__(self, other): return not (self == other) -class GetAllWriteEventInfoRequest: +class UnknownTableException(TException): """ Attributes: - - txnId - - dbName - - tableName + - message """ + thrift_spec = None - def __init__( - self, - txnId=None, - dbName=None, - tableName=None, - ): - self.txnId = txnId - self.dbName = dbName - self.tableName = tableName - def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): - iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) - return + def __init__(self, message = None,): + super(UnknownTableException, self).__setattr__('message', message) + + def __setattr__(self, *args): + raise TypeError("can't modify immutable instance") + + def __delattr__(self, *args): + raise TypeError("can't modify immutable instance") + + def __hash__(self): + return hash(self.__class__) ^ hash((self.message, )) + + @classmethod + def read(cls, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: + return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() + message = None while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I64: - self.txnId = iprot.readI64() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.dbName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: if ftype == TType.STRING: - self.tableName = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() + return cls( + message=message, + ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("GetAllWriteEventInfoRequest") - if self.txnId is not None: - oprot.writeFieldBegin("txnId", TType.I64, 1) - oprot.writeI64(self.txnId) - oprot.writeFieldEnd() - if self.dbName is not None: - oprot.writeFieldBegin("dbName", TType.STRING, 2) - oprot.writeString(self.dbName.encode("utf-8") if sys.version_info[0] == 2 else self.dbName) - oprot.writeFieldEnd() - if self.tableName is not None: - oprot.writeFieldBegin("tableName", TType.STRING, 3) - oprot.writeString(self.tableName.encode("utf-8") if sys.version_info[0] == 2 else self.tableName) + oprot.writeStructBegin('UnknownTableException') + if self.message is not None: + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.txnId is None: - raise TProtocolException(message="Required field txnId is unset!") return + def __str__(self): + return repr(self) + def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32229,18 +31988,17 @@ def __ne__(self, other): return not (self == other) -class MetaException(TException): +class UnknownDBException(TException): """ Attributes: - message """ + thrift_spec = None - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + + def __init__(self, message = None,): + super(UnknownDBException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32249,15 +32007,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32267,9 +32021,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -32281,13 +32033,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("MetaException") + oprot.writeStructBegin('UnknownDBException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32299,8 +32052,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32309,18 +32063,17 @@ def __ne__(self, other): return not (self == other) -class UnknownTableException(TException): +class AlreadyExistsException(TException): """ Attributes: - message """ + thrift_spec = None + - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + def __init__(self, message = None,): + super(AlreadyExistsException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32329,15 +32082,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32347,9 +32096,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -32361,13 +32108,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("UnknownTableException") + oprot.writeStructBegin('AlreadyExistsException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32379,8 +32127,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32389,18 +32138,17 @@ def __ne__(self, other): return not (self == other) -class UnknownDBException(TException): +class InvalidPartitionException(TException): """ Attributes: - message """ + thrift_spec = None - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + + def __init__(self, message = None,): + super(InvalidPartitionException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32409,15 +32157,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32427,9 +32171,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -32441,13 +32183,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("UnknownDBException") + oprot.writeStructBegin('InvalidPartitionException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32459,8 +32202,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32469,18 +32213,17 @@ def __ne__(self, other): return not (self == other) -class AlreadyExistsException(TException): +class UnknownPartitionException(TException): """ Attributes: - message """ + thrift_spec = None + - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + def __init__(self, message = None,): + super(UnknownPartitionException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32489,15 +32232,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32507,9 +32246,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -32521,13 +32258,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("AlreadyExistsException") + oprot.writeStructBegin('UnknownPartitionException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32539,8 +32277,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32549,18 +32288,17 @@ def __ne__(self, other): return not (self == other) -class InvalidPartitionException(TException): +class InvalidObjectException(TException): """ Attributes: - message """ + thrift_spec = None - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + + def __init__(self, message = None,): + super(InvalidObjectException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32569,15 +32307,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32587,9 +32321,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -32601,13 +32333,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("InvalidPartitionException") + oprot.writeStructBegin('InvalidObjectException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32619,8 +32352,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32629,18 +32363,17 @@ def __ne__(self, other): return not (self == other) -class UnknownPartitionException(TException): +class NoSuchObjectException(TException): """ Attributes: - message """ + thrift_spec = None + - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + def __init__(self, message = None,): + super(NoSuchObjectException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32649,15 +32382,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32667,9 +32396,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -32681,13 +32408,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("UnknownPartitionException") + oprot.writeStructBegin('NoSuchObjectException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32699,8 +32427,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32709,18 +32438,17 @@ def __ne__(self, other): return not (self == other) -class InvalidObjectException(TException): +class InvalidOperationException(TException): """ Attributes: - message """ + thrift_spec = None - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + + def __init__(self, message = None,): + super(InvalidOperationException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32729,15 +32457,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32747,9 +32471,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -32761,13 +32483,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("InvalidObjectException") + oprot.writeStructBegin('InvalidOperationException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32779,8 +32502,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32789,18 +32513,17 @@ def __ne__(self, other): return not (self == other) -class NoSuchObjectException(TException): +class ConfigValSecurityException(TException): """ Attributes: - message """ + thrift_spec = None + - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + def __init__(self, message = None,): + super(ConfigValSecurityException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32809,15 +32532,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32827,9 +32546,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -32841,13 +32558,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NoSuchObjectException") + oprot.writeStructBegin('ConfigValSecurityException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32859,8 +32577,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32869,18 +32588,17 @@ def __ne__(self, other): return not (self == other) -class InvalidOperationException(TException): +class InvalidInputException(TException): """ Attributes: - message """ + thrift_spec = None - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + + def __init__(self, message = None,): + super(InvalidInputException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32889,15 +32607,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32907,9 +32621,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -32921,13 +32633,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("InvalidOperationException") + oprot.writeStructBegin('InvalidInputException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -32939,8 +32652,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -32949,18 +32663,17 @@ def __ne__(self, other): return not (self == other) -class ConfigValSecurityException(TException): +class NoSuchTxnException(TException): """ Attributes: - message """ + thrift_spec = None + - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + def __init__(self, message = None,): + super(NoSuchTxnException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -32969,15 +32682,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -32987,9 +32696,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -33001,13 +32708,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ConfigValSecurityException") + oprot.writeStructBegin('NoSuchTxnException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -33019,8 +32727,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -33029,18 +32738,17 @@ def __ne__(self, other): return not (self == other) -class InvalidInputException(TException): +class TxnAbortedException(TException): """ Attributes: - message """ + thrift_spec = None - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + + def __init__(self, message = None,): + super(TxnAbortedException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -33049,15 +32757,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -33067,9 +32771,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -33081,13 +32783,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("InvalidInputException") + oprot.writeStructBegin('TxnAbortedException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -33099,8 +32802,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -33109,18 +32813,17 @@ def __ne__(self, other): return not (self == other) -class NoSuchTxnException(TException): +class TxnOpenException(TException): """ Attributes: - message """ + thrift_spec = None + - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + def __init__(self, message = None,): + super(TxnOpenException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -33129,15 +32832,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -33147,9 +32846,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -33161,13 +32858,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NoSuchTxnException") + oprot.writeStructBegin('TxnOpenException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -33179,8 +32877,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -33189,18 +32888,17 @@ def __ne__(self, other): return not (self == other) -class TxnAbortedException(TException): +class NoSuchLockException(TException): """ Attributes: - message """ + thrift_spec = None - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + + def __init__(self, message = None,): + super(NoSuchLockException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -33209,15 +32907,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -33227,9 +32921,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -33241,13 +32933,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TxnAbortedException") + oprot.writeStructBegin('NoSuchLockException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -33259,8 +32952,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -33269,18 +32963,17 @@ def __ne__(self, other): return not (self == other) -class TxnOpenException(TException): +class CompactionAbortedException(TException): """ Attributes: - message """ + thrift_spec = None - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + + def __init__(self, message = None,): + super(CompactionAbortedException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -33289,15 +32982,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -33307,9 +32996,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -33321,13 +33008,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("TxnOpenException") + oprot.writeStructBegin('CompactionAbortedException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -33339,8 +33027,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ @@ -33349,18 +33038,17 @@ def __ne__(self, other): return not (self == other) -class NoSuchLockException(TException): +class NoSuchCompactionException(TException): """ Attributes: - message """ + thrift_spec = None - def __init__( - self, - message=None, - ): - super().__setattr__("message", message) + + def __init__(self, message = None,): + super(NoSuchCompactionException, self).__setattr__('message', message) def __setattr__(self, *args): raise TypeError("can't modify immutable instance") @@ -33369,15 +33057,11 @@ def __delattr__(self, *args): raise TypeError("can't modify immutable instance") def __hash__(self): - return hash(self.__class__) ^ hash((self.message,)) + return hash(self.__class__) ^ hash((self.message, )) @classmethod def read(cls, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and cls.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None: return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec]) iprot.readStructBegin() message = None @@ -33387,9 +33071,7 @@ def read(cls, iprot): break if fid == 1: if ftype == TType.STRING: - message = ( - iprot.readString().decode("utf-8", errors="replace") if sys.version_info[0] == 2 else iprot.readString() - ) + message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -33401,13 +33083,14 @@ def read(cls, iprot): ) def write(self, oprot): + self.validate() if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("NoSuchLockException") + oprot.writeStructBegin('NoSuchCompactionException') if self.message is not None: - oprot.writeFieldBegin("message", TType.STRING, 1) - oprot.writeString(self.message.encode("utf-8") if sys.version_info[0] == 2 else self.message) + oprot.writeFieldBegin('message', TType.STRING, 1) + oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -33419,8087 +33102,2254 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["{}={!r}".format(key, value) for key, value in self.__dict__.items()] - return "{}({})".format(self.__class__.__name__, ", ".join(L)) + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.items()] + 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) - - all_structs.append(Version) Version.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "version", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "comments", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'version', 'UTF8', None, ), # 1 + (2, TType.STRING, 'comments', 'UTF8', None, ), # 2 ) all_structs.append(FieldSchema) FieldSchema.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "type", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "comment", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'type', 'UTF8', None, ), # 2 + (3, TType.STRING, 'comment', 'UTF8', None, ), # 3 ) all_structs.append(EnvironmentContext) EnvironmentContext.thrift_spec = ( None, # 0 - ( - 1, - TType.MAP, - "properties", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 1 + (1, TType.MAP, 'properties', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1 ) all_structs.append(SQLPrimaryKey) SQLPrimaryKey.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "table_db", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "table_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "column_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "key_seq", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "pk_name", - "UTF8", - None, - ), # 5 - ( - 6, - TType.BOOL, - "enable_cstr", - None, - None, - ), # 6 - ( - 7, - TType.BOOL, - "validate_cstr", - None, - None, - ), # 7 - ( - 8, - TType.BOOL, - "rely_cstr", - None, - None, - ), # 8 - ( - 9, - TType.STRING, - "catName", - "UTF8", - None, - ), # 9 + (1, TType.STRING, 'table_db', 'UTF8', None, ), # 1 + (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'column_name', 'UTF8', None, ), # 3 + (4, TType.I32, 'key_seq', None, None, ), # 4 + (5, TType.STRING, 'pk_name', 'UTF8', None, ), # 5 + (6, TType.BOOL, 'enable_cstr', None, None, ), # 6 + (7, TType.BOOL, 'validate_cstr', None, None, ), # 7 + (8, TType.BOOL, 'rely_cstr', None, None, ), # 8 + (9, TType.STRING, 'catName', 'UTF8', None, ), # 9 ) all_structs.append(SQLForeignKey) SQLForeignKey.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "pktable_db", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "pktable_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "pkcolumn_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "fktable_db", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "fktable_name", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "fkcolumn_name", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I32, - "key_seq", - None, - None, - ), # 7 - ( - 8, - TType.I32, - "update_rule", - None, - None, - ), # 8 - ( - 9, - TType.I32, - "delete_rule", - None, - None, - ), # 9 - ( - 10, - TType.STRING, - "fk_name", - "UTF8", - None, - ), # 10 - ( - 11, - TType.STRING, - "pk_name", - "UTF8", - None, - ), # 11 - ( - 12, - TType.BOOL, - "enable_cstr", - None, - None, - ), # 12 - ( - 13, - TType.BOOL, - "validate_cstr", - None, - None, - ), # 13 - ( - 14, - TType.BOOL, - "rely_cstr", - None, - None, - ), # 14 - ( - 15, - TType.STRING, - "catName", - "UTF8", - None, - ), # 15 + (1, TType.STRING, 'pktable_db', 'UTF8', None, ), # 1 + (2, TType.STRING, 'pktable_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pkcolumn_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'fktable_db', 'UTF8', None, ), # 4 + (5, TType.STRING, 'fktable_name', 'UTF8', None, ), # 5 + (6, TType.STRING, 'fkcolumn_name', 'UTF8', None, ), # 6 + (7, TType.I32, 'key_seq', None, None, ), # 7 + (8, TType.I32, 'update_rule', None, None, ), # 8 + (9, TType.I32, 'delete_rule', None, None, ), # 9 + (10, TType.STRING, 'fk_name', 'UTF8', None, ), # 10 + (11, TType.STRING, 'pk_name', 'UTF8', None, ), # 11 + (12, TType.BOOL, 'enable_cstr', None, None, ), # 12 + (13, TType.BOOL, 'validate_cstr', None, None, ), # 13 + (14, TType.BOOL, 'rely_cstr', None, None, ), # 14 + (15, TType.STRING, 'catName', 'UTF8', None, ), # 15 ) all_structs.append(SQLUniqueConstraint) SQLUniqueConstraint.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "table_db", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "table_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "column_name", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I32, - "key_seq", - None, - None, - ), # 5 - ( - 6, - TType.STRING, - "uk_name", - "UTF8", - None, - ), # 6 - ( - 7, - TType.BOOL, - "enable_cstr", - None, - None, - ), # 7 - ( - 8, - TType.BOOL, - "validate_cstr", - None, - None, - ), # 8 - ( - 9, - TType.BOOL, - "rely_cstr", - None, - None, - ), # 9 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'table_db', 'UTF8', None, ), # 2 + (3, TType.STRING, 'table_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'column_name', 'UTF8', None, ), # 4 + (5, TType.I32, 'key_seq', None, None, ), # 5 + (6, TType.STRING, 'uk_name', 'UTF8', None, ), # 6 + (7, TType.BOOL, 'enable_cstr', None, None, ), # 7 + (8, TType.BOOL, 'validate_cstr', None, None, ), # 8 + (9, TType.BOOL, 'rely_cstr', None, None, ), # 9 ) all_structs.append(SQLNotNullConstraint) SQLNotNullConstraint.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "table_db", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "table_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "column_name", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "nn_name", - "UTF8", - None, - ), # 5 - ( - 6, - TType.BOOL, - "enable_cstr", - None, - None, - ), # 6 - ( - 7, - TType.BOOL, - "validate_cstr", - None, - None, - ), # 7 - ( - 8, - TType.BOOL, - "rely_cstr", - None, - None, - ), # 8 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'table_db', 'UTF8', None, ), # 2 + (3, TType.STRING, 'table_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'column_name', 'UTF8', None, ), # 4 + (5, TType.STRING, 'nn_name', 'UTF8', None, ), # 5 + (6, TType.BOOL, 'enable_cstr', None, None, ), # 6 + (7, TType.BOOL, 'validate_cstr', None, None, ), # 7 + (8, TType.BOOL, 'rely_cstr', None, None, ), # 8 ) all_structs.append(SQLDefaultConstraint) SQLDefaultConstraint.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "table_db", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "table_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "column_name", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "default_value", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "dc_name", - "UTF8", - None, - ), # 6 - ( - 7, - TType.BOOL, - "enable_cstr", - None, - None, - ), # 7 - ( - 8, - TType.BOOL, - "validate_cstr", - None, - None, - ), # 8 - ( - 9, - TType.BOOL, - "rely_cstr", - None, - None, - ), # 9 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'table_db', 'UTF8', None, ), # 2 + (3, TType.STRING, 'table_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'column_name', 'UTF8', None, ), # 4 + (5, TType.STRING, 'default_value', 'UTF8', None, ), # 5 + (6, TType.STRING, 'dc_name', 'UTF8', None, ), # 6 + (7, TType.BOOL, 'enable_cstr', None, None, ), # 7 + (8, TType.BOOL, 'validate_cstr', None, None, ), # 8 + (9, TType.BOOL, 'rely_cstr', None, None, ), # 9 ) all_structs.append(SQLCheckConstraint) SQLCheckConstraint.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "table_db", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "table_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "column_name", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "check_expression", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "dc_name", - "UTF8", - None, - ), # 6 - ( - 7, - TType.BOOL, - "enable_cstr", - None, - None, - ), # 7 - ( - 8, - TType.BOOL, - "validate_cstr", - None, - None, - ), # 8 - ( - 9, - TType.BOOL, - "rely_cstr", - None, - None, - ), # 9 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'table_db', 'UTF8', None, ), # 2 + (3, TType.STRING, 'table_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'column_name', 'UTF8', None, ), # 4 + (5, TType.STRING, 'check_expression', 'UTF8', None, ), # 5 + (6, TType.STRING, 'dc_name', 'UTF8', None, ), # 6 + (7, TType.BOOL, 'enable_cstr', None, None, ), # 7 + (8, TType.BOOL, 'validate_cstr', None, None, ), # 8 + (9, TType.BOOL, 'rely_cstr', None, None, ), # 9 ) all_structs.append(SQLAllTableConstraints) SQLAllTableConstraints.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "primaryKeys", - (TType.STRUCT, [SQLPrimaryKey, None], False), - None, - ), # 1 - ( - 2, - TType.LIST, - "foreignKeys", - (TType.STRUCT, [SQLForeignKey, None], False), - None, - ), # 2 - ( - 3, - TType.LIST, - "uniqueConstraints", - (TType.STRUCT, [SQLUniqueConstraint, None], False), - None, - ), # 3 - ( - 4, - TType.LIST, - "notNullConstraints", - (TType.STRUCT, [SQLNotNullConstraint, None], False), - None, - ), # 4 - ( - 5, - TType.LIST, - "defaultConstraints", - (TType.STRUCT, [SQLDefaultConstraint, None], False), - None, - ), # 5 - ( - 6, - TType.LIST, - "checkConstraints", - (TType.STRUCT, [SQLCheckConstraint, None], False), - None, - ), # 6 + (1, TType.LIST, 'primaryKeys', (TType.STRUCT, [SQLPrimaryKey, None], False), None, ), # 1 + (2, TType.LIST, 'foreignKeys', (TType.STRUCT, [SQLForeignKey, None], False), None, ), # 2 + (3, TType.LIST, 'uniqueConstraints', (TType.STRUCT, [SQLUniqueConstraint, None], False), None, ), # 3 + (4, TType.LIST, 'notNullConstraints', (TType.STRUCT, [SQLNotNullConstraint, None], False), None, ), # 4 + (5, TType.LIST, 'defaultConstraints', (TType.STRUCT, [SQLDefaultConstraint, None], False), None, ), # 5 + (6, TType.LIST, 'checkConstraints', (TType.STRUCT, [SQLCheckConstraint, None], False), None, ), # 6 ) all_structs.append(Type) Type.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "type1", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "type2", - "UTF8", - None, - ), # 3 - ( - 4, - TType.LIST, - "fields", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 4 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'type1', 'UTF8', None, ), # 2 + (3, TType.STRING, 'type2', 'UTF8', None, ), # 3 + (4, TType.LIST, 'fields', (TType.STRUCT, [FieldSchema, None], False), None, ), # 4 +) +all_structs.append(PropertySetRequest) +PropertySetRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'nameSpace', 'UTF8', None, ), # 1 + (2, TType.MAP, 'propertyMap', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2 +) +all_structs.append(PropertyGetRequest) +PropertyGetRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'nameSpace', 'UTF8', None, ), # 1 + (2, TType.STRING, 'mapPrefix', 'UTF8', None, ), # 2 + (3, TType.STRING, 'mapPredicate', 'UTF8', None, ), # 3 + (4, TType.LIST, 'mapSelection', (TType.STRING, 'UTF8', False), None, ), # 4 +) +all_structs.append(PropertyGetResponse) +PropertyGetResponse.thrift_spec = ( + None, # 0 + (1, TType.MAP, 'properties', (TType.STRING, 'UTF8', TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 1 ) all_structs.append(HiveObjectRef) HiveObjectRef.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "objectType", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "objectName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.LIST, - "partValues", - (TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.STRING, - "columnName", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "catName", - "UTF8", - None, - ), # 6 + (1, TType.I32, 'objectType', None, None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'objectName', 'UTF8', None, ), # 3 + (4, TType.LIST, 'partValues', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.STRING, 'columnName', 'UTF8', None, ), # 5 + (6, TType.STRING, 'catName', 'UTF8', None, ), # 6 ) all_structs.append(PrivilegeGrantInfo) PrivilegeGrantInfo.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "privilege", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I32, - "createTime", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "grantor", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "grantorType", - None, - None, - ), # 4 - ( - 5, - TType.BOOL, - "grantOption", - None, - None, - ), # 5 + (1, TType.STRING, 'privilege', 'UTF8', None, ), # 1 + (2, TType.I32, 'createTime', None, None, ), # 2 + (3, TType.STRING, 'grantor', 'UTF8', None, ), # 3 + (4, TType.I32, 'grantorType', None, None, ), # 4 + (5, TType.BOOL, 'grantOption', None, None, ), # 5 ) all_structs.append(HiveObjectPrivilege) HiveObjectPrivilege.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "hiveObject", - [HiveObjectRef, None], - None, - ), # 1 - ( - 2, - TType.STRING, - "principalName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I32, - "principalType", - None, - None, - ), # 3 - ( - 4, - TType.STRUCT, - "grantInfo", - [PrivilegeGrantInfo, None], - None, - ), # 4 - ( - 5, - TType.STRING, - "authorizer", - "UTF8", - None, - ), # 5 + (1, TType.STRUCT, 'hiveObject', [HiveObjectRef, None], None, ), # 1 + (2, TType.STRING, 'principalName', 'UTF8', None, ), # 2 + (3, TType.I32, 'principalType', None, None, ), # 3 + (4, TType.STRUCT, 'grantInfo', [PrivilegeGrantInfo, None], None, ), # 4 + (5, TType.STRING, 'authorizer', 'UTF8', None, ), # 5 ) all_structs.append(PrivilegeBag) PrivilegeBag.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "privileges", - (TType.STRUCT, [HiveObjectPrivilege, None], False), - None, - ), # 1 + (1, TType.LIST, 'privileges', (TType.STRUCT, [HiveObjectPrivilege, None], False), None, ), # 1 ) all_structs.append(PrincipalPrivilegeSet) PrincipalPrivilegeSet.thrift_spec = ( None, # 0 - ( - 1, - TType.MAP, - "userPrivileges", - (TType.STRING, "UTF8", TType.LIST, (TType.STRUCT, [PrivilegeGrantInfo, None], False), False), - None, - ), # 1 - ( - 2, - TType.MAP, - "groupPrivileges", - (TType.STRING, "UTF8", TType.LIST, (TType.STRUCT, [PrivilegeGrantInfo, None], False), False), - None, - ), # 2 - ( - 3, - TType.MAP, - "rolePrivileges", - (TType.STRING, "UTF8", TType.LIST, (TType.STRUCT, [PrivilegeGrantInfo, None], False), False), - None, - ), # 3 + (1, TType.MAP, 'userPrivileges', (TType.STRING, 'UTF8', TType.LIST, (TType.STRUCT, [PrivilegeGrantInfo, None], False), False), None, ), # 1 + (2, TType.MAP, 'groupPrivileges', (TType.STRING, 'UTF8', TType.LIST, (TType.STRUCT, [PrivilegeGrantInfo, None], False), False), None, ), # 2 + (3, TType.MAP, 'rolePrivileges', (TType.STRING, 'UTF8', TType.LIST, (TType.STRUCT, [PrivilegeGrantInfo, None], False), False), None, ), # 3 ) all_structs.append(GrantRevokePrivilegeRequest) GrantRevokePrivilegeRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "requestType", - None, - None, - ), # 1 - ( - 2, - TType.STRUCT, - "privileges", - [PrivilegeBag, None], - None, - ), # 2 - ( - 3, - TType.BOOL, - "revokeGrantOption", - None, - None, - ), # 3 + (1, TType.I32, 'requestType', None, None, ), # 1 + (2, TType.STRUCT, 'privileges', [PrivilegeBag, None], None, ), # 2 + (3, TType.BOOL, 'revokeGrantOption', None, None, ), # 3 ) all_structs.append(GrantRevokePrivilegeResponse) GrantRevokePrivilegeResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.BOOL, - "success", - None, - None, - ), # 1 + (1, TType.BOOL, 'success', None, None, ), # 1 ) all_structs.append(TruncateTableRequest) TruncateTableRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "partNames", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.I64, - "writeId", - None, - -1, - ), # 4 - ( - 5, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRUCT, - "environmentContext", - [EnvironmentContext, None], - None, - ), # 6 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.LIST, 'partNames', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.I64, 'writeId', None, -1, ), # 4 + (5, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 5 + (6, TType.STRUCT, 'environmentContext', [EnvironmentContext, None], None, ), # 6 ) all_structs.append(TruncateTableResponse) -TruncateTableResponse.thrift_spec = () +TruncateTableResponse.thrift_spec = ( +) all_structs.append(Role) Role.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "roleName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I32, - "createTime", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "ownerName", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'roleName', 'UTF8', None, ), # 1 + (2, TType.I32, 'createTime', None, None, ), # 2 + (3, TType.STRING, 'ownerName', 'UTF8', None, ), # 3 ) all_structs.append(RolePrincipalGrant) RolePrincipalGrant.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "roleName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "principalName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I32, - "principalType", - None, - None, - ), # 3 - ( - 4, - TType.BOOL, - "grantOption", - None, - None, - ), # 4 - ( - 5, - TType.I32, - "grantTime", - None, - None, - ), # 5 - ( - 6, - TType.STRING, - "grantorName", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I32, - "grantorPrincipalType", - None, - None, - ), # 7 + (1, TType.STRING, 'roleName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'principalName', 'UTF8', None, ), # 2 + (3, TType.I32, 'principalType', None, None, ), # 3 + (4, TType.BOOL, 'grantOption', None, None, ), # 4 + (5, TType.I32, 'grantTime', None, None, ), # 5 + (6, TType.STRING, 'grantorName', 'UTF8', None, ), # 6 + (7, TType.I32, 'grantorPrincipalType', None, None, ), # 7 ) all_structs.append(GetRoleGrantsForPrincipalRequest) GetRoleGrantsForPrincipalRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "principal_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I32, - "principal_type", - None, - None, - ), # 2 + (1, TType.STRING, 'principal_name', 'UTF8', None, ), # 1 + (2, TType.I32, 'principal_type', None, None, ), # 2 ) all_structs.append(GetRoleGrantsForPrincipalResponse) GetRoleGrantsForPrincipalResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "principalGrants", - (TType.STRUCT, [RolePrincipalGrant, None], False), - None, - ), # 1 + (1, TType.LIST, 'principalGrants', (TType.STRUCT, [RolePrincipalGrant, None], False), None, ), # 1 ) all_structs.append(GetPrincipalsInRoleRequest) GetPrincipalsInRoleRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "roleName", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'roleName', 'UTF8', None, ), # 1 ) all_structs.append(GetPrincipalsInRoleResponse) GetPrincipalsInRoleResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "principalGrants", - (TType.STRUCT, [RolePrincipalGrant, None], False), - None, - ), # 1 + (1, TType.LIST, 'principalGrants', (TType.STRUCT, [RolePrincipalGrant, None], False), None, ), # 1 ) all_structs.append(GrantRevokeRoleRequest) GrantRevokeRoleRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "requestType", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "roleName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "principalName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "principalType", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "grantor", - "UTF8", - None, - ), # 5 - ( - 6, - TType.I32, - "grantorType", - None, - None, - ), # 6 - ( - 7, - TType.BOOL, - "grantOption", - None, - None, - ), # 7 + (1, TType.I32, 'requestType', None, None, ), # 1 + (2, TType.STRING, 'roleName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'principalName', 'UTF8', None, ), # 3 + (4, TType.I32, 'principalType', None, None, ), # 4 + (5, TType.STRING, 'grantor', 'UTF8', None, ), # 5 + (6, TType.I32, 'grantorType', None, None, ), # 6 + (7, TType.BOOL, 'grantOption', None, None, ), # 7 ) all_structs.append(GrantRevokeRoleResponse) GrantRevokeRoleResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.BOOL, - "success", - None, - None, - ), # 1 + (1, TType.BOOL, 'success', None, None, ), # 1 ) all_structs.append(Catalog) Catalog.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "description", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "locationUri", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "createTime", - None, - None, - ), # 4 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'description', 'UTF8', None, ), # 2 + (3, TType.STRING, 'locationUri', 'UTF8', None, ), # 3 + (4, TType.I32, 'createTime', None, None, ), # 4 ) all_structs.append(CreateCatalogRequest) CreateCatalogRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "catalog", - [Catalog, None], - None, - ), # 1 + (1, TType.STRUCT, 'catalog', [Catalog, None], None, ), # 1 ) all_structs.append(AlterCatalogRequest) AlterCatalogRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRUCT, - "newCat", - [Catalog, None], - None, - ), # 2 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'newCat', [Catalog, None], None, ), # 2 ) all_structs.append(GetCatalogRequest) GetCatalogRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 ) all_structs.append(GetCatalogResponse) GetCatalogResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "catalog", - [Catalog, None], - None, - ), # 1 + (1, TType.STRUCT, 'catalog', [Catalog, None], None, ), # 1 ) all_structs.append(GetCatalogsResponse) GetCatalogsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "names", - (TType.STRING, "UTF8", False), - None, - ), # 1 + (1, TType.LIST, 'names', (TType.STRING, 'UTF8', False), None, ), # 1 ) all_structs.append(DropCatalogRequest) DropCatalogRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.BOOL, 'ifExists', None, True, ), # 2 ) all_structs.append(Database) Database.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "description", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "locationUri", - "UTF8", - None, - ), # 3 - ( - 4, - TType.MAP, - "parameters", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.STRUCT, - "privileges", - [PrincipalPrivilegeSet, None], - None, - ), # 5 - ( - 6, - TType.STRING, - "ownerName", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I32, - "ownerType", - None, - None, - ), # 7 - ( - 8, - TType.STRING, - "catalogName", - "UTF8", - None, - ), # 8 - ( - 9, - TType.I32, - "createTime", - None, - None, - ), # 9 - ( - 10, - TType.STRING, - "managedLocationUri", - "UTF8", - None, - ), # 10 - ( - 11, - TType.I32, - "type", - None, - None, - ), # 11 - ( - 12, - TType.STRING, - "connector_name", - "UTF8", - None, - ), # 12 - ( - 13, - TType.STRING, - "remote_dbname", - "UTF8", - None, - ), # 13 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'description', 'UTF8', None, ), # 2 + (3, TType.STRING, 'locationUri', 'UTF8', None, ), # 3 + (4, TType.MAP, 'parameters', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.STRUCT, 'privileges', [PrincipalPrivilegeSet, None], None, ), # 5 + (6, TType.STRING, 'ownerName', 'UTF8', None, ), # 6 + (7, TType.I32, 'ownerType', None, None, ), # 7 + (8, TType.STRING, 'catalogName', 'UTF8', None, ), # 8 + (9, TType.I32, 'createTime', None, None, ), # 9 + (10, TType.STRING, 'managedLocationUri', 'UTF8', None, ), # 10 + (11, TType.I32, 'type', None, None, ), # 11 + (12, TType.STRING, 'connector_name', 'UTF8', None, ), # 12 + (13, TType.STRING, 'remote_dbname', 'UTF8', None, ), # 13 +) +all_structs.append(GetDatabaseObjectsRequest) +GetDatabaseObjectsRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'catalogName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'pattern', 'UTF8', None, ), # 2 +) +all_structs.append(GetDatabaseObjectsResponse) +GetDatabaseObjectsResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'databases', (TType.STRUCT, [Database, None], False), None, ), # 1 ) all_structs.append(SerDeInfo) SerDeInfo.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "serializationLib", - "UTF8", - None, - ), # 2 - ( - 3, - TType.MAP, - "parameters", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.STRING, - "description", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "serializerClass", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "deserializerClass", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I32, - "serdeType", - None, - None, - ), # 7 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'serializationLib', 'UTF8', None, ), # 2 + (3, TType.MAP, 'parameters', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.STRING, 'description', 'UTF8', None, ), # 4 + (5, TType.STRING, 'serializerClass', 'UTF8', None, ), # 5 + (6, TType.STRING, 'deserializerClass', 'UTF8', None, ), # 6 + (7, TType.I32, 'serdeType', None, None, ), # 7 ) all_structs.append(Order) Order.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "col", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I32, - "order", - None, - None, - ), # 2 + (1, TType.STRING, 'col', 'UTF8', None, ), # 1 + (2, TType.I32, 'order', None, None, ), # 2 ) all_structs.append(SkewedInfo) SkewedInfo.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "skewedColNames", - (TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.LIST, - "skewedColValues", - (TType.LIST, (TType.STRING, "UTF8", False), False), - None, - ), # 2 - ( - 3, - TType.MAP, - "skewedColValueLocationMaps", - (TType.LIST, (TType.STRING, "UTF8", False), TType.STRING, "UTF8", False), - None, - ), # 3 + (1, TType.LIST, 'skewedColNames', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.LIST, 'skewedColValues', (TType.LIST, (TType.STRING, 'UTF8', False), False), None, ), # 2 + (3, TType.MAP, 'skewedColValueLocationMaps', (TType.LIST, (TType.STRING, 'UTF8', False), TType.STRING, 'UTF8', False), None, ), # 3 ) all_structs.append(StorageDescriptor) StorageDescriptor.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "cols", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 1 - ( - 2, - TType.STRING, - "location", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "inputFormat", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "outputFormat", - "UTF8", - None, - ), # 4 - ( - 5, - TType.BOOL, - "compressed", - None, - None, - ), # 5 - ( - 6, - TType.I32, - "numBuckets", - None, - None, - ), # 6 - ( - 7, - TType.STRUCT, - "serdeInfo", - [SerDeInfo, None], - None, - ), # 7 - ( - 8, - TType.LIST, - "bucketCols", - (TType.STRING, "UTF8", False), - None, - ), # 8 - ( - 9, - TType.LIST, - "sortCols", - (TType.STRUCT, [Order, None], False), - None, - ), # 9 - ( - 10, - TType.MAP, - "parameters", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 10 - ( - 11, - TType.STRUCT, - "skewedInfo", - [SkewedInfo, None], - None, - ), # 11 - ( - 12, - TType.BOOL, - "storedAsSubDirectories", - None, - None, - ), # 12 + (1, TType.LIST, 'cols', (TType.STRUCT, [FieldSchema, None], False), None, ), # 1 + (2, TType.STRING, 'location', 'UTF8', None, ), # 2 + (3, TType.STRING, 'inputFormat', 'UTF8', None, ), # 3 + (4, TType.STRING, 'outputFormat', 'UTF8', None, ), # 4 + (5, TType.BOOL, 'compressed', None, None, ), # 5 + (6, TType.I32, 'numBuckets', None, None, ), # 6 + (7, TType.STRUCT, 'serdeInfo', [SerDeInfo, None], None, ), # 7 + (8, TType.LIST, 'bucketCols', (TType.STRING, 'UTF8', False), None, ), # 8 + (9, TType.LIST, 'sortCols', (TType.STRUCT, [Order, None], False), None, ), # 9 + (10, TType.MAP, 'parameters', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 10 + (11, TType.STRUCT, 'skewedInfo', [SkewedInfo, None], None, ), # 11 + (12, TType.BOOL, 'storedAsSubDirectories', None, None, ), # 12 ) all_structs.append(CreationMetadata) CreationMetadata.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.SET, - "tablesUsed", - (TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.STRING, - "validTxnList", - "UTF8", - None, - ), # 5 - ( - 6, - TType.I64, - "materializationTime", - None, - None, - ), # 6 - ( - 7, - TType.LIST, - "sourceTables", - (TType.STRUCT, [SourceTable, None], False), - None, - ), # 7 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.SET, 'tablesUsed', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.STRING, 'validTxnList', 'UTF8', None, ), # 5 + (6, TType.I64, 'materializationTime', None, None, ), # 6 + (7, TType.LIST, 'sourceTables', (TType.STRUCT, [SourceTable, None], False), None, ), # 7 ) all_structs.append(BooleanColumnStatsData) BooleanColumnStatsData.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "numTrues", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "numFalses", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "numNulls", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "bitVectors", - "BINARY", - None, - ), # 4 + (1, TType.I64, 'numTrues', None, None, ), # 1 + (2, TType.I64, 'numFalses', None, None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.STRING, 'bitVectors', 'BINARY', None, ), # 4 ) all_structs.append(DoubleColumnStatsData) DoubleColumnStatsData.thrift_spec = ( None, # 0 - ( - 1, - TType.DOUBLE, - "lowValue", - None, - None, - ), # 1 - ( - 2, - TType.DOUBLE, - "highValue", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "numNulls", - None, - None, - ), # 3 - ( - 4, - TType.I64, - "numDVs", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "bitVectors", - "BINARY", - None, - ), # 5 + (1, TType.DOUBLE, 'lowValue', None, None, ), # 1 + (2, TType.DOUBLE, 'highValue', None, None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', 'BINARY', None, ), # 5 + (6, TType.STRING, 'histogram', 'BINARY', None, ), # 6 ) all_structs.append(LongColumnStatsData) LongColumnStatsData.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "lowValue", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "highValue", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "numNulls", - None, - None, - ), # 3 - ( - 4, - TType.I64, - "numDVs", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "bitVectors", - "BINARY", - None, - ), # 5 + (1, TType.I64, 'lowValue', None, None, ), # 1 + (2, TType.I64, 'highValue', None, None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', 'BINARY', None, ), # 5 + (6, TType.STRING, 'histogram', 'BINARY', None, ), # 6 ) all_structs.append(StringColumnStatsData) StringColumnStatsData.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "maxColLen", - None, - None, - ), # 1 - ( - 2, - TType.DOUBLE, - "avgColLen", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "numNulls", - None, - None, - ), # 3 - ( - 4, - TType.I64, - "numDVs", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "bitVectors", - "BINARY", - None, - ), # 5 + (1, TType.I64, 'maxColLen', None, None, ), # 1 + (2, TType.DOUBLE, 'avgColLen', None, None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', 'BINARY', None, ), # 5 ) all_structs.append(BinaryColumnStatsData) BinaryColumnStatsData.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "maxColLen", - None, - None, - ), # 1 - ( - 2, - TType.DOUBLE, - "avgColLen", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "numNulls", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "bitVectors", - "BINARY", - None, - ), # 4 + (1, TType.I64, 'maxColLen', None, None, ), # 1 + (2, TType.DOUBLE, 'avgColLen', None, None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.STRING, 'bitVectors', 'BINARY', None, ), # 4 ) all_structs.append(Decimal) Decimal.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "unscaled", - "BINARY", - None, - ), # 1 + (1, TType.STRING, 'unscaled', 'BINARY', None, ), # 1 None, # 2 - ( - 3, - TType.I16, - "scale", - None, - None, - ), # 3 + (3, TType.I16, 'scale', None, None, ), # 3 ) all_structs.append(DecimalColumnStatsData) DecimalColumnStatsData.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "lowValue", - [Decimal, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "highValue", - [Decimal, None], - None, - ), # 2 - ( - 3, - TType.I64, - "numNulls", - None, - None, - ), # 3 - ( - 4, - TType.I64, - "numDVs", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "bitVectors", - "BINARY", - None, - ), # 5 + (1, TType.STRUCT, 'lowValue', [Decimal, None], None, ), # 1 + (2, TType.STRUCT, 'highValue', [Decimal, None], None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', 'BINARY', None, ), # 5 + (6, TType.STRING, 'histogram', 'BINARY', None, ), # 6 ) all_structs.append(Date) Date.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "daysSinceEpoch", - None, - None, - ), # 1 + (1, TType.I64, 'daysSinceEpoch', None, None, ), # 1 ) all_structs.append(DateColumnStatsData) DateColumnStatsData.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "lowValue", - [Date, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "highValue", - [Date, None], - None, - ), # 2 - ( - 3, - TType.I64, - "numNulls", - None, - None, - ), # 3 - ( - 4, - TType.I64, - "numDVs", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "bitVectors", - "BINARY", - None, - ), # 5 + (1, TType.STRUCT, 'lowValue', [Date, None], None, ), # 1 + (2, TType.STRUCT, 'highValue', [Date, None], None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', 'BINARY', None, ), # 5 + (6, TType.STRING, 'histogram', 'BINARY', None, ), # 6 ) all_structs.append(Timestamp) Timestamp.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "secondsSinceEpoch", - None, - None, - ), # 1 + (1, TType.I64, 'secondsSinceEpoch', None, None, ), # 1 ) all_structs.append(TimestampColumnStatsData) TimestampColumnStatsData.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "lowValue", - [Timestamp, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "highValue", - [Timestamp, None], - None, - ), # 2 - ( - 3, - TType.I64, - "numNulls", - None, - None, - ), # 3 - ( - 4, - TType.I64, - "numDVs", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "bitVectors", - "BINARY", - None, - ), # 5 + (1, TType.STRUCT, 'lowValue', [Timestamp, None], None, ), # 1 + (2, TType.STRUCT, 'highValue', [Timestamp, None], None, ), # 2 + (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', 'BINARY', None, ), # 5 + (6, TType.STRING, 'histogram', 'BINARY', None, ), # 6 ) all_structs.append(ColumnStatisticsData) ColumnStatisticsData.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "booleanStats", - [BooleanColumnStatsData, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "longStats", - [LongColumnStatsData, None], - None, - ), # 2 - ( - 3, - TType.STRUCT, - "doubleStats", - [DoubleColumnStatsData, None], - None, - ), # 3 - ( - 4, - TType.STRUCT, - "stringStats", - [StringColumnStatsData, None], - None, - ), # 4 - ( - 5, - TType.STRUCT, - "binaryStats", - [BinaryColumnStatsData, None], - None, - ), # 5 - ( - 6, - TType.STRUCT, - "decimalStats", - [DecimalColumnStatsData, None], - None, - ), # 6 - ( - 7, - TType.STRUCT, - "dateStats", - [DateColumnStatsData, None], - None, - ), # 7 - ( - 8, - TType.STRUCT, - "timestampStats", - [TimestampColumnStatsData, None], - None, - ), # 8 + (1, TType.STRUCT, 'booleanStats', [BooleanColumnStatsData, None], None, ), # 1 + (2, TType.STRUCT, 'longStats', [LongColumnStatsData, None], None, ), # 2 + (3, TType.STRUCT, 'doubleStats', [DoubleColumnStatsData, None], None, ), # 3 + (4, TType.STRUCT, 'stringStats', [StringColumnStatsData, None], None, ), # 4 + (5, TType.STRUCT, 'binaryStats', [BinaryColumnStatsData, None], None, ), # 5 + (6, TType.STRUCT, 'decimalStats', [DecimalColumnStatsData, None], None, ), # 6 + (7, TType.STRUCT, 'dateStats', [DateColumnStatsData, None], None, ), # 7 + (8, TType.STRUCT, 'timestampStats', [TimestampColumnStatsData, None], None, ), # 8 ) all_structs.append(ColumnStatisticsObj) ColumnStatisticsObj.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "colName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "colType", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "statsData", - [ColumnStatisticsData, None], - None, - ), # 3 + (1, TType.STRING, 'colName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'colType', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'statsData', [ColumnStatisticsData, None], None, ), # 3 ) all_structs.append(ColumnStatisticsDesc) ColumnStatisticsDesc.thrift_spec = ( None, # 0 - ( - 1, - TType.BOOL, - "isTblLevel", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "partName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I64, - "lastAnalyzed", - None, - None, - ), # 5 - ( - 6, - TType.STRING, - "catName", - "UTF8", - None, - ), # 6 + (1, TType.BOOL, 'isTblLevel', None, None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'partName', 'UTF8', None, ), # 4 + (5, TType.I64, 'lastAnalyzed', None, None, ), # 5 + (6, TType.STRING, 'catName', 'UTF8', None, ), # 6 ) all_structs.append(ColumnStatistics) ColumnStatistics.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "statsDesc", - [ColumnStatisticsDesc, None], - None, - ), # 1 - ( - 2, - TType.LIST, - "statsObj", - (TType.STRUCT, [ColumnStatisticsObj, None], False), - None, - ), # 2 - ( - 3, - TType.BOOL, - "isStatsCompliant", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "engine", - "UTF8", - None, - ), # 4 + (1, TType.STRUCT, 'statsDesc', [ColumnStatisticsDesc, None], None, ), # 1 + (2, TType.LIST, 'statsObj', (TType.STRUCT, [ColumnStatisticsObj, None], False), None, ), # 2 + (3, TType.BOOL, 'isStatsCompliant', None, None, ), # 3 + (4, TType.STRING, 'engine', 'UTF8', "hive", ), # 4 ) all_structs.append(FileMetadata) FileMetadata.thrift_spec = ( None, # 0 - ( - 1, - TType.BYTE, - "type", - None, - 1, - ), # 1 - ( - 2, - TType.BYTE, - "version", - None, - 1, - ), # 2 - ( - 3, - TType.LIST, - "data", - (TType.STRING, "BINARY", False), - None, - ), # 3 + (1, TType.BYTE, 'type', None, 1, ), # 1 + (2, TType.BYTE, 'version', None, 1, ), # 2 + (3, TType.LIST, 'data', (TType.STRING, 'BINARY', False), None, ), # 3 ) all_structs.append(ObjectDictionary) ObjectDictionary.thrift_spec = ( None, # 0 - ( - 1, - TType.MAP, - "values", - (TType.STRING, "UTF8", TType.LIST, (TType.STRING, "BINARY", False), False), - None, - ), # 1 + (1, TType.MAP, 'values', (TType.STRING, 'UTF8', TType.LIST, (TType.STRING, 'BINARY', False), False), None, ), # 1 ) all_structs.append(Table) Table.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "owner", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "createTime", - None, - None, - ), # 4 - ( - 5, - TType.I32, - "lastAccessTime", - None, - None, - ), # 5 - ( - 6, - TType.I32, - "retention", - None, - None, - ), # 6 - ( - 7, - TType.STRUCT, - "sd", - [StorageDescriptor, None], - None, - ), # 7 - ( - 8, - TType.LIST, - "partitionKeys", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 8 - ( - 9, - TType.MAP, - "parameters", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 9 - ( - 10, - TType.STRING, - "viewOriginalText", - "UTF8", - None, - ), # 10 - ( - 11, - TType.STRING, - "viewExpandedText", - "UTF8", - None, - ), # 11 - ( - 12, - TType.STRING, - "tableType", - "UTF8", - None, - ), # 12 - ( - 13, - TType.STRUCT, - "privileges", - [PrincipalPrivilegeSet, None], - None, - ), # 13 - ( - 14, - TType.BOOL, - "temporary", - None, - False, - ), # 14 - ( - 15, - TType.BOOL, - "rewriteEnabled", - None, - None, - ), # 15 - ( - 16, - TType.STRUCT, - "creationMetadata", - [CreationMetadata, None], - None, - ), # 16 - ( - 17, - TType.STRING, - "catName", - "UTF8", - None, - ), # 17 - ( - 18, - TType.I32, - "ownerType", - None, - 1, - ), # 18 - ( - 19, - TType.I64, - "writeId", - None, - -1, - ), # 19 - ( - 20, - TType.BOOL, - "isStatsCompliant", - None, - None, - ), # 20 - ( - 21, - TType.STRUCT, - "colStats", - [ColumnStatistics, None], - None, - ), # 21 - ( - 22, - TType.BYTE, - "accessType", - None, - None, - ), # 22 - ( - 23, - TType.LIST, - "requiredReadCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 23 - ( - 24, - TType.LIST, - "requiredWriteCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 24 - ( - 25, - TType.I64, - "id", - None, - None, - ), # 25 - ( - 26, - TType.STRUCT, - "fileMetadata", - [FileMetadata, None], - None, - ), # 26 - ( - 27, - TType.STRUCT, - "dictionary", - [ObjectDictionary, None], - None, - ), # 27 - ( - 28, - TType.I64, - "txnId", - None, - None, - ), # 28 + (1, TType.STRING, 'tableName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'owner', 'UTF8', None, ), # 3 + (4, TType.I32, 'createTime', None, None, ), # 4 + (5, TType.I32, 'lastAccessTime', None, None, ), # 5 + (6, TType.I32, 'retention', None, None, ), # 6 + (7, TType.STRUCT, 'sd', [StorageDescriptor, None], None, ), # 7 + (8, TType.LIST, 'partitionKeys', (TType.STRUCT, [FieldSchema, None], False), None, ), # 8 + (9, TType.MAP, 'parameters', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 9 + (10, TType.STRING, 'viewOriginalText', 'UTF8', None, ), # 10 + (11, TType.STRING, 'viewExpandedText', 'UTF8', None, ), # 11 + (12, TType.STRING, 'tableType', 'UTF8', None, ), # 12 + (13, TType.STRUCT, 'privileges', [PrincipalPrivilegeSet, None], None, ), # 13 + (14, TType.BOOL, 'temporary', None, False, ), # 14 + (15, TType.BOOL, 'rewriteEnabled', None, None, ), # 15 + (16, TType.STRUCT, 'creationMetadata', [CreationMetadata, None], None, ), # 16 + (17, TType.STRING, 'catName', 'UTF8', None, ), # 17 + (18, TType.I32, 'ownerType', None, 1, ), # 18 + (19, TType.I64, 'writeId', None, -1, ), # 19 + (20, TType.BOOL, 'isStatsCompliant', None, None, ), # 20 + (21, TType.STRUCT, 'colStats', [ColumnStatistics, None], None, ), # 21 + (22, TType.BYTE, 'accessType', None, None, ), # 22 + (23, TType.LIST, 'requiredReadCapabilities', (TType.STRING, 'UTF8', False), None, ), # 23 + (24, TType.LIST, 'requiredWriteCapabilities', (TType.STRING, 'UTF8', False), None, ), # 24 + (25, TType.I64, 'id', None, None, ), # 25 + (26, TType.STRUCT, 'fileMetadata', [FileMetadata, None], None, ), # 26 + (27, TType.STRUCT, 'dictionary', [ObjectDictionary, None], None, ), # 27 + (28, TType.I64, 'txnId', None, None, ), # 28 ) all_structs.append(SourceTable) SourceTable.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "table", - [Table, None], - None, - ), # 1 - ( - 2, - TType.I64, - "insertedCount", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "updatedCount", - None, - None, - ), # 3 - ( - 4, - TType.I64, - "deletedCount", - None, - None, - ), # 4 + (1, TType.STRUCT, 'table', [Table, None], None, ), # 1 + (2, TType.I64, 'insertedCount', None, None, ), # 2 + (3, TType.I64, 'updatedCount', None, None, ), # 3 + (4, TType.I64, 'deletedCount', None, None, ), # 4 ) all_structs.append(Partition) Partition.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "values", - (TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "createTime", - None, - None, - ), # 4 - ( - 5, - TType.I32, - "lastAccessTime", - None, - None, - ), # 5 - ( - 6, - TType.STRUCT, - "sd", - [StorageDescriptor, None], - None, - ), # 6 - ( - 7, - TType.MAP, - "parameters", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 7 - ( - 8, - TType.STRUCT, - "privileges", - [PrincipalPrivilegeSet, None], - None, - ), # 8 - ( - 9, - TType.STRING, - "catName", - "UTF8", - None, - ), # 9 - ( - 10, - TType.I64, - "writeId", - None, - -1, - ), # 10 - ( - 11, - TType.BOOL, - "isStatsCompliant", - None, - None, - ), # 11 - ( - 12, - TType.STRUCT, - "colStats", - [ColumnStatistics, None], - None, - ), # 12 - ( - 13, - TType.STRUCT, - "fileMetadata", - [FileMetadata, None], - None, - ), # 13 + (1, TType.LIST, 'values', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableName', 'UTF8', None, ), # 3 + (4, TType.I32, 'createTime', None, None, ), # 4 + (5, TType.I32, 'lastAccessTime', None, None, ), # 5 + (6, TType.STRUCT, 'sd', [StorageDescriptor, None], None, ), # 6 + (7, TType.MAP, 'parameters', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 7 + (8, TType.STRUCT, 'privileges', [PrincipalPrivilegeSet, None], None, ), # 8 + (9, TType.STRING, 'catName', 'UTF8', None, ), # 9 + (10, TType.I64, 'writeId', None, -1, ), # 10 + (11, TType.BOOL, 'isStatsCompliant', None, None, ), # 11 + (12, TType.STRUCT, 'colStats', [ColumnStatistics, None], None, ), # 12 + (13, TType.STRUCT, 'fileMetadata', [FileMetadata, None], None, ), # 13 ) all_structs.append(PartitionWithoutSD) PartitionWithoutSD.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "values", - (TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.I32, - "createTime", - None, - None, - ), # 2 - ( - 3, - TType.I32, - "lastAccessTime", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "relativePath", - "UTF8", - None, - ), # 4 - ( - 5, - TType.MAP, - "parameters", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 5 - ( - 6, - TType.STRUCT, - "privileges", - [PrincipalPrivilegeSet, None], - None, - ), # 6 + (1, TType.LIST, 'values', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.I32, 'createTime', None, None, ), # 2 + (3, TType.I32, 'lastAccessTime', None, None, ), # 3 + (4, TType.STRING, 'relativePath', 'UTF8', None, ), # 4 + (5, TType.MAP, 'parameters', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.STRUCT, 'privileges', [PrincipalPrivilegeSet, None], None, ), # 6 ) all_structs.append(PartitionSpecWithSharedSD) PartitionSpecWithSharedSD.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitions", - (TType.STRUCT, [PartitionWithoutSD, None], False), - None, - ), # 1 - ( - 2, - TType.STRUCT, - "sd", - [StorageDescriptor, None], - None, - ), # 2 + (1, TType.LIST, 'partitions', (TType.STRUCT, [PartitionWithoutSD, None], False), None, ), # 1 + (2, TType.STRUCT, 'sd', [StorageDescriptor, None], None, ), # 2 ) all_structs.append(PartitionListComposingSpec) PartitionListComposingSpec.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitions", - (TType.STRUCT, [Partition, None], False), - None, - ), # 1 + (1, TType.LIST, 'partitions', (TType.STRUCT, [Partition, None], False), None, ), # 1 ) all_structs.append(PartitionSpec) PartitionSpec.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "rootPath", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRUCT, - "sharedSDPartitionSpec", - [PartitionSpecWithSharedSD, None], - None, - ), # 4 - ( - 5, - TType.STRUCT, - "partitionList", - [PartitionListComposingSpec, None], - None, - ), # 5 - ( - 6, - TType.STRING, - "catName", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I64, - "writeId", - None, - -1, - ), # 7 - ( - 8, - TType.BOOL, - "isStatsCompliant", - None, - None, - ), # 8 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'rootPath', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'sharedSDPartitionSpec', [PartitionSpecWithSharedSD, None], None, ), # 4 + (5, TType.STRUCT, 'partitionList', [PartitionListComposingSpec, None], None, ), # 5 + (6, TType.STRING, 'catName', 'UTF8', None, ), # 6 + (7, TType.I64, 'writeId', None, -1, ), # 7 + (8, TType.BOOL, 'isStatsCompliant', None, None, ), # 8 ) all_structs.append(AggrStats) AggrStats.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "colStats", - (TType.STRUCT, [ColumnStatisticsObj, None], False), - None, - ), # 1 - ( - 2, - TType.I64, - "partsFound", - None, - None, - ), # 2 - ( - 3, - TType.BOOL, - "isStatsCompliant", - None, - None, - ), # 3 + (1, TType.LIST, 'colStats', (TType.STRUCT, [ColumnStatisticsObj, None], False), None, ), # 1 + (2, TType.I64, 'partsFound', None, None, ), # 2 + (3, TType.BOOL, 'isStatsCompliant', None, None, ), # 3 ) all_structs.append(SetPartitionsStatsRequest) SetPartitionsStatsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "colStats", - (TType.STRUCT, [ColumnStatistics, None], False), - None, - ), # 1 - ( - 2, - TType.BOOL, - "needMerge", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "writeId", - None, - -1, - ), # 3 - ( - 4, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "engine", - "UTF8", - None, - ), # 5 + (1, TType.LIST, 'colStats', (TType.STRUCT, [ColumnStatistics, None], False), None, ), # 1 + (2, TType.BOOL, 'needMerge', None, None, ), # 2 + (3, TType.I64, 'writeId', None, -1, ), # 3 + (4, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 4 + (5, TType.STRING, 'engine', 'UTF8', "hive", ), # 5 ) all_structs.append(SetPartitionsStatsResponse) SetPartitionsStatsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.BOOL, - "result", - None, - None, - ), # 1 + (1, TType.BOOL, 'result', None, None, ), # 1 ) all_structs.append(Schema) Schema.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "fieldSchemas", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 1 - ( - 2, - TType.MAP, - "properties", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 2 + (1, TType.LIST, 'fieldSchemas', (TType.STRUCT, [FieldSchema, None], False), None, ), # 1 + (2, TType.MAP, 'properties', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2 ) all_structs.append(PrimaryKeysRequest) PrimaryKeysRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "catName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I64, - "tableId", - None, - -1, - ), # 5 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'catName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 ) all_structs.append(PrimaryKeysResponse) PrimaryKeysResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "primaryKeys", - (TType.STRUCT, [SQLPrimaryKey, None], False), - None, - ), # 1 + (1, TType.LIST, 'primaryKeys', (TType.STRUCT, [SQLPrimaryKey, None], False), None, ), # 1 ) all_structs.append(ForeignKeysRequest) ForeignKeysRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "parent_db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "parent_tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "foreign_db_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "foreign_tbl_name", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "catName", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I64, - "tableId", - None, - -1, - ), # 7 + (1, TType.STRING, 'parent_db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'parent_tbl_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'foreign_db_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'foreign_tbl_name', 'UTF8', None, ), # 4 + (5, TType.STRING, 'catName', 'UTF8', None, ), # 5 + (6, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 6 + (7, TType.I64, 'tableId', None, -1, ), # 7 ) all_structs.append(ForeignKeysResponse) ForeignKeysResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "foreignKeys", - (TType.STRUCT, [SQLForeignKey, None], False), - None, - ), # 1 + (1, TType.LIST, 'foreignKeys', (TType.STRUCT, [SQLForeignKey, None], False), None, ), # 1 ) all_structs.append(UniqueConstraintsRequest) UniqueConstraintsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I64, - "tableId", - None, - -1, - ), # 5 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'db_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tbl_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 ) all_structs.append(UniqueConstraintsResponse) UniqueConstraintsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "uniqueConstraints", - (TType.STRUCT, [SQLUniqueConstraint, None], False), - None, - ), # 1 + (1, TType.LIST, 'uniqueConstraints', (TType.STRUCT, [SQLUniqueConstraint, None], False), None, ), # 1 ) all_structs.append(NotNullConstraintsRequest) NotNullConstraintsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I64, - "tableId", - None, - -1, - ), # 5 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'db_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tbl_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 ) all_structs.append(NotNullConstraintsResponse) NotNullConstraintsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "notNullConstraints", - (TType.STRUCT, [SQLNotNullConstraint, None], False), - None, - ), # 1 + (1, TType.LIST, 'notNullConstraints', (TType.STRUCT, [SQLNotNullConstraint, None], False), None, ), # 1 ) all_structs.append(DefaultConstraintsRequest) DefaultConstraintsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I64, - "tableId", - None, - -1, - ), # 5 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'db_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tbl_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 ) all_structs.append(DefaultConstraintsResponse) DefaultConstraintsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "defaultConstraints", - (TType.STRUCT, [SQLDefaultConstraint, None], False), - None, - ), # 1 + (1, TType.LIST, 'defaultConstraints', (TType.STRUCT, [SQLDefaultConstraint, None], False), None, ), # 1 ) all_structs.append(CheckConstraintsRequest) CheckConstraintsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I64, - "tableId", - None, - -1, - ), # 5 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'db_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tbl_name', 'UTF8', None, ), # 3 + (4, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 ) all_structs.append(CheckConstraintsResponse) CheckConstraintsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "checkConstraints", - (TType.STRUCT, [SQLCheckConstraint, None], False), - None, - ), # 1 + (1, TType.LIST, 'checkConstraints', (TType.STRUCT, [SQLCheckConstraint, None], False), None, ), # 1 ) all_structs.append(AllTableConstraintsRequest) AllTableConstraintsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "catName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I64, - "tableId", - None, - -1, - ), # 5 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'catName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 4 + (5, TType.I64, 'tableId', None, -1, ), # 5 ) all_structs.append(AllTableConstraintsResponse) AllTableConstraintsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "allTableConstraints", - [SQLAllTableConstraints, None], - None, - ), # 1 + (1, TType.STRUCT, 'allTableConstraints', [SQLAllTableConstraints, None], None, ), # 1 ) all_structs.append(DropConstraintRequest) DropConstraintRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "constraintname", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "catName", - "UTF8", - None, - ), # 4 + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tablename', 'UTF8', None, ), # 2 + (3, TType.STRING, 'constraintname', 'UTF8', None, ), # 3 + (4, TType.STRING, 'catName', 'UTF8', None, ), # 4 ) all_structs.append(AddPrimaryKeyRequest) AddPrimaryKeyRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "primaryKeyCols", - (TType.STRUCT, [SQLPrimaryKey, None], False), - None, - ), # 1 + (1, TType.LIST, 'primaryKeyCols', (TType.STRUCT, [SQLPrimaryKey, None], False), None, ), # 1 ) all_structs.append(AddForeignKeyRequest) AddForeignKeyRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "foreignKeyCols", - (TType.STRUCT, [SQLForeignKey, None], False), - None, - ), # 1 + (1, TType.LIST, 'foreignKeyCols', (TType.STRUCT, [SQLForeignKey, None], False), None, ), # 1 ) all_structs.append(AddUniqueConstraintRequest) AddUniqueConstraintRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "uniqueConstraintCols", - (TType.STRUCT, [SQLUniqueConstraint, None], False), - None, - ), # 1 + (1, TType.LIST, 'uniqueConstraintCols', (TType.STRUCT, [SQLUniqueConstraint, None], False), None, ), # 1 ) all_structs.append(AddNotNullConstraintRequest) AddNotNullConstraintRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "notNullConstraintCols", - (TType.STRUCT, [SQLNotNullConstraint, None], False), - None, - ), # 1 + (1, TType.LIST, 'notNullConstraintCols', (TType.STRUCT, [SQLNotNullConstraint, None], False), None, ), # 1 ) all_structs.append(AddDefaultConstraintRequest) AddDefaultConstraintRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "defaultConstraintCols", - (TType.STRUCT, [SQLDefaultConstraint, None], False), - None, - ), # 1 + (1, TType.LIST, 'defaultConstraintCols', (TType.STRUCT, [SQLDefaultConstraint, None], False), None, ), # 1 ) all_structs.append(AddCheckConstraintRequest) AddCheckConstraintRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "checkConstraintCols", - (TType.STRUCT, [SQLCheckConstraint, None], False), - None, - ), # 1 + (1, TType.LIST, 'checkConstraintCols', (TType.STRUCT, [SQLCheckConstraint, None], False), None, ), # 1 ) all_structs.append(PartitionsByExprResult) PartitionsByExprResult.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitions", - (TType.STRUCT, [Partition, None], False), - None, - ), # 1 - ( - 2, - TType.BOOL, - "hasUnknownPartitions", - None, - None, - ), # 2 + (1, TType.LIST, 'partitions', (TType.STRUCT, [Partition, None], False), None, ), # 1 + (2, TType.BOOL, 'hasUnknownPartitions', None, None, ), # 2 ) all_structs.append(PartitionsSpecByExprResult) PartitionsSpecByExprResult.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitionsSpec", - (TType.STRUCT, [PartitionSpec, None], False), - None, - ), # 1 - ( - 2, - TType.BOOL, - "hasUnknownPartitions", - None, - None, - ), # 2 + (1, TType.LIST, 'partitionsSpec', (TType.STRUCT, [PartitionSpec, None], False), None, ), # 1 + (2, TType.BOOL, 'hasUnknownPartitions', None, None, ), # 2 ) all_structs.append(PartitionsByExprRequest) PartitionsByExprRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "expr", - "BINARY", - None, - ), # 3 - ( - 4, - TType.STRING, - "defaultPartitionName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I16, - "maxParts", - None, - -1, - ), # 5 - ( - 6, - TType.STRING, - "catName", - "UTF8", - None, - ), # 6 - ( - 7, - TType.STRING, - "order", - "UTF8", - None, - ), # 7 - ( - 8, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 8 - ( - 9, - TType.I64, - "id", - None, - -1, - ), # 9 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'expr', 'BINARY', None, ), # 3 + (4, TType.STRING, 'defaultPartitionName', 'UTF8', None, ), # 4 + (5, TType.I16, 'maxParts', None, -1, ), # 5 + (6, TType.STRING, 'catName', 'UTF8', None, ), # 6 + (7, TType.STRING, 'order', 'UTF8', None, ), # 7 + (8, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 8 + (9, TType.I64, 'id', None, -1, ), # 9 + (10, TType.BOOL, 'skipColumnSchemaForPartition', None, None, ), # 10 + (11, TType.STRING, 'includeParamKeyPattern', 'UTF8', None, ), # 11 + (12, TType.STRING, 'excludeParamKeyPattern', 'UTF8', None, ), # 12 ) all_structs.append(TableStatsResult) TableStatsResult.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "tableStats", - (TType.STRUCT, [ColumnStatisticsObj, None], False), - None, - ), # 1 - ( - 2, - TType.BOOL, - "isStatsCompliant", - None, - None, - ), # 2 + (1, TType.LIST, 'tableStats', (TType.STRUCT, [ColumnStatisticsObj, None], False), None, ), # 1 + (2, TType.BOOL, 'isStatsCompliant', None, None, ), # 2 ) all_structs.append(PartitionsStatsResult) PartitionsStatsResult.thrift_spec = ( None, # 0 - ( - 1, - TType.MAP, - "partStats", - (TType.STRING, "UTF8", TType.LIST, (TType.STRUCT, [ColumnStatisticsObj, None], False), False), - None, - ), # 1 - ( - 2, - TType.BOOL, - "isStatsCompliant", - None, - None, - ), # 2 + (1, TType.MAP, 'partStats', (TType.STRING, 'UTF8', TType.LIST, (TType.STRUCT, [ColumnStatisticsObj, None], False), False), None, ), # 1 + (2, TType.BOOL, 'isStatsCompliant', None, None, ), # 2 ) all_structs.append(TableStatsRequest) TableStatsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "colNames", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.STRING, - "catName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "engine", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I64, - "id", - None, - -1, - ), # 7 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.LIST, 'colNames', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.STRING, 'catName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 5 + (6, TType.STRING, 'engine', 'UTF8', "hive", ), # 6 + (7, TType.I64, 'id', None, -1, ), # 7 ) all_structs.append(PartitionsStatsRequest) PartitionsStatsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "colNames", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.LIST, - "partNames", - (TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.STRING, - "catName", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 6 - ( - 7, - TType.STRING, - "engine", - "UTF8", - None, - ), # 7 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.LIST, 'colNames', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.LIST, 'partNames', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.STRING, 'catName', 'UTF8', None, ), # 5 + (6, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 6 + (7, TType.STRING, 'engine', 'UTF8', "hive", ), # 7 ) all_structs.append(AddPartitionsResult) AddPartitionsResult.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitions", - (TType.STRUCT, [Partition, None], False), - None, - ), # 1 - ( - 2, - TType.BOOL, - "isStatsCompliant", - None, - None, - ), # 2 + (1, TType.LIST, 'partitions', (TType.STRUCT, [Partition, None], False), None, ), # 1 + (2, TType.BOOL, 'isStatsCompliant', None, None, ), # 2 + (3, TType.LIST, 'partitionColSchema', (TType.STRUCT, [FieldSchema, None], False), None, ), # 3 ) all_structs.append(AddPartitionsRequest) AddPartitionsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "parts", - (TType.STRUCT, [Partition, None], False), - None, - ), # 3 - ( - 4, - TType.BOOL, - "ifNotExists", - None, - None, - ), # 4 - ( - 5, - TType.BOOL, - "needResult", - None, - True, - ), # 5 - ( - 6, - TType.STRING, - "catName", - "UTF8", - None, - ), # 6 - ( - 7, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 7 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.LIST, 'parts', (TType.STRUCT, [Partition, None], False), None, ), # 3 + (4, TType.BOOL, 'ifNotExists', None, None, ), # 4 + (5, TType.BOOL, 'needResult', None, True, ), # 5 + (6, TType.STRING, 'catName', 'UTF8', None, ), # 6 + (7, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 7 + (8, TType.BOOL, 'skipColumnSchemaForPartition', None, None, ), # 8 + (9, TType.LIST, 'partitionColSchema', (TType.STRUCT, [FieldSchema, None], False), None, ), # 9 + (10, TType.STRUCT, 'environmentContext', [EnvironmentContext, None], None, ), # 10 ) all_structs.append(DropPartitionsResult) DropPartitionsResult.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitions", - (TType.STRUCT, [Partition, None], False), - None, - ), # 1 + (1, TType.LIST, 'partitions', (TType.STRUCT, [Partition, None], False), None, ), # 1 ) all_structs.append(DropPartitionsExpr) DropPartitionsExpr.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "expr", - "BINARY", - None, - ), # 1 - ( - 2, - TType.I32, - "partArchiveLevel", - None, - None, - ), # 2 + (1, TType.STRING, 'expr', 'BINARY', None, ), # 1 + (2, TType.I32, 'partArchiveLevel', None, None, ), # 2 ) all_structs.append(RequestPartsSpec) RequestPartsSpec.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "names", - (TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.LIST, - "exprs", - (TType.STRUCT, [DropPartitionsExpr, None], False), - None, - ), # 2 + (1, TType.LIST, 'names', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.LIST, 'exprs', (TType.STRUCT, [DropPartitionsExpr, None], False), None, ), # 2 ) all_structs.append(DropPartitionsRequest) DropPartitionsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "parts", - [RequestPartsSpec, None], - None, - ), # 3 - ( - 4, - TType.BOOL, - "deleteData", - None, - None, - ), # 4 - ( - 5, - TType.BOOL, - "ifExists", - None, - True, - ), # 5 - ( - 6, - TType.BOOL, - "ignoreProtection", - None, - None, - ), # 6 - ( - 7, - TType.STRUCT, - "environmentContext", - [EnvironmentContext, None], - None, - ), # 7 - ( - 8, - TType.BOOL, - "needResult", - None, - True, - ), # 8 - ( - 9, - TType.STRING, - "catName", - "UTF8", - None, - ), # 9 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'parts', [RequestPartsSpec, None], None, ), # 3 + (4, TType.BOOL, 'deleteData', None, None, ), # 4 + (5, TType.BOOL, 'ifExists', None, True, ), # 5 + (6, TType.BOOL, 'ignoreProtection', None, None, ), # 6 + (7, TType.STRUCT, 'environmentContext', [EnvironmentContext, None], None, ), # 7 + (8, TType.BOOL, 'needResult', None, True, ), # 8 + (9, TType.STRING, 'catName', 'UTF8', None, ), # 9 + (10, TType.BOOL, 'skipColumnSchemaForPartition', None, None, ), # 10 +) +all_structs.append(DropPartitionRequest) +DropPartitionRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'partName', 'UTF8', None, ), # 4 + (5, TType.LIST, 'partVals', (TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.BOOL, 'deleteData', None, None, ), # 6 + (7, TType.STRUCT, 'environmentContext', [EnvironmentContext, None], None, ), # 7 ) all_structs.append(PartitionValuesRequest) PartitionValuesRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "partitionKeys", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 3 - ( - 4, - TType.BOOL, - "applyDistinct", - None, - True, - ), # 4 - ( - 5, - TType.STRING, - "filter", - "UTF8", - None, - ), # 5 - ( - 6, - TType.LIST, - "partitionOrder", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 6 - ( - 7, - TType.BOOL, - "ascending", - None, - True, - ), # 7 - ( - 8, - TType.I64, - "maxParts", - None, - -1, - ), # 8 - ( - 9, - TType.STRING, - "catName", - "UTF8", - None, - ), # 9 - ( - 10, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 10 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.LIST, 'partitionKeys', (TType.STRUCT, [FieldSchema, None], False), None, ), # 3 + (4, TType.BOOL, 'applyDistinct', None, True, ), # 4 + (5, TType.STRING, 'filter', 'UTF8', None, ), # 5 + (6, TType.LIST, 'partitionOrder', (TType.STRUCT, [FieldSchema, None], False), None, ), # 6 + (7, TType.BOOL, 'ascending', None, True, ), # 7 + (8, TType.I64, 'maxParts', None, -1, ), # 8 + (9, TType.STRING, 'catName', 'UTF8', None, ), # 9 + (10, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 10 ) all_structs.append(PartitionValuesRow) PartitionValuesRow.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "row", - (TType.STRING, "UTF8", False), - None, - ), # 1 + (1, TType.LIST, 'row', (TType.STRING, 'UTF8', False), None, ), # 1 ) all_structs.append(PartitionValuesResponse) PartitionValuesResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitionValues", - (TType.STRUCT, [PartitionValuesRow, None], False), - None, - ), # 1 + (1, TType.LIST, 'partitionValues', (TType.STRUCT, [PartitionValuesRow, None], False), None, ), # 1 ) all_structs.append(GetPartitionsByNamesRequest) GetPartitionsByNamesRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "db_name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tbl_name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "names", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.BOOL, - "get_col_stats", - None, - None, - ), # 4 - ( - 5, - TType.LIST, - "processorCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 5 - ( - 6, - TType.STRING, - "processorIdentifier", - "UTF8", - None, - ), # 6 - ( - 7, - TType.STRING, - "engine", - "UTF8", - None, - ), # 7 - ( - 8, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 8 - ( - 9, - TType.BOOL, - "getFileMetadata", - None, - None, - ), # 9 - ( - 10, - TType.I64, - "id", - None, - -1, - ), # 10 + (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tbl_name', 'UTF8', None, ), # 2 + (3, TType.LIST, 'names', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.BOOL, 'get_col_stats', None, None, ), # 4 + (5, TType.LIST, 'processorCapabilities', (TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.STRING, 'processorIdentifier', 'UTF8', None, ), # 6 + (7, TType.STRING, 'engine', 'UTF8', "hive", ), # 7 + (8, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 8 + (9, TType.BOOL, 'getFileMetadata', None, None, ), # 9 + (10, TType.I64, 'id', None, -1, ), # 10 + (11, TType.BOOL, 'skipColumnSchemaForPartition', None, None, ), # 11 + (12, TType.STRING, 'includeParamKeyPattern', 'UTF8', None, ), # 12 + (13, TType.STRING, 'excludeParamKeyPattern', 'UTF8', None, ), # 13 ) all_structs.append(GetPartitionsByNamesResult) GetPartitionsByNamesResult.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitions", - (TType.STRUCT, [Partition, None], False), - None, - ), # 1 - ( - 2, - TType.STRUCT, - "dictionary", - [ObjectDictionary, None], - None, - ), # 2 + (1, TType.LIST, 'partitions', (TType.STRUCT, [Partition, None], False), None, ), # 1 + (2, TType.STRUCT, 'dictionary', [ObjectDictionary, None], None, ), # 2 ) all_structs.append(DataConnector) DataConnector.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "type", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "url", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "description", - "UTF8", - None, - ), # 4 - ( - 5, - TType.MAP, - "parameters", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 5 - ( - 6, - TType.STRING, - "ownerName", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I32, - "ownerType", - None, - None, - ), # 7 - ( - 8, - TType.I32, - "createTime", - None, - None, - ), # 8 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'type', 'UTF8', None, ), # 2 + (3, TType.STRING, 'url', 'UTF8', None, ), # 3 + (4, TType.STRING, 'description', 'UTF8', None, ), # 4 + (5, TType.MAP, 'parameters', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.STRING, 'ownerName', 'UTF8', None, ), # 6 + (7, TType.I32, 'ownerType', None, None, ), # 7 + (8, TType.I32, 'createTime', None, None, ), # 8 ) all_structs.append(ResourceUri) ResourceUri.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "resourceType", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "uri", - "UTF8", - None, - ), # 2 + (1, TType.I32, 'resourceType', None, None, ), # 1 + (2, TType.STRING, 'uri', 'UTF8', None, ), # 2 ) all_structs.append(Function) Function.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "functionName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "className", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "ownerName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I32, - "ownerType", - None, - None, - ), # 5 - ( - 6, - TType.I32, - "createTime", - None, - None, - ), # 6 - ( - 7, - TType.I32, - "functionType", - None, - None, - ), # 7 - ( - 8, - TType.LIST, - "resourceUris", - (TType.STRUCT, [ResourceUri, None], False), - None, - ), # 8 - ( - 9, - TType.STRING, - "catName", - "UTF8", - None, - ), # 9 + (1, TType.STRING, 'functionName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'className', 'UTF8', None, ), # 3 + (4, TType.STRING, 'ownerName', 'UTF8', None, ), # 4 + (5, TType.I32, 'ownerType', None, None, ), # 5 + (6, TType.I32, 'createTime', None, None, ), # 6 + (7, TType.I32, 'functionType', None, None, ), # 7 + (8, TType.LIST, 'resourceUris', (TType.STRUCT, [ResourceUri, None], False), None, ), # 8 + (9, TType.STRING, 'catName', 'UTF8', None, ), # 9 ) all_structs.append(TxnInfo) TxnInfo.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "id", - None, - None, - ), # 1 - ( - 2, - TType.I32, - "state", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "user", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "hostname", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "agentInfo", - "UTF8", - "Unknown", - ), # 5 - ( - 6, - TType.I32, - "heartbeatCount", - None, - 0, - ), # 6 - ( - 7, - TType.STRING, - "metaInfo", - "UTF8", - None, - ), # 7 - ( - 8, - TType.I64, - "startedTime", - None, - None, - ), # 8 - ( - 9, - TType.I64, - "lastHeartbeatTime", - None, - None, - ), # 9 + (1, TType.I64, 'id', None, None, ), # 1 + (2, TType.I32, 'state', None, None, ), # 2 + (3, TType.STRING, 'user', 'UTF8', None, ), # 3 + (4, TType.STRING, 'hostname', 'UTF8', None, ), # 4 + (5, TType.STRING, 'agentInfo', 'UTF8', "Unknown", ), # 5 + (6, TType.I32, 'heartbeatCount', None, 0, ), # 6 + (7, TType.STRING, 'metaInfo', 'UTF8', None, ), # 7 + (8, TType.I64, 'startedTime', None, None, ), # 8 + (9, TType.I64, 'lastHeartbeatTime', None, None, ), # 9 ) all_structs.append(GetOpenTxnsInfoResponse) GetOpenTxnsInfoResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "txn_high_water_mark", - None, - None, - ), # 1 - ( - 2, - TType.LIST, - "open_txns", - (TType.STRUCT, [TxnInfo, None], False), - None, - ), # 2 + (1, TType.I64, 'txn_high_water_mark', None, None, ), # 1 + (2, TType.LIST, 'open_txns', (TType.STRUCT, [TxnInfo, None], False), None, ), # 2 ) all_structs.append(GetOpenTxnsResponse) GetOpenTxnsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "txn_high_water_mark", - None, - None, - ), # 1 - ( - 2, - TType.LIST, - "open_txns", - (TType.I64, None, False), - None, - ), # 2 - ( - 3, - TType.I64, - "min_open_txn", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "abortedBits", - "BINARY", - None, - ), # 4 + (1, TType.I64, 'txn_high_water_mark', None, None, ), # 1 + (2, TType.LIST, 'open_txns', (TType.I64, None, False), None, ), # 2 + (3, TType.I64, 'min_open_txn', None, None, ), # 3 + (4, TType.STRING, 'abortedBits', 'BINARY', None, ), # 4 ) all_structs.append(OpenTxnRequest) OpenTxnRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "num_txns", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "user", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "hostname", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "agentInfo", - "UTF8", - "Unknown", - ), # 4 - ( - 5, - TType.STRING, - "replPolicy", - "UTF8", - None, - ), # 5 - ( - 6, - TType.LIST, - "replSrcTxnIds", - (TType.I64, None, False), - None, - ), # 6 - ( - 7, - TType.I32, - "txn_type", - None, - 0, - ), # 7 + (1, TType.I32, 'num_txns', None, None, ), # 1 + (2, TType.STRING, 'user', 'UTF8', None, ), # 2 + (3, TType.STRING, 'hostname', 'UTF8', None, ), # 3 + (4, TType.STRING, 'agentInfo', 'UTF8', "Unknown", ), # 4 + (5, TType.STRING, 'replPolicy', 'UTF8', None, ), # 5 + (6, TType.LIST, 'replSrcTxnIds', (TType.I64, None, False), None, ), # 6 + (7, TType.I32, 'txn_type', None, 0, ), # 7 ) all_structs.append(OpenTxnsResponse) OpenTxnsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "txn_ids", - (TType.I64, None, False), - None, - ), # 1 + (1, TType.LIST, 'txn_ids', (TType.I64, None, False), None, ), # 1 ) all_structs.append(AbortTxnRequest) AbortTxnRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "txnid", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "replPolicy", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I32, - "txn_type", - None, - None, - ), # 3 + (1, TType.I64, 'txnid', None, None, ), # 1 + (2, TType.STRING, 'replPolicy', 'UTF8', None, ), # 2 + (3, TType.I32, 'txn_type', None, None, ), # 3 + (4, TType.I64, 'errorCode', None, None, ), # 4 ) all_structs.append(AbortTxnsRequest) AbortTxnsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "txn_ids", - (TType.I64, None, False), - None, - ), # 1 + (1, TType.LIST, 'txn_ids', (TType.I64, None, False), None, ), # 1 + (2, TType.I64, 'errorCode', None, None, ), # 2 ) all_structs.append(CommitTxnKeyValue) CommitTxnKeyValue.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "tableId", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "key", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "value", - "UTF8", - None, - ), # 3 + (1, TType.I64, 'tableId', None, None, ), # 1 + (2, TType.STRING, 'key', 'UTF8', None, ), # 2 + (3, TType.STRING, 'value', 'UTF8', None, ), # 3 ) all_structs.append(WriteEventInfo) WriteEventInfo.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "writeId", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "database", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "table", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "files", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "partition", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "tableObj", - "UTF8", - None, - ), # 6 - ( - 7, - TType.STRING, - "partitionObj", - "UTF8", - None, - ), # 7 + (1, TType.I64, 'writeId', None, None, ), # 1 + (2, TType.STRING, 'database', 'UTF8', None, ), # 2 + (3, TType.STRING, 'table', 'UTF8', None, ), # 3 + (4, TType.STRING, 'files', 'UTF8', None, ), # 4 + (5, TType.STRING, 'partition', 'UTF8', None, ), # 5 + (6, TType.STRING, 'tableObj', 'UTF8', None, ), # 6 + (7, TType.STRING, 'partitionObj', 'UTF8', None, ), # 7 ) all_structs.append(ReplLastIdInfo) ReplLastIdInfo.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "database", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I64, - "lastReplId", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "table", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "catalog", - "UTF8", - None, - ), # 4 - ( - 5, - TType.LIST, - "partitionList", - (TType.STRING, "UTF8", False), - None, - ), # 5 + (1, TType.STRING, 'database', 'UTF8', None, ), # 1 + (2, TType.I64, 'lastReplId', None, None, ), # 2 + (3, TType.STRING, 'table', 'UTF8', None, ), # 3 + (4, TType.STRING, 'catalog', 'UTF8', None, ), # 4 + (5, TType.LIST, 'partitionList', (TType.STRING, 'UTF8', False), None, ), # 5 ) all_structs.append(UpdateTransactionalStatsRequest) UpdateTransactionalStatsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "tableId", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "insertCount", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "updatedCount", - None, - None, - ), # 3 - ( - 4, - TType.I64, - "deletedCount", - None, - None, - ), # 4 + (1, TType.I64, 'tableId', None, None, ), # 1 + (2, TType.I64, 'insertCount', None, None, ), # 2 + (3, TType.I64, 'updatedCount', None, None, ), # 3 + (4, TType.I64, 'deletedCount', None, None, ), # 4 ) all_structs.append(CommitTxnRequest) CommitTxnRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "txnid", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "replPolicy", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "writeEventInfos", - (TType.STRUCT, [WriteEventInfo, None], False), - None, - ), # 3 - ( - 4, - TType.STRUCT, - "replLastIdInfo", - [ReplLastIdInfo, None], - None, - ), # 4 - ( - 5, - TType.STRUCT, - "keyValue", - [CommitTxnKeyValue, None], - None, - ), # 5 - ( - 6, - TType.BOOL, - "exclWriteEnabled", - None, - True, - ), # 6 - ( - 7, - TType.I32, - "txn_type", - None, - None, - ), # 7 + (1, TType.I64, 'txnid', None, None, ), # 1 + (2, TType.STRING, 'replPolicy', 'UTF8', None, ), # 2 + (3, TType.LIST, 'writeEventInfos', (TType.STRUCT, [WriteEventInfo, None], False), None, ), # 3 + (4, TType.STRUCT, 'replLastIdInfo', [ReplLastIdInfo, None], None, ), # 4 + (5, TType.STRUCT, 'keyValue', [CommitTxnKeyValue, None], None, ), # 5 + (6, TType.BOOL, 'exclWriteEnabled', None, True, ), # 6 + (7, TType.I32, 'txn_type', None, None, ), # 7 ) all_structs.append(ReplTblWriteIdStateRequest) ReplTblWriteIdStateRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "validWriteIdlist", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "user", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "hostName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 5 - ( - 6, - TType.LIST, - "partNames", - (TType.STRING, "UTF8", False), - None, - ), # 6 + (1, TType.STRING, 'validWriteIdlist', 'UTF8', None, ), # 1 + (2, TType.STRING, 'user', 'UTF8', None, ), # 2 + (3, TType.STRING, 'hostName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'dbName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'tableName', 'UTF8', None, ), # 5 + (6, TType.LIST, 'partNames', (TType.STRING, 'UTF8', False), None, ), # 6 ) all_structs.append(GetValidWriteIdsRequest) GetValidWriteIdsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "fullTableNames", - (TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.STRING, - "validTxnList", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I64, - "writeId", - None, - None, - ), # 3 + (1, TType.LIST, 'fullTableNames', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.STRING, 'validTxnList', 'UTF8', None, ), # 2 + (3, TType.I64, 'writeId', None, None, ), # 3 ) all_structs.append(TableValidWriteIds) TableValidWriteIds.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "fullTableName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I64, - "writeIdHighWaterMark", - None, - None, - ), # 2 - ( - 3, - TType.LIST, - "invalidWriteIds", - (TType.I64, None, False), - None, - ), # 3 - ( - 4, - TType.I64, - "minOpenWriteId", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "abortedBits", - "BINARY", - None, - ), # 5 + (1, TType.STRING, 'fullTableName', 'UTF8', None, ), # 1 + (2, TType.I64, 'writeIdHighWaterMark', None, None, ), # 2 + (3, TType.LIST, 'invalidWriteIds', (TType.I64, None, False), None, ), # 3 + (4, TType.I64, 'minOpenWriteId', None, None, ), # 4 + (5, TType.STRING, 'abortedBits', 'BINARY', None, ), # 5 ) all_structs.append(GetValidWriteIdsResponse) GetValidWriteIdsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "tblValidWriteIds", - (TType.STRUCT, [TableValidWriteIds, None], False), - None, - ), # 1 + (1, TType.LIST, 'tblValidWriteIds', (TType.STRUCT, [TableValidWriteIds, None], False), None, ), # 1 ) all_structs.append(TxnToWriteId) TxnToWriteId.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "txnId", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "writeId", - None, - None, - ), # 2 + (1, TType.I64, 'txnId', None, None, ), # 1 + (2, TType.I64, 'writeId', None, None, ), # 2 ) all_structs.append(AllocateTableWriteIdsRequest) AllocateTableWriteIdsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "txnIds", - (TType.I64, None, False), - None, - ), # 3 - ( - 4, - TType.STRING, - "replPolicy", - "UTF8", - None, - ), # 4 - ( - 5, - TType.LIST, - "srcTxnToWriteIdList", - (TType.STRUCT, [TxnToWriteId, None], False), - None, - ), # 5 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.LIST, 'txnIds', (TType.I64, None, False), None, ), # 3 + (4, TType.STRING, 'replPolicy', 'UTF8', None, ), # 4 + (5, TType.LIST, 'srcTxnToWriteIdList', (TType.STRUCT, [TxnToWriteId, None], False), None, ), # 5 + (6, TType.BOOL, 'reallocate', None, False, ), # 6 ) all_structs.append(AllocateTableWriteIdsResponse) AllocateTableWriteIdsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "txnToWriteIds", - (TType.STRUCT, [TxnToWriteId, None], False), - None, - ), # 1 + (1, TType.LIST, 'txnToWriteIds', (TType.STRUCT, [TxnToWriteId, None], False), None, ), # 1 ) all_structs.append(MaxAllocatedTableWriteIdRequest) MaxAllocatedTableWriteIdRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 ) all_structs.append(MaxAllocatedTableWriteIdResponse) MaxAllocatedTableWriteIdResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "maxWriteId", - None, - None, - ), # 1 + (1, TType.I64, 'maxWriteId', None, None, ), # 1 ) all_structs.append(SeedTableWriteIdsRequest) SeedTableWriteIdsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I64, - "seedWriteId", - None, - None, - ), # 3 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.I64, 'seedWriteId', None, None, ), # 3 ) all_structs.append(SeedTxnIdRequest) SeedTxnIdRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "seedTxnId", - None, - None, - ), # 1 + (1, TType.I64, 'seedTxnId', None, None, ), # 1 ) all_structs.append(LockComponent) LockComponent.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "type", - None, - None, - ), # 1 - ( - 2, - TType.I32, - "level", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "partitionname", - "UTF8", - None, - ), # 5 - ( - 6, - TType.I32, - "operationType", - None, - 5, - ), # 6 - ( - 7, - TType.BOOL, - "isTransactional", - None, - False, - ), # 7 - ( - 8, - TType.BOOL, - "isDynamicPartitionWrite", - None, - False, - ), # 8 + (1, TType.I32, 'type', None, None, ), # 1 + (2, TType.I32, 'level', None, None, ), # 2 + (3, TType.STRING, 'dbname', 'UTF8', None, ), # 3 + (4, TType.STRING, 'tablename', 'UTF8', None, ), # 4 + (5, TType.STRING, 'partitionname', 'UTF8', None, ), # 5 + (6, TType.I32, 'operationType', None, 5, ), # 6 + (7, TType.BOOL, 'isTransactional', None, False, ), # 7 + (8, TType.BOOL, 'isDynamicPartitionWrite', None, False, ), # 8 ) all_structs.append(LockRequest) LockRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "component", - (TType.STRUCT, [LockComponent, None], False), - None, - ), # 1 - ( - 2, - TType.I64, - "txnid", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "user", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "hostname", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "agentInfo", - "UTF8", - "Unknown", - ), # 5 - ( - 6, - TType.BOOL, - "zeroWaitReadEnabled", - None, - False, - ), # 6 - ( - 7, - TType.BOOL, - "exclusiveCTAS", - None, - False, - ), # 7 + (1, TType.LIST, 'component', (TType.STRUCT, [LockComponent, None], False), None, ), # 1 + (2, TType.I64, 'txnid', None, None, ), # 2 + (3, TType.STRING, 'user', 'UTF8', None, ), # 3 + (4, TType.STRING, 'hostname', 'UTF8', None, ), # 4 + (5, TType.STRING, 'agentInfo', 'UTF8', "Unknown", ), # 5 + (6, TType.BOOL, 'zeroWaitReadEnabled', None, False, ), # 6 + (7, TType.BOOL, 'exclusiveCTAS', None, False, ), # 7 + (8, TType.BOOL, 'locklessReadsEnabled', None, False, ), # 8 ) all_structs.append(LockResponse) LockResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "lockid", - None, - None, - ), # 1 - ( - 2, - TType.I32, - "state", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "errorMessage", - "UTF8", - None, - ), # 3 + (1, TType.I64, 'lockid', None, None, ), # 1 + (2, TType.I32, 'state', None, None, ), # 2 + (3, TType.STRING, 'errorMessage', 'UTF8', None, ), # 3 ) all_structs.append(CheckLockRequest) CheckLockRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "lockid", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "txnid", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "elapsed_ms", - None, - None, - ), # 3 + (1, TType.I64, 'lockid', None, None, ), # 1 + (2, TType.I64, 'txnid', None, None, ), # 2 + (3, TType.I64, 'elapsed_ms', None, None, ), # 3 ) all_structs.append(UnlockRequest) UnlockRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "lockid", - None, - None, - ), # 1 + (1, TType.I64, 'lockid', None, None, ), # 1 ) all_structs.append(ShowLocksRequest) ShowLocksRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "partname", - "UTF8", - None, - ), # 3 - ( - 4, - TType.BOOL, - "isExtended", - None, - False, - ), # 4 - ( - 5, - TType.I64, - "txnid", - None, - None, - ), # 5 + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tablename', 'UTF8', None, ), # 2 + (3, TType.STRING, 'partname', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'isExtended', None, False, ), # 4 + (5, TType.I64, 'txnid', None, None, ), # 5 ) all_structs.append(ShowLocksResponseElement) ShowLocksResponseElement.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "lockid", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "partname", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I32, - "state", - None, - None, - ), # 5 - ( - 6, - TType.I32, - "type", - None, - None, - ), # 6 - ( - 7, - TType.I64, - "txnid", - None, - None, - ), # 7 - ( - 8, - TType.I64, - "lastheartbeat", - None, - None, - ), # 8 - ( - 9, - TType.I64, - "acquiredat", - None, - None, - ), # 9 - ( - 10, - TType.STRING, - "user", - "UTF8", - None, - ), # 10 - ( - 11, - TType.STRING, - "hostname", - "UTF8", - None, - ), # 11 - ( - 12, - TType.I32, - "heartbeatCount", - None, - 0, - ), # 12 - ( - 13, - TType.STRING, - "agentInfo", - "UTF8", - None, - ), # 13 - ( - 14, - TType.I64, - "blockedByExtId", - None, - None, - ), # 14 - ( - 15, - TType.I64, - "blockedByIntId", - None, - None, - ), # 15 - ( - 16, - TType.I64, - "lockIdInternal", - None, - None, - ), # 16 + (1, TType.I64, 'lockid', None, None, ), # 1 + (2, TType.STRING, 'dbname', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tablename', 'UTF8', None, ), # 3 + (4, TType.STRING, 'partname', 'UTF8', None, ), # 4 + (5, TType.I32, 'state', None, None, ), # 5 + (6, TType.I32, 'type', None, None, ), # 6 + (7, TType.I64, 'txnid', None, None, ), # 7 + (8, TType.I64, 'lastheartbeat', None, None, ), # 8 + (9, TType.I64, 'acquiredat', None, None, ), # 9 + (10, TType.STRING, 'user', 'UTF8', None, ), # 10 + (11, TType.STRING, 'hostname', 'UTF8', None, ), # 11 + (12, TType.I32, 'heartbeatCount', None, 0, ), # 12 + (13, TType.STRING, 'agentInfo', 'UTF8', None, ), # 13 + (14, TType.I64, 'blockedByExtId', None, None, ), # 14 + (15, TType.I64, 'blockedByIntId', None, None, ), # 15 + (16, TType.I64, 'lockIdInternal', None, None, ), # 16 ) all_structs.append(ShowLocksResponse) ShowLocksResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "locks", - (TType.STRUCT, [ShowLocksResponseElement, None], False), - None, - ), # 1 + (1, TType.LIST, 'locks', (TType.STRUCT, [ShowLocksResponseElement, None], False), None, ), # 1 ) all_structs.append(HeartbeatRequest) HeartbeatRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "lockid", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "txnid", - None, - None, - ), # 2 + (1, TType.I64, 'lockid', None, None, ), # 1 + (2, TType.I64, 'txnid', None, None, ), # 2 ) all_structs.append(HeartbeatTxnRangeRequest) HeartbeatTxnRangeRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "min", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "max", - None, - None, - ), # 2 + (1, TType.I64, 'min', None, None, ), # 1 + (2, TType.I64, 'max', None, None, ), # 2 ) all_structs.append(HeartbeatTxnRangeResponse) HeartbeatTxnRangeResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.SET, - "aborted", - (TType.I64, None, False), - None, - ), # 1 - ( - 2, - TType.SET, - "nosuch", - (TType.I64, None, False), - None, - ), # 2 + (1, TType.SET, 'aborted', (TType.I64, None, False), None, ), # 1 + (2, TType.SET, 'nosuch', (TType.I64, None, False), None, ), # 2 ) all_structs.append(CompactionRequest) CompactionRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "partitionname", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "type", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "runas", - "UTF8", - None, - ), # 5 - ( - 6, - TType.MAP, - "properties", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 6 - ( - 7, - TType.STRING, - "initiatorId", - "UTF8", - None, - ), # 7 - ( - 8, - TType.STRING, - "initiatorVersion", - "UTF8", - None, - ), # 8 + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tablename', 'UTF8', None, ), # 2 + (3, TType.STRING, 'partitionname', 'UTF8', None, ), # 3 + (4, TType.I32, 'type', None, None, ), # 4 + (5, TType.STRING, 'runas', 'UTF8', None, ), # 5 + (6, TType.MAP, 'properties', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 6 + (7, TType.STRING, 'initiatorId', 'UTF8', None, ), # 7 + (8, TType.STRING, 'initiatorVersion', 'UTF8', None, ), # 8 + (9, TType.STRING, 'poolName', 'UTF8', None, ), # 9 + (10, TType.I32, 'numberOfBuckets', None, None, ), # 10 + (11, TType.STRING, 'orderByClause', 'UTF8', None, ), # 11 ) all_structs.append(CompactionInfoStruct) CompactionInfoStruct.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "id", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "partitionname", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I32, - "type", - None, - None, - ), # 5 - ( - 6, - TType.STRING, - "runas", - "UTF8", - None, - ), # 6 - ( - 7, - TType.STRING, - "properties", - "UTF8", - None, - ), # 7 - ( - 8, - TType.BOOL, - "toomanyaborts", - None, - None, - ), # 8 - ( - 9, - TType.STRING, - "state", - "UTF8", - None, - ), # 9 - ( - 10, - TType.STRING, - "workerId", - "UTF8", - None, - ), # 10 - ( - 11, - TType.I64, - "start", - None, - None, - ), # 11 - ( - 12, - TType.I64, - "highestWriteId", - None, - None, - ), # 12 - ( - 13, - TType.STRING, - "errorMessage", - "UTF8", - None, - ), # 13 - ( - 14, - TType.BOOL, - "hasoldabort", - None, - None, - ), # 14 - ( - 15, - TType.I64, - "enqueueTime", - None, - None, - ), # 15 - ( - 16, - TType.I64, - "retryRetention", - None, - None, - ), # 16 + (1, TType.I64, 'id', None, None, ), # 1 + (2, TType.STRING, 'dbname', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tablename', 'UTF8', None, ), # 3 + (4, TType.STRING, 'partitionname', 'UTF8', None, ), # 4 + (5, TType.I32, 'type', None, None, ), # 5 + (6, TType.STRING, 'runas', 'UTF8', None, ), # 6 + (7, TType.STRING, 'properties', 'UTF8', None, ), # 7 + (8, TType.BOOL, 'toomanyaborts', None, None, ), # 8 + (9, TType.STRING, 'state', 'UTF8', None, ), # 9 + (10, TType.STRING, 'workerId', 'UTF8', None, ), # 10 + (11, TType.I64, 'start', None, None, ), # 11 + (12, TType.I64, 'highestWriteId', None, None, ), # 12 + (13, TType.STRING, 'errorMessage', 'UTF8', None, ), # 13 + (14, TType.BOOL, 'hasoldabort', None, None, ), # 14 + (15, TType.I64, 'enqueueTime', None, None, ), # 15 + (16, TType.I64, 'retryRetention', None, None, ), # 16 + (17, TType.STRING, 'poolname', 'UTF8', None, ), # 17 + (18, TType.I32, 'numberOfBuckets', None, None, ), # 18 + (19, TType.STRING, 'orderByClause', 'UTF8', None, ), # 19 ) all_structs.append(OptionalCompactionInfoStruct) OptionalCompactionInfoStruct.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "ci", - [CompactionInfoStruct, None], - None, - ), # 1 + (1, TType.STRUCT, 'ci', [CompactionInfoStruct, None], None, ), # 1 ) all_structs.append(CompactionMetricsDataStruct) CompactionMetricsDataStruct.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblname", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "partitionname", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "type", - None, - None, - ), # 4 - ( - 5, - TType.I32, - "metricvalue", - None, - None, - ), # 5 - ( - 6, - TType.I32, - "version", - None, - None, - ), # 6 - ( - 7, - TType.I32, - "threshold", - None, - None, - ), # 7 + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblname', 'UTF8', None, ), # 2 + (3, TType.STRING, 'partitionname', 'UTF8', None, ), # 3 + (4, TType.I32, 'type', None, None, ), # 4 + (5, TType.I32, 'metricvalue', None, None, ), # 5 + (6, TType.I32, 'version', None, None, ), # 6 + (7, TType.I32, 'threshold', None, None, ), # 7 ) all_structs.append(CompactionMetricsDataResponse) CompactionMetricsDataResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "data", - [CompactionMetricsDataStruct, None], - None, - ), # 1 + (1, TType.STRUCT, 'data', [CompactionMetricsDataStruct, None], None, ), # 1 ) all_structs.append(CompactionMetricsDataRequest) CompactionMetricsDataRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "partitionName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "type", - None, - None, - ), # 4 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'partitionName', 'UTF8', None, ), # 3 + (4, TType.I32, 'type', None, None, ), # 4 ) all_structs.append(CompactionResponse) CompactionResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "id", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "state", - "UTF8", - None, - ), # 2 - ( - 3, - TType.BOOL, - "accepted", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "errormessage", - "UTF8", - None, - ), # 4 + (1, TType.I64, 'id', None, None, ), # 1 + (2, TType.STRING, 'state', 'UTF8', None, ), # 2 + (3, TType.BOOL, 'accepted', None, None, ), # 3 + (4, TType.STRING, 'errormessage', 'UTF8', None, ), # 4 ) all_structs.append(ShowCompactRequest) -ShowCompactRequest.thrift_spec = () +ShowCompactRequest.thrift_spec = ( + None, # 0 + (1, TType.I64, 'id', None, None, ), # 1 + (2, TType.STRING, 'poolName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'dbName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'tbName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'partName', 'UTF8', None, ), # 5 + (6, TType.I32, 'type', None, None, ), # 6 + (7, TType.STRING, 'state', 'UTF8', None, ), # 7 + (8, TType.I64, 'limit', None, None, ), # 8 + (9, TType.STRING, 'order', 'UTF8', None, ), # 9 +) all_structs.append(ShowCompactResponseElement) ShowCompactResponseElement.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "partitionname", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "type", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "state", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "workerid", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I64, - "start", - None, - None, - ), # 7 - ( - 8, - TType.STRING, - "runAs", - "UTF8", - None, - ), # 8 - ( - 9, - TType.I64, - "hightestTxnId", - None, - None, - ), # 9 - ( - 10, - TType.STRING, - "metaInfo", - "UTF8", - None, - ), # 10 - ( - 11, - TType.I64, - "endTime", - None, - None, - ), # 11 - ( - 12, - TType.STRING, - "hadoopJobId", - "UTF8", - "None", - ), # 12 - ( - 13, - TType.I64, - "id", - None, - None, - ), # 13 - ( - 14, - TType.STRING, - "errorMessage", - "UTF8", - None, - ), # 14 - ( - 15, - TType.I64, - "enqueueTime", - None, - None, - ), # 15 - ( - 16, - TType.STRING, - "workerVersion", - "UTF8", - None, - ), # 16 - ( - 17, - TType.STRING, - "initiatorId", - "UTF8", - None, - ), # 17 - ( - 18, - TType.STRING, - "initiatorVersion", - "UTF8", - None, - ), # 18 - ( - 19, - TType.I64, - "cleanerStart", - None, - None, - ), # 19 + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tablename', 'UTF8', None, ), # 2 + (3, TType.STRING, 'partitionname', 'UTF8', None, ), # 3 + (4, TType.I32, 'type', None, None, ), # 4 + (5, TType.STRING, 'state', 'UTF8', None, ), # 5 + (6, TType.STRING, 'workerid', 'UTF8', None, ), # 6 + (7, TType.I64, 'start', None, None, ), # 7 + (8, TType.STRING, 'runAs', 'UTF8', None, ), # 8 + (9, TType.I64, 'hightestTxnId', None, None, ), # 9 + (10, TType.STRING, 'metaInfo', 'UTF8', None, ), # 10 + (11, TType.I64, 'endTime', None, None, ), # 11 + (12, TType.STRING, 'hadoopJobId', 'UTF8', "None", ), # 12 + (13, TType.I64, 'id', None, None, ), # 13 + (14, TType.STRING, 'errorMessage', 'UTF8', None, ), # 14 + (15, TType.I64, 'enqueueTime', None, None, ), # 15 + (16, TType.STRING, 'workerVersion', 'UTF8', None, ), # 16 + (17, TType.STRING, 'initiatorId', 'UTF8', None, ), # 17 + (18, TType.STRING, 'initiatorVersion', 'UTF8', None, ), # 18 + (19, TType.I64, 'cleanerStart', None, None, ), # 19 + (20, TType.STRING, 'poolName', 'UTF8', None, ), # 20 + (21, TType.I64, 'nextTxnId', None, None, ), # 21 + (22, TType.I64, 'txnId', None, None, ), # 22 + (23, TType.I64, 'commitTime', None, None, ), # 23 + (24, TType.I64, 'hightestWriteId', None, None, ), # 24 ) all_structs.append(ShowCompactResponse) ShowCompactResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "compacts", - (TType.STRUCT, [ShowCompactResponseElement, None], False), - None, - ), # 1 + (1, TType.LIST, 'compacts', (TType.STRUCT, [ShowCompactResponseElement, None], False), None, ), # 1 +) +all_structs.append(AbortCompactionRequest) +AbortCompactionRequest.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'compactionIds', (TType.I64, None, False), None, ), # 1 + (2, TType.STRING, 'type', 'UTF8', None, ), # 2 + (3, TType.STRING, 'poolName', 'UTF8', None, ), # 3 +) +all_structs.append(AbortCompactionResponseElement) +AbortCompactionResponseElement.thrift_spec = ( + None, # 0 + (1, TType.I64, 'compactionId', None, None, ), # 1 + (2, TType.STRING, 'status', 'UTF8', None, ), # 2 + (3, TType.STRING, 'message', 'UTF8', None, ), # 3 +) +all_structs.append(AbortCompactResponse) +AbortCompactResponse.thrift_spec = ( + None, # 0 + (1, TType.MAP, 'abortedcompacts', (TType.I64, None, TType.STRUCT, [AbortCompactionResponseElement, None], False), None, ), # 1 ) all_structs.append(GetLatestCommittedCompactionInfoRequest) GetLatestCommittedCompactionInfoRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "partitionnames", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.I64, - "lastCompactionId", - None, - None, - ), # 4 + (1, TType.STRING, 'dbname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tablename', 'UTF8', None, ), # 2 + (3, TType.LIST, 'partitionnames', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.I64, 'lastCompactionId', None, None, ), # 4 ) all_structs.append(GetLatestCommittedCompactionInfoResponse) GetLatestCommittedCompactionInfoResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "compactions", - (TType.STRUCT, [CompactionInfoStruct, None], False), - None, - ), # 1 + (1, TType.LIST, 'compactions', (TType.STRUCT, [CompactionInfoStruct, None], False), None, ), # 1 ) all_structs.append(FindNextCompactRequest) FindNextCompactRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "workerId", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "workerVersion", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'workerId', 'UTF8', None, ), # 1 + (2, TType.STRING, 'workerVersion', 'UTF8', None, ), # 2 + (3, TType.STRING, 'poolName', 'UTF8', None, ), # 3 ) all_structs.append(AddDynamicPartitions) AddDynamicPartitions.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "txnid", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "writeid", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 4 - ( - 5, - TType.LIST, - "partitionnames", - (TType.STRING, "UTF8", False), - None, - ), # 5 - ( - 6, - TType.I32, - "operationType", - None, - 5, - ), # 6 + (1, TType.I64, 'txnid', None, None, ), # 1 + (2, TType.I64, 'writeid', None, None, ), # 2 + (3, TType.STRING, 'dbname', 'UTF8', None, ), # 3 + (4, TType.STRING, 'tablename', 'UTF8', None, ), # 4 + (5, TType.LIST, 'partitionnames', (TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.I32, 'operationType', None, 5, ), # 6 ) all_structs.append(BasicTxnInfo) BasicTxnInfo.thrift_spec = ( None, # 0 - ( - 1, - TType.BOOL, - "isnull", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "time", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "txnid", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "dbname", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "tablename", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "partitionname", - "UTF8", - None, - ), # 6 + (1, TType.BOOL, 'isnull', None, None, ), # 1 + (2, TType.I64, 'time', None, None, ), # 2 + (3, TType.I64, 'txnid', None, None, ), # 3 + (4, TType.STRING, 'dbname', 'UTF8', None, ), # 4 + (5, TType.STRING, 'tablename', 'UTF8', None, ), # 5 + (6, TType.STRING, 'partitionname', 'UTF8', None, ), # 6 ) all_structs.append(NotificationEventRequest) NotificationEventRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "lastEvent", - None, - None, - ), # 1 - ( - 2, - TType.I32, - "maxEvents", - None, - None, - ), # 2 - ( - 3, - TType.LIST, - "eventTypeSkipList", - (TType.STRING, "UTF8", False), - None, - ), # 3 + (1, TType.I64, 'lastEvent', None, None, ), # 1 + (2, TType.I32, 'maxEvents', None, None, ), # 2 + (3, TType.LIST, 'eventTypeSkipList', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.STRING, 'catName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'dbName', 'UTF8', None, ), # 5 + (6, TType.LIST, 'tableNames', (TType.STRING, 'UTF8', False), None, ), # 6 + (7, TType.LIST, 'eventTypeList', (TType.STRING, 'UTF8', False), None, ), # 7 ) all_structs.append(NotificationEvent) NotificationEvent.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "eventId", - None, - None, - ), # 1 - ( - 2, - TType.I32, - "eventTime", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "eventType", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "message", - "UTF8", - None, - ), # 6 - ( - 7, - TType.STRING, - "messageFormat", - "UTF8", - None, - ), # 7 - ( - 8, - TType.STRING, - "catName", - "UTF8", - None, - ), # 8 + (1, TType.I64, 'eventId', None, None, ), # 1 + (2, TType.I32, 'eventTime', None, None, ), # 2 + (3, TType.STRING, 'eventType', 'UTF8', None, ), # 3 + (4, TType.STRING, 'dbName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'tableName', 'UTF8', None, ), # 5 + (6, TType.STRING, 'message', 'UTF8', None, ), # 6 + (7, TType.STRING, 'messageFormat', 'UTF8', None, ), # 7 + (8, TType.STRING, 'catName', 'UTF8', None, ), # 8 ) all_structs.append(NotificationEventResponse) NotificationEventResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "events", - (TType.STRUCT, [NotificationEvent, None], False), - None, - ), # 1 + (1, TType.LIST, 'events', (TType.STRUCT, [NotificationEvent, None], False), None, ), # 1 ) all_structs.append(CurrentNotificationEventId) CurrentNotificationEventId.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "eventId", - None, - None, - ), # 1 + (1, TType.I64, 'eventId', None, None, ), # 1 ) all_structs.append(NotificationEventsCountRequest) NotificationEventsCountRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "fromEventId", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "catName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I64, - "toEventId", - None, - None, - ), # 4 - ( - 5, - TType.I64, - "limit", - None, - None, - ), # 5 + (1, TType.I64, 'fromEventId', None, None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'catName', 'UTF8', None, ), # 3 + (4, TType.I64, 'toEventId', None, None, ), # 4 + (5, TType.I64, 'limit', None, None, ), # 5 + (6, TType.LIST, 'tableNames', (TType.STRING, 'UTF8', False), None, ), # 6 ) all_structs.append(NotificationEventsCountResponse) NotificationEventsCountResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "eventsCount", - None, - None, - ), # 1 + (1, TType.I64, 'eventsCount', None, None, ), # 1 ) all_structs.append(InsertEventRequestData) InsertEventRequestData.thrift_spec = ( None, # 0 - ( - 1, - TType.BOOL, - "replace", - None, - None, - ), # 1 - ( - 2, - TType.LIST, - "filesAdded", - (TType.STRING, "UTF8", False), - None, - ), # 2 - ( - 3, - TType.LIST, - "filesAddedChecksum", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.LIST, - "subDirectoryList", - (TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.LIST, - "partitionVal", - (TType.STRING, "UTF8", False), - None, - ), # 5 + (1, TType.BOOL, 'replace', None, None, ), # 1 + (2, TType.LIST, 'filesAdded', (TType.STRING, 'UTF8', False), None, ), # 2 + (3, TType.LIST, 'filesAddedChecksum', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.LIST, 'subDirectoryList', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.LIST, 'partitionVal', (TType.STRING, 'UTF8', False), None, ), # 5 ) all_structs.append(FireEventRequestData) FireEventRequestData.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "insertData", - [InsertEventRequestData, None], - None, - ), # 1 - ( - 2, - TType.LIST, - "insertDatas", - (TType.STRUCT, [InsertEventRequestData, None], False), - None, - ), # 2 + (1, TType.STRUCT, 'insertData', [InsertEventRequestData, None], None, ), # 1 + (2, TType.LIST, 'insertDatas', (TType.STRUCT, [InsertEventRequestData, None], False), None, ), # 2 + (3, TType.BOOL, 'refreshEvent', None, None, ), # 3 ) all_structs.append(FireEventRequest) FireEventRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.BOOL, - "successful", - None, - None, - ), # 1 - ( - 2, - TType.STRUCT, - "data", - [FireEventRequestData, None], - None, - ), # 2 - ( - 3, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.LIST, - "partitionVals", - (TType.STRING, "UTF8", False), - None, - ), # 5 - ( - 6, - TType.STRING, - "catName", - "UTF8", - None, - ), # 6 + (1, TType.BOOL, 'successful', None, None, ), # 1 + (2, TType.STRUCT, 'data', [FireEventRequestData, None], None, ), # 2 + (3, TType.STRING, 'dbName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'tableName', 'UTF8', None, ), # 4 + (5, TType.LIST, 'partitionVals', (TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.STRING, 'catName', 'UTF8', None, ), # 6 + (7, TType.MAP, 'tblParams', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 7 + (8, TType.LIST, 'batchPartitionValsForRefresh', (TType.LIST, (TType.STRING, 'UTF8', False), False), None, ), # 8 ) all_structs.append(FireEventResponse) FireEventResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "eventIds", - (TType.I64, None, False), - None, - ), # 1 + (1, TType.LIST, 'eventIds', (TType.I64, None, False), None, ), # 1 ) all_structs.append(WriteNotificationLogRequest) WriteNotificationLogRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "txnId", - None, - None, - ), # 1 - ( - 2, - TType.I64, - "writeId", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "db", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "table", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRUCT, - "fileInfo", - [InsertEventRequestData, None], - None, - ), # 5 - ( - 6, - TType.LIST, - "partitionVals", - (TType.STRING, "UTF8", False), - None, - ), # 6 + (1, TType.I64, 'txnId', None, None, ), # 1 + (2, TType.I64, 'writeId', None, None, ), # 2 + (3, TType.STRING, 'db', 'UTF8', None, ), # 3 + (4, TType.STRING, 'table', 'UTF8', None, ), # 4 + (5, TType.STRUCT, 'fileInfo', [InsertEventRequestData, None], None, ), # 5 + (6, TType.LIST, 'partitionVals', (TType.STRING, 'UTF8', False), None, ), # 6 ) all_structs.append(WriteNotificationLogResponse) -WriteNotificationLogResponse.thrift_spec = () +WriteNotificationLogResponse.thrift_spec = ( +) all_structs.append(WriteNotificationLogBatchRequest) WriteNotificationLogBatchRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catalog", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "db", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "table", - "UTF8", - None, - ), # 3 - ( - 4, - TType.LIST, - "requestList", - (TType.STRUCT, [WriteNotificationLogRequest, None], False), - None, - ), # 4 + (1, TType.STRING, 'catalog', 'UTF8', None, ), # 1 + (2, TType.STRING, 'db', 'UTF8', None, ), # 2 + (3, TType.STRING, 'table', 'UTF8', None, ), # 3 + (4, TType.LIST, 'requestList', (TType.STRUCT, [WriteNotificationLogRequest, None], False), None, ), # 4 ) all_structs.append(WriteNotificationLogBatchResponse) -WriteNotificationLogBatchResponse.thrift_spec = () +WriteNotificationLogBatchResponse.thrift_spec = ( +) all_structs.append(MetadataPpdResult) MetadataPpdResult.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "metadata", - "BINARY", - None, - ), # 1 - ( - 2, - TType.STRING, - "includeBitset", - "BINARY", - None, - ), # 2 + (1, TType.STRING, 'metadata', 'BINARY', None, ), # 1 + (2, TType.STRING, 'includeBitset', 'BINARY', None, ), # 2 ) all_structs.append(GetFileMetadataByExprResult) GetFileMetadataByExprResult.thrift_spec = ( None, # 0 - ( - 1, - TType.MAP, - "metadata", - (TType.I64, None, TType.STRUCT, [MetadataPpdResult, None], False), - None, - ), # 1 - ( - 2, - TType.BOOL, - "isSupported", - None, - None, - ), # 2 + (1, TType.MAP, 'metadata', (TType.I64, None, TType.STRUCT, [MetadataPpdResult, None], False), None, ), # 1 + (2, TType.BOOL, 'isSupported', None, None, ), # 2 ) all_structs.append(GetFileMetadataByExprRequest) GetFileMetadataByExprRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "fileIds", - (TType.I64, None, False), - None, - ), # 1 - ( - 2, - TType.STRING, - "expr", - "BINARY", - None, - ), # 2 - ( - 3, - TType.BOOL, - "doGetFooters", - None, - None, - ), # 3 - ( - 4, - TType.I32, - "type", - None, - None, - ), # 4 + (1, TType.LIST, 'fileIds', (TType.I64, None, False), None, ), # 1 + (2, TType.STRING, 'expr', 'BINARY', None, ), # 2 + (3, TType.BOOL, 'doGetFooters', None, None, ), # 3 + (4, TType.I32, 'type', None, None, ), # 4 ) all_structs.append(GetFileMetadataResult) GetFileMetadataResult.thrift_spec = ( None, # 0 - ( - 1, - TType.MAP, - "metadata", - (TType.I64, None, TType.STRING, "BINARY", False), - None, - ), # 1 - ( - 2, - TType.BOOL, - "isSupported", - None, - None, - ), # 2 + (1, TType.MAP, 'metadata', (TType.I64, None, TType.STRING, 'BINARY', False), None, ), # 1 + (2, TType.BOOL, 'isSupported', None, None, ), # 2 ) all_structs.append(GetFileMetadataRequest) GetFileMetadataRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "fileIds", - (TType.I64, None, False), - None, - ), # 1 + (1, TType.LIST, 'fileIds', (TType.I64, None, False), None, ), # 1 ) all_structs.append(PutFileMetadataResult) -PutFileMetadataResult.thrift_spec = () +PutFileMetadataResult.thrift_spec = ( +) all_structs.append(PutFileMetadataRequest) PutFileMetadataRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "fileIds", - (TType.I64, None, False), - None, - ), # 1 - ( - 2, - TType.LIST, - "metadata", - (TType.STRING, "BINARY", False), - None, - ), # 2 - ( - 3, - TType.I32, - "type", - None, - None, - ), # 3 + (1, TType.LIST, 'fileIds', (TType.I64, None, False), None, ), # 1 + (2, TType.LIST, 'metadata', (TType.STRING, 'BINARY', False), None, ), # 2 + (3, TType.I32, 'type', None, None, ), # 3 ) all_structs.append(ClearFileMetadataResult) -ClearFileMetadataResult.thrift_spec = () +ClearFileMetadataResult.thrift_spec = ( +) all_structs.append(ClearFileMetadataRequest) ClearFileMetadataRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "fileIds", - (TType.I64, None, False), - None, - ), # 1 + (1, TType.LIST, 'fileIds', (TType.I64, None, False), None, ), # 1 ) all_structs.append(CacheFileMetadataResult) CacheFileMetadataResult.thrift_spec = ( None, # 0 - ( - 1, - TType.BOOL, - "isSupported", - None, - None, - ), # 1 + (1, TType.BOOL, 'isSupported', None, None, ), # 1 ) all_structs.append(CacheFileMetadataRequest) CacheFileMetadataRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "partName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.BOOL, - "isAllParts", - None, - None, - ), # 4 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'partName', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'isAllParts', None, None, ), # 4 ) all_structs.append(GetAllFunctionsResponse) GetAllFunctionsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "functions", - (TType.STRUCT, [Function, None], False), - None, - ), # 1 + (1, TType.LIST, 'functions', (TType.STRUCT, [Function, None], False), None, ), # 1 ) all_structs.append(ClientCapabilities) ClientCapabilities.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "values", - (TType.I32, None, False), - None, - ), # 1 + (1, TType.LIST, 'values', (TType.I32, None, False), None, ), # 1 ) all_structs.append(GetProjectionsSpec) GetProjectionsSpec.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "fieldList", - (TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.STRING, - "includeParamKeyPattern", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "excludeParamKeyPattern", - "UTF8", - None, - ), # 3 + (1, TType.LIST, 'fieldList', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.STRING, 'includeParamKeyPattern', 'UTF8', None, ), # 2 + (3, TType.STRING, 'excludeParamKeyPattern', 'UTF8', None, ), # 3 ) all_structs.append(GetTableRequest) GetTableRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRUCT, - "capabilities", - [ClientCapabilities, None], - None, - ), # 3 - ( - 4, - TType.STRING, - "catName", - "UTF8", - None, - ), # 4 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tblName', 'UTF8', None, ), # 2 + (3, TType.STRUCT, 'capabilities', [ClientCapabilities, None], None, ), # 3 + (4, TType.STRING, 'catName', 'UTF8', None, ), # 4 None, # 5 - ( - 6, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 6 - ( - 7, - TType.BOOL, - "getColumnStats", - None, - None, - ), # 7 - ( - 8, - TType.LIST, - "processorCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 8 - ( - 9, - TType.STRING, - "processorIdentifier", - "UTF8", - None, - ), # 9 - ( - 10, - TType.STRING, - "engine", - "UTF8", - None, - ), # 10 - ( - 11, - TType.I64, - "id", - None, - -1, - ), # 11 + (6, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 6 + (7, TType.BOOL, 'getColumnStats', None, None, ), # 7 + (8, TType.LIST, 'processorCapabilities', (TType.STRING, 'UTF8', False), None, ), # 8 + (9, TType.STRING, 'processorIdentifier', 'UTF8', None, ), # 9 + (10, TType.STRING, 'engine', 'UTF8', "hive", ), # 10 + (11, TType.I64, 'id', None, -1, ), # 11 ) all_structs.append(GetTableResult) GetTableResult.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "table", - [Table, None], - None, - ), # 1 - ( - 2, - TType.BOOL, - "isStatsCompliant", - None, - None, - ), # 2 + (1, TType.STRUCT, 'table', [Table, None], None, ), # 1 + (2, TType.BOOL, 'isStatsCompliant', None, None, ), # 2 ) all_structs.append(GetTablesRequest) GetTablesRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.LIST, - "tblNames", - (TType.STRING, "UTF8", False), - None, - ), # 2 - ( - 3, - TType.STRUCT, - "capabilities", - [ClientCapabilities, None], - None, - ), # 3 - ( - 4, - TType.STRING, - "catName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.LIST, - "processorCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 5 - ( - 6, - TType.STRING, - "processorIdentifier", - "UTF8", - None, - ), # 6 - ( - 7, - TType.STRUCT, - "projectionSpec", - [GetProjectionsSpec, None], - None, - ), # 7 - ( - 8, - TType.STRING, - "tablesPattern", - "UTF8", - None, - ), # 8 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.LIST, 'tblNames', (TType.STRING, 'UTF8', False), None, ), # 2 + (3, TType.STRUCT, 'capabilities', [ClientCapabilities, None], None, ), # 3 + (4, TType.STRING, 'catName', 'UTF8', None, ), # 4 + (5, TType.LIST, 'processorCapabilities', (TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.STRING, 'processorIdentifier', 'UTF8', None, ), # 6 + (7, TType.STRUCT, 'projectionSpec', [GetProjectionsSpec, None], None, ), # 7 + (8, TType.STRING, 'tablesPattern', 'UTF8', None, ), # 8 ) all_structs.append(GetTablesResult) GetTablesResult.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "tables", - (TType.STRUCT, [Table, None], False), - None, - ), # 1 + (1, TType.LIST, 'tables', (TType.STRUCT, [Table, None], False), None, ), # 1 ) all_structs.append(GetTablesExtRequest) GetTablesExtRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catalog", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "database", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tableNamePattern", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I32, - "requestedFields", - None, - None, - ), # 4 - ( - 5, - TType.I32, - "limit", - None, - None, - ), # 5 - ( - 6, - TType.LIST, - "processorCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 6 - ( - 7, - TType.STRING, - "processorIdentifier", - "UTF8", - None, - ), # 7 + (1, TType.STRING, 'catalog', 'UTF8', None, ), # 1 + (2, TType.STRING, 'database', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableNamePattern', 'UTF8', None, ), # 3 + (4, TType.I32, 'requestedFields', None, None, ), # 4 + (5, TType.I32, 'limit', None, None, ), # 5 + (6, TType.LIST, 'processorCapabilities', (TType.STRING, 'UTF8', False), None, ), # 6 + (7, TType.STRING, 'processorIdentifier', 'UTF8', None, ), # 7 ) all_structs.append(ExtendedTableInfo) ExtendedTableInfo.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I32, - "accessType", - None, - None, - ), # 2 - ( - 3, - TType.LIST, - "requiredReadCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.LIST, - "requiredWriteCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 4 + (1, TType.STRING, 'tblName', 'UTF8', None, ), # 1 + (2, TType.I32, 'accessType', None, None, ), # 2 + (3, TType.LIST, 'requiredReadCapabilities', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.LIST, 'requiredWriteCapabilities', (TType.STRING, 'UTF8', False), None, ), # 4 +) +all_structs.append(DropTableRequest) +DropTableRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'catalogName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableName', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'deleteData', None, None, ), # 4 + (5, TType.STRUCT, 'envContext', [EnvironmentContext, None], None, ), # 5 + (6, TType.BOOL, 'dropPartitions', None, None, ), # 6 ) all_structs.append(GetDatabaseRequest) GetDatabaseRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "catalogName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.LIST, - "processorCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 3 - ( - 4, - TType.STRING, - "processorIdentifier", - "UTF8", - None, - ), # 4 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 + (3, TType.LIST, 'processorCapabilities', (TType.STRING, 'UTF8', False), None, ), # 3 + (4, TType.STRING, 'processorIdentifier', 'UTF8', None, ), # 4 +) +all_structs.append(AlterDatabaseRequest) +AlterDatabaseRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'oldDbName', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'newDb', [Database, None], None, ), # 2 ) all_structs.append(DropDatabaseRequest) DropDatabaseRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "catalogName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.BOOL, - "ignoreUnknownDb", - None, - None, - ), # 3 - ( - 4, - TType.BOOL, - "deleteData", - None, - None, - ), # 4 - ( - 5, - TType.BOOL, - "cascade", - None, - None, - ), # 5 - ( - 6, - TType.BOOL, - "softDelete", - None, - False, - ), # 6 - ( - 7, - TType.I64, - "txnId", - None, - 0, - ), # 7 - ( - 8, - TType.BOOL, - "deleteManagedDir", - None, - True, - ), # 8 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 + (3, TType.BOOL, 'ignoreUnknownDb', None, None, ), # 3 + (4, TType.BOOL, 'deleteData', None, None, ), # 4 + (5, TType.BOOL, 'cascade', None, None, ), # 5 + (6, TType.BOOL, 'softDelete', None, False, ), # 6 + (7, TType.I64, 'txnId', None, 0, ), # 7 + (8, TType.BOOL, 'deleteManagedDir', None, True, ), # 8 +) +all_structs.append(GetFunctionsRequest) +GetFunctionsRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'catalogName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'pattern', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'returnNames', None, True, ), # 4 +) +all_structs.append(GetFunctionsResponse) +GetFunctionsResponse.thrift_spec = ( + None, # 0 + (1, TType.LIST, 'function_names', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.LIST, 'functions', (TType.STRUCT, [Function, None], False), None, ), # 2 ) all_structs.append(CmRecycleRequest) CmRecycleRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dataPath", - "UTF8", - None, - ), # 1 - ( - 2, - TType.BOOL, - "purge", - None, - None, - ), # 2 + (1, TType.STRING, 'dataPath', 'UTF8', None, ), # 1 + (2, TType.BOOL, 'purge', None, None, ), # 2 ) all_structs.append(CmRecycleResponse) -CmRecycleResponse.thrift_spec = () +CmRecycleResponse.thrift_spec = ( +) all_structs.append(TableMeta) TableMeta.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tableType", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "comments", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "catName", - "UTF8", - None, - ), # 5 + (1, TType.STRING, 'dbName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'tableName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableType', 'UTF8', None, ), # 3 + (4, TType.STRING, 'comments', 'UTF8', None, ), # 4 + (5, TType.STRING, 'catName', 'UTF8', None, ), # 5 + (6, TType.STRING, 'ownerName', 'UTF8', None, ), # 6 + (7, TType.I32, 'ownerType', None, None, ), # 7 ) all_structs.append(Materialization) Materialization.thrift_spec = ( None, # 0 - ( - 1, - TType.BOOL, - "sourceTablesUpdateDeleteModified", - None, - None, - ), # 1 - ( - 2, - TType.BOOL, - "sourceTablesCompacted", - None, - None, - ), # 2 + (1, TType.BOOL, 'sourceTablesUpdateDeleteModified', None, None, ), # 1 + (2, TType.BOOL, 'sourceTablesCompacted', None, None, ), # 2 ) all_structs.append(WMResourcePlan) WMResourcePlan.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I32, - "status", - None, - None, - ), # 2 - ( - 3, - TType.I32, - "queryParallelism", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "defaultPoolPath", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "ns", - "UTF8", - None, - ), # 5 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.I32, 'status', None, None, ), # 2 + (3, TType.I32, 'queryParallelism', None, None, ), # 3 + (4, TType.STRING, 'defaultPoolPath', 'UTF8', None, ), # 4 + (5, TType.STRING, 'ns', 'UTF8', None, ), # 5 ) all_structs.append(WMNullableResourcePlan) WMNullableResourcePlan.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.I32, - "status", - None, - None, - ), # 2 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.I32, 'status', None, None, ), # 2 None, # 3 - ( - 4, - TType.I32, - "queryParallelism", - None, - None, - ), # 4 - ( - 5, - TType.BOOL, - "isSetQueryParallelism", - None, - None, - ), # 5 - ( - 6, - TType.STRING, - "defaultPoolPath", - "UTF8", - None, - ), # 6 - ( - 7, - TType.BOOL, - "isSetDefaultPoolPath", - None, - None, - ), # 7 - ( - 8, - TType.STRING, - "ns", - "UTF8", - None, - ), # 8 + (4, TType.I32, 'queryParallelism', None, None, ), # 4 + (5, TType.BOOL, 'isSetQueryParallelism', None, None, ), # 5 + (6, TType.STRING, 'defaultPoolPath', 'UTF8', None, ), # 6 + (7, TType.BOOL, 'isSetDefaultPoolPath', None, None, ), # 7 + (8, TType.STRING, 'ns', 'UTF8', None, ), # 8 ) all_structs.append(WMPool) WMPool.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "poolPath", - "UTF8", - None, - ), # 2 - ( - 3, - TType.DOUBLE, - "allocFraction", - None, - None, - ), # 3 - ( - 4, - TType.I32, - "queryParallelism", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "schedulingPolicy", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "ns", - "UTF8", - None, - ), # 6 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'poolPath', 'UTF8', None, ), # 2 + (3, TType.DOUBLE, 'allocFraction', None, None, ), # 3 + (4, TType.I32, 'queryParallelism', None, None, ), # 4 + (5, TType.STRING, 'schedulingPolicy', 'UTF8', None, ), # 5 + (6, TType.STRING, 'ns', 'UTF8', None, ), # 6 ) all_structs.append(WMNullablePool) WMNullablePool.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "poolPath", - "UTF8", - None, - ), # 2 - ( - 3, - TType.DOUBLE, - "allocFraction", - None, - None, - ), # 3 - ( - 4, - TType.I32, - "queryParallelism", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "schedulingPolicy", - "UTF8", - None, - ), # 5 - ( - 6, - TType.BOOL, - "isSetSchedulingPolicy", - None, - None, - ), # 6 - ( - 7, - TType.STRING, - "ns", - "UTF8", - None, - ), # 7 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'poolPath', 'UTF8', None, ), # 2 + (3, TType.DOUBLE, 'allocFraction', None, None, ), # 3 + (4, TType.I32, 'queryParallelism', None, None, ), # 4 + (5, TType.STRING, 'schedulingPolicy', 'UTF8', None, ), # 5 + (6, TType.BOOL, 'isSetSchedulingPolicy', None, None, ), # 6 + (7, TType.STRING, 'ns', 'UTF8', None, ), # 7 ) all_structs.append(WMTrigger) WMTrigger.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "triggerName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "triggerExpression", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "actionExpression", - "UTF8", - None, - ), # 4 - ( - 5, - TType.BOOL, - "isInUnmanaged", - None, - None, - ), # 5 - ( - 6, - TType.STRING, - "ns", - "UTF8", - None, - ), # 6 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'triggerName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'triggerExpression', 'UTF8', None, ), # 3 + (4, TType.STRING, 'actionExpression', 'UTF8', None, ), # 4 + (5, TType.BOOL, 'isInUnmanaged', None, None, ), # 5 + (6, TType.STRING, 'ns', 'UTF8', None, ), # 6 ) all_structs.append(WMMapping) WMMapping.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "entityType", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "entityName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "poolPath", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I32, - "ordering", - None, - None, - ), # 5 - ( - 6, - TType.STRING, - "ns", - "UTF8", - None, - ), # 6 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'entityType', 'UTF8', None, ), # 2 + (3, TType.STRING, 'entityName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'poolPath', 'UTF8', None, ), # 4 + (5, TType.I32, 'ordering', None, None, ), # 5 + (6, TType.STRING, 'ns', 'UTF8', None, ), # 6 ) all_structs.append(WMPoolTrigger) WMPoolTrigger.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "pool", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "trigger", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "ns", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'pool', 'UTF8', None, ), # 1 + (2, TType.STRING, 'trigger', 'UTF8', None, ), # 2 + (3, TType.STRING, 'ns', 'UTF8', None, ), # 3 ) all_structs.append(WMFullResourcePlan) WMFullResourcePlan.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "plan", - [WMResourcePlan, None], - None, - ), # 1 - ( - 2, - TType.LIST, - "pools", - (TType.STRUCT, [WMPool, None], False), - None, - ), # 2 - ( - 3, - TType.LIST, - "mappings", - (TType.STRUCT, [WMMapping, None], False), - None, - ), # 3 - ( - 4, - TType.LIST, - "triggers", - (TType.STRUCT, [WMTrigger, None], False), - None, - ), # 4 - ( - 5, - TType.LIST, - "poolTriggers", - (TType.STRUCT, [WMPoolTrigger, None], False), - None, - ), # 5 + (1, TType.STRUCT, 'plan', [WMResourcePlan, None], None, ), # 1 + (2, TType.LIST, 'pools', (TType.STRUCT, [WMPool, None], False), None, ), # 2 + (3, TType.LIST, 'mappings', (TType.STRUCT, [WMMapping, None], False), None, ), # 3 + (4, TType.LIST, 'triggers', (TType.STRUCT, [WMTrigger, None], False), None, ), # 4 + (5, TType.LIST, 'poolTriggers', (TType.STRUCT, [WMPoolTrigger, None], False), None, ), # 5 ) all_structs.append(WMCreateResourcePlanRequest) WMCreateResourcePlanRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "resourcePlan", - [WMResourcePlan, None], - None, - ), # 1 - ( - 2, - TType.STRING, - "copyFrom", - "UTF8", - None, - ), # 2 + (1, TType.STRUCT, 'resourcePlan', [WMResourcePlan, None], None, ), # 1 + (2, TType.STRING, 'copyFrom', 'UTF8', None, ), # 2 ) all_structs.append(WMCreateResourcePlanResponse) -WMCreateResourcePlanResponse.thrift_spec = () +WMCreateResourcePlanResponse.thrift_spec = ( +) all_structs.append(WMGetActiveResourcePlanRequest) WMGetActiveResourcePlanRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "ns", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'ns', 'UTF8', None, ), # 1 ) all_structs.append(WMGetActiveResourcePlanResponse) WMGetActiveResourcePlanResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "resourcePlan", - [WMFullResourcePlan, None], - None, - ), # 1 + (1, TType.STRUCT, 'resourcePlan', [WMFullResourcePlan, None], None, ), # 1 ) all_structs.append(WMGetResourcePlanRequest) WMGetResourcePlanRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "ns", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'ns', 'UTF8', None, ), # 2 ) all_structs.append(WMGetResourcePlanResponse) WMGetResourcePlanResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "resourcePlan", - [WMFullResourcePlan, None], - None, - ), # 1 + (1, TType.STRUCT, 'resourcePlan', [WMFullResourcePlan, None], None, ), # 1 ) all_structs.append(WMGetAllResourcePlanRequest) WMGetAllResourcePlanRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "ns", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'ns', 'UTF8', None, ), # 1 ) all_structs.append(WMGetAllResourcePlanResponse) WMGetAllResourcePlanResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "resourcePlans", - (TType.STRUCT, [WMResourcePlan, None], False), - None, - ), # 1 + (1, TType.LIST, 'resourcePlans', (TType.STRUCT, [WMResourcePlan, None], False), None, ), # 1 ) all_structs.append(WMAlterResourcePlanRequest) WMAlterResourcePlanRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRUCT, - "resourcePlan", - [WMNullableResourcePlan, None], - None, - ), # 2 - ( - 3, - TType.BOOL, - "isEnableAndActivate", - None, - None, - ), # 3 - ( - 4, - TType.BOOL, - "isForceDeactivate", - None, - None, - ), # 4 - ( - 5, - TType.BOOL, - "isReplace", - None, - None, - ), # 5 - ( - 6, - TType.STRING, - "ns", - "UTF8", - None, - ), # 6 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'resourcePlan', [WMNullableResourcePlan, None], None, ), # 2 + (3, TType.BOOL, 'isEnableAndActivate', None, None, ), # 3 + (4, TType.BOOL, 'isForceDeactivate', None, None, ), # 4 + (5, TType.BOOL, 'isReplace', None, None, ), # 5 + (6, TType.STRING, 'ns', 'UTF8', None, ), # 6 ) all_structs.append(WMAlterResourcePlanResponse) WMAlterResourcePlanResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "fullResourcePlan", - [WMFullResourcePlan, None], - None, - ), # 1 + (1, TType.STRUCT, 'fullResourcePlan', [WMFullResourcePlan, None], None, ), # 1 ) all_structs.append(WMValidateResourcePlanRequest) WMValidateResourcePlanRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "ns", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'ns', 'UTF8', None, ), # 2 ) all_structs.append(WMValidateResourcePlanResponse) WMValidateResourcePlanResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "errors", - (TType.STRING, "UTF8", False), - None, - ), # 1 - ( - 2, - TType.LIST, - "warnings", - (TType.STRING, "UTF8", False), - None, - ), # 2 + (1, TType.LIST, 'errors', (TType.STRING, 'UTF8', False), None, ), # 1 + (2, TType.LIST, 'warnings', (TType.STRING, 'UTF8', False), None, ), # 2 ) all_structs.append(WMDropResourcePlanRequest) WMDropResourcePlanRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "ns", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'ns', 'UTF8', None, ), # 2 ) all_structs.append(WMDropResourcePlanResponse) -WMDropResourcePlanResponse.thrift_spec = () +WMDropResourcePlanResponse.thrift_spec = ( +) all_structs.append(WMCreateTriggerRequest) WMCreateTriggerRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "trigger", - [WMTrigger, None], - None, - ), # 1 + (1, TType.STRUCT, 'trigger', [WMTrigger, None], None, ), # 1 ) all_structs.append(WMCreateTriggerResponse) -WMCreateTriggerResponse.thrift_spec = () +WMCreateTriggerResponse.thrift_spec = ( +) all_structs.append(WMAlterTriggerRequest) WMAlterTriggerRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "trigger", - [WMTrigger, None], - None, - ), # 1 + (1, TType.STRUCT, 'trigger', [WMTrigger, None], None, ), # 1 ) all_structs.append(WMAlterTriggerResponse) -WMAlterTriggerResponse.thrift_spec = () +WMAlterTriggerResponse.thrift_spec = ( +) all_structs.append(WMDropTriggerRequest) WMDropTriggerRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "triggerName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "ns", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'triggerName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'ns', 'UTF8', None, ), # 3 ) all_structs.append(WMDropTriggerResponse) -WMDropTriggerResponse.thrift_spec = () +WMDropTriggerResponse.thrift_spec = ( +) all_structs.append(WMGetTriggersForResourePlanRequest) WMGetTriggersForResourePlanRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "ns", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'ns', 'UTF8', None, ), # 2 ) all_structs.append(WMGetTriggersForResourePlanResponse) WMGetTriggersForResourePlanResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "triggers", - (TType.STRUCT, [WMTrigger, None], False), - None, - ), # 1 + (1, TType.LIST, 'triggers', (TType.STRUCT, [WMTrigger, None], False), None, ), # 1 ) all_structs.append(WMCreatePoolRequest) WMCreatePoolRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "pool", - [WMPool, None], - None, - ), # 1 + (1, TType.STRUCT, 'pool', [WMPool, None], None, ), # 1 ) all_structs.append(WMCreatePoolResponse) -WMCreatePoolResponse.thrift_spec = () +WMCreatePoolResponse.thrift_spec = ( +) all_structs.append(WMAlterPoolRequest) WMAlterPoolRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "pool", - [WMNullablePool, None], - None, - ), # 1 - ( - 2, - TType.STRING, - "poolPath", - "UTF8", - None, - ), # 2 + (1, TType.STRUCT, 'pool', [WMNullablePool, None], None, ), # 1 + (2, TType.STRING, 'poolPath', 'UTF8', None, ), # 2 ) all_structs.append(WMAlterPoolResponse) -WMAlterPoolResponse.thrift_spec = () +WMAlterPoolResponse.thrift_spec = ( +) all_structs.append(WMDropPoolRequest) WMDropPoolRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "poolPath", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "ns", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'poolPath', 'UTF8', None, ), # 2 + (3, TType.STRING, 'ns', 'UTF8', None, ), # 3 ) all_structs.append(WMDropPoolResponse) -WMDropPoolResponse.thrift_spec = () +WMDropPoolResponse.thrift_spec = ( +) all_structs.append(WMCreateOrUpdateMappingRequest) WMCreateOrUpdateMappingRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "mapping", - [WMMapping, None], - None, - ), # 1 - ( - 2, - TType.BOOL, - "update", - None, - None, - ), # 2 + (1, TType.STRUCT, 'mapping', [WMMapping, None], None, ), # 1 + (2, TType.BOOL, 'update', None, None, ), # 2 ) all_structs.append(WMCreateOrUpdateMappingResponse) -WMCreateOrUpdateMappingResponse.thrift_spec = () +WMCreateOrUpdateMappingResponse.thrift_spec = ( +) all_structs.append(WMDropMappingRequest) WMDropMappingRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "mapping", - [WMMapping, None], - None, - ), # 1 + (1, TType.STRUCT, 'mapping', [WMMapping, None], None, ), # 1 ) all_structs.append(WMDropMappingResponse) -WMDropMappingResponse.thrift_spec = () +WMDropMappingResponse.thrift_spec = ( +) all_structs.append(WMCreateOrDropTriggerToPoolMappingRequest) WMCreateOrDropTriggerToPoolMappingRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "resourcePlanName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "triggerName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "poolPath", - "UTF8", - None, - ), # 3 - ( - 4, - TType.BOOL, - "drop", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "ns", - "UTF8", - None, - ), # 5 + (1, TType.STRING, 'resourcePlanName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'triggerName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'poolPath', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'drop', None, None, ), # 4 + (5, TType.STRING, 'ns', 'UTF8', None, ), # 5 ) all_structs.append(WMCreateOrDropTriggerToPoolMappingResponse) -WMCreateOrDropTriggerToPoolMappingResponse.thrift_spec = () +WMCreateOrDropTriggerToPoolMappingResponse.thrift_spec = ( +) all_structs.append(ISchema) ISchema.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "schemaType", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "name", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "catName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.I32, - "compatibility", - None, - None, - ), # 5 - ( - 6, - TType.I32, - "validationLevel", - None, - None, - ), # 6 - ( - 7, - TType.BOOL, - "canEvolve", - None, - None, - ), # 7 - ( - 8, - TType.STRING, - "schemaGroup", - "UTF8", - None, - ), # 8 - ( - 9, - TType.STRING, - "description", - "UTF8", - None, - ), # 9 + (1, TType.I32, 'schemaType', None, None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'catName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'dbName', 'UTF8', None, ), # 4 + (5, TType.I32, 'compatibility', None, None, ), # 5 + (6, TType.I32, 'validationLevel', None, None, ), # 6 + (7, TType.BOOL, 'canEvolve', None, None, ), # 7 + (8, TType.STRING, 'schemaGroup', 'UTF8', None, ), # 8 + (9, TType.STRING, 'description', 'UTF8', None, ), # 9 ) all_structs.append(ISchemaName) ISchemaName.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "schemaName", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'schemaName', 'UTF8', None, ), # 3 ) all_structs.append(AlterISchemaRequest) AlterISchemaRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "name", - [ISchemaName, None], - None, - ), # 1 + (1, TType.STRUCT, 'name', [ISchemaName, None], None, ), # 1 None, # 2 - ( - 3, - TType.STRUCT, - "newSchema", - [ISchema, None], - None, - ), # 3 + (3, TType.STRUCT, 'newSchema', [ISchema, None], None, ), # 3 ) all_structs.append(SchemaVersion) SchemaVersion.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schema", - [ISchemaName, None], - None, - ), # 1 - ( - 2, - TType.I32, - "version", - None, - None, - ), # 2 - ( - 3, - TType.I64, - "createdAt", - None, - None, - ), # 3 - ( - 4, - TType.LIST, - "cols", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 4 - ( - 5, - TType.I32, - "state", - None, - None, - ), # 5 - ( - 6, - TType.STRING, - "description", - "UTF8", - None, - ), # 6 - ( - 7, - TType.STRING, - "schemaText", - "UTF8", - None, - ), # 7 - ( - 8, - TType.STRING, - "fingerprint", - "UTF8", - None, - ), # 8 - ( - 9, - TType.STRING, - "name", - "UTF8", - None, - ), # 9 - ( - 10, - TType.STRUCT, - "serDe", - [SerDeInfo, None], - None, - ), # 10 + (1, TType.STRUCT, 'schema', [ISchemaName, None], None, ), # 1 + (2, TType.I32, 'version', None, None, ), # 2 + (3, TType.I64, 'createdAt', None, None, ), # 3 + (4, TType.LIST, 'cols', (TType.STRUCT, [FieldSchema, None], False), None, ), # 4 + (5, TType.I32, 'state', None, None, ), # 5 + (6, TType.STRING, 'description', 'UTF8', None, ), # 6 + (7, TType.STRING, 'schemaText', 'UTF8', None, ), # 7 + (8, TType.STRING, 'fingerprint', 'UTF8', None, ), # 8 + (9, TType.STRING, 'name', 'UTF8', None, ), # 9 + (10, TType.STRUCT, 'serDe', [SerDeInfo, None], None, ), # 10 ) all_structs.append(SchemaVersionDescriptor) SchemaVersionDescriptor.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schema", - [ISchemaName, None], - None, - ), # 1 - ( - 2, - TType.I32, - "version", - None, - None, - ), # 2 + (1, TType.STRUCT, 'schema', [ISchemaName, None], None, ), # 1 + (2, TType.I32, 'version', None, None, ), # 2 ) all_structs.append(FindSchemasByColsRqst) FindSchemasByColsRqst.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "colName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "colNamespace", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "type", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'colName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'colNamespace', 'UTF8', None, ), # 2 + (3, TType.STRING, 'type', 'UTF8', None, ), # 3 ) all_structs.append(FindSchemasByColsResp) FindSchemasByColsResp.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "schemaVersions", - (TType.STRUCT, [SchemaVersionDescriptor, None], False), - None, - ), # 1 + (1, TType.LIST, 'schemaVersions', (TType.STRUCT, [SchemaVersionDescriptor, None], False), None, ), # 1 ) all_structs.append(MapSchemaVersionToSerdeRequest) MapSchemaVersionToSerdeRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schemaVersion", - [SchemaVersionDescriptor, None], - None, - ), # 1 - ( - 2, - TType.STRING, - "serdeName", - "UTF8", - None, - ), # 2 + (1, TType.STRUCT, 'schemaVersion', [SchemaVersionDescriptor, None], None, ), # 1 + (2, TType.STRING, 'serdeName', 'UTF8', None, ), # 2 ) all_structs.append(SetSchemaVersionStateRequest) SetSchemaVersionStateRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "schemaVersion", - [SchemaVersionDescriptor, None], - None, - ), # 1 - ( - 2, - TType.I32, - "state", - None, - None, - ), # 2 + (1, TType.STRUCT, 'schemaVersion', [SchemaVersionDescriptor, None], None, ), # 1 + (2, TType.I32, 'state', None, None, ), # 2 ) all_structs.append(GetSerdeRequest) GetSerdeRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "serdeName", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'serdeName', 'UTF8', None, ), # 1 ) all_structs.append(RuntimeStat) RuntimeStat.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "createTime", - None, - None, - ), # 1 - ( - 2, - TType.I32, - "weight", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "payload", - "BINARY", - None, - ), # 3 + (1, TType.I32, 'createTime', None, None, ), # 1 + (2, TType.I32, 'weight', None, None, ), # 2 + (3, TType.STRING, 'payload', 'BINARY', None, ), # 3 ) all_structs.append(GetRuntimeStatsRequest) GetRuntimeStatsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "maxWeight", - None, - None, - ), # 1 - ( - 2, - TType.I32, - "maxCreateTime", - None, - None, - ), # 2 + (1, TType.I32, 'maxWeight', None, None, ), # 1 + (2, TType.I32, 'maxCreateTime', None, None, ), # 2 ) all_structs.append(CreateTableRequest) CreateTableRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "table", - [Table, None], - None, - ), # 1 - ( - 2, - TType.STRUCT, - "envContext", - [EnvironmentContext, None], - None, - ), # 2 - ( - 3, - TType.LIST, - "primaryKeys", - (TType.STRUCT, [SQLPrimaryKey, None], False), - None, - ), # 3 - ( - 4, - TType.LIST, - "foreignKeys", - (TType.STRUCT, [SQLForeignKey, None], False), - None, - ), # 4 - ( - 5, - TType.LIST, - "uniqueConstraints", - (TType.STRUCT, [SQLUniqueConstraint, None], False), - None, - ), # 5 - ( - 6, - TType.LIST, - "notNullConstraints", - (TType.STRUCT, [SQLNotNullConstraint, None], False), - None, - ), # 6 - ( - 7, - TType.LIST, - "defaultConstraints", - (TType.STRUCT, [SQLDefaultConstraint, None], False), - None, - ), # 7 - ( - 8, - TType.LIST, - "checkConstraints", - (TType.STRUCT, [SQLCheckConstraint, None], False), - None, - ), # 8 - ( - 9, - TType.LIST, - "processorCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 9 - ( - 10, - TType.STRING, - "processorIdentifier", - "UTF8", - None, - ), # 10 + (1, TType.STRUCT, 'table', [Table, None], None, ), # 1 + (2, TType.STRUCT, 'envContext', [EnvironmentContext, None], None, ), # 2 + (3, TType.LIST, 'primaryKeys', (TType.STRUCT, [SQLPrimaryKey, None], False), None, ), # 3 + (4, TType.LIST, 'foreignKeys', (TType.STRUCT, [SQLForeignKey, None], False), None, ), # 4 + (5, TType.LIST, 'uniqueConstraints', (TType.STRUCT, [SQLUniqueConstraint, None], False), None, ), # 5 + (6, TType.LIST, 'notNullConstraints', (TType.STRUCT, [SQLNotNullConstraint, None], False), None, ), # 6 + (7, TType.LIST, 'defaultConstraints', (TType.STRUCT, [SQLDefaultConstraint, None], False), None, ), # 7 + (8, TType.LIST, 'checkConstraints', (TType.STRUCT, [SQLCheckConstraint, None], False), None, ), # 8 + (9, TType.LIST, 'processorCapabilities', (TType.STRING, 'UTF8', False), None, ), # 9 + (10, TType.STRING, 'processorIdentifier', 'UTF8', None, ), # 10 ) all_structs.append(CreateDatabaseRequest) CreateDatabaseRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "databaseName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "description", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "locationUri", - "UTF8", - None, - ), # 3 - ( - 4, - TType.MAP, - "parameters", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.STRUCT, - "privileges", - [PrincipalPrivilegeSet, None], - None, - ), # 5 - ( - 6, - TType.STRING, - "ownerName", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I32, - "ownerType", - None, - None, - ), # 7 - ( - 8, - TType.STRING, - "catalogName", - "UTF8", - None, - ), # 8 - ( - 9, - TType.I32, - "createTime", - None, - None, - ), # 9 - ( - 10, - TType.STRING, - "managedLocationUri", - "UTF8", - None, - ), # 10 - ( - 11, - TType.STRING, - "type", - "UTF8", - None, - ), # 11 - ( - 12, - TType.STRING, - "dataConnectorName", - "UTF8", - None, - ), # 12 + (1, TType.STRING, 'databaseName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'description', 'UTF8', None, ), # 2 + (3, TType.STRING, 'locationUri', 'UTF8', None, ), # 3 + (4, TType.MAP, 'parameters', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.STRUCT, 'privileges', [PrincipalPrivilegeSet, None], None, ), # 5 + (6, TType.STRING, 'ownerName', 'UTF8', None, ), # 6 + (7, TType.I32, 'ownerType', None, None, ), # 7 + (8, TType.STRING, 'catalogName', 'UTF8', None, ), # 8 + (9, TType.I32, 'createTime', None, None, ), # 9 + (10, TType.STRING, 'managedLocationUri', 'UTF8', None, ), # 10 + (11, TType.I32, 'type', None, None, ), # 11 + (12, TType.STRING, 'dataConnectorName', 'UTF8', None, ), # 12 + (13, TType.STRING, 'remote_dbname', 'UTF8', None, ), # 13 ) all_structs.append(CreateDataConnectorRequest) CreateDataConnectorRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "connector", - [DataConnector, None], - None, - ), # 1 + (1, TType.STRUCT, 'connector', [DataConnector, None], None, ), # 1 ) all_structs.append(GetDataConnectorRequest) GetDataConnectorRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "connectorName", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'connectorName', 'UTF8', None, ), # 1 +) +all_structs.append(AlterDataConnectorRequest) +AlterDataConnectorRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'connectorName', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'newConnector', [DataConnector, None], None, ), # 2 +) +all_structs.append(DropDataConnectorRequest) +DropDataConnectorRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'connectorName', 'UTF8', None, ), # 1 + (2, TType.BOOL, 'ifNotExists', None, None, ), # 2 + (3, TType.BOOL, 'checkReferences', None, None, ), # 3 ) all_structs.append(ScheduledQueryPollRequest) ScheduledQueryPollRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "clusterNamespace", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'clusterNamespace', 'UTF8', None, ), # 1 ) all_structs.append(ScheduledQueryKey) ScheduledQueryKey.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "scheduleName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "clusterNamespace", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'scheduleName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'clusterNamespace', 'UTF8', None, ), # 2 ) all_structs.append(ScheduledQueryPollResponse) ScheduledQueryPollResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "scheduleKey", - [ScheduledQueryKey, None], - None, - ), # 1 - ( - 2, - TType.I64, - "executionId", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "query", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "user", - "UTF8", - None, - ), # 4 + (1, TType.STRUCT, 'scheduleKey', [ScheduledQueryKey, None], None, ), # 1 + (2, TType.I64, 'executionId', None, None, ), # 2 + (3, TType.STRING, 'query', 'UTF8', None, ), # 3 + (4, TType.STRING, 'user', 'UTF8', None, ), # 4 ) all_structs.append(ScheduledQuery) ScheduledQuery.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "scheduleKey", - [ScheduledQueryKey, None], - None, - ), # 1 - ( - 2, - TType.BOOL, - "enabled", - None, - None, - ), # 2 + (1, TType.STRUCT, 'scheduleKey', [ScheduledQueryKey, None], None, ), # 1 + (2, TType.BOOL, 'enabled', None, None, ), # 2 None, # 3 - ( - 4, - TType.STRING, - "schedule", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "user", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "query", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I32, - "nextExecution", - None, - None, - ), # 7 + (4, TType.STRING, 'schedule', 'UTF8', None, ), # 4 + (5, TType.STRING, 'user', 'UTF8', None, ), # 5 + (6, TType.STRING, 'query', 'UTF8', None, ), # 6 + (7, TType.I32, 'nextExecution', None, None, ), # 7 ) all_structs.append(ScheduledQueryMaintenanceRequest) ScheduledQueryMaintenanceRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I32, - "type", - None, - None, - ), # 1 - ( - 2, - TType.STRUCT, - "scheduledQuery", - [ScheduledQuery, None], - None, - ), # 2 + (1, TType.I32, 'type', None, None, ), # 1 + (2, TType.STRUCT, 'scheduledQuery', [ScheduledQuery, None], None, ), # 2 ) all_structs.append(ScheduledQueryProgressInfo) ScheduledQueryProgressInfo.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "scheduledExecutionId", - None, - None, - ), # 1 - ( - 2, - TType.I32, - "state", - None, - None, - ), # 2 - ( - 3, - TType.STRING, - "executorQueryId", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "errorMessage", - "UTF8", - None, - ), # 4 + (1, TType.I64, 'scheduledExecutionId', None, None, ), # 1 + (2, TType.I32, 'state', None, None, ), # 2 + (3, TType.STRING, 'executorQueryId', 'UTF8', None, ), # 3 + (4, TType.STRING, 'errorMessage', 'UTF8', None, ), # 4 ) all_structs.append(AlterPartitionsRequest) AlterPartitionsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.LIST, - "partitions", - (TType.STRUCT, [Partition, None], False), - None, - ), # 4 - ( - 5, - TType.STRUCT, - "environmentContext", - [EnvironmentContext, None], - None, - ), # 5 - ( - 6, - TType.I64, - "writeId", - None, - -1, - ), # 6 - ( - 7, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 7 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableName', 'UTF8', None, ), # 3 + (4, TType.LIST, 'partitions', (TType.STRUCT, [Partition, None], False), None, ), # 4 + (5, TType.STRUCT, 'environmentContext', [EnvironmentContext, None], None, ), # 5 + (6, TType.I64, 'writeId', None, -1, ), # 6 + (7, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 7 + (8, TType.BOOL, 'skipColumnSchemaForPartition', None, None, ), # 8 + (9, TType.LIST, 'partitionColSchema', (TType.STRUCT, [FieldSchema, None], False), None, ), # 9 +) +all_structs.append(AppendPartitionsRequest) +AppendPartitionsRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'catalogName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'name', 'UTF8', None, ), # 4 + (5, TType.LIST, 'partVals', (TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.STRUCT, 'environmentContext', [EnvironmentContext, None], None, ), # 6 ) all_structs.append(AlterPartitionsResponse) -AlterPartitionsResponse.thrift_spec = () +AlterPartitionsResponse.thrift_spec = ( +) all_structs.append(RenamePartitionRequest) RenamePartitionRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.LIST, - "partVals", - (TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.STRUCT, - "newPart", - [Partition, None], - None, - ), # 5 - ( - 6, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I64, - "txnId", - None, - None, - ), # 7 - ( - 8, - TType.BOOL, - "clonePart", - None, - None, - ), # 8 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableName', 'UTF8', None, ), # 3 + (4, TType.LIST, 'partVals', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.STRUCT, 'newPart', [Partition, None], None, ), # 5 + (6, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 6 + (7, TType.I64, 'txnId', None, None, ), # 7 + (8, TType.BOOL, 'clonePart', None, None, ), # 8 ) all_structs.append(RenamePartitionResponse) -RenamePartitionResponse.thrift_spec = () +RenamePartitionResponse.thrift_spec = ( +) all_structs.append(AlterTableRequest) AlterTableRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRUCT, - "table", - [Table, None], - None, - ), # 4 - ( - 5, - TType.STRUCT, - "environmentContext", - [EnvironmentContext, None], - None, - ), # 5 - ( - 6, - TType.I64, - "writeId", - None, - -1, - ), # 6 - ( - 7, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 7 - ( - 8, - TType.LIST, - "processorCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 8 - ( - 9, - TType.STRING, - "processorIdentifier", - "UTF8", - None, - ), # 9 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableName', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'table', [Table, None], None, ), # 4 + (5, TType.STRUCT, 'environmentContext', [EnvironmentContext, None], None, ), # 5 + (6, TType.I64, 'writeId', None, -1, ), # 6 + (7, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 7 + (8, TType.LIST, 'processorCapabilities', (TType.STRING, 'UTF8', False), None, ), # 8 + (9, TType.STRING, 'processorIdentifier', 'UTF8', None, ), # 9 + (10, TType.STRING, 'expectedParameterKey', 'UTF8', None, ), # 10 + (11, TType.STRING, 'expectedParameterValue', 'UTF8', None, ), # 11 ) all_structs.append(AlterTableResponse) -AlterTableResponse.thrift_spec = () +AlterTableResponse.thrift_spec = ( +) all_structs.append(GetPartitionsFilterSpec) GetPartitionsFilterSpec.thrift_spec = ( None, # 0 @@ -41509,1007 +35359,338 @@ def __ne__(self, other): None, # 4 None, # 5 None, # 6 - ( - 7, - TType.I32, - "filterMode", - None, - None, - ), # 7 - ( - 8, - TType.LIST, - "filters", - (TType.STRING, "UTF8", False), - None, - ), # 8 + (7, TType.I32, 'filterMode', None, None, ), # 7 + (8, TType.LIST, 'filters', (TType.STRING, 'UTF8', False), None, ), # 8 ) all_structs.append(GetPartitionsResponse) GetPartitionsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitionSpec", - (TType.STRUCT, [PartitionSpec, None], False), - None, - ), # 1 + (1, TType.LIST, 'partitionSpec', (TType.STRUCT, [PartitionSpec, None], False), None, ), # 1 ) all_structs.append(GetPartitionsRequest) GetPartitionsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.BOOL, - "withAuth", - None, - None, - ), # 4 - ( - 5, - TType.STRING, - "user", - "UTF8", - None, - ), # 5 - ( - 6, - TType.LIST, - "groupNames", - (TType.STRING, "UTF8", False), - None, - ), # 6 - ( - 7, - TType.STRUCT, - "projectionSpec", - [GetProjectionsSpec, None], - None, - ), # 7 - ( - 8, - TType.STRUCT, - "filterSpec", - [GetPartitionsFilterSpec, None], - None, - ), # 8 - ( - 9, - TType.LIST, - "processorCapabilities", - (TType.STRING, "UTF8", False), - None, - ), # 9 - ( - 10, - TType.STRING, - "processorIdentifier", - "UTF8", - None, - ), # 10 - ( - 11, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 11 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.BOOL, 'withAuth', None, None, ), # 4 + (5, TType.STRING, 'user', 'UTF8', None, ), # 5 + (6, TType.LIST, 'groupNames', (TType.STRING, 'UTF8', False), None, ), # 6 + (7, TType.STRUCT, 'projectionSpec', [GetProjectionsSpec, None], None, ), # 7 + (8, TType.STRUCT, 'filterSpec', [GetPartitionsFilterSpec, None], None, ), # 8 + (9, TType.LIST, 'processorCapabilities', (TType.STRING, 'UTF8', False), None, ), # 9 + (10, TType.STRING, 'processorIdentifier', 'UTF8', None, ), # 10 + (11, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 11 ) all_structs.append(GetFieldsRequest) GetFieldsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRUCT, - "envContext", - [EnvironmentContext, None], - None, - ), # 4 - ( - 5, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 5 - ( - 6, - TType.I64, - "id", - None, - -1, - ), # 6 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'envContext', [EnvironmentContext, None], None, ), # 4 + (5, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 5 + (6, TType.I64, 'id', None, -1, ), # 6 ) all_structs.append(GetFieldsResponse) GetFieldsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "fields", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 1 + (1, TType.LIST, 'fields', (TType.STRUCT, [FieldSchema, None], False), None, ), # 1 ) all_structs.append(GetSchemaRequest) GetSchemaRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRUCT, - "envContext", - [EnvironmentContext, None], - None, - ), # 4 - ( - 5, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 5 - ( - 6, - TType.I64, - "id", - None, - -1, - ), # 6 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.STRUCT, 'envContext', [EnvironmentContext, None], None, ), # 4 + (5, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 5 + (6, TType.I64, 'id', None, -1, ), # 6 ) all_structs.append(GetSchemaResponse) GetSchemaResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "fields", - (TType.STRUCT, [FieldSchema, None], False), - None, - ), # 1 + (1, TType.LIST, 'fields', (TType.STRUCT, [FieldSchema, None], False), None, ), # 1 ) all_structs.append(GetPartitionRequest) GetPartitionRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.LIST, - "partVals", - (TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 5 - ( - 6, - TType.I64, - "id", - None, - -1, - ), # 6 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.LIST, 'partVals', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 5 + (6, TType.I64, 'id', None, -1, ), # 6 ) all_structs.append(GetPartitionResponse) GetPartitionResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.STRUCT, - "partition", - [Partition, None], - None, - ), # 1 + (1, TType.STRUCT, 'partition', [Partition, None], None, ), # 1 ) all_structs.append(PartitionsRequest) PartitionsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.I16, - "maxParts", - None, - -1, - ), # 4 - ( - 5, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 5 - ( - 6, - TType.I64, - "id", - None, - -1, - ), # 6 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.I16, 'maxParts', None, -1, ), # 4 + (5, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 5 + (6, TType.I64, 'id', None, -1, ), # 6 + (7, TType.BOOL, 'skipColumnSchemaForPartition', None, None, ), # 7 + (8, TType.STRING, 'includeParamKeyPattern', 'UTF8', None, ), # 8 + (9, TType.STRING, 'excludeParamKeyPattern', 'UTF8', None, ), # 9 ) all_structs.append(PartitionsResponse) PartitionsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitions", - (TType.STRUCT, [Partition, None], False), - None, - ), # 1 + (1, TType.LIST, 'partitions', (TType.STRUCT, [Partition, None], False), None, ), # 1 +) +all_structs.append(GetPartitionsByFilterRequest) +GetPartitionsByFilterRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'filter', 'UTF8', None, ), # 4 + (5, TType.I16, 'maxParts', None, -1, ), # 5 + (6, TType.BOOL, 'skipColumnSchemaForPartition', None, None, ), # 6 + (7, TType.STRING, 'includeParamKeyPattern', 'UTF8', None, ), # 7 + (8, TType.STRING, 'excludeParamKeyPattern', 'UTF8', None, ), # 8 ) all_structs.append(GetPartitionNamesPsRequest) GetPartitionNamesPsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.LIST, - "partValues", - (TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.I16, - "maxParts", - None, - -1, - ), # 5 - ( - 6, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 6 - ( - 7, - TType.I64, - "id", - None, - -1, - ), # 7 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.LIST, 'partValues', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.I16, 'maxParts', None, -1, ), # 5 + (6, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 6 + (7, TType.I64, 'id', None, -1, ), # 7 ) all_structs.append(GetPartitionNamesPsResponse) GetPartitionNamesPsResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "names", - (TType.STRING, "UTF8", False), - None, - ), # 1 + (1, TType.LIST, 'names', (TType.STRING, 'UTF8', False), None, ), # 1 ) all_structs.append(GetPartitionsPsWithAuthRequest) GetPartitionsPsWithAuthRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tblName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.LIST, - "partVals", - (TType.STRING, "UTF8", False), - None, - ), # 4 - ( - 5, - TType.I16, - "maxParts", - None, - -1, - ), # 5 - ( - 6, - TType.STRING, - "userName", - "UTF8", - None, - ), # 6 - ( - 7, - TType.LIST, - "groupNames", - (TType.STRING, "UTF8", False), - None, - ), # 7 - ( - 8, - TType.STRING, - "validWriteIdList", - "UTF8", - None, - ), # 8 - ( - 9, - TType.I64, - "id", - None, - -1, - ), # 9 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tblName', 'UTF8', None, ), # 3 + (4, TType.LIST, 'partVals', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.I16, 'maxParts', None, -1, ), # 5 + (6, TType.STRING, 'userName', 'UTF8', None, ), # 6 + (7, TType.LIST, 'groupNames', (TType.STRING, 'UTF8', False), None, ), # 7 + (8, TType.STRING, 'validWriteIdList', 'UTF8', None, ), # 8 + (9, TType.I64, 'id', None, -1, ), # 9 + (10, TType.BOOL, 'skipColumnSchemaForPartition', None, None, ), # 10 + (11, TType.STRING, 'includeParamKeyPattern', 'UTF8', None, ), # 11 + (12, TType.STRING, 'excludeParamKeyPattern', 'UTF8', None, ), # 12 + (13, TType.LIST, 'partNames', (TType.STRING, 'UTF8', False), None, ), # 13 ) all_structs.append(GetPartitionsPsWithAuthResponse) GetPartitionsPsWithAuthResponse.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "partitions", - (TType.STRUCT, [Partition, None], False), - None, - ), # 1 + (1, TType.LIST, 'partitions', (TType.STRUCT, [Partition, None], False), None, ), # 1 ) all_structs.append(ReplicationMetrics) ReplicationMetrics.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "scheduledExecutionId", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "policy", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I64, - "dumpExecutionId", - None, - None, - ), # 3 - ( - 4, - TType.STRING, - "metadata", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "progress", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "messageFormat", - "UTF8", - None, - ), # 6 + (1, TType.I64, 'scheduledExecutionId', None, None, ), # 1 + (2, TType.STRING, 'policy', 'UTF8', None, ), # 2 + (3, TType.I64, 'dumpExecutionId', None, None, ), # 3 + (4, TType.STRING, 'metadata', 'UTF8', None, ), # 4 + (5, TType.STRING, 'progress', 'UTF8', None, ), # 5 + (6, TType.STRING, 'messageFormat', 'UTF8', None, ), # 6 ) all_structs.append(ReplicationMetricList) ReplicationMetricList.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "replicationMetricList", - (TType.STRUCT, [ReplicationMetrics, None], False), - None, - ), # 1 + (1, TType.LIST, 'replicationMetricList', (TType.STRUCT, [ReplicationMetrics, None], False), None, ), # 1 ) all_structs.append(GetReplicationMetricsRequest) GetReplicationMetricsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "scheduledExecutionId", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "policy", - "UTF8", - None, - ), # 2 - ( - 3, - TType.I64, - "dumpExecutionId", - None, - None, - ), # 3 + (1, TType.I64, 'scheduledExecutionId', None, None, ), # 1 + (2, TType.STRING, 'policy', 'UTF8', None, ), # 2 + (3, TType.I64, 'dumpExecutionId', None, None, ), # 3 ) all_structs.append(GetOpenTxnsRequest) GetOpenTxnsRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.LIST, - "excludeTxnTypes", - (TType.I32, None, False), - None, - ), # 1 + (1, TType.LIST, 'excludeTxnTypes', (TType.I32, None, False), None, ), # 1 ) all_structs.append(StoredProcedureRequest) StoredProcedureRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "procName", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'procName', 'UTF8', None, ), # 3 ) all_structs.append(ListStoredProcedureRequest) ListStoredProcedureRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 ) all_structs.append(StoredProcedure) StoredProcedure.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "name", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "catName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "ownerName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "source", - "UTF8", - None, - ), # 5 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'catName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'ownerName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'source', 'UTF8', None, ), # 5 ) all_structs.append(AddPackageRequest) AddPackageRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "packageName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "ownerName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "header", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "body", - "UTF8", - None, - ), # 6 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'packageName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'ownerName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'header', 'UTF8', None, ), # 5 + (6, TType.STRING, 'body', 'UTF8', None, ), # 6 ) all_structs.append(GetPackageRequest) GetPackageRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "packageName", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'packageName', 'UTF8', None, ), # 3 ) all_structs.append(DropPackageRequest) DropPackageRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "packageName", - "UTF8", - None, - ), # 3 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'packageName', 'UTF8', None, ), # 3 ) all_structs.append(ListPackageRequest) ListPackageRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 ) all_structs.append(Package) Package.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "catName", - "UTF8", - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "packageName", - "UTF8", - None, - ), # 3 - ( - 4, - TType.STRING, - "ownerName", - "UTF8", - None, - ), # 4 - ( - 5, - TType.STRING, - "header", - "UTF8", - None, - ), # 5 - ( - 6, - TType.STRING, - "body", - "UTF8", - None, - ), # 6 + (1, TType.STRING, 'catName', 'UTF8', None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'packageName', 'UTF8', None, ), # 3 + (4, TType.STRING, 'ownerName', 'UTF8', None, ), # 4 + (5, TType.STRING, 'header', 'UTF8', None, ), # 5 + (6, TType.STRING, 'body', 'UTF8', None, ), # 6 ) all_structs.append(GetAllWriteEventInfoRequest) GetAllWriteEventInfoRequest.thrift_spec = ( None, # 0 - ( - 1, - TType.I64, - "txnId", - None, - None, - ), # 1 - ( - 2, - TType.STRING, - "dbName", - "UTF8", - None, - ), # 2 - ( - 3, - TType.STRING, - "tableName", - "UTF8", - None, - ), # 3 + (1, TType.I64, 'txnId', None, None, ), # 1 + (2, TType.STRING, 'dbName', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tableName', 'UTF8', None, ), # 3 +) +all_structs.append(DeleteColumnStatisticsRequest) +DeleteColumnStatisticsRequest.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'cat_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'db_name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'tbl_name', 'UTF8', None, ), # 3 + (4, TType.LIST, 'part_names', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.LIST, 'col_names', (TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.STRING, 'engine', 'UTF8', "hive", ), # 6 + (7, TType.BOOL, 'tableLevel', None, False, ), # 7 +) +all_structs.append(ReplayedTxnsForPolicyResult) +ReplayedTxnsForPolicyResult.thrift_spec = ( + None, # 0 + (1, TType.MAP, 'replTxnMapEntry', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1 ) all_structs.append(MetaException) MetaException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(UnknownTableException) UnknownTableException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(UnknownDBException) UnknownDBException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(AlreadyExistsException) AlreadyExistsException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(InvalidPartitionException) InvalidPartitionException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(UnknownPartitionException) UnknownPartitionException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(InvalidObjectException) InvalidObjectException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(NoSuchObjectException) NoSuchObjectException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(InvalidOperationException) InvalidOperationException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(ConfigValSecurityException) ConfigValSecurityException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(InvalidInputException) InvalidInputException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(NoSuchTxnException) NoSuchTxnException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(TxnAbortedException) TxnAbortedException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(TxnOpenException) TxnOpenException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) all_structs.append(NoSuchLockException) NoSuchLockException.thrift_spec = ( None, # 0 - ( - 1, - TType.STRING, - "message", - "UTF8", - None, - ), # 1 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 +) +all_structs.append(CompactionAbortedException) +CompactionAbortedException.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 +) +all_structs.append(NoSuchCompactionException) +NoSuchCompactionException.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'message', 'UTF8', None, ), # 1 ) fix_spec(all_structs) del all_structs