You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jd...@apache.org on 2016/02/23 20:17:27 UTC
[28/50] [abbrv] hive git commit: HIVE-12730: MetadataUpdater: provide
a mechanism to edit the basic statistics of a table (or a partition)
(Pengcheng Xiong, reviewed by Ashutosh Chauhan)
http://git-wip-us.apache.org/repos/asf/hive/blob/78a85f82/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
----------------------------------------------------------------------
diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
index 9652b42..bcc7790 100644
--- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
+++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
@@ -166,6 +166,8 @@ public class ThriftHiveMetastore {
public void alter_partitions(String db_name, String tbl_name, List<Partition> new_parts) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
+ public void alter_partitions_with_environment_context(String db_name, String tbl_name, List<Partition> new_parts, EnvironmentContext environment_context) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
+
public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
public void rename_partition(String db_name, String tbl_name, List<String> part_vals, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
@@ -438,6 +440,8 @@ public class ThriftHiveMetastore {
public void alter_partitions(String db_name, String tbl_name, List<Partition> new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void alter_partitions_with_environment_context(String db_name, String tbl_name, List<Partition> new_parts, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void rename_partition(String db_name, String tbl_name, List<String> part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
@@ -2520,6 +2524,35 @@ public class ThriftHiveMetastore {
return;
}
+ public void alter_partitions_with_environment_context(String db_name, String tbl_name, List<Partition> new_parts, EnvironmentContext environment_context) throws InvalidOperationException, MetaException, org.apache.thrift.TException
+ {
+ send_alter_partitions_with_environment_context(db_name, tbl_name, new_parts, environment_context);
+ recv_alter_partitions_with_environment_context();
+ }
+
+ public void send_alter_partitions_with_environment_context(String db_name, String tbl_name, List<Partition> new_parts, EnvironmentContext environment_context) throws org.apache.thrift.TException
+ {
+ alter_partitions_with_environment_context_args args = new alter_partitions_with_environment_context_args();
+ args.setDb_name(db_name);
+ args.setTbl_name(tbl_name);
+ args.setNew_parts(new_parts);
+ args.setEnvironment_context(environment_context);
+ sendBase("alter_partitions_with_environment_context", args);
+ }
+
+ public void recv_alter_partitions_with_environment_context() throws InvalidOperationException, MetaException, org.apache.thrift.TException
+ {
+ alter_partitions_with_environment_context_result result = new alter_partitions_with_environment_context_result();
+ receiveBase(result, "alter_partitions_with_environment_context");
+ if (result.o1 != null) {
+ throw result.o1;
+ }
+ if (result.o2 != null) {
+ throw result.o2;
+ }
+ return;
+ }
+
public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context) throws InvalidOperationException, MetaException, org.apache.thrift.TException
{
send_alter_partition_with_environment_context(db_name, tbl_name, new_part, environment_context);
@@ -6834,6 +6867,47 @@ public class ThriftHiveMetastore {
}
}
+ public void alter_partitions_with_environment_context(String db_name, String tbl_name, List<Partition> new_parts, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ alter_partitions_with_environment_context_call method_call = new alter_partitions_with_environment_context_call(db_name, tbl_name, new_parts, environment_context, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class alter_partitions_with_environment_context_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String db_name;
+ private String tbl_name;
+ private List<Partition> new_parts;
+ private EnvironmentContext environment_context;
+ public alter_partitions_with_environment_context_call(String db_name, String tbl_name, List<Partition> new_parts, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.db_name = db_name;
+ this.tbl_name = tbl_name;
+ this.new_parts = new_parts;
+ this.environment_context = environment_context;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("alter_partitions_with_environment_context", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ alter_partitions_with_environment_context_args args = new alter_partitions_with_environment_context_args();
+ args.setDb_name(db_name);
+ args.setTbl_name(tbl_name);
+ args.setNew_parts(new_parts);
+ args.setEnvironment_context(environment_context);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public void getResult() throws InvalidOperationException, MetaException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ (new Client(prot)).recv_alter_partitions_with_environment_context();
+ }
+ }
+
public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
alter_partition_with_environment_context_call method_call = new alter_partition_with_environment_context_call(db_name, tbl_name, new_part, environment_context, resultHandler, this, ___protocolFactory, ___transport);
@@ -9363,6 +9437,7 @@ public class ThriftHiveMetastore {
processMap.put("get_partitions_by_names", new get_partitions_by_names());
processMap.put("alter_partition", new alter_partition());
processMap.put("alter_partitions", new alter_partitions());
+ processMap.put("alter_partitions_with_environment_context", new alter_partitions_with_environment_context());
processMap.put("alter_partition_with_environment_context", new alter_partition_with_environment_context());
processMap.put("rename_partition", new rename_partition());
processMap.put("partition_name_has_valid_characters", new partition_name_has_valid_characters());
@@ -11093,6 +11168,32 @@ public class ThriftHiveMetastore {
}
}
+ public static class alter_partitions_with_environment_context<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_partitions_with_environment_context_args> {
+ public alter_partitions_with_environment_context() {
+ super("alter_partitions_with_environment_context");
+ }
+
+ public alter_partitions_with_environment_context_args getEmptyArgsInstance() {
+ return new alter_partitions_with_environment_context_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public alter_partitions_with_environment_context_result getResult(I iface, alter_partitions_with_environment_context_args args) throws org.apache.thrift.TException {
+ alter_partitions_with_environment_context_result result = new alter_partitions_with_environment_context_result();
+ try {
+ iface.alter_partitions_with_environment_context(args.db_name, args.tbl_name, args.new_parts, args.environment_context);
+ } catch (InvalidOperationException o1) {
+ result.o1 = o1;
+ } catch (MetaException o2) {
+ result.o2 = o2;
+ }
+ return result;
+ }
+ }
+
public static class alter_partition_with_environment_context<I extends Iface> extends org.apache.thrift.ProcessFunction<I, alter_partition_with_environment_context_args> {
public alter_partition_with_environment_context() {
super("alter_partition_with_environment_context");
@@ -12955,6 +13056,7 @@ public class ThriftHiveMetastore {
processMap.put("get_partitions_by_names", new get_partitions_by_names());
processMap.put("alter_partition", new alter_partition());
processMap.put("alter_partitions", new alter_partitions());
+ processMap.put("alter_partitions_with_environment_context", new alter_partitions_with_environment_context());
processMap.put("alter_partition_with_environment_context", new alter_partition_with_environment_context());
processMap.put("rename_partition", new rename_partition());
processMap.put("partition_name_has_valid_characters", new partition_name_has_valid_characters());
@@ -16955,6 +17057,67 @@ public class ThriftHiveMetastore {
}
}
+ public static class alter_partitions_with_environment_context<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_partitions_with_environment_context_args, Void> {
+ public alter_partitions_with_environment_context() {
+ super("alter_partitions_with_environment_context");
+ }
+
+ public alter_partitions_with_environment_context_args getEmptyArgsInstance() {
+ return new alter_partitions_with_environment_context_args();
+ }
+
+ public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<Void>() {
+ public void onComplete(Void o) {
+ alter_partitions_with_environment_context_result result = new alter_partitions_with_environment_context_result();
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ alter_partitions_with_environment_context_result result = new alter_partitions_with_environment_context_result();
+ if (e instanceof InvalidOperationException) {
+ result.o1 = (InvalidOperationException) e;
+ result.setO1IsSet(true);
+ msg = result;
+ }
+ else if (e instanceof MetaException) {
+ result.o2 = (MetaException) e;
+ result.setO2IsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, alter_partitions_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ iface.alter_partitions_with_environment_context(args.db_name, args.tbl_name, args.new_parts, args.environment_context,resultHandler);
+ }
+ }
+
public static class alter_partition_with_environment_context<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, alter_partition_with_environment_context_args, Void> {
public alter_partition_with_environment_context() {
super("alter_partition_with_environment_context");
@@ -21197,7 +21360,7 @@ public class ThriftHiveMetastore {
public AsyncMethodCallback<GetChangeVersionResult> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<GetChangeVersionResult>() {
+ return new AsyncMethodCallback<GetChangeVersionResult>() {
public void onComplete(GetChangeVersionResult o) {
get_change_version_result result = new get_change_version_result();
result.success = o;
@@ -92638,30 +92801,30 @@ public class ThriftHiveMetastore {
}
- public static class alter_partition_with_environment_context_args implements org.apache.thrift.TBase<alter_partition_with_environment_context_args, alter_partition_with_environment_context_args._Fields>, java.io.Serializable, Cloneable, Comparable<alter_partition_with_environment_context_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_args");
+ public static class alter_partitions_with_environment_context_args implements org.apache.thrift.TBase<alter_partitions_with_environment_context_args, alter_partitions_with_environment_context_args._Fields>, java.io.Serializable, Cloneable, Comparable<alter_partitions_with_environment_context_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_with_environment_context_args");
private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+ private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new alter_partition_with_environment_context_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new alter_partition_with_environment_context_argsTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new alter_partitions_with_environment_context_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new alter_partitions_with_environment_context_argsTupleSchemeFactory());
}
private String db_name; // required
private String tbl_name; // required
- private Partition new_part; // required
+ private List<Partition> new_parts; // required
private EnvironmentContext environment_context; // 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 {
DB_NAME((short)1, "db_name"),
TBL_NAME((short)2, "tbl_name"),
- NEW_PART((short)3, "new_part"),
+ NEW_PARTS((short)3, "new_parts"),
ENVIRONMENT_CONTEXT((short)4, "environment_context");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -92681,8 +92844,8 @@ public class ThriftHiveMetastore {
return DB_NAME;
case 2: // TBL_NAME
return TBL_NAME;
- case 3: // NEW_PART
- return NEW_PART;
+ case 3: // NEW_PARTS
+ return NEW_PARTS;
case 4: // ENVIRONMENT_CONTEXT
return ENVIRONMENT_CONTEXT;
default:
@@ -92732,57 +92895,62 @@ public class ThriftHiveMetastore {
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)));
+ tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))));
tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_with_environment_context_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_with_environment_context_args.class, metaDataMap);
}
- public alter_partition_with_environment_context_args() {
+ public alter_partitions_with_environment_context_args() {
}
- public alter_partition_with_environment_context_args(
+ public alter_partitions_with_environment_context_args(
String db_name,
String tbl_name,
- Partition new_part,
+ List<Partition> new_parts,
EnvironmentContext environment_context)
{
this();
this.db_name = db_name;
this.tbl_name = tbl_name;
- this.new_part = new_part;
+ this.new_parts = new_parts;
this.environment_context = environment_context;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public alter_partition_with_environment_context_args(alter_partition_with_environment_context_args other) {
+ public alter_partitions_with_environment_context_args(alter_partitions_with_environment_context_args other) {
if (other.isSetDb_name()) {
this.db_name = other.db_name;
}
if (other.isSetTbl_name()) {
this.tbl_name = other.tbl_name;
}
- if (other.isSetNew_part()) {
- this.new_part = new Partition(other.new_part);
+ if (other.isSetNew_parts()) {
+ List<Partition> __this__new_parts = new ArrayList<Partition>(other.new_parts.size());
+ for (Partition other_element : other.new_parts) {
+ __this__new_parts.add(new Partition(other_element));
+ }
+ this.new_parts = __this__new_parts;
}
if (other.isSetEnvironment_context()) {
this.environment_context = new EnvironmentContext(other.environment_context);
}
}
- public alter_partition_with_environment_context_args deepCopy() {
- return new alter_partition_with_environment_context_args(this);
+ public alter_partitions_with_environment_context_args deepCopy() {
+ return new alter_partitions_with_environment_context_args(this);
}
@Override
public void clear() {
this.db_name = null;
this.tbl_name = null;
- this.new_part = null;
+ this.new_parts = null;
this.environment_context = null;
}
@@ -92832,26 +93000,41 @@ public class ThriftHiveMetastore {
}
}
- public Partition getNew_part() {
- return this.new_part;
+ public int getNew_partsSize() {
+ return (this.new_parts == null) ? 0 : this.new_parts.size();
}
- public void setNew_part(Partition new_part) {
- this.new_part = new_part;
+ public java.util.Iterator<Partition> getNew_partsIterator() {
+ return (this.new_parts == null) ? null : this.new_parts.iterator();
}
- public void unsetNew_part() {
- this.new_part = null;
+ public void addToNew_parts(Partition elem) {
+ if (this.new_parts == null) {
+ this.new_parts = new ArrayList<Partition>();
+ }
+ this.new_parts.add(elem);
}
- /** Returns true if field new_part is set (has been assigned a value) and false otherwise */
- public boolean isSetNew_part() {
- return this.new_part != null;
+ public List<Partition> getNew_parts() {
+ return this.new_parts;
}
- public void setNew_partIsSet(boolean value) {
+ public void setNew_parts(List<Partition> new_parts) {
+ this.new_parts = new_parts;
+ }
+
+ public void unsetNew_parts() {
+ this.new_parts = null;
+ }
+
+ /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */
+ public boolean isSetNew_parts() {
+ return this.new_parts != null;
+ }
+
+ public void setNew_partsIsSet(boolean value) {
if (!value) {
- this.new_part = null;
+ this.new_parts = null;
}
}
@@ -92896,11 +93079,11 @@ public class ThriftHiveMetastore {
}
break;
- case NEW_PART:
+ case NEW_PARTS:
if (value == null) {
- unsetNew_part();
+ unsetNew_parts();
} else {
- setNew_part((Partition)value);
+ setNew_parts((List<Partition>)value);
}
break;
@@ -92923,8 +93106,8 @@ public class ThriftHiveMetastore {
case TBL_NAME:
return getTbl_name();
- case NEW_PART:
- return getNew_part();
+ case NEW_PARTS:
+ return getNew_parts();
case ENVIRONMENT_CONTEXT:
return getEnvironment_context();
@@ -92944,8 +93127,8 @@ public class ThriftHiveMetastore {
return isSetDb_name();
case TBL_NAME:
return isSetTbl_name();
- case NEW_PART:
- return isSetNew_part();
+ case NEW_PARTS:
+ return isSetNew_parts();
case ENVIRONMENT_CONTEXT:
return isSetEnvironment_context();
}
@@ -92956,12 +93139,12 @@ public class ThriftHiveMetastore {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof alter_partition_with_environment_context_args)
- return this.equals((alter_partition_with_environment_context_args)that);
+ if (that instanceof alter_partitions_with_environment_context_args)
+ return this.equals((alter_partitions_with_environment_context_args)that);
return false;
}
- public boolean equals(alter_partition_with_environment_context_args that) {
+ public boolean equals(alter_partitions_with_environment_context_args that) {
if (that == null)
return false;
@@ -92983,12 +93166,12 @@ public class ThriftHiveMetastore {
return false;
}
- boolean this_present_new_part = true && this.isSetNew_part();
- boolean that_present_new_part = true && that.isSetNew_part();
- if (this_present_new_part || that_present_new_part) {
- if (!(this_present_new_part && that_present_new_part))
+ boolean this_present_new_parts = true && this.isSetNew_parts();
+ boolean that_present_new_parts = true && that.isSetNew_parts();
+ if (this_present_new_parts || that_present_new_parts) {
+ if (!(this_present_new_parts && that_present_new_parts))
return false;
- if (!this.new_part.equals(that.new_part))
+ if (!this.new_parts.equals(that.new_parts))
return false;
}
@@ -93018,10 +93201,10 @@ public class ThriftHiveMetastore {
if (present_tbl_name)
list.add(tbl_name);
- boolean present_new_part = true && (isSetNew_part());
- list.add(present_new_part);
- if (present_new_part)
- list.add(new_part);
+ boolean present_new_parts = true && (isSetNew_parts());
+ list.add(present_new_parts);
+ if (present_new_parts)
+ list.add(new_parts);
boolean present_environment_context = true && (isSetEnvironment_context());
list.add(present_environment_context);
@@ -93032,7 +93215,7 @@ public class ThriftHiveMetastore {
}
@Override
- public int compareTo(alter_partition_with_environment_context_args other) {
+ public int compareTo(alter_partitions_with_environment_context_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -93059,12 +93242,12 @@ public class ThriftHiveMetastore {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part());
+ lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetNew_part()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part);
+ if (isSetNew_parts()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts);
if (lastComparison != 0) {
return lastComparison;
}
@@ -93096,7 +93279,7 @@ public class ThriftHiveMetastore {
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_args(");
+ StringBuilder sb = new StringBuilder("alter_partitions_with_environment_context_args(");
boolean first = true;
sb.append("db_name:");
@@ -93115,11 +93298,11 @@ public class ThriftHiveMetastore {
}
first = false;
if (!first) sb.append(", ");
- sb.append("new_part:");
- if (this.new_part == null) {
+ sb.append("new_parts:");
+ if (this.new_parts == null) {
sb.append("null");
} else {
- sb.append(this.new_part);
+ sb.append(this.new_parts);
}
first = false;
if (!first) sb.append(", ");
@@ -93137,9 +93320,6 @@ public class ThriftHiveMetastore {
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
- if (new_part != null) {
- new_part.validate();
- }
if (environment_context != null) {
environment_context.validate();
}
@@ -93161,15 +93341,15 @@ public class ThriftHiveMetastore {
}
}
- private static class alter_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory {
- public alter_partition_with_environment_context_argsStandardScheme getScheme() {
- return new alter_partition_with_environment_context_argsStandardScheme();
+ private static class alter_partitions_with_environment_context_argsStandardSchemeFactory implements SchemeFactory {
+ public alter_partitions_with_environment_context_argsStandardScheme getScheme() {
+ return new alter_partitions_with_environment_context_argsStandardScheme();
}
}
- private static class alter_partition_with_environment_context_argsStandardScheme extends StandardScheme<alter_partition_with_environment_context_args> {
+ private static class alter_partitions_with_environment_context_argsStandardScheme extends StandardScheme<alter_partitions_with_environment_context_args> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -93195,11 +93375,21 @@ public class ThriftHiveMetastore {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 3: // NEW_PART
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.new_part = new Partition();
- struct.new_part.read(iprot);
- struct.setNew_partIsSet(true);
+ case 3: // NEW_PARTS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list942 = iprot.readListBegin();
+ struct.new_parts = new ArrayList<Partition>(_list942.size);
+ Partition _elem943;
+ for (int _i944 = 0; _i944 < _list942.size; ++_i944)
+ {
+ _elem943 = new Partition();
+ _elem943.read(iprot);
+ struct.new_parts.add(_elem943);
+ }
+ iprot.readListEnd();
+ }
+ struct.setNew_partsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -93222,7 +93412,7 @@ public class ThriftHiveMetastore {
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -93236,9 +93426,16 @@ public class ThriftHiveMetastore {
oprot.writeString(struct.tbl_name);
oprot.writeFieldEnd();
}
- if (struct.new_part != null) {
- oprot.writeFieldBegin(NEW_PART_FIELD_DESC);
- struct.new_part.write(oprot);
+ if (struct.new_parts != null) {
+ oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size()));
+ for (Partition _iter945 : struct.new_parts)
+ {
+ _iter945.write(oprot);
+ }
+ oprot.writeListEnd();
+ }
oprot.writeFieldEnd();
}
if (struct.environment_context != null) {
@@ -93252,16 +93449,16 @@ public class ThriftHiveMetastore {
}
- private static class alter_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory {
- public alter_partition_with_environment_context_argsTupleScheme getScheme() {
- return new alter_partition_with_environment_context_argsTupleScheme();
+ private static class alter_partitions_with_environment_context_argsTupleSchemeFactory implements SchemeFactory {
+ public alter_partitions_with_environment_context_argsTupleScheme getScheme() {
+ return new alter_partitions_with_environment_context_argsTupleScheme();
}
}
- private static class alter_partition_with_environment_context_argsTupleScheme extends TupleScheme<alter_partition_with_environment_context_args> {
+ private static class alter_partitions_with_environment_context_argsTupleScheme extends TupleScheme<alter_partitions_with_environment_context_args> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetDb_name()) {
@@ -93270,7 +93467,7 @@ public class ThriftHiveMetastore {
if (struct.isSetTbl_name()) {
optionals.set(1);
}
- if (struct.isSetNew_part()) {
+ if (struct.isSetNew_parts()) {
optionals.set(2);
}
if (struct.isSetEnvironment_context()) {
@@ -93283,8 +93480,14 @@ public class ThriftHiveMetastore {
if (struct.isSetTbl_name()) {
oprot.writeString(struct.tbl_name);
}
- if (struct.isSetNew_part()) {
- struct.new_part.write(oprot);
+ if (struct.isSetNew_parts()) {
+ {
+ oprot.writeI32(struct.new_parts.size());
+ for (Partition _iter946 : struct.new_parts)
+ {
+ _iter946.write(oprot);
+ }
+ }
}
if (struct.isSetEnvironment_context()) {
struct.environment_context.write(oprot);
@@ -93292,7 +93495,7 @@ public class ThriftHiveMetastore {
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
@@ -93304,9 +93507,18 @@ public class ThriftHiveMetastore {
struct.setTbl_nameIsSet(true);
}
if (incoming.get(2)) {
- struct.new_part = new Partition();
- struct.new_part.read(iprot);
- struct.setNew_partIsSet(true);
+ {
+ org.apache.thrift.protocol.TList _list947 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.new_parts = new ArrayList<Partition>(_list947.size);
+ Partition _elem948;
+ for (int _i949 = 0; _i949 < _list947.size; ++_i949)
+ {
+ _elem948 = new Partition();
+ _elem948.read(iprot);
+ struct.new_parts.add(_elem948);
+ }
+ }
+ struct.setNew_partsIsSet(true);
}
if (incoming.get(3)) {
struct.environment_context = new EnvironmentContext();
@@ -93318,16 +93530,16 @@ public class ThriftHiveMetastore {
}
- public static class alter_partition_with_environment_context_result implements org.apache.thrift.TBase<alter_partition_with_environment_context_result, alter_partition_with_environment_context_result._Fields>, java.io.Serializable, Cloneable, Comparable<alter_partition_with_environment_context_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_result");
+ public static class alter_partitions_with_environment_context_result implements org.apache.thrift.TBase<alter_partitions_with_environment_context_result, alter_partitions_with_environment_context_result._Fields>, java.io.Serializable, Cloneable, Comparable<alter_partitions_with_environment_context_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_with_environment_context_result");
private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new alter_partition_with_environment_context_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new alter_partition_with_environment_context_resultTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new alter_partitions_with_environment_context_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new alter_partitions_with_environment_context_resultTupleSchemeFactory());
}
private InvalidOperationException o1; // required
@@ -93403,13 +93615,13 @@ public class ThriftHiveMetastore {
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(alter_partition_with_environment_context_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partitions_with_environment_context_result.class, metaDataMap);
}
- public alter_partition_with_environment_context_result() {
+ public alter_partitions_with_environment_context_result() {
}
- public alter_partition_with_environment_context_result(
+ public alter_partitions_with_environment_context_result(
InvalidOperationException o1,
MetaException o2)
{
@@ -93421,7 +93633,7 @@ public class ThriftHiveMetastore {
/**
* Performs a deep copy on <i>other</i>.
*/
- public alter_partition_with_environment_context_result(alter_partition_with_environment_context_result other) {
+ public alter_partitions_with_environment_context_result(alter_partitions_with_environment_context_result other) {
if (other.isSetO1()) {
this.o1 = new InvalidOperationException(other.o1);
}
@@ -93430,8 +93642,8 @@ public class ThriftHiveMetastore {
}
}
- public alter_partition_with_environment_context_result deepCopy() {
- return new alter_partition_with_environment_context_result(this);
+ public alter_partitions_with_environment_context_result deepCopy() {
+ return new alter_partitions_with_environment_context_result(this);
}
@Override
@@ -93538,12 +93750,12 @@ public class ThriftHiveMetastore {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof alter_partition_with_environment_context_result)
- return this.equals((alter_partition_with_environment_context_result)that);
+ if (that instanceof alter_partitions_with_environment_context_result)
+ return this.equals((alter_partitions_with_environment_context_result)that);
return false;
}
- public boolean equals(alter_partition_with_environment_context_result that) {
+ public boolean equals(alter_partitions_with_environment_context_result that) {
if (that == null)
return false;
@@ -93586,7 +93798,7 @@ public class ThriftHiveMetastore {
}
@Override
- public int compareTo(alter_partition_with_environment_context_result other) {
+ public int compareTo(alter_partitions_with_environment_context_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -93630,7 +93842,7 @@ public class ThriftHiveMetastore {
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_result(");
+ StringBuilder sb = new StringBuilder("alter_partitions_with_environment_context_result(");
boolean first = true;
sb.append("o1:");
@@ -93673,15 +93885,15 @@ public class ThriftHiveMetastore {
}
}
- private static class alter_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory {
- public alter_partition_with_environment_context_resultStandardScheme getScheme() {
- return new alter_partition_with_environment_context_resultStandardScheme();
+ private static class alter_partitions_with_environment_context_resultStandardSchemeFactory implements SchemeFactory {
+ public alter_partitions_with_environment_context_resultStandardScheme getScheme() {
+ return new alter_partitions_with_environment_context_resultStandardScheme();
}
}
- private static class alter_partition_with_environment_context_resultStandardScheme extends StandardScheme<alter_partition_with_environment_context_result> {
+ private static class alter_partitions_with_environment_context_resultStandardScheme extends StandardScheme<alter_partitions_with_environment_context_result> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -93718,7 +93930,7 @@ public class ThriftHiveMetastore {
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -93738,16 +93950,16 @@ public class ThriftHiveMetastore {
}
- private static class alter_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory {
- public alter_partition_with_environment_context_resultTupleScheme getScheme() {
- return new alter_partition_with_environment_context_resultTupleScheme();
+ private static class alter_partitions_with_environment_context_resultTupleSchemeFactory implements SchemeFactory {
+ public alter_partitions_with_environment_context_resultTupleScheme getScheme() {
+ return new alter_partitions_with_environment_context_resultTupleScheme();
}
}
- private static class alter_partition_with_environment_context_resultTupleScheme extends TupleScheme<alter_partition_with_environment_context_result> {
+ private static class alter_partitions_with_environment_context_resultTupleScheme extends TupleScheme<alter_partitions_with_environment_context_result> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetO1()) {
@@ -93766,7 +93978,7 @@ public class ThriftHiveMetastore {
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_with_environment_context_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
@@ -93784,31 +93996,31 @@ public class ThriftHiveMetastore {
}
- public static class rename_partition_args implements org.apache.thrift.TBase<rename_partition_args, rename_partition_args._Fields>, java.io.Serializable, Cloneable, Comparable<rename_partition_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("rename_partition_args");
+ public static class alter_partition_with_environment_context_args implements org.apache.thrift.TBase<alter_partition_with_environment_context_args, alter_partition_with_environment_context_args._Fields>, java.io.Serializable, Cloneable, Comparable<alter_partition_with_environment_context_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_args");
private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3);
- private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+ private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+ private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new rename_partition_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new rename_partition_argsTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new alter_partition_with_environment_context_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new alter_partition_with_environment_context_argsTupleSchemeFactory());
}
private String db_name; // required
private String tbl_name; // required
- private List<String> part_vals; // required
private Partition new_part; // required
+ private EnvironmentContext environment_context; // 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 {
DB_NAME((short)1, "db_name"),
TBL_NAME((short)2, "tbl_name"),
- PART_VALS((short)3, "part_vals"),
- NEW_PART((short)4, "new_part");
+ NEW_PART((short)3, "new_part"),
+ ENVIRONMENT_CONTEXT((short)4, "environment_context");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -93827,10 +94039,10 @@ public class ThriftHiveMetastore {
return DB_NAME;
case 2: // TBL_NAME
return TBL_NAME;
- case 3: // PART_VALS
- return PART_VALS;
- case 4: // NEW_PART
+ case 3: // NEW_PART
return NEW_PART;
+ case 4: // ENVIRONMENT_CONTEXT
+ return ENVIRONMENT_CONTEXT;
default:
return null;
}
@@ -93878,60 +94090,58 @@ public class ThriftHiveMetastore {
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)));
+ tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(rename_partition_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_with_environment_context_args.class, metaDataMap);
}
- public rename_partition_args() {
+ public alter_partition_with_environment_context_args() {
}
- public rename_partition_args(
+ public alter_partition_with_environment_context_args(
String db_name,
String tbl_name,
- List<String> part_vals,
- Partition new_part)
+ Partition new_part,
+ EnvironmentContext environment_context)
{
this();
this.db_name = db_name;
this.tbl_name = tbl_name;
- this.part_vals = part_vals;
this.new_part = new_part;
+ this.environment_context = environment_context;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public rename_partition_args(rename_partition_args other) {
+ public alter_partition_with_environment_context_args(alter_partition_with_environment_context_args other) {
if (other.isSetDb_name()) {
this.db_name = other.db_name;
}
if (other.isSetTbl_name()) {
this.tbl_name = other.tbl_name;
}
- if (other.isSetPart_vals()) {
- List<String> __this__part_vals = new ArrayList<String>(other.part_vals);
- this.part_vals = __this__part_vals;
- }
if (other.isSetNew_part()) {
this.new_part = new Partition(other.new_part);
}
+ if (other.isSetEnvironment_context()) {
+ this.environment_context = new EnvironmentContext(other.environment_context);
+ }
}
- public rename_partition_args deepCopy() {
- return new rename_partition_args(this);
+ public alter_partition_with_environment_context_args deepCopy() {
+ return new alter_partition_with_environment_context_args(this);
}
@Override
public void clear() {
this.db_name = null;
this.tbl_name = null;
- this.part_vals = null;
this.new_part = null;
+ this.environment_context = null;
}
public String getDb_name() {
@@ -93980,64 +94190,49 @@ public class ThriftHiveMetastore {
}
}
- public int getPart_valsSize() {
- return (this.part_vals == null) ? 0 : this.part_vals.size();
- }
-
- public java.util.Iterator<String> getPart_valsIterator() {
- return (this.part_vals == null) ? null : this.part_vals.iterator();
- }
-
- public void addToPart_vals(String elem) {
- if (this.part_vals == null) {
- this.part_vals = new ArrayList<String>();
- }
- this.part_vals.add(elem);
- }
-
- public List<String> getPart_vals() {
- return this.part_vals;
+ public Partition getNew_part() {
+ return this.new_part;
}
- public void setPart_vals(List<String> part_vals) {
- this.part_vals = part_vals;
+ public void setNew_part(Partition new_part) {
+ this.new_part = new_part;
}
- public void unsetPart_vals() {
- this.part_vals = null;
+ public void unsetNew_part() {
+ this.new_part = null;
}
- /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */
- public boolean isSetPart_vals() {
- return this.part_vals != null;
+ /** Returns true if field new_part is set (has been assigned a value) and false otherwise */
+ public boolean isSetNew_part() {
+ return this.new_part != null;
}
- public void setPart_valsIsSet(boolean value) {
+ public void setNew_partIsSet(boolean value) {
if (!value) {
- this.part_vals = null;
+ this.new_part = null;
}
}
- public Partition getNew_part() {
- return this.new_part;
+ public EnvironmentContext getEnvironment_context() {
+ return this.environment_context;
}
- public void setNew_part(Partition new_part) {
- this.new_part = new_part;
+ public void setEnvironment_context(EnvironmentContext environment_context) {
+ this.environment_context = environment_context;
}
- public void unsetNew_part() {
- this.new_part = null;
+ public void unsetEnvironment_context() {
+ this.environment_context = null;
}
- /** Returns true if field new_part is set (has been assigned a value) and false otherwise */
- public boolean isSetNew_part() {
- return this.new_part != null;
+ /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */
+ public boolean isSetEnvironment_context() {
+ return this.environment_context != null;
}
- public void setNew_partIsSet(boolean value) {
+ public void setEnvironment_contextIsSet(boolean value) {
if (!value) {
- this.new_part = null;
+ this.environment_context = null;
}
}
@@ -94059,19 +94254,19 @@ public class ThriftHiveMetastore {
}
break;
- case PART_VALS:
+ case NEW_PART:
if (value == null) {
- unsetPart_vals();
+ unsetNew_part();
} else {
- setPart_vals((List<String>)value);
+ setNew_part((Partition)value);
}
break;
- case NEW_PART:
+ case ENVIRONMENT_CONTEXT:
if (value == null) {
- unsetNew_part();
+ unsetEnvironment_context();
} else {
- setNew_part((Partition)value);
+ setEnvironment_context((EnvironmentContext)value);
}
break;
@@ -94086,12 +94281,12 @@ public class ThriftHiveMetastore {
case TBL_NAME:
return getTbl_name();
- case PART_VALS:
- return getPart_vals();
-
case NEW_PART:
return getNew_part();
+ case ENVIRONMENT_CONTEXT:
+ return getEnvironment_context();
+
}
throw new IllegalStateException();
}
@@ -94107,10 +94302,10 @@ public class ThriftHiveMetastore {
return isSetDb_name();
case TBL_NAME:
return isSetTbl_name();
- case PART_VALS:
- return isSetPart_vals();
case NEW_PART:
return isSetNew_part();
+ case ENVIRONMENT_CONTEXT:
+ return isSetEnvironment_context();
}
throw new IllegalStateException();
}
@@ -94119,12 +94314,12 @@ public class ThriftHiveMetastore {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof rename_partition_args)
- return this.equals((rename_partition_args)that);
+ if (that instanceof alter_partition_with_environment_context_args)
+ return this.equals((alter_partition_with_environment_context_args)that);
return false;
}
- public boolean equals(rename_partition_args that) {
+ public boolean equals(alter_partition_with_environment_context_args that) {
if (that == null)
return false;
@@ -94146,15 +94341,6 @@ public class ThriftHiveMetastore {
return false;
}
- boolean this_present_part_vals = true && this.isSetPart_vals();
- boolean that_present_part_vals = true && that.isSetPart_vals();
- if (this_present_part_vals || that_present_part_vals) {
- if (!(this_present_part_vals && that_present_part_vals))
- return false;
- if (!this.part_vals.equals(that.part_vals))
- return false;
- }
-
boolean this_present_new_part = true && this.isSetNew_part();
boolean that_present_new_part = true && that.isSetNew_part();
if (this_present_new_part || that_present_new_part) {
@@ -94164,6 +94350,15 @@ public class ThriftHiveMetastore {
return false;
}
+ boolean this_present_environment_context = true && this.isSetEnvironment_context();
+ boolean that_present_environment_context = true && that.isSetEnvironment_context();
+ if (this_present_environment_context || that_present_environment_context) {
+ if (!(this_present_environment_context && that_present_environment_context))
+ return false;
+ if (!this.environment_context.equals(that.environment_context))
+ return false;
+ }
+
return true;
}
@@ -94181,21 +94376,21 @@ public class ThriftHiveMetastore {
if (present_tbl_name)
list.add(tbl_name);
- boolean present_part_vals = true && (isSetPart_vals());
- list.add(present_part_vals);
- if (present_part_vals)
- list.add(part_vals);
-
boolean present_new_part = true && (isSetNew_part());
list.add(present_new_part);
if (present_new_part)
list.add(new_part);
+ boolean present_environment_context = true && (isSetEnvironment_context());
+ list.add(present_environment_context);
+ if (present_environment_context)
+ list.add(environment_context);
+
return list.hashCode();
}
@Override
- public int compareTo(rename_partition_args other) {
+ public int compareTo(alter_partition_with_environment_context_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -94222,22 +94417,22 @@ public class ThriftHiveMetastore {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals());
+ lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetPart_vals()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals);
+ if (isSetNew_part()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part);
if (lastComparison != 0) {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part());
+ lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetNew_part()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part);
+ if (isSetEnvironment_context()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context);
if (lastComparison != 0) {
return lastComparison;
}
@@ -94259,7 +94454,7 @@ public class ThriftHiveMetastore {
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("rename_partition_args(");
+ StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_args(");
boolean first = true;
sb.append("db_name:");
@@ -94278,19 +94473,19 @@ public class ThriftHiveMetastore {
}
first = false;
if (!first) sb.append(", ");
- sb.append("part_vals:");
- if (this.part_vals == null) {
+ sb.append("new_part:");
+ if (this.new_part == null) {
sb.append("null");
} else {
- sb.append(this.part_vals);
+ sb.append(this.new_part);
}
first = false;
if (!first) sb.append(", ");
- sb.append("new_part:");
- if (this.new_part == null) {
+ sb.append("environment_context:");
+ if (this.environment_context == null) {
sb.append("null");
} else {
- sb.append(this.new_part);
+ sb.append(this.environment_context);
}
first = false;
sb.append(")");
@@ -94303,6 +94498,9 @@ public class ThriftHiveMetastore {
if (new_part != null) {
new_part.validate();
}
+ if (environment_context != null) {
+ environment_context.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -94321,15 +94519,15 @@ public class ThriftHiveMetastore {
}
}
- private static class rename_partition_argsStandardSchemeFactory implements SchemeFactory {
- public rename_partition_argsStandardScheme getScheme() {
- return new rename_partition_argsStandardScheme();
+ private static class alter_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory {
+ public alter_partition_with_environment_context_argsStandardScheme getScheme() {
+ return new alter_partition_with_environment_context_argsStandardScheme();
}
}
- private static class rename_partition_argsStandardScheme extends StandardScheme<rename_partition_args> {
+ private static class alter_partition_with_environment_context_argsStandardScheme extends StandardScheme<alter_partition_with_environment_context_args> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -94355,29 +94553,20 @@ public class ThriftHiveMetastore {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 3: // PART_VALS
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list942 = iprot.readListBegin();
- struct.part_vals = new ArrayList<String>(_list942.size);
- String _elem943;
- for (int _i944 = 0; _i944 < _list942.size; ++_i944)
- {
- _elem943 = iprot.readString();
- struct.part_vals.add(_elem943);
- }
- iprot.readListEnd();
- }
- struct.setPart_valsIsSet(true);
+ case 3: // NEW_PART
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.new_part = new Partition();
+ struct.new_part.read(iprot);
+ struct.setNew_partIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 4: // NEW_PART
+ case 4: // ENVIRONMENT_CONTEXT
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.new_part = new Partition();
- struct.new_part.read(iprot);
- struct.setNew_partIsSet(true);
+ struct.environment_context = new EnvironmentContext();
+ struct.environment_context.read(iprot);
+ struct.setEnvironment_contextIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -94391,7 +94580,7 @@ public class ThriftHiveMetastore {
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -94405,39 +94594,32 @@ public class ThriftHiveMetastore {
oprot.writeString(struct.tbl_name);
oprot.writeFieldEnd();
}
- if (struct.part_vals != null) {
- oprot.writeFieldBegin(PART_VALS_FIELD_DESC);
- {
- oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size()));
- for (String _iter945 : struct.part_vals)
- {
- oprot.writeString(_iter945);
- }
- oprot.writeListEnd();
- }
- oprot.writeFieldEnd();
- }
if (struct.new_part != null) {
oprot.writeFieldBegin(NEW_PART_FIELD_DESC);
struct.new_part.write(oprot);
oprot.writeFieldEnd();
}
+ if (struct.environment_context != null) {
+ oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC);
+ struct.environment_context.write(oprot);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
- private static class rename_partition_argsTupleSchemeFactory implements SchemeFactory {
- public rename_partition_argsTupleScheme getScheme() {
- return new rename_partition_argsTupleScheme();
+ private static class alter_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory {
+ public alter_partition_with_environment_context_argsTupleScheme getScheme() {
+ return new alter_partition_with_environment_context_argsTupleScheme();
}
}
- private static class rename_partition_argsTupleScheme extends TupleScheme<rename_partition_args> {
+ private static class alter_partition_with_environment_context_argsTupleScheme extends TupleScheme<alter_partition_with_environment_context_args> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetDb_name()) {
@@ -94446,10 +94628,10 @@ public class ThriftHiveMetastore {
if (struct.isSetTbl_name()) {
optionals.set(1);
}
- if (struct.isSetPart_vals()) {
+ if (struct.isSetNew_part()) {
optionals.set(2);
}
- if (struct.isSetNew_part()) {
+ if (struct.isSetEnvironment_context()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
@@ -94459,22 +94641,16 @@ public class ThriftHiveMetastore {
if (struct.isSetTbl_name()) {
oprot.writeString(struct.tbl_name);
}
- if (struct.isSetPart_vals()) {
- {
- oprot.writeI32(struct.part_vals.size());
- for (String _iter946 : struct.part_vals)
- {
- oprot.writeString(_iter946);
- }
- }
- }
if (struct.isSetNew_part()) {
struct.new_part.write(oprot);
}
+ if (struct.isSetEnvironment_context()) {
+ struct.environment_context.write(oprot);
+ }
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
@@ -94486,38 +94662,30 @@ public class ThriftHiveMetastore {
struct.setTbl_nameIsSet(true);
}
if (incoming.get(2)) {
- {
- org.apache.thrift.protocol.TList _list947 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.part_vals = new ArrayList<String>(_list947.size);
- String _elem948;
- for (int _i949 = 0; _i949 < _list947.size; ++_i949)
- {
- _elem948 = iprot.readString();
- struct.part_vals.add(_elem948);
- }
- }
- struct.setPart_valsIsSet(true);
- }
- if (incoming.get(3)) {
struct.new_part = new Partition();
struct.new_part.read(iprot);
struct.setNew_partIsSet(true);
}
+ if (incoming.get(3)) {
+ struct.environment_context = new EnvironmentContext();
+ struct.environment_context.read(iprot);
+ struct.setEnvironment_contextIsSet(true);
+ }
}
}
}
- public static class rename_partition_result implements org.apache.thrift.TBase<rename_partition_result, rename_partition_result._Fields>, java.io.Serializable, Cloneable, Comparable<rename_partition_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("rename_partition_result");
+ public static class alter_partition_with_environment_context_result implements org.apache.thrift.TBase<alter_partition_with_environment_context_result, alter_partition_with_environment_context_result._Fields>, java.io.Serializable, Cloneable, Comparable<alter_partition_with_environment_context_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_result");
private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new rename_partition_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new rename_partition_resultTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new alter_partition_with_environment_context_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new alter_partition_with_environment_context_resultTupleSchemeFactory());
}
private InvalidOperationException o1; // required
@@ -94593,13 +94761,13 @@ public class ThriftHiveMetastore {
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(rename_partition_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_with_environment_context_result.class, metaDataMap);
}
- public rename_partition_result() {
+ public alter_partition_with_environment_context_result() {
}
- public rename_partition_result(
+ public alter_partition_with_environment_context_result(
InvalidOperationException o1,
MetaException o2)
{
@@ -94611,7 +94779,7 @@ public class ThriftHiveMetastore {
/**
* Performs a deep copy on <i>other</i>.
*/
- public rename_partition_result(rename_partition_result other) {
+ public alter_partition_with_environment_context_result(alter_partition_with_environment_context_result other) {
if (other.isSetO1()) {
this.o1 = new InvalidOperationException(other.o1);
}
@@ -94620,8 +94788,8 @@ public class ThriftHiveMetastore {
}
}
- public rename_partition_result deepCopy() {
- return new rename_partition_result(this);
+ public alter_partition_with_environment_context_result deepCopy() {
+ return new alter_partition_with_environment_context_result(this);
}
@Override
@@ -94728,12 +94896,12 @@ public class ThriftHiveMetastore {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof rename_partition_result)
- return this.equals((rename_partition_result)that);
+ if (that instanceof alter_partition_with_environment_context_result)
+ return this.equals((alter_partition_with_environment_context_result)that);
return false;
}
- public boolean equals(rename_partition_result that) {
+ public boolean equals(alter_partition_with_environment_context_result that) {
if (that == null)
return false;
@@ -94776,7 +94944,7 @@ public class ThriftHiveMetastore {
}
@Override
- public int compareTo(rename_partition_result other) {
+ public int compareTo(alter_partition_with_environment_context_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -94820,7 +94988,7 @@ public class ThriftHiveMetastore {
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("rename_partition_result(");
+ StringBuilder sb = new StringBuilder("alter_partition_with_environment_context_result(");
boolean first = true;
sb.append("o1:");
@@ -94863,15 +95031,15 @@ public class ThriftHiveMetastore {
}
}
- private static class rename_partition_resultStandardSchemeFactory implements SchemeFactory {
- public rename_partition_resultStandardScheme getScheme() {
- return new rename_partition_resultStandardScheme();
+ private static class alter_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory {
+ public alter_partition_with_environment_context_resultStandardScheme getScheme() {
+ return new alter_partition_with_environment_context_resultStandardScheme();
}
}
- private static class rename_partition_resultStandardScheme extends StandardScheme<rename_partition_result> {
+ private static class alter_partition_with_environment_context_resultStandardScheme extends StandardScheme<alter_partition_with_environment_context_result> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -94908,7 +95076,7 @@ public class ThriftHiveMetastore {
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -94928,16 +95096,16 @@ public class ThriftHiveMetastore {
}
- private static class rename_partition_resultTupleSchemeFactory implements SchemeFactory {
- public rename_partition_resultTupleScheme getScheme() {
- return new rename_partition_resultTupleScheme();
+ private static class alter_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory {
+ public alter_partition_with_environment_context_resultTupleScheme getScheme() {
+ return new alter_partition_with_environment_context_resultTupleScheme();
}
}
- private static class rename_partition_resultTupleScheme extends TupleScheme<rename_partition_result> {
+ private static class alter_partition_with_environment_context_resultTupleScheme extends TupleScheme<alter_partition_with_environment_context_result> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetO1()) {
@@ -94956,7 +95124,7 @@ public class ThriftHiveMetastore {
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with_environment_context_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
@@ -94974,25 +95142,31 @@ public class ThriftHiveMetastore {
}
- public static class partition_name_has_valid_characters_args implements org.apache.thrift.TBase<partition_name_has_valid_characters_args, partition_name_has_valid_characters_args._Fields>, java.io.Serializable, Cloneable, Comparable<partition_name_has_valid_characters_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_has_valid_characters_args");
+ public static class rename_partition_args implements org.apache.thrift.TBase<rename_partition_args, rename_partition_args._Fields>, java.io.Serializable, Cloneable, Comparable<rename_partition_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("rename_partition_args");
- private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)1);
- private static final org.apache.thrift.protocol.TField THROW_EXCEPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("throw_exception", org.apache.thrift.protocol.TType.BOOL, (short)2);
+ private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3);
+ private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)4);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new partition_name_has_valid_characters_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new partition_name_has_valid_characters_argsTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new rename_partition_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new rename_partition_argsTupleSchemeFactory());
}
+ private String db_name; // required
+ private String tbl_name; // required
private List<String> part_vals; // required
- private boolean throw_exception; // required
+ private Partition new_part; // 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 {
- PART_VALS((short)1, "part_vals"),
- THROW_EXCEPTION((short)2, "throw_exception");
+ DB_NAME((short)1, "db_name"),
+ TBL_NAME((short)2, "tbl_name"),
+ PART_VALS((short)3, "part_vals"),
+ NEW_PART((short)4, "new_part");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
@@ -95007,10 +95181,14 @@ public class ThriftHiveMetastore {
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case 1: // PART_VALS
+ case 1: // DB_NAME
+ return DB_NAME;
+ case 2: // TBL_NAME
+ return TBL_NAME;
+ case 3: // PART_VALS
return PART_VALS;
- case 2: // THROW_EXCEPTION
- return THROW_EXCEPTION;
+ case 4: // NEW_PART
+ return NEW_PART;
default:
return null;
}
@@ -95051,54 +95229,1234 @@ public class ThriftHiveMetastore {
}
// isset id assignments
- private static final int __THROW_EXCEPTION_ISSET_ID = 0;
- private byte __isset_bitfield = 0;
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.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
- tmpMap.put(_Fields.THROW_EXCEPTION, new org.apache.thrift.meta_data.FieldMetaData("throw_exception", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partition_name_has_valid_characters_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(rename_partition_args.class, metaDataMap);
}
- public partition_name_has_valid_characters_args() {
+ public rename_partition_args() {
}
- public partition_name_has_valid_characters_args(
+ public rename_partition_args(
+ String db_name,
+ String tbl_name,
List<String> part_vals,
- boolean throw_exception)
+ Partition new_part)
{
this();
+ this.db_name = db_name;
+ this.tbl_name = tbl_name;
this.part_vals = part_vals;
- this.throw_exception = throw_exception;
- setThrow_exceptionIsSet(true);
+ this.new_part = new_part;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public partition_name_has_valid_characters_args(partition_name_has_valid_characters_args other) {
- __isset_bitfield = other.__isset_bitfield;
+ public rename_partition_args(rename_partition_args other) {
+ if (other.isSetDb_name()) {
+ this.db_name = other.db_name;
+ }
+ if (other.isSetTbl_name()) {
+ this.tbl_name = other.tbl_name;
+ }
if (other.isSetPart_vals()) {
List<String> __this__part_vals = new ArrayList<String>(other.part_vals);
this.part_vals = __this__part_vals;
}
- this.throw_exception = other.throw_exception;
+ if (other.isSetNew_part()) {
+ this.new_part = new Partition(other.new_part);
+ }
}
- public partition_name_has_valid_characters_args deepCopy() {
- return new partition_name_has_valid_characters_args(this);
+ public rename_partition_args deepCopy() {
+ return new rename_partition_args(this);
}
@Override
public void clear() {
+ this.db_name = null;
+ this.tbl_name = null;
this.part_vals = null;
- setThrow_exceptionIsSet(false);
- this.throw_exception = false;
+ this.new_part = null;
+ }
+
+ public String getDb_name() {
+ return this.db_name;
+ }
+
+ public void setDb_name(String db_name) {
+ this.db_name = db_name;
+ }
+
+ public void unsetDb_name() {
+ this.db_name = null;
+ }
+
+ /** Returns true if field db_name is set (has been assigned a value) and false otherwise */
+ public boolean isSetDb_name() {
+ return this.db_name != null;
+ }
+
+ public void setDb_nameIsSet(boolean value) {
+ if (!value) {
+ this.db_name = null;
+ }
+ }
+
+ public String getTbl_name() {
+ return this.tbl_name;
+ }
+
+ public void setTbl_name(String tbl_name) {
+ this.tbl_name = tbl_name;
+ }
+
+ public void unsetTbl_name() {
+ this.tbl_name = null;
+ }
+
+ /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */
+ public boolean isSetTbl_name() {
+ return this.tbl_name != null;
+ }
+
+ public void setTbl_nameIsSet(boolean value) {
+ if (!value) {
+ this.tbl_name = null;
+ }
+ }
+
+ public int getPart_valsSize() {
+ return (this.part_vals == null) ? 0 : this.part_vals.size();
+ }
+
+ public java.util.Iterator<String> getPart_valsIterat
<TRUNCATED>