diff --git a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
index d9fb645858..54306234bf 100644
--- a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
+++ b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
@@ -342,6 +342,12 @@ public Table alterTable(String catName, String dbName, String name, Table newTab
return objectStore.getTables(catName, dbName, pattern, tableType);
}
+ @Override
+ public List
getAllMaterializedViewObjectsForRewriting(String catName)
+ throws MetaException {
+ return objectStore.getAllMaterializedViewObjectsForRewriting(catName);
+ }
+
@Override
public List getMaterializedViewsForRewriting(String catName, String dbName)
throws MetaException, NoSuchObjectException {
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
index 40c6cf6c24..420270a728 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
@@ -1548,20 +1548,18 @@ public Table apply(org.apache.hadoop.hive.metastore.api.Table table) {
* @throws HiveException
*/
public List getAllValidMaterializedViews(List tablesUsed, boolean forceMVContentsUpToDate,
- HiveTxnManager txnMgr) throws HiveException {
+ HiveTxnManager txnMgr) throws HiveException {
// Final result
List result = new ArrayList<>();
try {
- for (String dbName : getMSC().getAllDatabases()) {
- // From metastore (for security)
- List materializedViewNames = getMaterializedViewsForRewriting(dbName);
- if (materializedViewNames.isEmpty()) {
- // Bail out: empty list
- continue;
- }
- result.addAll(getValidMaterializedViews(dbName, materializedViewNames,
- tablesUsed, forceMVContentsUpToDate, txnMgr));
+ // From metastore (for security)
+ List materializedViews = getAllMaterializedViewObjectsForRewriting();
+ if (materializedViews.isEmpty()) {
+ // Bail out: empty list
+ return result;
}
+ result.addAll(getValidMaterializedViews(materializedViews,
+ tablesUsed, forceMVContentsUpToDate, txnMgr));
return result;
} catch (Exception e) {
throw new HiveException(e);
@@ -1570,11 +1568,11 @@ public Table apply(org.apache.hadoop.hive.metastore.api.Table table) {
public List getValidMaterializedView(String dbName, String materializedViewName,
List tablesUsed, boolean forceMVContentsUpToDate, HiveTxnManager txnMgr) throws HiveException {
- return getValidMaterializedViews(dbName, ImmutableList.of(materializedViewName),
+ return getValidMaterializedViews(ImmutableList.of(getTable(dbName, materializedViewName)),
tablesUsed, forceMVContentsUpToDate, txnMgr);
}
- private List getValidMaterializedViews(String dbName, List materializedViewNames,
+ private List getValidMaterializedViews(List materializedViewTables,
List tablesUsed, boolean forceMVContentsUpToDate, HiveTxnManager txnMgr) throws HiveException {
final String validTxnsList = conf.get(ValidTxnList.VALID_TXNS_KEY);
final ValidTxnWriteIdList currentTxnWriteIds = txnMgr.getValidWriteIds(tablesUsed, validTxnsList);
@@ -1588,7 +1586,6 @@ public Table apply(org.apache.hadoop.hive.metastore.api.Table table) {
try {
// Final result
List result = new ArrayList<>();
- List materializedViewTables = getTableObjects(dbName, materializedViewNames);
for (Table materializedViewTable : materializedViewTables) {
final Boolean outdated = isOutdatedMaterializedView(materializedViewTable, currentTxnWriteIds,
defaultTimeWindow, tablesUsed, forceMVContentsUpToDate);
@@ -1623,7 +1620,7 @@ public Table apply(org.apache.hadoop.hive.metastore.api.Table table) {
// It passed the test, load
RelOptMaterialization materialization =
HiveMaterializedViewsRegistry.get().getRewritingMaterializedView(
- dbName, materializedViewTable.getTableName());
+ materializedViewTable.getDbName(), materializedViewTable.getTableName());
if (materialization != null) {
RelNode viewScan = materialization.tableRel;
RelOptHiveTable cachedMaterializedViewTable;
@@ -1792,6 +1789,21 @@ public void visit(RelNode node, int ordinal, RelNode parent) {
null, materialization.qualifiedTableName);
}
+ public List getAllMaterializedViewObjectsForRewriting() throws HiveException {
+ try {
+ return Lists.transform(getMSC().getAllMaterializedViewObjectsForRewriting(),
+ new com.google.common.base.Function() {
+ @Override
+ public Table apply(org.apache.hadoop.hive.metastore.api.Table table) {
+ return new Table(table);
+ }
+ }
+ );
+ } catch (Exception e) {
+ throw new HiveException(e);
+ }
+ }
+
/**
* Get materialized views for the specified database that have enabled rewriting.
* @param dbName
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java
index b6b7c53123..56047cfa0b 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java
@@ -161,10 +161,8 @@ public void run() {
SessionState.start(ss);
final boolean cache = !db.getConf()
.get(HiveConf.ConfVars.HIVE_SERVER2_MATERIALIZED_VIEWS_REGISTRY_IMPL.varname).equals("DUMMY");
- for (String dbName : db.getAllDatabases()) {
- for (Table mv : db.getAllMaterializedViewObjects(dbName)) {
- addMaterializedView(db.getConf(), mv, OpType.LOAD, cache);
- }
+ for (Table mv : db.getAllMaterializedViewObjectsForRewriting()) {
+ addMaterializedView(db.getConf(), mv, OpType.LOAD, cache);
}
initialized.set(true);
LOG.info("Materialized views registry has been initialized");
diff --git a/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
index e0431e5f6c..f2781ce50f 100644
--- a/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
+++ b/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
@@ -116,6 +116,8 @@
public List get_tables_by_type(String db_name, String pattern, String tableType) throws MetaException, org.apache.thrift.TException;
+ public List get_all_materialized_view_objects_for_rewriting() throws MetaException, org.apache.thrift.TException;
+
public List get_materialized_views_for_rewriting(String db_name) throws MetaException, org.apache.thrift.TException;
public List get_table_meta(String db_patterns, String tbl_patterns, List tbl_types) throws MetaException, org.apache.thrift.TException;
@@ -566,6 +568,8 @@
public void get_tables_by_type(String db_name, String pattern, String tableType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void get_all_materialized_view_objects_for_rewriting(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
public void get_materialized_views_for_rewriting(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void get_table_meta(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
@@ -2016,6 +2020,31 @@ public void send_get_tables_by_type(String db_name, String pattern, String table
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_tables_by_type failed: unknown result");
}
+ public List get_all_materialized_view_objects_for_rewriting() throws MetaException, org.apache.thrift.TException
+ {
+ send_get_all_materialized_view_objects_for_rewriting();
+ return recv_get_all_materialized_view_objects_for_rewriting();
+ }
+
+ public void send_get_all_materialized_view_objects_for_rewriting() throws org.apache.thrift.TException
+ {
+ get_all_materialized_view_objects_for_rewriting_args args = new get_all_materialized_view_objects_for_rewriting_args();
+ sendBase("get_all_materialized_view_objects_for_rewriting", args);
+ }
+
+ public List recv_get_all_materialized_view_objects_for_rewriting() throws MetaException, org.apache.thrift.TException
+ {
+ get_all_materialized_view_objects_for_rewriting_result result = new get_all_materialized_view_objects_for_rewriting_result();
+ receiveBase(result, "get_all_materialized_view_objects_for_rewriting");
+ 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, "get_all_materialized_view_objects_for_rewriting failed: unknown result");
+ }
+
public List get_materialized_views_for_rewriting(String db_name) throws MetaException, org.apache.thrift.TException
{
send_get_materialized_views_for_rewriting(db_name);
@@ -8600,6 +8629,35 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa
}
}
+ public void get_all_materialized_view_objects_for_rewriting(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ get_all_materialized_view_objects_for_rewriting_call method_call = new get_all_materialized_view_objects_for_rewriting_call(resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_materialized_view_objects_for_rewriting_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public get_all_materialized_view_objects_for_rewriting_call(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);
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_all_materialized_view_objects_for_rewriting", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ get_all_materialized_view_objects_for_rewriting_args args = new get_all_materialized_view_objects_for_rewriting_args();
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public List 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_get_all_materialized_view_objects_for_rewriting();
+ }
+ }
+
public void get_materialized_views_for_rewriting(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
get_materialized_views_for_rewriting_call method_call = new get_materialized_views_for_rewriting_call(db_name, resultHandler, this, ___protocolFactory, ___transport);
@@ -15025,6 +15083,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction {
+ public get_all_materialized_view_objects_for_rewriting() {
+ super("get_all_materialized_view_objects_for_rewriting");
+ }
+
+ public get_all_materialized_view_objects_for_rewriting_args getEmptyArgsInstance() {
+ return new get_all_materialized_view_objects_for_rewriting_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public get_all_materialized_view_objects_for_rewriting_result getResult(I iface, get_all_materialized_view_objects_for_rewriting_args args) throws org.apache.thrift.TException {
+ get_all_materialized_view_objects_for_rewriting_result result = new get_all_materialized_view_objects_for_rewriting_result();
+ try {
+ result.success = iface.get_all_materialized_view_objects_for_rewriting();
+ } catch (MetaException o1) {
+ result.o1 = o1;
+ }
+ return result;
+ }
+ }
+
@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting extends org.apache.thrift.ProcessFunction {
public get_materialized_views_for_rewriting() {
super("get_materialized_views_for_rewriting");
@@ -20962,6 +21045,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction> {
+ public get_all_materialized_view_objects_for_rewriting() {
+ super("get_all_materialized_view_objects_for_rewriting");
+ }
+
+ public get_all_materialized_view_objects_for_rewriting_args getEmptyArgsInstance() {
+ return new get_all_materialized_view_objects_for_rewriting_args();
+ }
+
+ public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback>() {
+ public void onComplete(List o) {
+ get_all_materialized_view_objects_for_rewriting_result result = new get_all_materialized_view_objects_for_rewriting_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ return;
+ } catch (Exception e) {
+ LOGGER.error("Exception writing to internal frame buffer", e);
+ }
+ fb.close();
+ }
+ public void onError(Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TBase msg;
+ get_all_materialized_view_objects_for_rewriting_result result = new get_all_materialized_view_objects_for_rewriting_result();
+ if (e instanceof MetaException) {
+ result.o1 = (MetaException) e;
+ result.setO1IsSet(true);
+ msg = result;
+ }
+ else
+ {
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ return;
+ } catch (Exception ex) {
+ LOGGER.error("Exception writing to internal frame buffer", ex);
+ }
+ fb.close();
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, get_all_materialized_view_objects_for_rewriting_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException {
+ iface.get_all_materialized_view_objects_for_rewriting(resultHandler);
+ }
+ }
+
@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting extends org.apache.thrift.AsyncProcessFunction> {
public get_materialized_views_for_rewriting() {
super("get_materialized_views_for_rewriting");
@@ -71206,22 +71347,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialized_views_for_rewriting_args");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_materialized_view_objects_for_rewriting_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_materialized_view_objects_for_rewriting_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_argsTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new get_all_materialized_view_objects_for_rewriting_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new get_all_materialized_view_objects_for_rewriting_argsTupleSchemeFactory());
}
- private String db_name; // 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");
+;
private static final Map byName = new HashMap();
@@ -71236,8 +71375,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case 1: // DB_NAME
- return DB_NAME;
default:
return null;
}
@@ -71276,86 +71413,37 @@ public String getFieldName() {
return _fieldName;
}
}
-
- // isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.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)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_args.class, metaDataMap);
- }
-
- public get_materialized_views_for_rewriting_args() {
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_materialized_view_objects_for_rewriting_args.class, metaDataMap);
}
- public get_materialized_views_for_rewriting_args(
- String db_name)
- {
- this();
- this.db_name = db_name;
+ public get_all_materialized_view_objects_for_rewriting_args() {
}
/**
* Performs a deep copy on other .
*/
- public get_materialized_views_for_rewriting_args(get_materialized_views_for_rewriting_args other) {
- if (other.isSetDb_name()) {
- this.db_name = other.db_name;
- }
+ public get_all_materialized_view_objects_for_rewriting_args(get_all_materialized_view_objects_for_rewriting_args other) {
}
- public get_materialized_views_for_rewriting_args deepCopy() {
- return new get_materialized_views_for_rewriting_args(this);
+ public get_all_materialized_view_objects_for_rewriting_args deepCopy() {
+ return new get_all_materialized_view_objects_for_rewriting_args(this);
}
@Override
public void clear() {
- this.db_name = 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 void setFieldValue(_Fields field, Object value) {
switch (field) {
- case DB_NAME:
- if (value == null) {
- unsetDb_name();
- } else {
- setDb_name((String)value);
- }
- break;
-
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
- case DB_NAME:
- return getDb_name();
-
}
throw new IllegalStateException();
}
@@ -71367,8 +71455,6 @@ public boolean isSet(_Fields field) {
}
switch (field) {
- case DB_NAME:
- return isSetDb_name();
}
throw new IllegalStateException();
}
@@ -71377,24 +71463,15 @@ public boolean isSet(_Fields field) {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof get_materialized_views_for_rewriting_args)
- return this.equals((get_materialized_views_for_rewriting_args)that);
+ if (that instanceof get_all_materialized_view_objects_for_rewriting_args)
+ return this.equals((get_all_materialized_view_objects_for_rewriting_args)that);
return false;
}
- public boolean equals(get_materialized_views_for_rewriting_args that) {
+ public boolean equals(get_all_materialized_view_objects_for_rewriting_args that) {
if (that == null)
return false;
- boolean this_present_db_name = true && this.isSetDb_name();
- boolean that_present_db_name = true && that.isSetDb_name();
- if (this_present_db_name || that_present_db_name) {
- if (!(this_present_db_name && that_present_db_name))
- return false;
- if (!this.db_name.equals(that.db_name))
- return false;
- }
-
return true;
}
@@ -71402,32 +71479,17 @@ public boolean equals(get_materialized_views_for_rewriting_args that) {
public int hashCode() {
List list = new ArrayList();
- boolean present_db_name = true && (isSetDb_name());
- list.add(present_db_name);
- if (present_db_name)
- list.add(db_name);
-
return list.hashCode();
}
@Override
- public int compareTo(get_materialized_views_for_rewriting_args other) {
+ public int compareTo(get_all_materialized_view_objects_for_rewriting_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetDb_name()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
return 0;
}
@@ -71445,16 +71507,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_args(");
+ StringBuilder sb = new StringBuilder("get_all_materialized_view_objects_for_rewriting_args(");
boolean first = true;
- sb.append("db_name:");
- if (this.db_name == null) {
- sb.append("null");
- } else {
- sb.append(this.db_name);
- }
- first = false;
sb.append(")");
return sb.toString();
}
@@ -71480,15 +71535,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
}
- private static class get_materialized_views_for_rewriting_argsStandardSchemeFactory implements SchemeFactory {
- public get_materialized_views_for_rewriting_argsStandardScheme getScheme() {
- return new get_materialized_views_for_rewriting_argsStandardScheme();
+ private static class get_all_materialized_view_objects_for_rewriting_argsStandardSchemeFactory implements SchemeFactory {
+ public get_all_materialized_view_objects_for_rewriting_argsStandardScheme getScheme() {
+ return new get_all_materialized_view_objects_for_rewriting_argsStandardScheme();
}
}
- private static class get_materialized_views_for_rewriting_argsStandardScheme extends StandardScheme {
+ private static class get_all_materialized_view_objects_for_rewriting_argsStandardScheme extends StandardScheme {
- public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -71498,14 +71553,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi
break;
}
switch (schemeField.id) {
- case 1: // DB_NAME
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.db_name = iprot.readString();
- struct.setDb_nameIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -71515,68 +71562,50 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- if (struct.db_name != null) {
- oprot.writeFieldBegin(DB_NAME_FIELD_DESC);
- oprot.writeString(struct.db_name);
- oprot.writeFieldEnd();
- }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
- private static class get_materialized_views_for_rewriting_argsTupleSchemeFactory implements SchemeFactory {
- public get_materialized_views_for_rewriting_argsTupleScheme getScheme() {
- return new get_materialized_views_for_rewriting_argsTupleScheme();
+ private static class get_all_materialized_view_objects_for_rewriting_argsTupleSchemeFactory implements SchemeFactory {
+ public get_all_materialized_view_objects_for_rewriting_argsTupleScheme getScheme() {
+ return new get_all_materialized_view_objects_for_rewriting_argsTupleScheme();
}
}
- private static class get_materialized_views_for_rewriting_argsTupleScheme extends TupleScheme {
+ private static class get_all_materialized_view_objects_for_rewriting_argsTupleScheme extends TupleScheme {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
- if (struct.isSetDb_name()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetDb_name()) {
- oprot.writeString(struct.db_name);
- }
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.db_name = iprot.readString();
- struct.setDb_nameIsSet(true);
- }
}
}
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialized_views_for_rewriting_result");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_all_materialized_view_objects_for_rewriting_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_materialized_view_objects_for_rewriting_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_resultTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new get_all_materialized_view_objects_for_rewriting_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new get_all_materialized_view_objects_for_rewriting_resultTupleSchemeFactory());
}
- private List success; // required
+ private List success; // required
private MetaException o1; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
@@ -71646,18 +71675,18 @@ public String getFieldName() {
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.ListMetaData(org.apache.thrift.protocol.TType.LIST,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.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)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_materialized_view_objects_for_rewriting_result.class, metaDataMap);
}
- public get_materialized_views_for_rewriting_result() {
+ public get_all_materialized_view_objects_for_rewriting_result() {
}
- public get_materialized_views_for_rewriting_result(
- List success,
+ public get_all_materialized_view_objects_for_rewriting_result(
+ List success,
MetaException o1)
{
this();
@@ -71668,9 +71697,12 @@ public get_materialized_views_for_rewriting_result(
/**
* Performs a deep copy on other .
*/
- public get_materialized_views_for_rewriting_result(get_materialized_views_for_rewriting_result other) {
+ public get_all_materialized_view_objects_for_rewriting_result(get_all_materialized_view_objects_for_rewriting_result other) {
if (other.isSetSuccess()) {
- List __this__success = new ArrayList(other.success);
+ List __this__success = new ArrayList(other.success.size());
+ for (Table other_element : other.success) {
+ __this__success.add(new Table(other_element));
+ }
this.success = __this__success;
}
if (other.isSetO1()) {
@@ -71678,8 +71710,8 @@ public get_materialized_views_for_rewriting_result(get_materialized_views_for_re
}
}
- public get_materialized_views_for_rewriting_result deepCopy() {
- return new get_materialized_views_for_rewriting_result(this);
+ public get_all_materialized_view_objects_for_rewriting_result deepCopy() {
+ return new get_all_materialized_view_objects_for_rewriting_result(this);
}
@Override
@@ -71692,22 +71724,22 @@ public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
- public java.util.Iterator getSuccessIterator() {
+ public java.util.Iterator getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
- public void addToSuccess(String elem) {
+ public void addToSuccess(Table elem) {
if (this.success == null) {
- this.success = new ArrayList();
+ this.success = new ArrayList();
}
this.success.add(elem);
}
- public List getSuccess() {
+ public List getSuccess() {
return this.success;
}
- public void setSuccess(List success) {
+ public void setSuccess(List success) {
this.success = success;
}
@@ -71755,7 +71787,7 @@ public void setFieldValue(_Fields field, Object value) {
if (value == null) {
unsetSuccess();
} else {
- setSuccess((List)value);
+ setSuccess((List)value);
}
break;
@@ -71801,12 +71833,12 @@ public boolean isSet(_Fields field) {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof get_materialized_views_for_rewriting_result)
- return this.equals((get_materialized_views_for_rewriting_result)that);
+ if (that instanceof get_all_materialized_view_objects_for_rewriting_result)
+ return this.equals((get_all_materialized_view_objects_for_rewriting_result)that);
return false;
}
- public boolean equals(get_materialized_views_for_rewriting_result that) {
+ public boolean equals(get_all_materialized_view_objects_for_rewriting_result that) {
if (that == null)
return false;
@@ -71849,7 +71881,7 @@ public int hashCode() {
}
@Override
- public int compareTo(get_materialized_views_for_rewriting_result other) {
+ public int compareTo(get_all_materialized_view_objects_for_rewriting_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -71893,7 +71925,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_result(");
+ StringBuilder sb = new StringBuilder("get_all_materialized_view_objects_for_rewriting_result(");
boolean first = true;
sb.append("success:");
@@ -71936,15 +71968,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
}
- private static class get_materialized_views_for_rewriting_resultStandardSchemeFactory implements SchemeFactory {
- public get_materialized_views_for_rewriting_resultStandardScheme getScheme() {
- return new get_materialized_views_for_rewriting_resultStandardScheme();
+ private static class get_all_materialized_view_objects_for_rewriting_resultStandardSchemeFactory implements SchemeFactory {
+ public get_all_materialized_view_objects_for_rewriting_resultStandardScheme getScheme() {
+ return new get_all_materialized_view_objects_for_rewriting_resultStandardScheme();
}
}
- private static class get_materialized_views_for_rewriting_resultStandardScheme extends StandardScheme {
+ private static class get_all_materialized_view_objects_for_rewriting_resultStandardScheme extends StandardScheme {
- public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -71958,11 +71990,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list1162 = iprot.readListBegin();
- struct.success = new ArrayList(_list1162.size);
- String _elem1163;
+ struct.success = new ArrayList(_list1162.size);
+ Table _elem1163;
for (int _i1164 = 0; _i1164 < _list1162.size; ++_i1164)
{
- _elem1163 = iprot.readString();
+ _elem1163 = new Table();
+ _elem1163.read(iprot);
struct.success.add(_elem1163);
}
iprot.readListEnd();
@@ -71990,17 +72023,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_vi
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
- oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter1165 : struct.success)
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
+ for (Table _iter1165 : struct.success)
{
- oprot.writeString(_iter1165);
+ _iter1165.write(oprot);
}
oprot.writeListEnd();
}
@@ -72017,16 +72050,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_v
}
- private static class get_materialized_views_for_rewriting_resultTupleSchemeFactory implements SchemeFactory {
- public get_materialized_views_for_rewriting_resultTupleScheme getScheme() {
- return new get_materialized_views_for_rewriting_resultTupleScheme();
+ private static class get_all_materialized_view_objects_for_rewriting_resultTupleSchemeFactory implements SchemeFactory {
+ public get_all_materialized_view_objects_for_rewriting_resultTupleScheme getScheme() {
+ return new get_all_materialized_view_objects_for_rewriting_resultTupleScheme();
}
}
- private static class get_materialized_views_for_rewriting_resultTupleScheme extends TupleScheme {
+ private static class get_all_materialized_view_objects_for_rewriting_resultTupleScheme extends TupleScheme {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
@@ -72039,9 +72072,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter1166 : struct.success)
+ for (Table _iter1166 : struct.success)
{
- oprot.writeString(_iter1166);
+ _iter1166.write(oprot);
}
}
}
@@ -72051,17 +72084,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_vi
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_materialized_view_objects_for_rewriting_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list1167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList(_list1167.size);
- String _elem1168;
+ org.apache.thrift.protocol.TList _list1167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList(_list1167.size);
+ Table _elem1168;
for (int _i1169 = 0; _i1169 < _list1167.size; ++_i1169)
{
- _elem1168 = iprot.readString();
+ _elem1168 = new Table();
+ _elem1168.read(iprot);
struct.success.add(_elem1168);
}
}
@@ -72077,28 +72111,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_vie
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_args");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialized_views_for_rewriting_args");
- private static final org.apache.thrift.protocol.TField DB_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("db_patterns", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final org.apache.thrift.protocol.TField TBL_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_patterns", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField TBL_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_types", org.apache.thrift.protocol.TType.LIST, (short)3);
+ 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new get_table_meta_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new get_table_meta_argsTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_argsTupleSchemeFactory());
}
- private String db_patterns; // required
- private String tbl_patterns; // required
- private List tbl_types; // required
+ private String db_name; // 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_PATTERNS((short)1, "db_patterns"),
- TBL_PATTERNS((short)2, "tbl_patterns"),
- TBL_TYPES((short)3, "tbl_types");
+ DB_NAME((short)1, "db_name");
private static final Map byName = new HashMap();
@@ -72113,12 +72141,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_vie
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case 1: // DB_PATTERNS
- return DB_PATTERNS;
- case 2: // TBL_PATTERNS
- return TBL_PATTERNS;
- case 3: // TBL_TYPES
- return TBL_TYPES;
+ case 1: // DB_NAME
+ return DB_NAME;
default:
return null;
}
@@ -72162,165 +72186,70 @@ public String getFieldName() {
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_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("db_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.TBL_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("tbl_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ 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_TYPES, new org.apache.thrift.meta_data.FieldMetaData("tbl_types", 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))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_args.class, metaDataMap);
}
- public get_table_meta_args() {
+ public get_materialized_views_for_rewriting_args() {
}
- public get_table_meta_args(
- String db_patterns,
- String tbl_patterns,
- List tbl_types)
+ public get_materialized_views_for_rewriting_args(
+ String db_name)
{
this();
- this.db_patterns = db_patterns;
- this.tbl_patterns = tbl_patterns;
- this.tbl_types = tbl_types;
+ this.db_name = db_name;
}
/**
* Performs a deep copy on other .
*/
- public get_table_meta_args(get_table_meta_args other) {
- if (other.isSetDb_patterns()) {
- this.db_patterns = other.db_patterns;
- }
- if (other.isSetTbl_patterns()) {
- this.tbl_patterns = other.tbl_patterns;
- }
- if (other.isSetTbl_types()) {
- List __this__tbl_types = new ArrayList(other.tbl_types);
- this.tbl_types = __this__tbl_types;
+ public get_materialized_views_for_rewriting_args(get_materialized_views_for_rewriting_args other) {
+ if (other.isSetDb_name()) {
+ this.db_name = other.db_name;
}
}
- public get_table_meta_args deepCopy() {
- return new get_table_meta_args(this);
+ public get_materialized_views_for_rewriting_args deepCopy() {
+ return new get_materialized_views_for_rewriting_args(this);
}
@Override
public void clear() {
- this.db_patterns = null;
- this.tbl_patterns = null;
- this.tbl_types = null;
- }
-
- public String getDb_patterns() {
- return this.db_patterns;
- }
-
- public void setDb_patterns(String db_patterns) {
- this.db_patterns = db_patterns;
- }
-
- public void unsetDb_patterns() {
- this.db_patterns = null;
- }
-
- /** Returns true if field db_patterns is set (has been assigned a value) and false otherwise */
- public boolean isSetDb_patterns() {
- return this.db_patterns != null;
- }
-
- public void setDb_patternsIsSet(boolean value) {
- if (!value) {
- this.db_patterns = null;
- }
- }
-
- public String getTbl_patterns() {
- return this.tbl_patterns;
- }
-
- public void setTbl_patterns(String tbl_patterns) {
- this.tbl_patterns = tbl_patterns;
- }
-
- public void unsetTbl_patterns() {
- this.tbl_patterns = null;
- }
-
- /** Returns true if field tbl_patterns is set (has been assigned a value) and false otherwise */
- public boolean isSetTbl_patterns() {
- return this.tbl_patterns != null;
- }
-
- public void setTbl_patternsIsSet(boolean value) {
- if (!value) {
- this.tbl_patterns = null;
- }
- }
-
- public int getTbl_typesSize() {
- return (this.tbl_types == null) ? 0 : this.tbl_types.size();
- }
-
- public java.util.Iterator getTbl_typesIterator() {
- return (this.tbl_types == null) ? null : this.tbl_types.iterator();
- }
-
- public void addToTbl_types(String elem) {
- if (this.tbl_types == null) {
- this.tbl_types = new ArrayList();
- }
- this.tbl_types.add(elem);
+ this.db_name = null;
}
- public List getTbl_types() {
- return this.tbl_types;
+ public String getDb_name() {
+ return this.db_name;
}
- public void setTbl_types(List tbl_types) {
- this.tbl_types = tbl_types;
+ public void setDb_name(String db_name) {
+ this.db_name = db_name;
}
- public void unsetTbl_types() {
- this.tbl_types = null;
+ public void unsetDb_name() {
+ this.db_name = null;
}
- /** Returns true if field tbl_types is set (has been assigned a value) and false otherwise */
- public boolean isSetTbl_types() {
- return this.tbl_types != 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 setTbl_typesIsSet(boolean value) {
+ public void setDb_nameIsSet(boolean value) {
if (!value) {
- this.tbl_types = null;
+ this.db_name = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
- case DB_PATTERNS:
- if (value == null) {
- unsetDb_patterns();
- } else {
- setDb_patterns((String)value);
- }
- break;
-
- case TBL_PATTERNS:
- if (value == null) {
- unsetTbl_patterns();
- } else {
- setTbl_patterns((String)value);
- }
- break;
-
- case TBL_TYPES:
+ case DB_NAME:
if (value == null) {
- unsetTbl_types();
+ unsetDb_name();
} else {
- setTbl_types((List)value);
+ setDb_name((String)value);
}
break;
@@ -72329,14 +72258,8 @@ public void setFieldValue(_Fields field, Object value) {
public Object getFieldValue(_Fields field) {
switch (field) {
- case DB_PATTERNS:
- return getDb_patterns();
-
- case TBL_PATTERNS:
- return getTbl_patterns();
-
- case TBL_TYPES:
- return getTbl_types();
+ case DB_NAME:
+ return getDb_name();
}
throw new IllegalStateException();
@@ -72349,12 +72272,8 @@ public boolean isSet(_Fields field) {
}
switch (field) {
- case DB_PATTERNS:
- return isSetDb_patterns();
- case TBL_PATTERNS:
- return isSetTbl_patterns();
- case TBL_TYPES:
- return isSetTbl_types();
+ case DB_NAME:
+ return isSetDb_name();
}
throw new IllegalStateException();
}
@@ -72363,39 +72282,21 @@ public boolean isSet(_Fields field) {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof get_table_meta_args)
- return this.equals((get_table_meta_args)that);
+ if (that instanceof get_materialized_views_for_rewriting_args)
+ return this.equals((get_materialized_views_for_rewriting_args)that);
return false;
}
- public boolean equals(get_table_meta_args that) {
+ public boolean equals(get_materialized_views_for_rewriting_args that) {
if (that == null)
return false;
- boolean this_present_db_patterns = true && this.isSetDb_patterns();
- boolean that_present_db_patterns = true && that.isSetDb_patterns();
- if (this_present_db_patterns || that_present_db_patterns) {
- if (!(this_present_db_patterns && that_present_db_patterns))
- return false;
- if (!this.db_patterns.equals(that.db_patterns))
- return false;
- }
-
- boolean this_present_tbl_patterns = true && this.isSetTbl_patterns();
- boolean that_present_tbl_patterns = true && that.isSetTbl_patterns();
- if (this_present_tbl_patterns || that_present_tbl_patterns) {
- if (!(this_present_tbl_patterns && that_present_tbl_patterns))
- return false;
- if (!this.tbl_patterns.equals(that.tbl_patterns))
- return false;
- }
-
- boolean this_present_tbl_types = true && this.isSetTbl_types();
- boolean that_present_tbl_types = true && that.isSetTbl_types();
- if (this_present_tbl_types || that_present_tbl_types) {
- if (!(this_present_tbl_types && that_present_tbl_types))
+ boolean this_present_db_name = true && this.isSetDb_name();
+ boolean that_present_db_name = true && that.isSetDb_name();
+ if (this_present_db_name || that_present_db_name) {
+ if (!(this_present_db_name && that_present_db_name))
return false;
- if (!this.tbl_types.equals(that.tbl_types))
+ if (!this.db_name.equals(that.db_name))
return false;
}
@@ -72406,58 +72307,28 @@ public boolean equals(get_table_meta_args that) {
public int hashCode() {
List list = new ArrayList();
- boolean present_db_patterns = true && (isSetDb_patterns());
- list.add(present_db_patterns);
- if (present_db_patterns)
- list.add(db_patterns);
-
- boolean present_tbl_patterns = true && (isSetTbl_patterns());
- list.add(present_tbl_patterns);
- if (present_tbl_patterns)
- list.add(tbl_patterns);
-
- boolean present_tbl_types = true && (isSetTbl_types());
- list.add(present_tbl_types);
- if (present_tbl_types)
- list.add(tbl_types);
+ boolean present_db_name = true && (isSetDb_name());
+ list.add(present_db_name);
+ if (present_db_name)
+ list.add(db_name);
return list.hashCode();
}
@Override
- public int compareTo(get_table_meta_args other) {
+ public int compareTo(get_materialized_views_for_rewriting_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(other.isSetDb_patterns());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetDb_patterns()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, other.db_patterns);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(other.isSetTbl_patterns());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetTbl_patterns()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, other.tbl_patterns);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(other.isSetTbl_types());
+ lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetTbl_types()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, other.tbl_types);
+ if (isSetDb_name()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name);
if (lastComparison != 0) {
return lastComparison;
}
@@ -72479,30 +72350,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("get_table_meta_args(");
+ StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_args(");
boolean first = true;
- sb.append("db_patterns:");
- if (this.db_patterns == null) {
- sb.append("null");
- } else {
- sb.append(this.db_patterns);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("tbl_patterns:");
- if (this.tbl_patterns == null) {
- sb.append("null");
- } else {
- sb.append(this.tbl_patterns);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("tbl_types:");
- if (this.tbl_types == null) {
+ sb.append("db_name:");
+ if (this.db_name == null) {
sb.append("null");
} else {
- sb.append(this.tbl_types);
+ sb.append(this.db_name);
}
first = false;
sb.append(")");
@@ -72530,15 +72385,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
}
}
- private static class get_table_meta_argsStandardSchemeFactory implements SchemeFactory {
- public get_table_meta_argsStandardScheme getScheme() {
- return new get_table_meta_argsStandardScheme();
+ private static class get_materialized_views_for_rewriting_argsStandardSchemeFactory implements SchemeFactory {
+ public get_materialized_views_for_rewriting_argsStandardScheme getScheme() {
+ return new get_materialized_views_for_rewriting_argsStandardScheme();
}
}
- private static class get_table_meta_argsStandardScheme extends StandardScheme {
+ private static class get_materialized_views_for_rewriting_argsStandardScheme extends StandardScheme {
- public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -72548,36 +72403,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args
break;
}
switch (schemeField.id) {
- case 1: // DB_PATTERNS
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.db_patterns = iprot.readString();
- struct.setDb_patternsIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // TBL_PATTERNS
+ case 1: // DB_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.tbl_patterns = iprot.readString();
- struct.setTbl_patternsIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 3: // TBL_TYPES
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list1170 = iprot.readListBegin();
- struct.tbl_types = new ArrayList(_list1170.size);
- String _elem1171;
- for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172)
- {
- _elem1171 = iprot.readString();
- struct.tbl_types.add(_elem1171);
- }
- iprot.readListEnd();
- }
- struct.setTbl_typesIsSet(true);
+ struct.db_name = iprot.readString();
+ struct.setDb_nameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -72591,30 +72420,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args
struct.validate();
}
- public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- if (struct.db_patterns != null) {
- oprot.writeFieldBegin(DB_PATTERNS_FIELD_DESC);
- oprot.writeString(struct.db_patterns);
- oprot.writeFieldEnd();
- }
- if (struct.tbl_patterns != null) {
- oprot.writeFieldBegin(TBL_PATTERNS_FIELD_DESC);
- oprot.writeString(struct.tbl_patterns);
- oprot.writeFieldEnd();
- }
- if (struct.tbl_types != null) {
- oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC);
- {
- oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size()));
- for (String _iter1173 : struct.tbl_types)
- {
- oprot.writeString(_iter1173);
- }
- oprot.writeListEnd();
- }
+ if (struct.db_name != null) {
+ oprot.writeFieldBegin(DB_NAME_FIELD_DESC);
+ oprot.writeString(struct.db_name);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -72623,88 +72435,53 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_arg
}
- private static class get_table_meta_argsTupleSchemeFactory implements SchemeFactory {
- public get_table_meta_argsTupleScheme getScheme() {
- return new get_table_meta_argsTupleScheme();
+ private static class get_materialized_views_for_rewriting_argsTupleSchemeFactory implements SchemeFactory {
+ public get_materialized_views_for_rewriting_argsTupleScheme getScheme() {
+ return new get_materialized_views_for_rewriting_argsTupleScheme();
}
}
- private static class get_table_meta_argsTupleScheme extends TupleScheme {
+ private static class get_materialized_views_for_rewriting_argsTupleScheme extends TupleScheme {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException {
+ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
- if (struct.isSetDb_patterns()) {
+ if (struct.isSetDb_name()) {
optionals.set(0);
}
- if (struct.isSetTbl_patterns()) {
- optionals.set(1);
- }
- if (struct.isSetTbl_types()) {
- optionals.set(2);
- }
- oprot.writeBitSet(optionals, 3);
- if (struct.isSetDb_patterns()) {
- oprot.writeString(struct.db_patterns);
- }
- if (struct.isSetTbl_patterns()) {
- oprot.writeString(struct.tbl_patterns);
- }
- if (struct.isSetTbl_types()) {
- {
- oprot.writeI32(struct.tbl_types.size());
- for (String _iter1174 : struct.tbl_types)
- {
- oprot.writeString(_iter1174);
- }
- }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetDb_name()) {
+ oprot.writeString(struct.db_name);
}
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException {
+ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
- struct.db_patterns = iprot.readString();
- struct.setDb_patternsIsSet(true);
- }
- if (incoming.get(1)) {
- struct.tbl_patterns = iprot.readString();
- struct.setTbl_patternsIsSet(true);
- }
- if (incoming.get(2)) {
- {
- org.apache.thrift.protocol.TList _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.tbl_types = new ArrayList(_list1175.size);
- String _elem1176;
- for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177)
- {
- _elem1176 = iprot.readString();
- struct.tbl_types.add(_elem1176);
- }
- }
- struct.setTbl_typesIsSet(true);
+ struct.db_name = iprot.readString();
+ struct.setDb_nameIsSet(true);
}
}
}
}
- @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_result");
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_materialized_views_for_rewriting_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_materialized_views_for_rewriting_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
- schemes.put(StandardScheme.class, new get_table_meta_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new get_table_meta_resultTupleSchemeFactory());
+ schemes.put(StandardScheme.class, new get_materialized_views_for_rewriting_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new get_materialized_views_for_rewriting_resultTupleSchemeFactory());
}
- private List success; // required
+ private List success; // required
private MetaException o1; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
@@ -72774,18 +72551,18 @@ public String getFieldName() {
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.ListMetaData(org.apache.thrift.protocol.TType.LIST,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TableMeta.class))));
+ 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)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_materialized_views_for_rewriting_result.class, metaDataMap);
}
- public get_table_meta_result() {
+ public get_materialized_views_for_rewriting_result() {
}
- public get_table_meta_result(
- List success,
+ public get_materialized_views_for_rewriting_result(
+ List success,
MetaException o1)
{
this();
@@ -72796,12 +72573,9 @@ public get_table_meta_result(
/**
* Performs a deep copy on other .
*/
- public get_table_meta_result(get_table_meta_result other) {
+ public get_materialized_views_for_rewriting_result(get_materialized_views_for_rewriting_result other) {
if (other.isSetSuccess()) {
- List __this__success = new ArrayList(other.success.size());
- for (TableMeta other_element : other.success) {
- __this__success.add(new TableMeta(other_element));
- }
+ List __this__success = new ArrayList(other.success);
this.success = __this__success;
}
if (other.isSetO1()) {
@@ -72809,8 +72583,8 @@ public get_table_meta_result(get_table_meta_result other) {
}
}
- public get_table_meta_result deepCopy() {
- return new get_table_meta_result(this);
+ public get_materialized_views_for_rewriting_result deepCopy() {
+ return new get_materialized_views_for_rewriting_result(this);
}
@Override
@@ -72823,22 +72597,22 @@ public int getSuccessSize() {
return (this.success == null) ? 0 : this.success.size();
}
- public java.util.Iterator getSuccessIterator() {
+ public java.util.Iterator getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
- public void addToSuccess(TableMeta elem) {
+ public void addToSuccess(String elem) {
if (this.success == null) {
- this.success = new ArrayList();
+ this.success = new ArrayList();
}
this.success.add(elem);
}
- public List getSuccess() {
+ public List getSuccess() {
return this.success;
}
- public void setSuccess(List success) {
+ public void setSuccess(List success) {
this.success = success;
}
@@ -72886,7 +72660,7 @@ public void setFieldValue(_Fields field, Object value) {
if (value == null) {
unsetSuccess();
} else {
- setSuccess((List)value);
+ setSuccess((List)value);
}
break;
@@ -72932,12 +72706,12 @@ public boolean isSet(_Fields field) {
public boolean equals(Object that) {
if (that == null)
return false;
- if (that instanceof get_table_meta_result)
- return this.equals((get_table_meta_result)that);
+ if (that instanceof get_materialized_views_for_rewriting_result)
+ return this.equals((get_materialized_views_for_rewriting_result)that);
return false;
}
- public boolean equals(get_table_meta_result that) {
+ public boolean equals(get_materialized_views_for_rewriting_result that) {
if (that == null)
return false;
@@ -72980,7 +72754,7 @@ public int hashCode() {
}
@Override
- public int compareTo(get_table_meta_result other) {
+ public int compareTo(get_materialized_views_for_rewriting_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -73024,7 +72798,1138 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.
@Override
public String toString() {
- StringBuilder sb = new StringBuilder("get_table_meta_result(");
+ StringBuilder sb = new StringBuilder("get_materialized_views_for_rewriting_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");
+ } else {
+ sb.append(this.o1);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class get_materialized_views_for_rewriting_resultStandardSchemeFactory implements SchemeFactory {
+ public get_materialized_views_for_rewriting_resultStandardScheme getScheme() {
+ return new get_materialized_views_for_rewriting_resultStandardScheme();
+ }
+ }
+
+ private static class get_materialized_views_for_rewriting_resultStandardScheme extends StandardScheme {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list1170 = iprot.readListBegin();
+ struct.success = new ArrayList(_list1170.size);
+ String _elem1171;
+ for (int _i1172 = 0; _i1172 < _list1170.size; ++_i1172)
+ {
+ _elem1171 = iprot.readString();
+ struct.success.add(_elem1171);
+ }
+ iprot.readListEnd();
+ }
+ 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 MetaException();
+ struct.o1.read(iprot);
+ struct.setO1IsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
+ for (String _iter1173 : struct.success)
+ {
+ oprot.writeString(_iter1173);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ if (struct.o1 != null) {
+ oprot.writeFieldBegin(O1_FIELD_DESC);
+ struct.o1.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class get_materialized_views_for_rewriting_resultTupleSchemeFactory implements SchemeFactory {
+ public get_materialized_views_for_rewriting_resultTupleScheme getScheme() {
+ return new get_materialized_views_for_rewriting_resultTupleScheme();
+ }
+ }
+
+ private static class get_materialized_views_for_rewriting_resultTupleScheme extends TupleScheme {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ if (struct.isSetO1()) {
+ optionals.set(1);
+ }
+ oprot.writeBitSet(optionals, 2);
+ if (struct.isSetSuccess()) {
+ {
+ oprot.writeI32(struct.success.size());
+ for (String _iter1174 : struct.success)
+ {
+ oprot.writeString(_iter1174);
+ }
+ }
+ }
+ if (struct.isSetO1()) {
+ struct.o1.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, get_materialized_views_for_rewriting_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(2);
+ if (incoming.get(0)) {
+ {
+ org.apache.thrift.protocol.TList _list1175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList(_list1175.size);
+ String _elem1176;
+ for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177)
+ {
+ _elem1176 = iprot.readString();
+ struct.success.add(_elem1176);
+ }
+ }
+ struct.setSuccessIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.o1 = new MetaException();
+ struct.o1.read(iprot);
+ struct.setO1IsSet(true);
+ }
+ }
+ }
+
+ }
+
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_args");
+
+ private static final org.apache.thrift.protocol.TField DB_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("db_patterns", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField TBL_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_patterns", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField TBL_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_types", org.apache.thrift.protocol.TType.LIST, (short)3);
+
+ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new get_table_meta_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new get_table_meta_argsTupleSchemeFactory());
+ }
+
+ private String db_patterns; // required
+ private String tbl_patterns; // required
+ private List tbl_types; // 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_PATTERNS((short)1, "db_patterns"),
+ TBL_PATTERNS((short)2, "tbl_patterns"),
+ TBL_TYPES((short)3, "tbl_types");
+
+ private static final Map byName = new HashMap();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // DB_PATTERNS
+ return DB_PATTERNS;
+ case 2: // TBL_PATTERNS
+ return TBL_PATTERNS;
+ case 3: // TBL_TYPES
+ return TBL_TYPES;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.DB_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("db_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.TBL_PATTERNS, new org.apache.thrift.meta_data.FieldMetaData("tbl_patterns", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.TBL_TYPES, new org.apache.thrift.meta_data.FieldMetaData("tbl_types", 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))));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_args.class, metaDataMap);
+ }
+
+ public get_table_meta_args() {
+ }
+
+ public get_table_meta_args(
+ String db_patterns,
+ String tbl_patterns,
+ List tbl_types)
+ {
+ this();
+ this.db_patterns = db_patterns;
+ this.tbl_patterns = tbl_patterns;
+ this.tbl_types = tbl_types;
+ }
+
+ /**
+ * Performs a deep copy on other .
+ */
+ public get_table_meta_args(get_table_meta_args other) {
+ if (other.isSetDb_patterns()) {
+ this.db_patterns = other.db_patterns;
+ }
+ if (other.isSetTbl_patterns()) {
+ this.tbl_patterns = other.tbl_patterns;
+ }
+ if (other.isSetTbl_types()) {
+ List __this__tbl_types = new ArrayList(other.tbl_types);
+ this.tbl_types = __this__tbl_types;
+ }
+ }
+
+ public get_table_meta_args deepCopy() {
+ return new get_table_meta_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.db_patterns = null;
+ this.tbl_patterns = null;
+ this.tbl_types = null;
+ }
+
+ public String getDb_patterns() {
+ return this.db_patterns;
+ }
+
+ public void setDb_patterns(String db_patterns) {
+ this.db_patterns = db_patterns;
+ }
+
+ public void unsetDb_patterns() {
+ this.db_patterns = null;
+ }
+
+ /** Returns true if field db_patterns is set (has been assigned a value) and false otherwise */
+ public boolean isSetDb_patterns() {
+ return this.db_patterns != null;
+ }
+
+ public void setDb_patternsIsSet(boolean value) {
+ if (!value) {
+ this.db_patterns = null;
+ }
+ }
+
+ public String getTbl_patterns() {
+ return this.tbl_patterns;
+ }
+
+ public void setTbl_patterns(String tbl_patterns) {
+ this.tbl_patterns = tbl_patterns;
+ }
+
+ public void unsetTbl_patterns() {
+ this.tbl_patterns = null;
+ }
+
+ /** Returns true if field tbl_patterns is set (has been assigned a value) and false otherwise */
+ public boolean isSetTbl_patterns() {
+ return this.tbl_patterns != null;
+ }
+
+ public void setTbl_patternsIsSet(boolean value) {
+ if (!value) {
+ this.tbl_patterns = null;
+ }
+ }
+
+ public int getTbl_typesSize() {
+ return (this.tbl_types == null) ? 0 : this.tbl_types.size();
+ }
+
+ public java.util.Iterator getTbl_typesIterator() {
+ return (this.tbl_types == null) ? null : this.tbl_types.iterator();
+ }
+
+ public void addToTbl_types(String elem) {
+ if (this.tbl_types == null) {
+ this.tbl_types = new ArrayList();
+ }
+ this.tbl_types.add(elem);
+ }
+
+ public List getTbl_types() {
+ return this.tbl_types;
+ }
+
+ public void setTbl_types(List tbl_types) {
+ this.tbl_types = tbl_types;
+ }
+
+ public void unsetTbl_types() {
+ this.tbl_types = null;
+ }
+
+ /** Returns true if field tbl_types is set (has been assigned a value) and false otherwise */
+ public boolean isSetTbl_types() {
+ return this.tbl_types != null;
+ }
+
+ public void setTbl_typesIsSet(boolean value) {
+ if (!value) {
+ this.tbl_types = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case DB_PATTERNS:
+ if (value == null) {
+ unsetDb_patterns();
+ } else {
+ setDb_patterns((String)value);
+ }
+ break;
+
+ case TBL_PATTERNS:
+ if (value == null) {
+ unsetTbl_patterns();
+ } else {
+ setTbl_patterns((String)value);
+ }
+ break;
+
+ case TBL_TYPES:
+ if (value == null) {
+ unsetTbl_types();
+ } else {
+ setTbl_types((List)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case DB_PATTERNS:
+ return getDb_patterns();
+
+ case TBL_PATTERNS:
+ return getTbl_patterns();
+
+ case TBL_TYPES:
+ return getTbl_types();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case DB_PATTERNS:
+ return isSetDb_patterns();
+ case TBL_PATTERNS:
+ return isSetTbl_patterns();
+ case TBL_TYPES:
+ return isSetTbl_types();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof get_table_meta_args)
+ return this.equals((get_table_meta_args)that);
+ return false;
+ }
+
+ public boolean equals(get_table_meta_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_db_patterns = true && this.isSetDb_patterns();
+ boolean that_present_db_patterns = true && that.isSetDb_patterns();
+ if (this_present_db_patterns || that_present_db_patterns) {
+ if (!(this_present_db_patterns && that_present_db_patterns))
+ return false;
+ if (!this.db_patterns.equals(that.db_patterns))
+ return false;
+ }
+
+ boolean this_present_tbl_patterns = true && this.isSetTbl_patterns();
+ boolean that_present_tbl_patterns = true && that.isSetTbl_patterns();
+ if (this_present_tbl_patterns || that_present_tbl_patterns) {
+ if (!(this_present_tbl_patterns && that_present_tbl_patterns))
+ return false;
+ if (!this.tbl_patterns.equals(that.tbl_patterns))
+ return false;
+ }
+
+ boolean this_present_tbl_types = true && this.isSetTbl_types();
+ boolean that_present_tbl_types = true && that.isSetTbl_types();
+ if (this_present_tbl_types || that_present_tbl_types) {
+ if (!(this_present_tbl_types && that_present_tbl_types))
+ return false;
+ if (!this.tbl_types.equals(that.tbl_types))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List list = new ArrayList();
+
+ boolean present_db_patterns = true && (isSetDb_patterns());
+ list.add(present_db_patterns);
+ if (present_db_patterns)
+ list.add(db_patterns);
+
+ boolean present_tbl_patterns = true && (isSetTbl_patterns());
+ list.add(present_tbl_patterns);
+ if (present_tbl_patterns)
+ list.add(tbl_patterns);
+
+ boolean present_tbl_types = true && (isSetTbl_types());
+ list.add(present_tbl_types);
+ if (present_tbl_types)
+ list.add(tbl_types);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(get_table_meta_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(other.isSetDb_patterns());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetDb_patterns()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, other.db_patterns);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(other.isSetTbl_patterns());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetTbl_patterns()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, other.tbl_patterns);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(other.isSetTbl_types());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetTbl_types()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, other.tbl_types);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("get_table_meta_args(");
+ boolean first = true;
+
+ sb.append("db_patterns:");
+ if (this.db_patterns == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.db_patterns);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("tbl_patterns:");
+ if (this.tbl_patterns == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.tbl_patterns);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("tbl_types:");
+ if (this.tbl_types == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.tbl_types);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class get_table_meta_argsStandardSchemeFactory implements SchemeFactory {
+ public get_table_meta_argsStandardScheme getScheme() {
+ return new get_table_meta_argsStandardScheme();
+ }
+ }
+
+ private static class get_table_meta_argsStandardScheme extends StandardScheme {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // DB_PATTERNS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.db_patterns = iprot.readString();
+ struct.setDb_patternsIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // TBL_PATTERNS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.tbl_patterns = iprot.readString();
+ struct.setTbl_patternsIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // TBL_TYPES
+ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+ {
+ org.apache.thrift.protocol.TList _list1178 = iprot.readListBegin();
+ struct.tbl_types = new ArrayList(_list1178.size);
+ String _elem1179;
+ for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180)
+ {
+ _elem1179 = iprot.readString();
+ struct.tbl_types.add(_elem1179);
+ }
+ iprot.readListEnd();
+ }
+ struct.setTbl_typesIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.db_patterns != null) {
+ oprot.writeFieldBegin(DB_PATTERNS_FIELD_DESC);
+ oprot.writeString(struct.db_patterns);
+ oprot.writeFieldEnd();
+ }
+ if (struct.tbl_patterns != null) {
+ oprot.writeFieldBegin(TBL_PATTERNS_FIELD_DESC);
+ oprot.writeString(struct.tbl_patterns);
+ oprot.writeFieldEnd();
+ }
+ if (struct.tbl_types != null) {
+ oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC);
+ {
+ oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size()));
+ for (String _iter1181 : struct.tbl_types)
+ {
+ oprot.writeString(_iter1181);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class get_table_meta_argsTupleSchemeFactory implements SchemeFactory {
+ public get_table_meta_argsTupleScheme getScheme() {
+ return new get_table_meta_argsTupleScheme();
+ }
+ }
+
+ private static class get_table_meta_argsTupleScheme extends TupleScheme {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetDb_patterns()) {
+ optionals.set(0);
+ }
+ if (struct.isSetTbl_patterns()) {
+ optionals.set(1);
+ }
+ if (struct.isSetTbl_types()) {
+ optionals.set(2);
+ }
+ oprot.writeBitSet(optionals, 3);
+ if (struct.isSetDb_patterns()) {
+ oprot.writeString(struct.db_patterns);
+ }
+ if (struct.isSetTbl_patterns()) {
+ oprot.writeString(struct.tbl_patterns);
+ }
+ if (struct.isSetTbl_types()) {
+ {
+ oprot.writeI32(struct.tbl_types.size());
+ for (String _iter1182 : struct.tbl_types)
+ {
+ oprot.writeString(_iter1182);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(3);
+ if (incoming.get(0)) {
+ struct.db_patterns = iprot.readString();
+ struct.setDb_patternsIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.tbl_patterns = iprot.readString();
+ struct.setTbl_patternsIsSet(true);
+ }
+ if (incoming.get(2)) {
+ {
+ org.apache.thrift.protocol.TList _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.tbl_types = new ArrayList(_list1183.size);
+ String _elem1184;
+ for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185)
+ {
+ _elem1184 = iprot.readString();
+ struct.tbl_types.add(_elem1184);
+ }
+ }
+ struct.setTbl_typesIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ @org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public static class get_table_meta_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new get_table_meta_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new get_table_meta_resultTupleSchemeFactory());
+ }
+
+ private List 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 {
+ SUCCESS((short)0, "success"),
+ O1((short)1, "o1");
+
+ private static final Map byName = new HashMap();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ case 1: // O1
+ return O1;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", 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, TableMeta.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)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_meta_result.class, metaDataMap);
+ }
+
+ public get_table_meta_result() {
+ }
+
+ public get_table_meta_result(
+ List success,
+ MetaException o1)
+ {
+ this();
+ this.success = success;
+ this.o1 = o1;
+ }
+
+ /**
+ * Performs a deep copy on other .
+ */
+ public get_table_meta_result(get_table_meta_result other) {
+ if (other.isSetSuccess()) {
+ List __this__success = new ArrayList(other.success.size());
+ for (TableMeta other_element : other.success) {
+ __this__success.add(new TableMeta(other_element));
+ }
+ this.success = __this__success;
+ }
+ if (other.isSetO1()) {
+ this.o1 = new MetaException(other.o1);
+ }
+ }
+
+ public get_table_meta_result deepCopy() {
+ return new get_table_meta_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ this.o1 = null;
+ }
+
+ public int getSuccessSize() {
+ return (this.success == null) ? 0 : this.success.size();
+ }
+
+ public java.util.Iterator getSuccessIterator() {
+ return (this.success == null) ? null : this.success.iterator();
+ }
+
+ public void addToSuccess(TableMeta elem) {
+ if (this.success == null) {
+ this.success = new ArrayList();
+ }
+ this.success.add(elem);
+ }
+
+ public List getSuccess() {
+ return this.success;
+ }
+
+ public void setSuccess(List 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 MetaException getO1() {
+ return this.o1;
+ }
+
+ public void setO1(MetaException 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 void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((List)value);
+ }
+ break;
+
+ case O1:
+ if (value == null) {
+ unsetO1();
+ } else {
+ setO1((MetaException)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ case O1:
+ return getO1();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ case O1:
+ return isSetO1();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof get_table_meta_result)
+ return this.equals((get_table_meta_result)that);
+ return false;
+ }
+
+ public boolean equals(get_table_meta_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) {
+ if (!(this_present_o1 && that_present_o1))
+ return false;
+ if (!this.o1.equals(that.o1))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List list = new ArrayList();
+
+ boolean present_success = true && (isSetSuccess());
+ list.add(present_success);
+ if (present_success)
+ list.add(success);
+
+ boolean present_o1 = true && (isSetO1());
+ list.add(present_o1);
+ if (present_o1)
+ list.add(o1);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(get_table_meta_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetO1()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("get_table_meta_result(");
boolean first = true;
sb.append("success:");
@@ -73088,14 +73993,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1178 = iprot.readListBegin();
- struct.success = new ArrayList(_list1178.size);
- TableMeta _elem1179;
- for (int _i1180 = 0; _i1180 < _list1178.size; ++_i1180)
+ org.apache.thrift.protocol.TList _list1186 = iprot.readListBegin();
+ struct.success = new ArrayList(_list1186.size);
+ TableMeta _elem1187;
+ for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188)
{
- _elem1179 = new TableMeta();
- _elem1179.read(iprot);
- struct.success.add(_elem1179);
+ _elem1187 = new TableMeta();
+ _elem1187.read(iprot);
+ struct.success.add(_elem1187);
}
iprot.readListEnd();
}
@@ -73130,9 +74035,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (TableMeta _iter1181 : struct.success)
+ for (TableMeta _iter1189 : struct.success)
{
- _iter1181.write(oprot);
+ _iter1189.write(oprot);
}
oprot.writeListEnd();
}
@@ -73171,9 +74076,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (TableMeta _iter1182 : struct.success)
+ for (TableMeta _iter1190 : struct.success)
{
- _iter1182.write(oprot);
+ _iter1190.write(oprot);
}
}
}
@@ -73188,14 +74093,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list1183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList(_list1183.size);
- TableMeta _elem1184;
- for (int _i1185 = 0; _i1185 < _list1183.size; ++_i1185)
+ org.apache.thrift.protocol.TList _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList(_list1191.size);
+ TableMeta _elem1192;
+ for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193)
{
- _elem1184 = new TableMeta();
- _elem1184.read(iprot);
- struct.success.add(_elem1184);
+ _elem1192 = new TableMeta();
+ _elem1192.read(iprot);
+ struct.success.add(_elem1192);
}
}
struct.setSuccessIsSet(true);
@@ -73961,13 +74866,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1186 = iprot.readListBegin();
- struct.success = new ArrayList(_list1186.size);
- String _elem1187;
- for (int _i1188 = 0; _i1188 < _list1186.size; ++_i1188)
+ org.apache.thrift.protocol.TList _list1194 = iprot.readListBegin();
+ struct.success = new ArrayList(_list1194.size);
+ String _elem1195;
+ for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196)
{
- _elem1187 = iprot.readString();
- struct.success.add(_elem1187);
+ _elem1195 = iprot.readString();
+ struct.success.add(_elem1195);
}
iprot.readListEnd();
}
@@ -74002,9 +74907,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter1189 : struct.success)
+ for (String _iter1197 : struct.success)
{
- oprot.writeString(_iter1189);
+ oprot.writeString(_iter1197);
}
oprot.writeListEnd();
}
@@ -74043,9 +74948,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter1190 : struct.success)
+ for (String _iter1198 : struct.success)
{
- oprot.writeString(_iter1190);
+ oprot.writeString(_iter1198);
}
}
}
@@ -74060,13 +74965,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list1191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList(_list1191.size);
- String _elem1192;
- for (int _i1193 = 0; _i1193 < _list1191.size; ++_i1193)
+ org.apache.thrift.protocol.TList _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList(_list1199.size);
+ String _elem1200;
+ for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201)
{
- _elem1192 = iprot.readString();
- struct.success.add(_elem1192);
+ _elem1200 = iprot.readString();
+ struct.success.add(_elem1200);
}
}
struct.setSuccessIsSet(true);
@@ -75519,13 +76424,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b
case 2: // TBL_NAMES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1194 = iprot.readListBegin();
- struct.tbl_names = new ArrayList(_list1194.size);
- String _elem1195;
- for (int _i1196 = 0; _i1196 < _list1194.size; ++_i1196)
+ org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin();
+ struct.tbl_names = new ArrayList(_list1202.size);
+ String _elem1203;
+ for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204)
{
- _elem1195 = iprot.readString();
- struct.tbl_names.add(_elem1195);
+ _elem1203 = iprot.readString();
+ struct.tbl_names.add(_elem1203);
}
iprot.readListEnd();
}
@@ -75556,9 +76461,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_
oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size()));
- for (String _iter1197 : struct.tbl_names)
+ for (String _iter1205 : struct.tbl_names)
{
- oprot.writeString(_iter1197);
+ oprot.writeString(_iter1205);
}
oprot.writeListEnd();
}
@@ -75595,9 +76500,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b
if (struct.isSetTbl_names()) {
{
oprot.writeI32(struct.tbl_names.size());
- for (String _iter1198 : struct.tbl_names)
+ for (String _iter1206 : struct.tbl_names)
{
- oprot.writeString(_iter1198);
+ oprot.writeString(_iter1206);
}
}
}
@@ -75613,13 +76518,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list1199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.tbl_names = new ArrayList(_list1199.size);
- String _elem1200;
- for (int _i1201 = 0; _i1201 < _list1199.size; ++_i1201)
+ org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.tbl_names = new ArrayList(_list1207.size);
+ String _elem1208;
+ for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209)
{
- _elem1200 = iprot.readString();
- struct.tbl_names.add(_elem1200);
+ _elem1208 = iprot.readString();
+ struct.tbl_names.add(_elem1208);
}
}
struct.setTbl_namesIsSet(true);
@@ -75944,14 +76849,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1202 = iprot.readListBegin();
- struct.success = new ArrayList(_list1202.size);
- Table _elem1203;
- for (int _i1204 = 0; _i1204 < _list1202.size; ++_i1204)
+ org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin();
+ struct.success = new ArrayList(_list1210.size);
+ Table _elem1211;
+ for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212)
{
- _elem1203 = new Table();
- _elem1203.read(iprot);
- struct.success.add(_elem1203);
+ _elem1211 = new Table();
+ _elem1211.read(iprot);
+ struct.success.add(_elem1211);
}
iprot.readListEnd();
}
@@ -75977,9 +76882,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Table _iter1205 : struct.success)
+ for (Table _iter1213 : struct.success)
{
- _iter1205.write(oprot);
+ _iter1213.write(oprot);
}
oprot.writeListEnd();
}
@@ -76010,9 +76915,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Table _iter1206 : struct.success)
+ for (Table _iter1214 : struct.success)
{
- _iter1206.write(oprot);
+ _iter1214.write(oprot);
}
}
}
@@ -76024,14 +76929,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list1207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList(_list1207.size);
- Table _elem1208;
- for (int _i1209 = 0; _i1209 < _list1207.size; ++_i1209)
+ org.apache.thrift.protocol.TList _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList(_list1215.size);
+ Table _elem1216;
+ for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217)
{
- _elem1208 = new Table();
- _elem1208.read(iprot);
- struct.success.add(_elem1208);
+ _elem1216 = new Table();
+ _elem1216.read(iprot);
+ struct.success.add(_elem1216);
}
}
struct.setSuccessIsSet(true);
@@ -81539,13 +82444,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1210 = iprot.readListBegin();
- struct.success = new ArrayList(_list1210.size);
- String _elem1211;
- for (int _i1212 = 0; _i1212 < _list1210.size; ++_i1212)
+ org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin();
+ struct.success = new ArrayList(_list1218.size);
+ String _elem1219;
+ for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220)
{
- _elem1211 = iprot.readString();
- struct.success.add(_elem1211);
+ _elem1219 = iprot.readString();
+ struct.success.add(_elem1219);
}
iprot.readListEnd();
}
@@ -81598,9 +82503,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
- for (String _iter1213 : struct.success)
+ for (String _iter1221 : struct.success)
{
- oprot.writeString(_iter1213);
+ oprot.writeString(_iter1221);
}
oprot.writeListEnd();
}
@@ -81655,9 +82560,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (String _iter1214 : struct.success)
+ for (String _iter1222 : struct.success)
{
- oprot.writeString(_iter1214);
+ oprot.writeString(_iter1222);
}
}
}
@@ -81678,13 +82583,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list1215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.success = new ArrayList(_list1215.size);
- String _elem1216;
- for (int _i1217 = 0; _i1217 < _list1215.size; ++_i1217)
+ org.apache.thrift.protocol.TList _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.success = new ArrayList(_list1223.size);
+ String _elem1224;
+ for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225)
{
- _elem1216 = iprot.readString();
- struct.success.add(_elem1216);
+ _elem1224 = iprot.readString();
+ struct.success.add(_elem1224);
}
}
struct.setSuccessIsSet(true);
@@ -88481,14 +89386,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args
case 1: // NEW_PARTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1218 = iprot.readListBegin();
- struct.new_parts = new ArrayList(_list1218.size);
- Partition _elem1219;
- for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220)
+ org.apache.thrift.protocol.TList _list1226 = iprot.readListBegin();
+ struct.new_parts = new ArrayList(_list1226.size);
+ Partition _elem1227;
+ for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228)
{
- _elem1219 = new Partition();
- _elem1219.read(iprot);
- struct.new_parts.add(_elem1219);
+ _elem1227 = new Partition();
+ _elem1227.read(iprot);
+ struct.new_parts.add(_elem1227);
}
iprot.readListEnd();
}
@@ -88514,9 +89419,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg
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 _iter1221 : struct.new_parts)
+ for (Partition _iter1229 : struct.new_parts)
{
- _iter1221.write(oprot);
+ _iter1229.write(oprot);
}
oprot.writeListEnd();
}
@@ -88547,9 +89452,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args
if (struct.isSetNew_parts()) {
{
oprot.writeI32(struct.new_parts.size());
- for (Partition _iter1222 : struct.new_parts)
+ for (Partition _iter1230 : struct.new_parts)
{
- _iter1222.write(oprot);
+ _iter1230.write(oprot);
}
}
}
@@ -88561,14 +89466,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.new_parts = new ArrayList(_list1223.size);
- Partition _elem1224;
- for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225)
+ org.apache.thrift.protocol.TList _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.new_parts = new ArrayList(_list1231.size);
+ Partition _elem1232;
+ for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233)
{
- _elem1224 = new Partition();
- _elem1224.read(iprot);
- struct.new_parts.add(_elem1224);
+ _elem1232 = new Partition();
+ _elem1232.read(iprot);
+ struct.new_parts.add(_elem1232);
}
}
struct.setNew_partsIsSet(true);
@@ -89569,14 +90474,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe
case 1: // NEW_PARTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1226 = iprot.readListBegin();
- struct.new_parts = new ArrayList(_list1226.size);
- PartitionSpec _elem1227;
- for (int _i1228 = 0; _i1228 < _list1226.size; ++_i1228)
+ org.apache.thrift.protocol.TList _list1234 = iprot.readListBegin();
+ struct.new_parts = new ArrayList(_list1234.size);
+ PartitionSpec _elem1235;
+ for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236)
{
- _elem1227 = new PartitionSpec();
- _elem1227.read(iprot);
- struct.new_parts.add(_elem1227);
+ _elem1235 = new PartitionSpec();
+ _elem1235.read(iprot);
+ struct.new_parts.add(_elem1235);
}
iprot.readListEnd();
}
@@ -89602,9 +90507,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp
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 (PartitionSpec _iter1229 : struct.new_parts)
+ for (PartitionSpec _iter1237 : struct.new_parts)
{
- _iter1229.write(oprot);
+ _iter1237.write(oprot);
}
oprot.writeListEnd();
}
@@ -89635,9 +90540,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe
if (struct.isSetNew_parts()) {
{
oprot.writeI32(struct.new_parts.size());
- for (PartitionSpec _iter1230 : struct.new_parts)
+ for (PartitionSpec _iter1238 : struct.new_parts)
{
- _iter1230.write(oprot);
+ _iter1238.write(oprot);
}
}
}
@@ -89649,14 +90554,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list1231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.new_parts = new ArrayList(_list1231.size);
- PartitionSpec _elem1232;
- for (int _i1233 = 0; _i1233 < _list1231.size; ++_i1233)
+ org.apache.thrift.protocol.TList _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.new_parts = new ArrayList(_list1239.size);
+ PartitionSpec _elem1240;
+ for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241)
{
- _elem1232 = new PartitionSpec();
- _elem1232.read(iprot);
- struct.new_parts.add(_elem1232);
+ _elem1240 = new PartitionSpec();
+ _elem1240.read(iprot);
+ struct.new_parts.add(_elem1240);
}
}
struct.setNew_partsIsSet(true);
@@ -90832,13 +91737,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar
case 3: // PART_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1234 = iprot.readListBegin();
- struct.part_vals = new ArrayList(_list1234.size);
- String _elem1235;
- for (int _i1236 = 0; _i1236 < _list1234.size; ++_i1236)
+ org.apache.thrift.protocol.TList _list1242 = iprot.readListBegin();
+ struct.part_vals = new ArrayList(_list1242.size);
+ String _elem1243;
+ for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244)
{
- _elem1235 = iprot.readString();
- struct.part_vals.add(_elem1235);
+ _elem1243 = iprot.readString();
+ struct.part_vals.add(_elem1243);
}
iprot.readListEnd();
}
@@ -90874,9 +91779,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a
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 _iter1237 : struct.part_vals)
+ for (String _iter1245 : struct.part_vals)
{
- oprot.writeString(_iter1237);
+ oprot.writeString(_iter1245);
}
oprot.writeListEnd();
}
@@ -90919,9 +91824,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_ar
if (struct.isSetPart_vals()) {
{
oprot.writeI32(struct.part_vals.size());
- for (String _iter1238 : struct.part_vals)
+ for (String _iter1246 : struct.part_vals)
{
- oprot.writeString(_iter1238);
+ oprot.writeString(_iter1246);
}
}
}
@@ -90941,13 +91846,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list1239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.part_vals = new ArrayList(_list1239.size);
- String _elem1240;
- for (int _i1241 = 0; _i1241 < _list1239.size; ++_i1241)
+ org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.part_vals = new ArrayList(_list1247.size);
+ String _elem1248;
+ for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249)
{
- _elem1240 = iprot.readString();
- struct.part_vals.add(_elem1240);
+ _elem1248 = iprot.readString();
+ struct.part_vals.add(_elem1248);
}
}
struct.setPart_valsIsSet(true);
@@ -93256,13 +94161,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi
case 3: // PART_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1242 = iprot.readListBegin();
- struct.part_vals = new ArrayList(_list1242.size);
- String _elem1243;
- for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244)
+ org.apache.thrift.protocol.TList _list1250 = iprot.readListBegin();
+ struct.part_vals = new ArrayList(_list1250.size);
+ String _elem1251;
+ for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252)
{
- _elem1243 = iprot.readString();
- struct.part_vals.add(_elem1243);
+ _elem1251 = iprot.readString();
+ struct.part_vals.add(_elem1251);
}
iprot.readListEnd();
}
@@ -93307,9 +94212,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w
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 _iter1245 : struct.part_vals)
+ for (String _iter1253 : struct.part_vals)
{
- oprot.writeString(_iter1245);
+ oprot.writeString(_iter1253);
}
oprot.writeListEnd();
}
@@ -93360,9 +94265,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi
if (struct.isSetPart_vals()) {
{
oprot.writeI32(struct.part_vals.size());
- for (String _iter1246 : struct.part_vals)
+ for (String _iter1254 : struct.part_vals)
{
- oprot.writeString(_iter1246);
+ oprot.writeString(_iter1254);
}
}
}
@@ -93385,13 +94290,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.part_vals = new ArrayList(_list1247.size);
- String _elem1248;
- for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249)
+ org.apache.thrift.protocol.TList _list1255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.part_vals = new ArrayList(_list1255.size);
+ String _elem1256;
+ for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257)
{
- _elem1248 = iprot.readString();
- struct.part_vals.add(_elem1248);
+ _elem1256 = iprot.readString();
+ struct.part_vals.add(_elem1256);
}
}
struct.setPart_valsIsSet(true);
@@ -97261,13 +98166,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args
case 3: // PART_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1250 = iprot.readListBegin();
- struct.part_vals = new ArrayList(_list1250.size);
- String _elem1251;
- for (int _i1252 = 0; _i1252 < _list1250.size; ++_i1252)
+ org.apache.thrift.protocol.TList _list1258 = iprot.readListBegin();
+ struct.part_vals = new ArrayList(_list1258.size);
+ String _elem1259;
+ for (int _i1260 = 0; _i1260 < _list1258.size; ++_i1260)
{
- _elem1251 = iprot.readString();
- struct.part_vals.add(_elem1251);
+ _elem1259 = iprot.readString();
+ struct.part_vals.add(_elem1259);
}
iprot.readListEnd();
}
@@ -97311,9 +98216,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg
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 _iter1253 : struct.part_vals)
+ for (String _iter1261 : struct.part_vals)
{
- oprot.writeString(_iter1253);
+ oprot.writeString(_iter1261);
}
oprot.writeListEnd();
}
@@ -97362,9 +98267,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args
if (struct.isSetPart_vals()) {
{
oprot.writeI32(struct.part_vals.size());
- for (String _iter1254 : struct.part_vals)
+ for (String _iter1262 : struct.part_vals)
{
- oprot.writeString(_iter1254);
+ oprot.writeString(_iter1262);
}
}
}
@@ -97387,13 +98292,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list1255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.part_vals = new ArrayList(_list1255.size);
- String _elem1256;
- for (int _i1257 = 0; _i1257 < _list1255.size; ++_i1257)
+ org.apache.thrift.protocol.TList _list1263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.part_vals = new ArrayList(_list1263.size);
+ String _elem1264;
+ for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265)
{
- _elem1256 = iprot.readString();
- struct.part_vals.add(_elem1256);
+ _elem1264 = iprot.readString();
+ struct.part_vals.add(_elem1264);
}
}
struct.setPart_valsIsSet(true);
@@ -98632,13 +99537,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with
case 3: // PART_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1258 = iprot.readListBegin();
- struct.part_vals = new ArrayList(_list1258.size);
- String _elem1259;
- for (int _i1260 = 0; _i1260 < _list1258.size; ++_i1260)
+ org.apache.thrift.protocol.TList _list1266 = iprot.readListBegin();
+ struct.part_vals = new ArrayList(_list1266.size);
+ String _elem1267;
+ for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268)
{
- _elem1259 = iprot.readString();
- struct.part_vals.add(_elem1259);
+ _elem1267 = iprot.readString();
+ struct.part_vals.add(_elem1267);
}
iprot.readListEnd();
}
@@ -98691,9 +99596,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit
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 _iter1261 : struct.part_vals)
+ for (String _iter1269 : struct.part_vals)
{
- oprot.writeString(_iter1261);
+ oprot.writeString(_iter1269);
}
oprot.writeListEnd();
}
@@ -98750,9 +99655,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with
if (struct.isSetPart_vals()) {
{
oprot.writeI32(struct.part_vals.size());
- for (String _iter1262 : struct.part_vals)
+ for (String _iter1270 : struct.part_vals)
{
- oprot.writeString(_iter1262);
+ oprot.writeString(_iter1270);
}
}
}
@@ -98778,13 +99683,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list1263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.part_vals = new ArrayList(_list1263.size);
- String _elem1264;
- for (int _i1265 = 0; _i1265 < _list1263.size; ++_i1265)
+ org.apache.thrift.protocol.TList _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.part_vals = new ArrayList(_list1271.size);
+ String _elem1272;
+ for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273)
{
- _elem1264 = iprot.readString();
- struct.part_vals.add(_elem1264);
+ _elem1272 = iprot.readString();
+ struct.part_vals.add(_elem1272);
}
}
struct.setPart_valsIsSet(true);
@@ -103386,13 +104291,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args
case 3: // PART_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1266 = iprot.readListBegin();
- struct.part_vals = new ArrayList(_list1266.size);
- String _elem1267;
- for (int _i1268 = 0; _i1268 < _list1266.size; ++_i1268)
+ org.apache.thrift.protocol.TList _list1274 = iprot.readListBegin();
+ struct.part_vals = new ArrayList(_list1274.size);
+ String _elem1275;
+ for (int _i1276 = 0; _i1276 < _list1274.size; ++_i1276)
{
- _elem1267 = iprot.readString();
- struct.part_vals.add(_elem1267);
+ _elem1275 = iprot.readString();
+ struct.part_vals.add(_elem1275);
}
iprot.readListEnd();
}
@@ -103428,9 +104333,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args
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 _iter1269 : struct.part_vals)
+ for (String _iter1277 : struct.part_vals)
{
- oprot.writeString(_iter1269);
+ oprot.writeString(_iter1277);
}
oprot.writeListEnd();
}
@@ -103473,9 +104378,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args
if (struct.isSetPart_vals()) {
{
oprot.writeI32(struct.part_vals.size());
- for (String _iter1270 : struct.part_vals)
+ for (String _iter1278 : struct.part_vals)
{
- oprot.writeString(_iter1270);
+ oprot.writeString(_iter1278);
}
}
}
@@ -103495,13 +104400,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list1271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.part_vals = new ArrayList(_list1271.size);
- String _elem1272;
- for (int _i1273 = 0; _i1273 < _list1271.size; ++_i1273)
+ org.apache.thrift.protocol.TList _list1279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.part_vals = new ArrayList(_list1279.size);
+ String _elem1280;
+ for (int _i1281 = 0; _i1281 < _list1279.size; ++_i1281)
{
- _elem1272 = iprot.readString();
- struct.part_vals.add(_elem1272);
+ _elem1280 = iprot.readString();
+ struct.part_vals.add(_elem1280);
}
}
struct.setPart_valsIsSet(true);
@@ -104719,15 +105624,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_
case 1: // PARTITION_SPECS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map1274 = iprot.readMapBegin();
- struct.partitionSpecs = new HashMap(2*_map1274.size);
- String _key1275;
- String _val1276;
- for (int _i1277 = 0; _i1277 < _map1274.size; ++_i1277)
+ org.apache.thrift.protocol.TMap _map1282 = iprot.readMapBegin();
+ struct.partitionSpecs = new HashMap(2*_map1282.size);
+ String _key1283;
+ String _val1284;
+ for (int _i1285 = 0; _i1285 < _map1282.size; ++_i1285)
{
- _key1275 = iprot.readString();
- _val1276 = iprot.readString();
- struct.partitionSpecs.put(_key1275, _val1276);
+ _key1283 = iprot.readString();
+ _val1284 = iprot.readString();
+ struct.partitionSpecs.put(_key1283, _val1284);
}
iprot.readMapEnd();
}
@@ -104785,10 +105690,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition
oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size()));
- for (Map.Entry _iter1278 : struct.partitionSpecs.entrySet())
+ for (Map.Entry _iter1286 : struct.partitionSpecs.entrySet())
{
- oprot.writeString(_iter1278.getKey());
- oprot.writeString(_iter1278.getValue());
+ oprot.writeString(_iter1286.getKey());
+ oprot.writeString(_iter1286.getValue());
}
oprot.writeMapEnd();
}
@@ -104851,10 +105756,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_
if (struct.isSetPartitionSpecs()) {
{
oprot.writeI32(struct.partitionSpecs.size());
- for (Map.Entry _iter1279 : struct.partitionSpecs.entrySet())
+ for (Map.Entry _iter1287 : struct.partitionSpecs.entrySet())
{
- oprot.writeString(_iter1279.getKey());
- oprot.writeString(_iter1279.getValue());
+ oprot.writeString(_iter1287.getKey());
+ oprot.writeString(_iter1287.getValue());
}
}
}
@@ -104878,15 +105783,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a
BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map1280 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.partitionSpecs = new HashMap(2*_map1280.size);
- String _key1281;
- String _val1282;
- for (int _i1283 = 0; _i1283 < _map1280.size; ++_i1283)
+ org.apache.thrift.protocol.TMap _map1288 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.partitionSpecs = new HashMap(2*_map1288.size);
+ String _key1289;
+ String _val1290;
+ for (int _i1291 = 0; _i1291 < _map1288.size; ++_i1291)
{
- _key1281 = iprot.readString();
- _val1282 = iprot.readString();
- struct.partitionSpecs.put(_key1281, _val1282);
+ _key1289 = iprot.readString();
+ _val1290 = iprot.readString();
+ struct.partitionSpecs.put(_key1289, _val1290);
}
}
struct.setPartitionSpecsIsSet(true);
@@ -106332,15 +107237,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions
case 1: // PARTITION_SPECS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map1284 = iprot.readMapBegin();
- struct.partitionSpecs = new HashMap(2*_map1284.size);
- String _key1285;
- String _val1286;
- for (int _i1287 = 0; _i1287 < _map1284.size; ++_i1287)
+ org.apache.thrift.protocol.TMap _map1292 = iprot.readMapBegin();
+ struct.partitionSpecs = new HashMap(2*_map1292.size);
+ String _key1293;
+ String _val1294;
+ for (int _i1295 = 0; _i1295 < _map1292.size; ++_i1295)
{
- _key1285 = iprot.readString();
- _val1286 = iprot.readString();
- struct.partitionSpecs.put(_key1285, _val1286);
+ _key1293 = iprot.readString();
+ _val1294 = iprot.readString();
+ struct.partitionSpecs.put(_key1293, _val1294);
}
iprot.readMapEnd();
}
@@ -106398,10 +107303,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition
oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size()));
- for (Map.Entry _iter1288 : struct.partitionSpecs.entrySet())
+ for (Map.Entry _iter1296 : struct.partitionSpecs.entrySet())
{
- oprot.writeString(_iter1288.getKey());
- oprot.writeString(_iter1288.getValue());
+ oprot.writeString(_iter1296.getKey());
+ oprot.writeString(_iter1296.getValue());
}
oprot.writeMapEnd();
}
@@ -106464,10 +107369,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions
if (struct.isSetPartitionSpecs()) {
{
oprot.writeI32(struct.partitionSpecs.size());
- for (Map.Entry _iter1289 : struct.partitionSpecs.entrySet())
+ for (Map.Entry _iter1297 : struct.partitionSpecs.entrySet())
{
- oprot.writeString(_iter1289.getKey());
- oprot.writeString(_iter1289.getValue());
+ oprot.writeString(_iter1297.getKey());
+ oprot.writeString(_iter1297.getValue());
}
}
}
@@ -106491,15 +107396,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_
BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map1290 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.partitionSpecs = new HashMap(2*_map1290.size);
- String _key1291;
- String _val1292;
- for (int _i1293 = 0; _i1293 < _map1290.size; ++_i1293)
+ org.apache.thrift.protocol.TMap _map1298 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.partitionSpecs = new HashMap(2*_map1298.size);
+ String _key1299;
+ String _val1300;
+ for (int _i1301 = 0; _i1301 < _map1298.size; ++_i1301)
{
- _key1291 = iprot.readString();
- _val1292 = iprot.readString();
- struct.partitionSpecs.put(_key1291, _val1292);
+ _key1299 = iprot.readString();
+ _val1300 = iprot.readString();
+ struct.partitionSpecs.put(_key1299, _val1300);
}
}
struct.setPartitionSpecsIsSet(true);
@@ -107164,14 +108069,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1294 = iprot.readListBegin();
- struct.success = new ArrayList(_list1294.size);
- Partition _elem1295;
- for (int _i1296 = 0; _i1296 < _list1294.size; ++_i1296)
+ org.apache.thrift.protocol.TList _list1302 = iprot.readListBegin();
+ struct.success = new ArrayList(_list1302.size);
+ Partition _elem1303;
+ for (int _i1304 = 0; _i1304 < _list1302.size; ++_i1304)
{
- _elem1295 = new Partition();
- _elem1295.read(iprot);
- struct.success.add(_elem1295);
+ _elem1303 = new Partition();
+ _elem1303.read(iprot);
+ struct.success.add(_elem1303);
}
iprot.readListEnd();
}
@@ -107233,9 +108138,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Partition _iter1297 : struct.success)
+ for (Partition _iter1305 : struct.success)
{
- _iter1297.write(oprot);
+ _iter1305.write(oprot);
}
oprot.writeListEnd();
}
@@ -107298,9 +108203,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Partition _iter1298 : struct.success)
+ for (Partition _iter1306 : struct.success)
{
- _iter1298.write(oprot);
+ _iter1306.write(oprot);
}
}
}
@@ -107324,14 +108229,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_
BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list1299 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList(_list1299.size);
- Partition _elem1300;
- for (int _i1301 = 0; _i1301 < _list1299.size; ++_i1301)
+ org.apache.thrift.protocol.TList _list1307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList(_list1307.size);
+ Partition _elem1308;
+ for (int _i1309 = 0; _i1309 < _list1307.size; ++_i1309)
{
- _elem1300 = new Partition();
- _elem1300.read(iprot);
- struct.success.add(_elem1300);
+ _elem1308 = new Partition();
+ _elem1308.read(iprot);
+ struct.success.add(_elem1308);
}
}
struct.setSuccessIsSet(true);
@@ -108030,13 +108935,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_
case 3: // PART_VALS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1302 = iprot.readListBegin();
- struct.part_vals = new ArrayList(_list1302.size);
- String _elem1303;
- for (int _i1304 = 0; _i1304 < _list1302.size; ++_i1304)
+ org.apache.thrift.protocol.TList _list1310 = iprot.readListBegin();
+ struct.part_vals = new ArrayList(_list1310.size);
+ String _elem1311;
+ for (int _i1312 = 0; _i1312 < _list1310.size; ++_i1312)
{
- _elem1303 = iprot.readString();
- struct.part_vals.add(_elem1303);
+ _elem1311 = iprot.readString();
+ struct.part_vals.add(_elem1311);
}
iprot.readListEnd();
}
@@ -108056,13 +108961,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_
case 5: // GROUP_NAMES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1305 = iprot.readListBegin();
- struct.group_names = new ArrayList(_list1305.size);
- String _elem1306;
- for (int _i1307 = 0; _i1307 < _list1305.size; ++_i1307)
+ org.apache.thrift.protocol.TList _list1313 = iprot.readListBegin();
+ struct.group_names = new ArrayList(_list1313.size);
+ String _elem1314;
+ for (int _i1315 = 0; _i1315 < _list1313.size; ++_i1315)
{
- _elem1306 = iprot.readString();
- struct.group_names.add(_elem1306);
+ _elem1314 = iprot.readString();
+ struct.group_names.add(_elem1314);
}
iprot.readListEnd();
}
@@ -108098,9 +109003,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with
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 _iter1308 : struct.part_vals)
+ for (String _iter1316 : struct.part_vals)
{
- oprot.writeString(_iter1308);
+ oprot.writeString(_iter1316);
}
oprot.writeListEnd();
}
@@ -108115,9 +109020,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with
oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size()));
- for (String _iter1309 : struct.group_names)
+ for (String _iter1317 : struct.group_names)
{
- oprot.writeString(_iter1309);
+ oprot.writeString(_iter1317);
}
oprot.writeListEnd();
}
@@ -108166,9 +109071,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_
if (struct.isSetPart_vals()) {
{
oprot.writeI32(struct.part_vals.size());
- for (String _iter1310 : struct.part_vals)
+ for (String _iter1318 : struct.part_vals)
{
- oprot.writeString(_iter1310);
+ oprot.writeString(_iter1318);
}
}
}
@@ -108178,9 +109083,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_
if (struct.isSetGroup_names()) {
{
oprot.writeI32(struct.group_names.size());
- for (String _iter1311 : struct.group_names)
+ for (String _iter1319 : struct.group_names)
{
- oprot.writeString(_iter1311);
+ oprot.writeString(_iter1319);
}
}
}
@@ -108200,13 +109105,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list1312 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.part_vals = new ArrayList(_list1312.size);
- String _elem1313;
- for (int _i1314 = 0; _i1314 < _list1312.size; ++_i1314)
+ org.apache.thrift.protocol.TList _list1320 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.part_vals = new ArrayList(_list1320.size);
+ String _elem1321;
+ for (int _i1322 = 0; _i1322 < _list1320.size; ++_i1322)
{
- _elem1313 = iprot.readString();
- struct.part_vals.add(_elem1313);
+ _elem1321 = iprot.readString();
+ struct.part_vals.add(_elem1321);
}
}
struct.setPart_valsIsSet(true);
@@ -108217,13 +109122,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a
}
if (incoming.get(4)) {
{
- org.apache.thrift.protocol.TList _list1315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.group_names = new ArrayList(_list1315.size);
- String _elem1316;
- for (int _i1317 = 0; _i1317 < _list1315.size; ++_i1317)
+ org.apache.thrift.protocol.TList _list1323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.group_names = new ArrayList(_list1323.size);
+ String _elem1324;
+ for (int _i1325 = 0; _i1325 < _list1323.size; ++_i1325)
{
- _elem1316 = iprot.readString();
- struct.group_names.add(_elem1316);
+ _elem1324 = iprot.readString();
+ struct.group_names.add(_elem1324);
}
}
struct.setGroup_namesIsSet(true);
@@ -110992,14 +111897,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list1318 = iprot.readListBegin();
- struct.success = new ArrayList