[41/50] [abbrv] hive git commit: HIVE-17990 Add Thrift and DB storage for Schema Registry objects
http://git-wip-us.apache.org/repos/asf/hive/blob/a9e1acaf/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java -- diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java new file mode 100644 index 000..db964b0 --- /dev/null +++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SchemaVersion.java @@ -0,0 +1,1407 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class SchemaVersion implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SchemaVersion"); + + private static final org.apache.thrift.protocol.TField SCHEMA_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("schemaName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("cols", org.apache.thrift.protocol.TType.LIST, (short)4); + private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField SCHEMA_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("schemaText", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField FINGERPRINT_FIELD_DESC = new org.apache.thrift.protocol.TField("fingerprint", org.apache.thrift.protocol.TType.STRING, (short)8); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)9); + private static final org.apache.thrift.protocol.TField SER_DE_FIELD_DESC = new org.apache.thrift.protocol.TField("serDe", org.apache.thrift.protocol.TType.STRUCT, (short)10); + + private static final Map schemes = new HashMap (); + static { +schemes.put(StandardScheme.class, new SchemaVersionStandardSchemeFactory()); +schemes.put(TupleScheme.class, new SchemaVersionTupleSchemeFactory()); + } + + private String schemaName; // required + private int version; // required + private long createdAt; // required + private List cols; // required + private SchemaVersionState state; // optional + private String description; // optional + private String schemaText; // optional + private String fingerprint; // optional + private String name; // optional + private SerDeInfo serDe; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +
[41/50] [abbrv] hive git commit: HIVE-17990 Add Thrift and DB storage for Schema Registry objects
http://git-wip-us.apache.org/repos/asf/hive/blob/b3cb8526/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php -- diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 6ca56cb..3ca6f9a 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1381,6 +1381,106 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\MetaException */ public function create_or_drop_wm_trigger_to_pool_mapping(\metastore\WMCreateOrDropTriggerToPoolMappingRequest $request); + /** + * @param \metastore\ISchema $schema + * @throws \metastore\AlreadyExistsException + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function create_ischema(\metastore\ISchema $schema); + /** + * @param string $schemaName + * @param \metastore\ISchema $newSchema + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function alter_ischema($schemaName, \metastore\ISchema $newSchema); + /** + * @param string $schemaName + * @return \metastore\ISchema + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_ischema($schemaName); + /** + * @param string $schemaName + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ + public function drop_ischema($schemaName); + /** + * @param \metastore\SchemaVersion $schemaVersion + * @throws \metastore\AlreadyExistsException + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function add_schema_version(\metastore\SchemaVersion $schemaVersion); + /** + * @param string $schemaName + * @param int $version + * @return \metastore\SchemaVersion + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_schema_version($schemaName, $version); + /** + * @param string $schemaName + * @return \metastore\SchemaVersion + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_schema_latest_version($schemaName); + /** + * @param string $schemaName + * @return \metastore\SchemaVersion[] + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_schema_all_versions($schemaName); + /** + * @param string $schemaName + * @param int $version + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function drop_schema_version($schemaName, $version); + /** + * @param \metastore\FindSchemasByColsRqst $rqst + * @return \metastore\FindSchemasByColsResp + * @throws \metastore\MetaException + */ + public function get_schemas_by_cols(\metastore\FindSchemasByColsRqst $rqst); + /** + * @param string $schemaName + * @param int $version + * @param string $serdeName + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function map_schema_version_to_serde($schemaName, $version, $serdeName); + /** + * @param string $schemaName + * @param int $version + * @param int $state + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ + public function set_schema_version_state($schemaName, $version, $state); + /** + * @param \metastore\SerDeInfo $serde + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ + public function add_serde(\metastore\SerDeInfo $serde); + /** + * @param string $serdeName + * @return \metastore\SerDeInfo + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_serde($serdeName); } class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metastore\ThriftHiveMetastoreIf { @@ -11583,327 +11683,4322 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("create_or_drop_wm_trigger_to_pool_mapping failed: unknown result"); } -} - -// HELPER FUNCTIONS AND STRUCTURES + public function create_ischema(\metastore\ISchema $schema) + { +$this->send_create_ischema($schema); +$this->recv_create_ischema(); + } -class ThriftHiveMetastore_getMetaConf_args { - static $_TSPEC; + public function send_create_ischema(\metastore\ISchema $schema) + { +$args = new \metastore\ThriftHiveMetastore_create_ischema_args(); +$args->schema = $schema; +
[41/50] [abbrv] hive git commit: HIVE-17990 Add Thrift and DB storage for Schema Registry objects
http://git-wip-us.apache.org/repos/asf/hive/blob/bd212257/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php -- diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 6ca56cb..3ca6f9a 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1381,6 +1381,106 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { * @throws \metastore\MetaException */ public function create_or_drop_wm_trigger_to_pool_mapping(\metastore\WMCreateOrDropTriggerToPoolMappingRequest $request); + /** + * @param \metastore\ISchema $schema + * @throws \metastore\AlreadyExistsException + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function create_ischema(\metastore\ISchema $schema); + /** + * @param string $schemaName + * @param \metastore\ISchema $newSchema + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function alter_ischema($schemaName, \metastore\ISchema $newSchema); + /** + * @param string $schemaName + * @return \metastore\ISchema + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_ischema($schemaName); + /** + * @param string $schemaName + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ + public function drop_ischema($schemaName); + /** + * @param \metastore\SchemaVersion $schemaVersion + * @throws \metastore\AlreadyExistsException + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function add_schema_version(\metastore\SchemaVersion $schemaVersion); + /** + * @param string $schemaName + * @param int $version + * @return \metastore\SchemaVersion + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_schema_version($schemaName, $version); + /** + * @param string $schemaName + * @return \metastore\SchemaVersion + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_schema_latest_version($schemaName); + /** + * @param string $schemaName + * @return \metastore\SchemaVersion[] + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_schema_all_versions($schemaName); + /** + * @param string $schemaName + * @param int $version + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function drop_schema_version($schemaName, $version); + /** + * @param \metastore\FindSchemasByColsRqst $rqst + * @return \metastore\FindSchemasByColsResp + * @throws \metastore\MetaException + */ + public function get_schemas_by_cols(\metastore\FindSchemasByColsRqst $rqst); + /** + * @param string $schemaName + * @param int $version + * @param string $serdeName + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function map_schema_version_to_serde($schemaName, $version, $serdeName); + /** + * @param string $schemaName + * @param int $version + * @param int $state + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidOperationException + * @throws \metastore\MetaException + */ + public function set_schema_version_state($schemaName, $version, $state); + /** + * @param \metastore\SerDeInfo $serde + * @throws \metastore\AlreadyExistsException + * @throws \metastore\MetaException + */ + public function add_serde(\metastore\SerDeInfo $serde); + /** + * @param string $serdeName + * @return \metastore\SerDeInfo + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function get_serde($serdeName); } class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metastore\ThriftHiveMetastoreIf { @@ -11583,327 +11683,4322 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("create_or_drop_wm_trigger_to_pool_mapping failed: unknown result"); } -} - -// HELPER FUNCTIONS AND STRUCTURES + public function create_ischema(\metastore\ISchema $schema) + { +$this->send_create_ischema($schema); +$this->recv_create_ischema(); + } -class ThriftHiveMetastore_getMetaConf_args { - static $_TSPEC; + public function send_create_ischema(\metastore\ISchema $schema) + { +$args = new \metastore\ThriftHiveMetastore_create_ischema_args(); +$args->schema = $schema; +