You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by gu...@apache.org on 2014/08/22 23:37:21 UTC
svn commit: r1619936 [8/49] - in /hive/branches/cbo: ./ accumulo-handler/
ant/src/org/apache/hadoop/hive/ant/ bin/
common/src/java/org/apache/hadoop/hive/ant/
common/src/java/org/apache/hadoop/hive/common/type/
common/src/java/org/apache/hadoop/hive/co...
Modified: hive/branches/cbo/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
URL: http://svn.apache.org/viewvc/hive/branches/cbo/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java?rev=1619936&r1=1619935&r2=1619936&view=diff
==============================================================================
--- hive/branches/cbo/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java (original)
+++ hive/branches/cbo/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java Fri Aug 22 21:36:47 2014
@@ -38,6 +38,10 @@ public class ThriftHiveMetastore {
*/
public interface Iface extends com.facebook.fb303.FacebookService.Iface {
+ public String getMetaConf(String key) throws MetaException, org.apache.thrift.TException;
+
+ public void setMetaConf(String key, String value) throws MetaException, org.apache.thrift.TException;
+
public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException;
public Database get_database(String name) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
@@ -182,6 +186,8 @@ public class ThriftHiveMetastore {
public AggrStats get_aggr_stats_for(PartitionsStatsRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
+ public boolean set_aggr_stats_for(SetPartitionsStatsRequest request) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException;
+
public boolean delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException;
public boolean delete_table_column_statistics(String db_name, String tbl_name, String col_name) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException;
@@ -262,6 +268,10 @@ public class ThriftHiveMetastore {
public interface AsyncIface extends com.facebook.fb303.FacebookService .AsyncIface {
+ public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMetaConf_call> resultHandler) throws org.apache.thrift.TException;
+
+ public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setMetaConf_call> resultHandler) throws org.apache.thrift.TException;
+
public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.create_database_call> resultHandler) throws org.apache.thrift.TException;
public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_database_call> resultHandler) throws org.apache.thrift.TException;
@@ -406,6 +416,8 @@ public class ThriftHiveMetastore {
public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_aggr_stats_for_call> resultHandler) throws org.apache.thrift.TException;
+ public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.set_aggr_stats_for_call> resultHandler) throws org.apache.thrift.TException;
+
public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.delete_partition_column_statistics_call> resultHandler) throws org.apache.thrift.TException;
public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.delete_table_column_statistics_call> resultHandler) throws org.apache.thrift.TException;
@@ -504,6 +516,56 @@ public class ThriftHiveMetastore {
super(iprot, oprot);
}
+ public String getMetaConf(String key) throws MetaException, org.apache.thrift.TException
+ {
+ send_getMetaConf(key);
+ return recv_getMetaConf();
+ }
+
+ public void send_getMetaConf(String key) throws org.apache.thrift.TException
+ {
+ getMetaConf_args args = new getMetaConf_args();
+ args.setKey(key);
+ sendBase("getMetaConf", args);
+ }
+
+ public String recv_getMetaConf() throws MetaException, org.apache.thrift.TException
+ {
+ getMetaConf_result result = new getMetaConf_result();
+ receiveBase(result, "getMetaConf");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.o1 != null) {
+ throw result.o1;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMetaConf failed: unknown result");
+ }
+
+ public void setMetaConf(String key, String value) throws MetaException, org.apache.thrift.TException
+ {
+ send_setMetaConf(key, value);
+ recv_setMetaConf();
+ }
+
+ public void send_setMetaConf(String key, String value) throws org.apache.thrift.TException
+ {
+ setMetaConf_args args = new setMetaConf_args();
+ args.setKey(key);
+ args.setValue(value);
+ sendBase("setMetaConf", args);
+ }
+
+ public void recv_setMetaConf() throws MetaException, org.apache.thrift.TException
+ {
+ setMetaConf_result result = new setMetaConf_result();
+ receiveBase(result, "setMetaConf");
+ if (result.o1 != null) {
+ throw result.o1;
+ }
+ return;
+ }
+
public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException
{
send_create_database(database);
@@ -2745,6 +2807,41 @@ public class ThriftHiveMetastore {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_aggr_stats_for failed: unknown result");
}
+ public boolean set_aggr_stats_for(SetPartitionsStatsRequest request) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException
+ {
+ send_set_aggr_stats_for(request);
+ return recv_set_aggr_stats_for();
+ }
+
+ public void send_set_aggr_stats_for(SetPartitionsStatsRequest request) throws org.apache.thrift.TException
+ {
+ set_aggr_stats_for_args args = new set_aggr_stats_for_args();
+ args.setRequest(request);
+ sendBase("set_aggr_stats_for", args);
+ }
+
+ public boolean recv_set_aggr_stats_for() throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException
+ {
+ set_aggr_stats_for_result result = new set_aggr_stats_for_result();
+ receiveBase(result, "set_aggr_stats_for");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.o1 != null) {
+ throw result.o1;
+ }
+ if (result.o2 != null) {
+ throw result.o2;
+ }
+ if (result.o3 != null) {
+ throw result.o3;
+ }
+ if (result.o4 != null) {
+ throw result.o4;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "set_aggr_stats_for failed: unknown result");
+ }
+
public boolean delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException
{
send_delete_partition_column_statistics(db_name, tbl_name, part_name, col_name);
@@ -3781,6 +3878,73 @@ public class ThriftHiveMetastore {
super(protocolFactory, clientManager, transport);
}
+ public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback<getMetaConf_call> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getMetaConf_call method_call = new getMetaConf_call(key, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getMetaConf_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String key;
+ public getMetaConf_call(String key, org.apache.thrift.async.AsyncMethodCallback<getMetaConf_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.key = key;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMetaConf", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getMetaConf_args args = new getMetaConf_args();
+ args.setKey(key);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public String getResult() throws MetaException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getMetaConf();
+ }
+ }
+
+ public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback<setMetaConf_call> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ setMetaConf_call method_call = new setMetaConf_call(key, value, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class setMetaConf_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String key;
+ private String value;
+ public setMetaConf_call(String key, String value, org.apache.thrift.async.AsyncMethodCallback<setMetaConf_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.key = key;
+ this.value = value;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setMetaConf", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ setMetaConf_args args = new setMetaConf_args();
+ args.setKey(key);
+ args.setValue(value);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public void getResult() throws MetaException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ (new Client(prot)).recv_setMetaConf();
+ }
+ }
+
public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback<create_database_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
create_database_call method_call = new create_database_call(database, resultHandler, this, ___protocolFactory, ___transport);
@@ -6436,6 +6600,38 @@ public class ThriftHiveMetastore {
}
}
+ public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback<set_aggr_stats_for_call> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ set_aggr_stats_for_call method_call = new set_aggr_stats_for_call(request, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class set_aggr_stats_for_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private SetPartitionsStatsRequest request;
+ public set_aggr_stats_for_call(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback<set_aggr_stats_for_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.request = request;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("set_aggr_stats_for", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ set_aggr_stats_for_args args = new set_aggr_stats_for_args();
+ args.setRequest(request);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public boolean getResult() throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_set_aggr_stats_for();
+ }
+ }
+
public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback<delete_partition_column_statistics_call> resultHandler) throws org.apache.thrift.TException {
checkReady();
delete_partition_column_statistics_call method_call = new delete_partition_column_statistics_call(db_name, tbl_name, part_name, col_name, resultHandler, this, ___protocolFactory, ___transport);
@@ -7728,6 +7924,8 @@ public class ThriftHiveMetastore {
}
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
+ processMap.put("getMetaConf", new getMetaConf());
+ processMap.put("setMetaConf", new setMetaConf());
processMap.put("create_database", new create_database());
processMap.put("get_database", new get_database());
processMap.put("drop_database", new drop_database());
@@ -7800,6 +7998,7 @@ public class ThriftHiveMetastore {
processMap.put("get_table_statistics_req", new get_table_statistics_req());
processMap.put("get_partitions_statistics_req", new get_partitions_statistics_req());
processMap.put("get_aggr_stats_for", new get_aggr_stats_for());
+ processMap.put("set_aggr_stats_for", new set_aggr_stats_for());
processMap.put("delete_partition_column_statistics", new delete_partition_column_statistics());
processMap.put("delete_table_column_statistics", new delete_table_column_statistics());
processMap.put("create_function", new create_function());
@@ -7841,6 +8040,54 @@ public class ThriftHiveMetastore {
return processMap;
}
+ public static class getMetaConf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMetaConf_args> {
+ public getMetaConf() {
+ super("getMetaConf");
+ }
+
+ public getMetaConf_args getEmptyArgsInstance() {
+ return new getMetaConf_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getMetaConf_result getResult(I iface, getMetaConf_args args) throws org.apache.thrift.TException {
+ getMetaConf_result result = new getMetaConf_result();
+ try {
+ result.success = iface.getMetaConf(args.key);
+ } catch (MetaException o1) {
+ result.o1 = o1;
+ }
+ return result;
+ }
+ }
+
+ public static class setMetaConf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setMetaConf_args> {
+ public setMetaConf() {
+ super("setMetaConf");
+ }
+
+ public setMetaConf_args getEmptyArgsInstance() {
+ return new setMetaConf_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public setMetaConf_result getResult(I iface, setMetaConf_args args) throws org.apache.thrift.TException {
+ setMetaConf_result result = new setMetaConf_result();
+ try {
+ iface.setMetaConf(args.key, args.value);
+ } catch (MetaException o1) {
+ result.o1 = o1;
+ }
+ return result;
+ }
+ }
+
public static class create_database<I extends Iface> extends org.apache.thrift.ProcessFunction<I, create_database_args> {
public create_database() {
super("create_database");
@@ -9779,6 +10026,37 @@ public class ThriftHiveMetastore {
}
}
+ public static class set_aggr_stats_for<I extends Iface> extends org.apache.thrift.ProcessFunction<I, set_aggr_stats_for_args> {
+ public set_aggr_stats_for() {
+ super("set_aggr_stats_for");
+ }
+
+ public set_aggr_stats_for_args getEmptyArgsInstance() {
+ return new set_aggr_stats_for_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public set_aggr_stats_for_result getResult(I iface, set_aggr_stats_for_args args) throws org.apache.thrift.TException {
+ set_aggr_stats_for_result result = new set_aggr_stats_for_result();
+ try {
+ result.success = iface.set_aggr_stats_for(args.request);
+ result.setSuccessIsSet(true);
+ } catch (NoSuchObjectException o1) {
+ result.o1 = o1;
+ } catch (InvalidObjectException o2) {
+ result.o2 = o2;
+ } catch (MetaException o3) {
+ result.o3 = o3;
+ } catch (InvalidInputException o4) {
+ result.o4 = o4;
+ }
+ return result;
+ }
+ }
+
public static class delete_partition_column_statistics<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delete_partition_column_statistics_args> {
public delete_partition_column_statistics() {
super("delete_partition_column_statistics");
@@ -10712,22 +10990,22 @@ public class ThriftHiveMetastore {
}
- public static class create_database_args implements org.apache.thrift.TBase<create_database_args, create_database_args._Fields>, java.io.Serializable, Cloneable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_database_args");
+ public static class getMetaConf_args implements org.apache.thrift.TBase<getMetaConf_args, getMetaConf_args._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMetaConf_args");
- private static final org.apache.thrift.protocol.TField DATABASE_FIELD_DESC = new org.apache.thrift.protocol.TField("database", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new create_database_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new create_database_argsTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new getMetaConf_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getMetaConf_argsTupleSchemeFactory());
}
- private Database database; // required
+ private String key; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- DATABASE((short)1, "database");
+ KEY((short)1, "key");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -10742,8 +11020,8 @@ public class ThriftHiveMetastore {
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case 1: // DATABASE
- return DATABASE;
+ case 1: // KEY
+ return KEY;
default:
return null;
}
@@ -10787,70 +11065,70 @@ public class ThriftHiveMetastore {
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.DATABASE, new org.apache.thrift.meta_data.FieldMetaData("database", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Database.class)));
+ tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_database_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMetaConf_args.class, metaDataMap);
}
- public create_database_args() {
+ public getMetaConf_args() {
}
- public create_database_args(
- Database database)
+ public getMetaConf_args(
+ String key)
{
this();
- this.database = database;
+ this.key = key;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public create_database_args(create_database_args other) {
- if (other.isSetDatabase()) {
- this.database = new Database(other.database);
+ public getMetaConf_args(getMetaConf_args other) {
+ if (other.isSetKey()) {
+ this.key = other.key;
}
}
- public create_database_args deepCopy() {
- return new create_database_args(this);
+ public getMetaConf_args deepCopy() {
+ return new getMetaConf_args(this);
}
@Override
public void clear() {
- this.database = null;
+ this.key = null;
}
- public Database getDatabase() {
- return this.database;
+ public String getKey() {
+ return this.key;
}
- public void setDatabase(Database database) {
- this.database = database;
+ public void setKey(String key) {
+ this.key = key;
}
- public void unsetDatabase() {
- this.database = null;
+ public void unsetKey() {
+ this.key = null;
}
- /** Returns true if field database is set (has been assigned a value) and false otherwise */
- public boolean isSetDatabase() {
- return this.database != null;
+ /** Returns true if field key is set (has been assigned a value) and false otherwise */
+ public boolean isSetKey() {
+ return this.key != null;
}
- public void setDatabaseIsSet(boolean value) {
+ public void setKeyIsSet(boolean value) {
if (!value) {
- this.database = null;
+ this.key = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
- case DATABASE:
+ case KEY:
if (value == null) {
- unsetDatabase();
+ unsetKey();
} else {
- setDatabase((Database)value);
+ setKey((String)value);
}
break;
@@ -10859,8 +11137,8 @@ public class ThriftHiveMetastore {
public Object getFieldValue(_Fields field) {
switch (field) {
- case DATABASE:
- return getDatabase();
+ case KEY:
+ return getKey();
}
throw new IllegalStateException();
@@ -10873,8 +11151,8 @@ public class ThriftHiveMetastore {
}
switch (field) {
- case DATABASE:
- return isSetDatabase();
+ case KEY:
+ return isSetKey();
}
throw new IllegalStateException();
}
@@ -10883,21 +11161,21 @@ public class ThriftHiveMetastore {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof create_database_args)
- return this.equals((create_database_args)that);
+ if (that instanceof getMetaConf_args)
+ return this.equals((getMetaConf_args)that);
return false;
}
- public boolean equals(create_database_args that) {
+ public boolean equals(getMetaConf_args that) {
if (that == null)
return false;
- boolean this_present_database = true && this.isSetDatabase();
- boolean that_present_database = true && that.isSetDatabase();
- if (this_present_database || that_present_database) {
- if (!(this_present_database && that_present_database))
+ boolean this_present_key = true && this.isSetKey();
+ boolean that_present_key = true && that.isSetKey();
+ if (this_present_key || that_present_key) {
+ if (!(this_present_key && that_present_key))
return false;
- if (!this.database.equals(that.database))
+ if (!this.key.equals(that.key))
return false;
}
@@ -10908,28 +11186,28 @@ public class ThriftHiveMetastore {
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
- boolean present_database = true && (isSetDatabase());
- builder.append(present_database);
- if (present_database)
- builder.append(database);
+ boolean present_key = true && (isSetKey());
+ builder.append(present_key);
+ if (present_key)
+ builder.append(key);
return builder.toHashCode();
}
- public int compareTo(create_database_args other) {
+ public int compareTo(getMetaConf_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- create_database_args typedOther = (create_database_args)other;
+ getMetaConf_args typedOther = (getMetaConf_args)other;
- lastComparison = Boolean.valueOf(isSetDatabase()).compareTo(typedOther.isSetDatabase());
+ lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetDatabase()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.database, typedOther.database);
+ if (isSetKey()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
if (lastComparison != 0) {
return lastComparison;
}
@@ -10951,14 +11229,14 @@ public class ThriftHiveMetastore {
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("create_database_args(");
+ StringBuilder sb = new StringBuilder("getMetaConf_args(");
boolean first = true;
- sb.append("database:");
- if (this.database == null) {
+ sb.append("key:");
+ if (this.key == null) {
sb.append("null");
} else {
- sb.append(this.database);
+ sb.append(this.key);
}
first = false;
sb.append(")");
@@ -10968,9 +11246,6 @@ public class ThriftHiveMetastore {
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
- if (database != null) {
- database.validate();
- }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -10989,15 +11264,15 @@ public class ThriftHiveMetastore {
}
}
- private static class create_database_argsStandardSchemeFactory implements SchemeFactory {
- public create_database_argsStandardScheme getScheme() {
- return new create_database_argsStandardScheme();
+ private static class getMetaConf_argsStandardSchemeFactory implements SchemeFactory {
+ public getMetaConf_argsStandardScheme getScheme() {
+ return new getMetaConf_argsStandardScheme();
}
}
- private static class create_database_argsStandardScheme extends StandardScheme<create_database_args> {
+ private static class getMetaConf_argsStandardScheme extends StandardScheme<getMetaConf_args> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, create_database_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getMetaConf_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -11007,11 +11282,10 @@ public class ThriftHiveMetastore {
break;
}
switch (schemeField.id) {
- case 1: // DATABASE
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.database = new Database();
- struct.database.read(iprot);
- struct.setDatabaseIsSet(true);
+ case 1: // KEY
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.key = iprot.readString();
+ struct.setKeyIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -11025,13 +11299,13 @@ public class ThriftHiveMetastore {
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, create_database_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getMetaConf_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- if (struct.database != null) {
- oprot.writeFieldBegin(DATABASE_FIELD_DESC);
- struct.database.write(oprot);
+ if (struct.key != null) {
+ oprot.writeFieldBegin(KEY_FIELD_DESC);
+ oprot.writeString(struct.key);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -11040,63 +11314,59 @@ public class ThriftHiveMetastore {
}
- private static class create_database_argsTupleSchemeFactory implements SchemeFactory {
- public create_database_argsTupleScheme getScheme() {
- return new create_database_argsTupleScheme();
+ private static class getMetaConf_argsTupleSchemeFactory implements SchemeFactory {
+ public getMetaConf_argsTupleScheme getScheme() {
+ return new getMetaConf_argsTupleScheme();
}
}
- private static class create_database_argsTupleScheme extends TupleScheme<create_database_args> {
+ private static class getMetaConf_argsTupleScheme extends TupleScheme<getMetaConf_args> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, create_database_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, getMetaConf_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
- if (struct.isSetDatabase()) {
+ if (struct.isSetKey()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
- if (struct.isSetDatabase()) {
- struct.database.write(oprot);
+ if (struct.isSetKey()) {
+ oprot.writeString(struct.key);
}
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, create_database_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, getMetaConf_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
- struct.database = new Database();
- struct.database.read(iprot);
- struct.setDatabaseIsSet(true);
+ struct.key = iprot.readString();
+ struct.setKeyIsSet(true);
}
}
}
}
- public static class create_database_result implements org.apache.thrift.TBase<create_database_result, create_database_result._Fields>, java.io.Serializable, Cloneable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_database_result");
+ public static class getMetaConf_result implements org.apache.thrift.TBase<getMetaConf_result, getMetaConf_result._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMetaConf_result");
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new create_database_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new create_database_resultTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new getMetaConf_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getMetaConf_resultTupleSchemeFactory());
}
- private AlreadyExistsException o1; // required
- private InvalidObjectException o2; // required
- private MetaException o3; // required
+ private String success; // required
+ private MetaException o1; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- O1((short)1, "o1"),
- O2((short)2, "o2"),
- O3((short)3, "o3");
+ SUCCESS((short)0, "success"),
+ O1((short)1, "o1");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -11111,12 +11381,10 @@ public class ThriftHiveMetastore {
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
case 1: // O1
return O1;
- case 2: // O2
- return O2;
- case 3: // O3
- return O3;
default:
return null;
}
@@ -11160,148 +11428,109 @@ public class ThriftHiveMetastore {
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_database_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMetaConf_result.class, metaDataMap);
}
- public create_database_result() {
+ public getMetaConf_result() {
}
- public create_database_result(
- AlreadyExistsException o1,
- InvalidObjectException o2,
- MetaException o3)
+ public getMetaConf_result(
+ String success,
+ MetaException o1)
{
this();
+ this.success = success;
this.o1 = o1;
- this.o2 = o2;
- this.o3 = o3;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public create_database_result(create_database_result other) {
- if (other.isSetO1()) {
- this.o1 = new AlreadyExistsException(other.o1);
- }
- if (other.isSetO2()) {
- this.o2 = new InvalidObjectException(other.o2);
+ public getMetaConf_result(getMetaConf_result other) {
+ if (other.isSetSuccess()) {
+ this.success = other.success;
}
- if (other.isSetO3()) {
- this.o3 = new MetaException(other.o3);
+ if (other.isSetO1()) {
+ this.o1 = new MetaException(other.o1);
}
}
- public create_database_result deepCopy() {
- return new create_database_result(this);
+ public getMetaConf_result deepCopy() {
+ return new getMetaConf_result(this);
}
@Override
public void clear() {
+ this.success = null;
this.o1 = null;
- this.o2 = null;
- this.o3 = null;
- }
-
- public AlreadyExistsException getO1() {
- return this.o1;
- }
-
- public void setO1(AlreadyExistsException o1) {
- this.o1 = o1;
- }
-
- public void unsetO1() {
- this.o1 = null;
- }
-
- /** Returns true if field o1 is set (has been assigned a value) and false otherwise */
- public boolean isSetO1() {
- return this.o1 != null;
- }
-
- public void setO1IsSet(boolean value) {
- if (!value) {
- this.o1 = null;
- }
}
- public InvalidObjectException getO2() {
- return this.o2;
+ public String getSuccess() {
+ return this.success;
}
- public void setO2(InvalidObjectException o2) {
- this.o2 = o2;
+ public void setSuccess(String success) {
+ this.success = success;
}
- public void unsetO2() {
- this.o2 = null;
+ public void unsetSuccess() {
+ this.success = null;
}
- /** Returns true if field o2 is set (has been assigned a value) and false otherwise */
- public boolean isSetO2() {
- return this.o2 != null;
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
}
- public void setO2IsSet(boolean value) {
+ public void setSuccessIsSet(boolean value) {
if (!value) {
- this.o2 = null;
+ this.success = null;
}
}
- public MetaException getO3() {
- return this.o3;
+ public MetaException getO1() {
+ return this.o1;
}
- public void setO3(MetaException o3) {
- this.o3 = o3;
+ public void setO1(MetaException o1) {
+ this.o1 = o1;
}
- public void unsetO3() {
- this.o3 = null;
+ public void unsetO1() {
+ this.o1 = null;
}
- /** Returns true if field o3 is set (has been assigned a value) and false otherwise */
- public boolean isSetO3() {
- return this.o3 != null;
+ /** Returns true if field o1 is set (has been assigned a value) and false otherwise */
+ public boolean isSetO1() {
+ return this.o1 != null;
}
- public void setO3IsSet(boolean value) {
+ public void setO1IsSet(boolean value) {
if (!value) {
- this.o3 = null;
+ this.o1 = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
- case O1:
- if (value == null) {
- unsetO1();
- } else {
- setO1((AlreadyExistsException)value);
- }
- break;
-
- case O2:
+ case SUCCESS:
if (value == null) {
- unsetO2();
+ unsetSuccess();
} else {
- setO2((InvalidObjectException)value);
+ setSuccess((String)value);
}
break;
- case O3:
+ case O1:
if (value == null) {
- unsetO3();
+ unsetO1();
} else {
- setO3((MetaException)value);
+ setO1((MetaException)value);
}
break;
@@ -11310,15 +11539,12 @@ public class ThriftHiveMetastore {
public Object getFieldValue(_Fields field) {
switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
case O1:
return getO1();
- case O2:
- return getO2();
-
- case O3:
- return getO3();
-
}
throw new IllegalStateException();
}
@@ -11330,12 +11556,10 @@ public class ThriftHiveMetastore {
}
switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
case O1:
return isSetO1();
- case O2:
- return isSetO2();
- case O3:
- return isSetO3();
}
throw new IllegalStateException();
}
@@ -11344,15 +11568,24 @@ public class ThriftHiveMetastore {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof create_database_result)
- return this.equals((create_database_result)that);
+ if (that instanceof getMetaConf_result)
+ return this.equals((getMetaConf_result)that);
return false;
}
- public boolean equals(create_database_result that) {
+ public boolean equals(getMetaConf_result that) {
if (that == null)
return false;
+ boolean this_present_success = true && this.isSetSuccess();
+ boolean that_present_success = true && that.isSetSuccess();
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
boolean this_present_o1 = true && this.isSetO1();
boolean that_present_o1 = true && that.isSetO1();
if (this_present_o1 || that_present_o1) {
@@ -11362,24 +11595,6 @@ public class ThriftHiveMetastore {
return false;
}
- boolean this_present_o2 = true && this.isSetO2();
- boolean that_present_o2 = true && that.isSetO2();
- if (this_present_o2 || that_present_o2) {
- if (!(this_present_o2 && that_present_o2))
- return false;
- if (!this.o2.equals(that.o2))
- return false;
- }
-
- boolean this_present_o3 = true && this.isSetO3();
- boolean that_present_o3 = true && that.isSetO3();
- if (this_present_o3 || that_present_o3) {
- if (!(this_present_o3 && that_present_o3))
- return false;
- if (!this.o3.equals(that.o3))
- return false;
- }
-
return true;
}
@@ -11387,58 +11602,43 @@ public class ThriftHiveMetastore {
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
+ boolean present_success = true && (isSetSuccess());
+ builder.append(present_success);
+ if (present_success)
+ builder.append(success);
+
boolean present_o1 = true && (isSetO1());
builder.append(present_o1);
if (present_o1)
builder.append(o1);
- boolean present_o2 = true && (isSetO2());
- builder.append(present_o2);
- if (present_o2)
- builder.append(o2);
-
- boolean present_o3 = true && (isSetO3());
- builder.append(present_o3);
- if (present_o3)
- builder.append(o3);
-
return builder.toHashCode();
}
- public int compareTo(create_database_result other) {
+ public int compareTo(getMetaConf_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- create_database_result typedOther = (create_database_result)other;
+ getMetaConf_result typedOther = (getMetaConf_result)other;
- lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetO1()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2());
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetO2()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2);
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3());
+ lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetO3()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3);
+ if (isSetO1()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11460,9 +11660,17 @@ public class ThriftHiveMetastore {
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("create_database_result(");
+ StringBuilder sb = new StringBuilder("getMetaConf_result(");
boolean first = true;
+ sb.append("success:");
+ if (this.success == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.success);
+ }
+ first = false;
+ if (!first) sb.append(", ");
sb.append("o1:");
if (this.o1 == null) {
sb.append("null");
@@ -11470,22 +11678,6 @@ public class ThriftHiveMetastore {
sb.append(this.o1);
}
first = false;
- if (!first) sb.append(", ");
- sb.append("o2:");
- if (this.o2 == null) {
- sb.append("null");
- } else {
- sb.append(this.o2);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("o3:");
- if (this.o3 == null) {
- sb.append("null");
- } else {
- sb.append(this.o3);
- }
- first = false;
sb.append(")");
return sb.toString();
}
@@ -11511,15 +11703,15 @@ public class ThriftHiveMetastore {
}
}
- private static class create_database_resultStandardSchemeFactory implements SchemeFactory {
- public create_database_resultStandardScheme getScheme() {
- return new create_database_resultStandardScheme();
+ private static class getMetaConf_resultStandardSchemeFactory implements SchemeFactory {
+ public getMetaConf_resultStandardScheme getScheme() {
+ return new getMetaConf_resultStandardScheme();
}
}
- private static class create_database_resultStandardScheme extends StandardScheme<create_database_result> {
+ private static class getMetaConf_resultStandardScheme extends StandardScheme<getMetaConf_result> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, create_database_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getMetaConf_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -11529,29 +11721,19 @@ public class ThriftHiveMetastore {
break;
}
switch (schemeField.id) {
- case 1: // O1
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.o1 = new AlreadyExistsException();
- struct.o1.read(iprot);
- struct.setO1IsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // O2
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.o2 = new InvalidObjectException();
- struct.o2.read(iprot);
- struct.setO2IsSet(true);
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.success = iprot.readString();
+ struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 3: // O3
+ case 1: // O1
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.o3 = new MetaException();
- struct.o3.read(iprot);
- struct.setO3IsSet(true);
+ struct.o1 = new MetaException();
+ struct.o1.read(iprot);
+ struct.setO1IsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -11565,104 +11747,90 @@ public class ThriftHiveMetastore {
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, create_database_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getMetaConf_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ oprot.writeString(struct.success);
+ oprot.writeFieldEnd();
+ }
if (struct.o1 != null) {
oprot.writeFieldBegin(O1_FIELD_DESC);
struct.o1.write(oprot);
oprot.writeFieldEnd();
}
- if (struct.o2 != null) {
- oprot.writeFieldBegin(O2_FIELD_DESC);
- struct.o2.write(oprot);
- oprot.writeFieldEnd();
- }
- if (struct.o3 != null) {
- oprot.writeFieldBegin(O3_FIELD_DESC);
- struct.o3.write(oprot);
- oprot.writeFieldEnd();
- }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
- private static class create_database_resultTupleSchemeFactory implements SchemeFactory {
- public create_database_resultTupleScheme getScheme() {
- return new create_database_resultTupleScheme();
+ private static class getMetaConf_resultTupleSchemeFactory implements SchemeFactory {
+ public getMetaConf_resultTupleScheme getScheme() {
+ return new getMetaConf_resultTupleScheme();
}
}
- private static class create_database_resultTupleScheme extends TupleScheme<create_database_result> {
+ private static class getMetaConf_resultTupleScheme extends TupleScheme<getMetaConf_result> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, create_database_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, getMetaConf_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
- if (struct.isSetO1()) {
+ if (struct.isSetSuccess()) {
optionals.set(0);
}
- if (struct.isSetO2()) {
+ if (struct.isSetO1()) {
optionals.set(1);
}
- if (struct.isSetO3()) {
- optionals.set(2);
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetSuccess()) {
+ oprot.writeString(struct.success);
}
- oprot.writeBitSet(optionals, 3);
if (struct.isSetO1()) {
struct.o1.write(oprot);
}
- if (struct.isSetO2()) {
- struct.o2.write(oprot);
- }
- if (struct.isSetO3()) {
- struct.o3.write(oprot);
- }
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, create_database_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, getMetaConf_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
- struct.o1 = new AlreadyExistsException();
- struct.o1.read(iprot);
- struct.setO1IsSet(true);
+ struct.success = iprot.readString();
+ struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
- struct.o2 = new InvalidObjectException();
- struct.o2.read(iprot);
- struct.setO2IsSet(true);
- }
- if (incoming.get(2)) {
- struct.o3 = new MetaException();
- struct.o3.read(iprot);
- struct.setO3IsSet(true);
+ struct.o1 = new MetaException();
+ struct.o1.read(iprot);
+ struct.setO1IsSet(true);
}
}
}
}
- public static class get_database_args implements org.apache.thrift.TBase<get_database_args, get_database_args._Fields>, java.io.Serializable, Cloneable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_database_args");
+ public static class setMetaConf_args implements org.apache.thrift.TBase<setMetaConf_args, setMetaConf_args._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setMetaConf_args");
- private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new get_database_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new get_database_argsTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new setMetaConf_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new setMetaConf_argsTupleSchemeFactory());
}
- private String name; // required
+ private String key; // required
+ private String value; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- NAME((short)1, "name");
+ KEY((short)1, "key"),
+ VALUE((short)2, "value");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -11677,8 +11845,10 @@ public class ThriftHiveMetastore {
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case 1: // NAME
- return NAME;
+ case 1: // KEY
+ return KEY;
+ case 2: // VALUE
+ return VALUE;
default:
return null;
}
@@ -11722,70 +11892,109 @@ public class ThriftHiveMetastore {
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_database_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setMetaConf_args.class, metaDataMap);
}
- public get_database_args() {
+ public setMetaConf_args() {
}
- public get_database_args(
- String name)
+ public setMetaConf_args(
+ String key,
+ String value)
{
this();
- this.name = name;
+ this.key = key;
+ this.value = value;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public get_database_args(get_database_args other) {
- if (other.isSetName()) {
- this.name = other.name;
+ public setMetaConf_args(setMetaConf_args other) {
+ if (other.isSetKey()) {
+ this.key = other.key;
+ }
+ if (other.isSetValue()) {
+ this.value = other.value;
}
}
- public get_database_args deepCopy() {
- return new get_database_args(this);
+ public setMetaConf_args deepCopy() {
+ return new setMetaConf_args(this);
}
@Override
public void clear() {
- this.name = null;
+ this.key = null;
+ this.value = null;
}
- public String getName() {
- return this.name;
+ public String getKey() {
+ return this.key;
}
- public void setName(String name) {
- this.name = name;
+ public void setKey(String key) {
+ this.key = key;
}
- public void unsetName() {
- this.name = null;
+ public void unsetKey() {
+ this.key = null;
}
- /** Returns true if field name is set (has been assigned a value) and false otherwise */
- public boolean isSetName() {
- return this.name != null;
+ /** Returns true if field key is set (has been assigned a value) and false otherwise */
+ public boolean isSetKey() {
+ return this.key != null;
}
- public void setNameIsSet(boolean value) {
+ public void setKeyIsSet(boolean value) {
if (!value) {
- this.name = null;
+ this.key = null;
+ }
+ }
+
+ public String getValue() {
+ return this.value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public void unsetValue() {
+ this.value = null;
+ }
+
+ /** Returns true if field value is set (has been assigned a value) and false otherwise */
+ public boolean isSetValue() {
+ return this.value != null;
+ }
+
+ public void setValueIsSet(boolean value) {
+ if (!value) {
+ this.value = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
- case NAME:
+ case KEY:
if (value == null) {
- unsetName();
+ unsetKey();
} else {
- setName((String)value);
+ setKey((String)value);
+ }
+ break;
+
+ case VALUE:
+ if (value == null) {
+ unsetValue();
+ } else {
+ setValue((String)value);
}
break;
@@ -11794,8 +12003,11 @@ public class ThriftHiveMetastore {
public Object getFieldValue(_Fields field) {
switch (field) {
- case NAME:
- return getName();
+ case KEY:
+ return getKey();
+
+ case VALUE:
+ return getValue();
}
throw new IllegalStateException();
@@ -11808,8 +12020,10 @@ public class ThriftHiveMetastore {
}
switch (field) {
- case NAME:
- return isSetName();
+ case KEY:
+ return isSetKey();
+ case VALUE:
+ return isSetValue();
}
throw new IllegalStateException();
}
@@ -11818,21 +12032,30 @@ public class ThriftHiveMetastore {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof get_database_args)
- return this.equals((get_database_args)that);
+ if (that instanceof setMetaConf_args)
+ return this.equals((setMetaConf_args)that);
return false;
}
- public boolean equals(get_database_args that) {
+ public boolean equals(setMetaConf_args that) {
if (that == null)
return false;
- boolean this_present_name = true && this.isSetName();
- boolean that_present_name = true && that.isSetName();
- if (this_present_name || that_present_name) {
- if (!(this_present_name && that_present_name))
+ boolean this_present_key = true && this.isSetKey();
+ boolean that_present_key = true && that.isSetKey();
+ if (this_present_key || that_present_key) {
+ if (!(this_present_key && that_present_key))
return false;
- if (!this.name.equals(that.name))
+ if (!this.key.equals(that.key))
+ return false;
+ }
+
+ boolean this_present_value = true && this.isSetValue();
+ boolean that_present_value = true && that.isSetValue();
+ if (this_present_value || that_present_value) {
+ if (!(this_present_value && that_present_value))
+ return false;
+ if (!this.value.equals(that.value))
return false;
}
@@ -11843,28 +12066,43 @@ public class ThriftHiveMetastore {
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
- boolean present_name = true && (isSetName());
- builder.append(present_name);
- if (present_name)
- builder.append(name);
+ boolean present_key = true && (isSetKey());
+ builder.append(present_key);
+ if (present_key)
+ builder.append(key);
+
+ boolean present_value = true && (isSetValue());
+ builder.append(present_value);
+ if (present_value)
+ builder.append(value);
return builder.toHashCode();
}
- public int compareTo(get_database_args other) {
+ public int compareTo(setMetaConf_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- get_database_args typedOther = (get_database_args)other;
+ setMetaConf_args typedOther = (setMetaConf_args)other;
- lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
+ lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetName()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
+ if (isSetKey()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetValue()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
if (lastComparison != 0) {
return lastComparison;
}
@@ -11886,14 +12124,22 @@ public class ThriftHiveMetastore {
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("get_database_args(");
+ StringBuilder sb = new StringBuilder("setMetaConf_args(");
boolean first = true;
- sb.append("name:");
- if (this.name == null) {
+ sb.append("key:");
+ if (this.key == null) {
sb.append("null");
} else {
- sb.append(this.name);
+ sb.append(this.key);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("value:");
+ if (this.value == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.value);
}
first = false;
sb.append(")");
@@ -11921,15 +12167,15 @@ public class ThriftHiveMetastore {
}
}
- private static class get_database_argsStandardSchemeFactory implements SchemeFactory {
- public get_database_argsStandardScheme getScheme() {
- return new get_database_argsStandardScheme();
+ private static class setMetaConf_argsStandardSchemeFactory implements SchemeFactory {
+ public setMetaConf_argsStandardScheme getScheme() {
+ return new setMetaConf_argsStandardScheme();
}
}
- private static class get_database_argsStandardScheme extends StandardScheme<get_database_args> {
+ private static class setMetaConf_argsStandardScheme extends StandardScheme<setMetaConf_args> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, get_database_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, setMetaConf_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -11939,10 +12185,18 @@ public class ThriftHiveMetastore {
break;
}
switch (schemeField.id) {
- case 1: // NAME
+ case 1: // KEY
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.name = iprot.readString();
- struct.setNameIsSet(true);
+ struct.key = iprot.readString();
+ struct.setKeyIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // VALUE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.value = iprot.readString();
+ struct.setValueIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -11956,13 +12210,18 @@ public class ThriftHiveMetastore {
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, get_database_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, setMetaConf_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- if (struct.name != null) {
- oprot.writeFieldBegin(NAME_FIELD_DESC);
- oprot.writeString(struct.name);
+ if (struct.key != null) {
+ oprot.writeFieldBegin(KEY_FIELD_DESC);
+ oprot.writeString(struct.key);
+ oprot.writeFieldEnd();
+ }
+ if (struct.value != null) {
+ oprot.writeFieldBegin(VALUE_FIELD_DESC);
+ oprot.writeString(struct.value);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -11971,62 +12230,66 @@ public class ThriftHiveMetastore {
}
- private static class get_database_argsTupleSchemeFactory implements SchemeFactory {
- public get_database_argsTupleScheme getScheme() {
- return new get_database_argsTupleScheme();
+ private static class setMetaConf_argsTupleSchemeFactory implements SchemeFactory {
+ public setMetaConf_argsTupleScheme getScheme() {
+ return new setMetaConf_argsTupleScheme();
}
}
- private static class get_database_argsTupleScheme extends TupleScheme<get_database_args> {
+ private static class setMetaConf_argsTupleScheme extends TupleScheme<setMetaConf_args> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, get_database_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, setMetaConf_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
- if (struct.isSetName()) {
+ if (struct.isSetKey()) {
optionals.set(0);
}
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetName()) {
- oprot.writeString(struct.name);
+ if (struct.isSetValue()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetKey()) {
+ oprot.writeString(struct.key);
+ }
+ if (struct.isSetValue()) {
+ oprot.writeString(struct.value);
}
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, get_database_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, setMetaConf_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
- struct.name = iprot.readString();
- struct.setNameIsSet(true);
+ struct.key = iprot.readString();
+ struct.setKeyIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.value = iprot.readString();
+ struct.setValueIsSet(true);
}
}
}
}
- public static class get_database_result implements org.apache.thrift.TBase<get_database_result, get_database_result._Fields>, java.io.Serializable, Cloneable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_database_result");
+ public static class setMetaConf_result implements org.apache.thrift.TBase<setMetaConf_result, setMetaConf_result._Fields>, java.io.Serializable, Cloneable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setMetaConf_result");
- private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new get_database_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new get_database_resultTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new setMetaConf_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new setMetaConf_resultTupleSchemeFactory());
}
- private Database success; // required
- private NoSuchObjectException o1; // required
- private MetaException o2; // required
+ private MetaException o1; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- SUCCESS((short)0, "success"),
- O1((short)1, "o1"),
- O2((short)2, "o2");
+ O1((short)1, "o1");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -12041,12 +12304,8 @@ public class ThriftHiveMetastore {
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case 0: // SUCCESS
- return SUCCESS;
case 1: // O1
return O1;
- case 2: // O2
- return O2;
default:
return null;
}
@@ -12090,84 +12349,45 @@ public class ThriftHiveMetastore {
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Database.class)));
tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_database_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setMetaConf_result.class, metaDataMap);
}
- public get_database_result() {
+ public setMetaConf_result() {
}
- public get_database_result(
- Database success,
- NoSuchObjectException o1,
- MetaException o2)
+ public setMetaConf_result(
+ MetaException o1)
{
this();
- this.success = success;
this.o1 = o1;
- this.o2 = o2;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public get_database_result(get_database_result other) {
- if (other.isSetSuccess()) {
- this.success = new Database(other.success);
- }
+ public setMetaConf_result(setMetaConf_result other) {
if (other.isSetO1()) {
- this.o1 = new NoSuchObjectException(other.o1);
- }
- if (other.isSetO2()) {
- this.o2 = new MetaException(other.o2);
+ this.o1 = new MetaException(other.o1);
}
}
- public get_database_result deepCopy() {
- return new get_database_result(this);
+ public setMetaConf_result deepCopy() {
+ return new setMetaConf_result(this);
}
@Override
public void clear() {
- this.success = null;
this.o1 = null;
- this.o2 = null;
- }
-
- public Database getSuccess() {
- return this.success;
- }
-
- public void setSuccess(Database success) {
- this.success = success;
- }
-
- public void unsetSuccess() {
- this.success = null;
- }
-
- /** Returns true if field success is set (has been assigned a value) and false otherwise */
- public boolean isSetSuccess() {
- return this.success != null;
- }
-
- public void setSuccessIsSet(boolean value) {
- if (!value) {
- this.success = null;
- }
}
- public NoSuchObjectException getO1() {
+ public MetaException getO1() {
return this.o1;
}
- public void setO1(NoSuchObjectException o1) {
+ public void setO1(MetaException o1) {
this.o1 = o1;
}
@@ -12186,52 +12406,13 @@ public class ThriftHiveMetastore {
}
}
- public MetaException getO2() {
- return this.o2;
- }
-
- public void setO2(MetaException o2) {
- this.o2 = o2;
- }
-
- public void unsetO2() {
- this.o2 = null;
- }
-
- /** Returns true if field o2 is set (has been assigned a value) and false otherwise */
- public boolean isSetO2() {
- return this.o2 != null;
- }
-
- public void setO2IsSet(boolean value) {
- if (!value) {
- this.o2 = null;
- }
- }
-
public void setFieldValue(_Fields field, Object value) {
switch (field) {
- case SUCCESS:
- if (value == null) {
- unsetSuccess();
- } else {
- setSuccess((Database)value);
- }
- break;
-
case O1:
if (value == null) {
unsetO1();
} else {
- setO1((NoSuchObjectException)value);
- }
- break;
-
- case O2:
- if (value == null) {
- unsetO2();
- } else {
- setO2((MetaException)value);
+ setO1((MetaException)value);
}
break;
@@ -12240,15 +12421,9 @@ public class ThriftHiveMetastore {
public Object getFieldValue(_Fields field) {
switch (field) {
- case SUCCESS:
- return getSuccess();
-
case O1:
return getO1();
- case O2:
- return getO2();
-
}
throw new IllegalStateException();
}
@@ -12260,12 +12435,8 @@ public class ThriftHiveMetastore {
}
switch (field) {
- case SUCCESS:
- return isSetSuccess();
case O1:
return isSetO1();
- case O2:
- return isSetO2();
}
throw new IllegalStateException();
}
@@ -12274,24 +12445,15 @@ public class ThriftHiveMetastore {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof get_database_result)
- return this.equals((get_database_result)that);
+ if (that instanceof setMetaConf_result)
+ return this.equals((setMetaConf_result)that);
return false;
}
- public boolean equals(get_database_result that) {
+ public boolean equals(setMetaConf_result that) {
if (that == null)
return false;
- boolean this_present_success = true && this.isSetSuccess();
- boolean that_present_success = true && that.isSetSuccess();
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (!this.success.equals(that.success))
- return false;
- }
-
boolean this_present_o1 = true && this.isSetO1();
boolean that_present_o1 = true && that.isSetO1();
if (this_present_o1 || that_present_o1) {
@@ -12301,15 +12463,6 @@ public class ThriftHiveMetastore {
return false;
}
- boolean this_present_o2 = true && this.isSetO2();
- boolean that_present_o2 = true && that.isSetO2();
- if (this_present_o2 || that_present_o2) {
- if (!(this_present_o2 && that_present_o2))
- return false;
- if (!this.o2.equals(that.o2))
- return false;
- }
-
return true;
}
@@ -12317,42 +12470,22 @@ public class ThriftHiveMetastore {
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
- boolean present_success = true && (isSetSuccess());
- builder.append(present_success);
- if (present_success)
- builder.append(success);
-
boolean present_o1 = true && (isSetO1());
builder.append(present_o1);
if (present_o1)
builder.append(o1);
- boolean present_o2 = true && (isSetO2());
- builder.append(present_o2);
- if (present_o2)
- builder.append(o2);
-
return builder.toHashCode();
}
- public int compareTo(get_database_result other) {
+ public int compareTo(setMetaConf_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- get_database_result typedOther = (get_database_result)other;
+ setMetaConf_result typedOther = (setMetaConf_result)other;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetSuccess()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1());
if (lastComparison != 0) {
return lastComparison;
@@ -12363,16 +12496,6 @@ public class ThriftHiveMetastore {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetO2()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
return 0;
}
@@ -12390,17 +12513,9 @@ public class ThriftHiveMetastore {
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("get_database_result(");
+ StringBuilder sb = new StringBuilder("setMetaConf_result(");
boolean first = true;
- sb.append("success:");
- if (this.success == null) {
- sb.append("null");
- } else {
- sb.append(this.success);
- }
- first = false;
- if (!first) sb.append(", ");
sb.append("o1:");
if (this.o1 == null) {
sb.append("null");
@@ -12408,14 +12523,6 @@ public class ThriftHiveMetastore {
sb.append(this.o1);
}
first = false;
- if (!first) sb.append(", ");
- sb.append("o2:");
- if (this.o2 == null) {
- sb.append("null");
- } else {
- sb.append(this.o2);
- }
- first = false;
sb.append(")");
return sb.toString();
}
@@ -12423,9 +12530,6 @@ public class ThriftHiveMetastore {
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
- if (success != null) {
- success.validate();
- }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -12444,15 +12548,15 @@ public class ThriftHiveMetastore {
}
}
- private static class get_database_resultStandardSchemeFactory implements SchemeFactory {
- public get_database_resultStandardScheme getScheme() {
- return new get_database_resultStandardScheme();
+ private static class setMetaConf_resultStandardSchemeFactory implements SchemeFactory {
+ public setMetaConf_resultStandardScheme getScheme() {
+ return new setMetaConf_resultStandardScheme();
}
}
- private static class get_database_resultStandardScheme extends StandardScheme<get_database_result> {
+ private static class setMetaConf_resultStandardScheme extends StandardScheme<setMetaConf_result> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, get_database_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, setMetaConf_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -12462,33 +12566,15 @@ public class ThriftHiveMetastore {
break;
}
switch (schemeField.id) {
- case 0: // SUCCESS
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.success = new Database();
- struct.success.read(iprot);
- struct.setSuccessIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
case 1: // O1
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.o1 = new NoSuchObjectException();
+ struct.o1 = new MetaException();
struct.o1.read(iprot);
struct.setO1IsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 2: // O2
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.o2 = new MetaException();
- struct.o2.read(iprot);
- struct.setO2IsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -12498,110 +12584,72 @@ public class ThriftHiveMetastore {
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, get_database_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, setMetaConf_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- if (struct.success != null) {
- oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
- struct.success.write(oprot);
- oprot.writeFieldEnd();
- }
if (struct.o1 != null) {
oprot.writeFieldBegin(O1_FIELD_DESC);
struct.o1.write(oprot);
oprot.writeFieldEnd();
}
- if (struct.o2 != null) {
- oprot.writeFieldBegin(O2_FIELD_DESC);
- struct.o2.write(oprot);
- oprot.writeFieldEnd();
- }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
- private static class get_database_resultTupleSchemeFactory implements SchemeFactory {
- public get_database_resultTupleScheme getScheme() {
- return new get_database_resultTupleScheme();
+ private static class setMetaConf_resultTupleSchemeFactory implements SchemeFactory {
+ public setMetaConf_resultTupleScheme getScheme() {
+ return new setMetaConf_resultTupleScheme();
}
}
- private static class get_database_resultTupleScheme extends TupleScheme<get_database_result> {
+ private static class setMetaConf_resultTupleScheme extends TupleScheme<setMetaConf_result> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, get_database_result struct) throws org.apache.thrift.TException {
[... 71729 lines stripped ...]