diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java index 9d90249c9d16..bd39ac3fc4a1 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java @@ -33,6 +33,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; @@ -278,6 +279,15 @@ CompletableFuture getMasterStub() { }, stub -> true, "master stub"); } + String getClusterId() { + try { + return registry.getClusterId().get(); + } catch (InterruptedException | ExecutionException e) { + LOG.error("Error fetching cluster ID: ", e); + } + return null; + } + void clearMasterStubCache(MasterService.Interface stub) { masterStub.compareAndSet(stub, null); } diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Connection.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Connection.java index b88c40c6eb59..b638e72a46db 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Connection.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Connection.java @@ -204,6 +204,11 @@ default BufferedMutator getBufferedMutator(TableName tableName) throws IOExcepti */ AsyncConnection toAsyncConnection(); + /** + * @return the cluster ID unique to this HBase cluster. + */ + String getClusterId(); + /** * Retrieve an Hbck implementation to fix an HBase cluster. * The returned Hbck is not guaranteed to be thread-safe. A new instance should be created by diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionOverAsyncConnection.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionOverAsyncConnection.java index b61cef5c910d..e50d308ec46d 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionOverAsyncConnection.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionOverAsyncConnection.java @@ -204,6 +204,11 @@ public AsyncConnection toAsyncConnection() { return conn; } + @Override + public String getClusterId() { + return conn.getClusterId(); + } + @Override public Hbck getHbck() throws IOException { return FutureUtils.get(conn.getHbck()); diff --git a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableInputFormatBase.java b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableInputFormatBase.java index af97793c2522..716d60356183 100644 --- a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableInputFormatBase.java +++ b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableInputFormatBase.java @@ -246,5 +246,11 @@ public void clearRegionLocationCache() { public AsyncConnection toAsyncConnection() { return null; } + + @Override + public String getClusterId() { + return null; + } + } } diff --git a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableInputFormatBase.java b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableInputFormatBase.java index 5fd5ccff730d..25b409eb14e3 100644 --- a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableInputFormatBase.java +++ b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableInputFormatBase.java @@ -296,5 +296,10 @@ public void clearRegionLocationCache() { public AsyncConnection toAsyncConnection() { throw new UnsupportedOperationException(); } + + @Override + public String getClusterId() { + return null; + } } } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/client/SharedConnection.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/client/SharedConnection.java index f189a2ada61a..ae52df266cfb 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/client/SharedConnection.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/client/SharedConnection.java @@ -105,4 +105,9 @@ public Hbck getHbck(ServerName masterServer) throws IOException { public AsyncConnection toAsyncConnection() { return new SharedAsyncConnection(conn.toAsyncConnection()); } + + @Override + public String getClusterId() { + return conn.getClusterId(); + } } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java index 7cccea418efd..74a5d96499f2 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java @@ -26,18 +26,14 @@ import org.apache.hadoop.hbase.client.ConnectionFactory; import org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos; import org.apache.hadoop.hbase.security.User; -import org.apache.hadoop.hbase.zookeeper.ZKClusterId; -import org.apache.hadoop.hbase.zookeeper.ZKWatcher; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.security.token.Token; import org.apache.yetus.audience.InterfaceAudience; -import org.apache.zookeeper.KeeperException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - /** * Utility methods for obtaining authentication tokens. */ @@ -219,7 +215,7 @@ public static void obtainTokenForJob(final Connection conn, final JobConf job, U public static void addTokenForJob(final Connection conn, final JobConf job, User user) throws IOException, InterruptedException { - Token token = getAuthToken(conn.getConfiguration(), user); + Token token = getAuthToken(conn, user); if (token == null) { token = ClientTokenUtil.obtainToken(conn, user); } @@ -238,7 +234,7 @@ public static void addTokenForJob(final Connection conn, final JobConf job, User */ public static void addTokenForJob(final Connection conn, User user, Job job) throws IOException, InterruptedException { - Token token = getAuthToken(conn.getConfiguration(), user); + Token token = getAuthToken(conn, user); if (token == null) { token = ClientTokenUtil.obtainToken(conn, user); } @@ -257,7 +253,7 @@ public static void addTokenForJob(final Connection conn, User user, Job job) */ public static boolean addTokenIfMissing(Connection conn, User user) throws IOException, InterruptedException { - Token token = getAuthToken(conn.getConfiguration(), user); + Token token = getAuthToken(conn, user); if (token == null) { token = ClientTokenUtil.obtainToken(conn, user); user.getUGI().addToken(token.getService(), token); @@ -270,19 +266,12 @@ public static boolean addTokenIfMissing(Connection conn, User user) * Get the authentication token of the user for the cluster specified in the configuration * @return null if the user does not have the token, otherwise the auth token for the cluster. */ - private static Token getAuthToken(Configuration conf, User user) - throws IOException, InterruptedException { - ZKWatcher zkw = new ZKWatcher(conf, "TokenUtil-getAuthToken", null); - try { - String clusterId = ZKClusterId.readClusterIdZNode(zkw); - if (clusterId == null) { - throw new IOException("Failed to get cluster ID"); - } - return new AuthenticationTokenSelector().selectToken(new Text(clusterId), user.getTokens()); - } catch (KeeperException e) { - throw new IOException(e); - } finally { - zkw.close(); + private static Token getAuthToken(Connection conn, User user) + throws IOException { + final String clusterId = conn.getClusterId(); + if (clusterId == null) { + throw new IOException("Failed to get cluster ID"); } + return new AuthenticationTokenSelector().selectToken(new Text(clusterId), user.getTokens()); } } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ConnectionCache.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ConnectionCache.java index 7b9f021313a6..4559d783729c 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ConnectionCache.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ConnectionCache.java @@ -202,6 +202,19 @@ public boolean updateConnectionAccessTime() { return false; } + /** + * @return Cluster ID for the HBase cluster or null if there is an err making the connection. + */ + public String getClusterId() { + try { + ConnectionInfo connInfo = getCurrentConnection(); + return connInfo.connection.getClusterId(); + } catch (IOException e) { + LOG.error("Error getting connection: ", e); + } + return null; + } + class ConnectionInfo { final Connection connection; final String userName; diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.java index e5ebb6464ef6..fe5e15775ac6 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.java @@ -1272,6 +1272,11 @@ public TThriftServerType getThriftServerType() { return TThriftServerType.ONE; } + @Override + public String getClusterId() throws TException { + return connectionCache.getClusterId(); + } + private static IOError getIOError(Throwable throwable) { IOError error = new IOErrorWithCause(throwable); error.setMessage(Throwables.getStackTraceAsString(throwable)); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java index 340be18a5bd3..9e7432867619 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java @@ -11,7 +11,7 @@ * An AlreadyExists exceptions signals that a table with the specified * name already exists */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class AlreadyExists extends org.apache.thrift.TException 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("AlreadyExists"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java index c19597707c9b..da2432c1f33d 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java @@ -10,7 +10,7 @@ /** * A BatchMutation object is used to apply a number of Mutations to a single row. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class BatchMutation 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("BatchMutation"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java index 084222e4a9e6..46282ab316e4 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java @@ -12,7 +12,7 @@ * such as the number of versions, compression settings, etc. It is * used as input when creating a table or adding a column. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class ColumnDescriptor 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("ColumnDescriptor"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java index 9dc0d3e5e314..fbd720831c7d 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class Hbase { public interface Iface { @@ -622,6 +622,11 @@ public interface Iface { */ public TThriftServerType getThriftServerType() throws org.apache.thrift.TException; + /** + * Returns the cluster ID for this cluster. + */ + public java.lang.String getClusterId() throws org.apache.thrift.TException; + } public interface AsyncIface { @@ -716,6 +721,8 @@ public interface AsyncIface { public void getThriftServerType(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getClusterId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + } public static class Client extends org.apache.thrift.TServiceClient implements Iface { @@ -1976,6 +1983,28 @@ public TThriftServerType recv_getThriftServerType() throws org.apache.thrift.TEx throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getThriftServerType failed: unknown result"); } + public java.lang.String getClusterId() throws org.apache.thrift.TException + { + send_getClusterId(); + return recv_getClusterId(); + } + + public void send_getClusterId() throws org.apache.thrift.TException + { + getClusterId_args args = new getClusterId_args(); + sendBase("getClusterId", args); + } + + public java.lang.String recv_getClusterId() throws org.apache.thrift.TException + { + getClusterId_result result = new getClusterId_result(); + receiveBase(result, "getClusterId"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClusterId failed: unknown result"); + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -3701,6 +3730,35 @@ public TThriftServerType getResult() throws org.apache.thrift.TException { } } + public void getClusterId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getClusterId_call method_call = new getClusterId_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getClusterId_call extends org.apache.thrift.async.TAsyncMethodCall { + public getClusterId_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("getClusterId", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getClusterId_args args = new getClusterId_args(); + args.write(prot); + prot.writeMessageEnd(); + } + + public java.lang.String getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new java.lang.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_getClusterId(); + } + } + } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { @@ -3759,6 +3817,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public getClusterId() { + super("getClusterId"); + } + + public getClusterId_args getEmptyArgsInstance() { + return new getClusterId_args(); + } + + protected boolean isOneway() { + return false; + } + + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + + public getClusterId_result getResult(I iface, getClusterId_args args) throws org.apache.thrift.TException { + getClusterId_result result = new getClusterId_result(); + result.success = iface.getClusterId(); + return result; + } + } + } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { @@ -5152,6 +5236,7 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public getClusterId() { + super("getClusterId"); + } + + public getClusterId_args getEmptyArgsInstance() { + return new getClusterId_args(); + } + + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.String o) { + getClusterId_result result = new getClusterId_result(); + result.success = o; + try { + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); + } + } + public void onError(java.lang.Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TSerializable msg; + getClusterId_result result = new getClusterId_result(); + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); + } + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getClusterId_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + iface.getClusterId(resultHandler); + } + } + } public static class enableTable_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -60584,4 +60730,625 @@ private static S scheme(org.apache. } } + public static class getClusterId_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("getClusterId_args"); + + + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getClusterId_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getClusterId_argsTupleSchemeFactory(); + + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +; + + private static final java.util.Map byName = new java.util.HashMap(); + + static { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { + return byName.get(name); + } + + private final short _thriftId; + private final java.lang.String _fieldName; + + _Fields(short thriftId, java.lang.String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public java.lang.String getFieldName() { + return _fieldName; + } + } + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClusterId_args.class, metaDataMap); + } + + public getClusterId_args() { + } + + /** + * Performs a deep copy on other. + */ + public getClusterId_args(getClusterId_args other) { + } + + public getClusterId_args deepCopy() { + return new getClusterId_args(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { + switch (field) { + } + } + + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { + switch (field) { + } + throw new java.lang.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 java.lang.IllegalArgumentException(); + } + + switch (field) { + } + throw new java.lang.IllegalStateException(); + } + + @Override + public boolean equals(java.lang.Object that) { + if (that == null) + return false; + if (that instanceof getClusterId_args) + return this.equals((getClusterId_args)that); + return false; + } + + public boolean equals(getClusterId_args that) { + if (that == null) + return false; + if (this == that) + return true; + + return true; + } + + @Override + public int hashCode() { + int hashCode = 1; + + return hashCode; + } + + @Override + public int compareTo(getClusterId_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + return 0; + } + + @org.apache.thrift.annotation.Nullable + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + scheme(iprot).read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + scheme(oprot).write(oprot, this); + } + + @Override + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getClusterId_args("); + boolean first = true; + + 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, java.lang.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 getClusterId_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getClusterId_argsStandardScheme getScheme() { + return new getClusterId_argsStandardScheme(); + } + } + + private static class getClusterId_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getClusterId_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) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getClusterId_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getClusterId_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getClusterId_argsTupleScheme getScheme() { + return new getClusterId_argsTupleScheme(); + } + } + + private static class getClusterId_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getClusterId_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getClusterId_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + } + } + + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } + } + + public static class getClusterId_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("getClusterId_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); + + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getClusterId_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getClusterId_resultTupleSchemeFactory(); + + public @org.apache.thrift.annotation.Nullable java.lang.String success; // 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"); + + private static final java.util.Map byName = new java.util.HashMap(); + + static { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { + return byName.get(name); + } + + private final short _thriftId; + private final java.lang.String _fieldName; + + _Fields(short thriftId, java.lang.String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public java.lang.String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClusterId_result.class, metaDataMap); + } + + public getClusterId_result() { + } + + public getClusterId_result( + java.lang.String success) + { + this(); + this.success = success; + } + + /** + * Performs a deep copy on other. + */ + public getClusterId_result(getClusterId_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } + } + + public getClusterId_result deepCopy() { + return new getClusterId_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + @org.apache.thrift.annotation.Nullable + public java.lang.String getSuccess() { + return this.success; + } + + public getClusterId_result setSuccess(@org.apache.thrift.annotation.Nullable java.lang.String success) { + this.success = success; + return this; + } + + 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 void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((java.lang.String)value); + } + break; + + } + } + + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + } + throw new java.lang.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 java.lang.IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new java.lang.IllegalStateException(); + } + + @Override + public boolean equals(java.lang.Object that) { + if (that == null) + return false; + if (that instanceof getClusterId_result) + return this.equals((getClusterId_result)that); + return false; + } + + public boolean equals(getClusterId_result that) { + if (that == null) + return false; + if (this == that) + return true; + + 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; + } + + return true; + } + + @Override + public int hashCode() { + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); + + return hashCode; + } + + @Override + public int compareTo(getClusterId_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = java.lang.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; + } + } + return 0; + } + + @org.apache.thrift.annotation.Nullable + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + scheme(iprot).read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + scheme(oprot).write(oprot, this); + } + + @Override + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getClusterId_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + 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, java.lang.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 getClusterId_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getClusterId_resultStandardScheme getScheme() { + return new getClusterId_resultStandardScheme(); + } + } + + private static class getClusterId_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getClusterId_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.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(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(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getClusterId_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeString(struct.success); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getClusterId_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getClusterId_resultTupleScheme getScheme() { + return new getClusterId_resultTupleScheme(); + } + } + + private static class getClusterId_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getClusterId_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeString(struct.success); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getClusterId_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } + } + } + + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } + } + } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java index 2f7a547e4d6b..0141f1091f2c 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IOError.java @@ -12,7 +12,7 @@ * to the Hbase master or an Hbase region server. Also used to return * more general Hbase error conditions. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class IOError extends org.apache.thrift.TException 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("IOError"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java index 7f55f7d78ed3..fef4ef8f24b7 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java @@ -11,7 +11,7 @@ * An IllegalArgument exception indicates an illegal or invalid * argument was passed into a procedure. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class IllegalArgument extends org.apache.thrift.TException 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("IllegalArgument"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java index 35b8feb11fc2..b485bff5274f 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java @@ -10,7 +10,7 @@ /** * A Mutation object is used to either update or delete a column-value. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class Mutation 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("Mutation"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java index 7be1c4405e6c..3d5e05f21119 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TAppend.java @@ -10,7 +10,7 @@ /** * An Append object is used to specify the parameters for performing the append operation. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TAppend 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("TAppend"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java index 20e16e34014c..01183553a96e 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TCell.java @@ -13,7 +13,7 @@ * the timestamp of a cell to a first-class value, making it easy to take * note of temporal data. Cell is used all the way from HStore up to HTable. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TCell 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("TCell"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java index e49ffa5435b7..0c5993d6c061 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TColumn.java @@ -10,7 +10,7 @@ /** * Holds column name and the cell. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TColumn 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("TColumn"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java index 0f2e82d5b906..df84b2c527ed 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TIncrement.java @@ -11,7 +11,7 @@ * For increments that are not incrementColumnValue * equivalents. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TIncrement 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("TIncrement"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java index 3dac1553897f..f6e665164164 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRegionInfo.java @@ -10,7 +10,7 @@ /** * A TRegionInfo contains information about an HTable region. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TRegionInfo 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("TRegionInfo"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java index ffabc9671c6f..4a28099643b4 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TRowResult.java @@ -10,7 +10,7 @@ /** * Holds row name and then a map of columns to cells. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TRowResult 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("TRowResult"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java index 9509228a2c9f..9186cbb1a992 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TScan.java @@ -10,7 +10,7 @@ /** * A Scan object is used to specify scanner parameters when opening a scanner. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TScan 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("TScan"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TThriftServerType.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TThriftServerType.java index b7a792fc1e85..f38eb6fd4594 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TThriftServerType.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TThriftServerType.java @@ -10,7 +10,7 @@ /** * Specify type of thrift server: thrift and thrift2 */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TThriftServerType implements org.apache.thrift.TEnum { ONE(1), TWO(2); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftHBaseServiceHandler.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftHBaseServiceHandler.java index 15da3482afb9..a2639561755b 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftHBaseServiceHandler.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftHBaseServiceHandler.java @@ -817,6 +817,11 @@ public TThriftServerType getThriftServerType() { return TThriftServerType.TWO; } + @Override + public String getClusterId() throws TException { + return connectionCache.getClusterId(); + } + @Override public List listNamespaceDescriptors() throws TIOError, TException { try { diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/client/ThriftConnection.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/client/ThriftConnection.java index 4db8fd6e7e3d..ff1a79d8025d 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/client/ThriftConnection.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/client/ThriftConnection.java @@ -54,6 +54,7 @@ import org.apache.http.impl.client.DefaultHttpRequestRetryHandler; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.protocol.HttpContext; +import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.protocol.TCompactProtocol; import org.apache.thrift.protocol.TProtocol; @@ -63,11 +64,14 @@ import org.apache.thrift.transport.TTransport; import org.apache.thrift.transport.TTransportException; import org.apache.yetus.audience.InterfaceAudience; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.apache.hbase.thirdparty.com.google.common.base.Preconditions; @InterfaceAudience.Private public class ThriftConnection implements Connection { + private static final Logger LOG = LoggerFactory.getLogger(ThriftConnection.class); private Configuration conf; private User user; // For HTTP protocol @@ -80,7 +84,8 @@ public class ThriftConnection implements Connection { private boolean isFramed = false; private boolean isCompact = false; - private ThriftClientBuilder clientBuilder; + // TODO: We can rip out the ThriftClient piece of it rather than creating a new client every time. + ThriftClientBuilder clientBuilder; private int operationTimeout; private int connectTimeout; @@ -145,10 +150,6 @@ public int getConnectTimeout() { return connectTimeout; } - public ThriftClientBuilder getClientBuilder() { - return clientBuilder; - } - /** * the default thrift client builder. * One can extend the ThriftClientBuilder to builder custom client, implement @@ -334,7 +335,6 @@ public Table build() { } catch (IOException ioE) { throw new RuntimeException(ioE); } - } }; } @@ -373,4 +373,15 @@ public void clearRegionLocationCache() { public AsyncConnection toAsyncConnection() { throw new NotImplementedException("toAsyncConnection not supported in ThriftTable"); } + + @Override + public String getClusterId() { + try { + Pair client = clientBuilder.getClient(); + return client.getFirst().getClusterId(); + } catch (TException | IOException e) { + LOG.error("Error fetching cluster ID: ", e); + } + return null; + } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java index b5191638ebf7..28e48a109376 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAppend.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift2.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TAppend 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("TAppend"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java index e6cd9b2c6f8d..60de5d956acf 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TAuthorization.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift2.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TAuthorization 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("TAuthorization"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TBloomFilterType.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TBloomFilterType.java index 5c1276febcba..5ef1d12ef996 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TBloomFilterType.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TBloomFilterType.java @@ -11,7 +11,7 @@ * Thrift wrapper around * org.apache.hadoop.hbase.regionserver.BloomType */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TBloomFilterType implements org.apache.thrift.TEnum { /** * Bloomfilters disabled diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java index ff50aa4186b2..3791b5410694 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCellVisibility.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift2.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TCellVisibility 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("TCellVisibility"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java index e72d9f8ecb7f..98278aa16d18 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumn.java @@ -12,7 +12,7 @@ * in a HBase table by column family and optionally * a column qualifier and timestamp */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TColumn 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("TColumn"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnFamilyDescriptor.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnFamilyDescriptor.java index 949e8a7eef73..737518f2cab9 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnFamilyDescriptor.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnFamilyDescriptor.java @@ -11,7 +11,7 @@ * Thrift wrapper around * org.apache.hadoop.hbase.client.ColumnFamilyDescriptor */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TColumnFamilyDescriptor 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("TColumnFamilyDescriptor"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java index 4d9750325cb9..fe20ef463940 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnIncrement.java @@ -10,7 +10,7 @@ /** * Represents a single cell and the amount to increment it by */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TColumnIncrement 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("TColumnIncrement"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java index 5579780f6e08..cb4e6be82463 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TColumnValue.java @@ -10,7 +10,7 @@ /** * Represents a single cell and its value. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TColumnValue 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("TColumnValue"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOperator.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOperator.java index 019174c37dff..d15a6c5b2803 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOperator.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOperator.java @@ -11,7 +11,7 @@ * Thrift wrapper around * org.apache.hadoop.hbase.CompareOperator. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TCompareOperator implements org.apache.thrift.TEnum { LESS(0), LESS_OR_EQUAL(1), diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompressionAlgorithm.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompressionAlgorithm.java index 842d7bd175f0..b1a23c18c912 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompressionAlgorithm.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompressionAlgorithm.java @@ -11,7 +11,7 @@ * Thrift wrapper around * org.apache.hadoop.hbase.io.compress.Algorithm */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TCompressionAlgorithm implements org.apache.thrift.TEnum { LZO(0), GZ(1), diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TConsistency.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TConsistency.java index cc5c0cc100f6..0f8519b646fe 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TConsistency.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TConsistency.java @@ -12,7 +12,7 @@ * - STRONG means reads only from primary region * - TIMELINE means reads might return values from secondary region replicas */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TConsistency implements org.apache.thrift.TEnum { STRONG(1), TIMELINE(2); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDataBlockEncoding.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDataBlockEncoding.java index 05e21467dae7..80a434a7b6ed 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDataBlockEncoding.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDataBlockEncoding.java @@ -11,7 +11,7 @@ * Thrift wrapper around * org.apache.hadoop.hbase.io.encoding.DataBlockEncoding */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TDataBlockEncoding implements org.apache.thrift.TEnum { /** * Disable data block encoding. diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java index c11b40924b7a..8b634cc3548f 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDelete.java @@ -33,7 +33,7 @@ * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TDelete 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("TDelete"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDeleteType.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDeleteType.java index e14eda410b66..60b57c8542ef 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDeleteType.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDeleteType.java @@ -12,7 +12,7 @@ * - DELETE_COLUMN means exactly one version will be removed, * - DELETE_COLUMNS means previous versions will also be removed. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TDeleteType implements org.apache.thrift.TEnum { DELETE_COLUMN(0), DELETE_COLUMNS(1), diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDurability.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDurability.java index 65f43f940fef..b5f54eda8281 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDurability.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TDurability.java @@ -14,7 +14,7 @@ * - SYNC_WAL means write the Mutation to the WAL synchronously, * - FSYNC_WAL means Write the Mutation to the WAL synchronously and force the entries to disk. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TDurability implements org.apache.thrift.TEnum { USE_DEFAULT(0), SKIP_WAL(1), diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java index 8b2d17f82d87..f55f7c229f6c 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TGet.java @@ -20,7 +20,7 @@ * If you specify a time range and a timestamp the range is ignored. * Timestamps on TColumns are ignored. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TGet 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("TGet"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java index 7a984d50c689..668cbcf5d629 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift2.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class THBaseService { public interface Iface { @@ -507,6 +507,11 @@ public interface Iface { */ public TThriftServerType getThriftServerType() throws org.apache.thrift.TException; + /** + * Returns the cluster ID for this cluster. + */ + public java.lang.String getClusterId() throws org.apache.thrift.TException; + } public interface AsyncIface { @@ -605,6 +610,8 @@ public interface AsyncIface { public void getThriftServerType(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getClusterId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + } public static class Client extends org.apache.thrift.TServiceClient implements Iface { @@ -1839,6 +1846,28 @@ public TThriftServerType recv_getThriftServerType() throws org.apache.thrift.TEx throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getThriftServerType failed: unknown result"); } + public java.lang.String getClusterId() throws org.apache.thrift.TException + { + send_getClusterId(); + return recv_getClusterId(); + } + + public void send_getClusterId() throws org.apache.thrift.TException + { + getClusterId_args args = new getClusterId_args(); + sendBase("getClusterId", args); + } + + public java.lang.String recv_getClusterId() throws org.apache.thrift.TException + { + getClusterId_result result = new getClusterId_result(); + receiveBase(result, "getClusterId"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClusterId failed: unknown result"); + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -3475,6 +3504,35 @@ public TThriftServerType getResult() throws org.apache.thrift.TException { } } + public void getClusterId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getClusterId_call method_call = new getClusterId_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getClusterId_call extends org.apache.thrift.async.TAsyncMethodCall { + public getClusterId_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("getClusterId", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getClusterId_args args = new getClusterId_args(); + args.write(prot); + prot.writeMessageEnd(); + } + + public java.lang.String getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new java.lang.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_getClusterId(); + } + } + } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { @@ -3535,6 +3593,7 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction { + public getClusterId() { + super("getClusterId"); + } + + public getClusterId_args getEmptyArgsInstance() { + return new getClusterId_args(); + } + + protected boolean isOneway() { + return false; + } + + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + + public getClusterId_result getResult(I iface, getClusterId_args args) throws org.apache.thrift.TException { + getClusterId_result result = new getClusterId_result(); + result.success = iface.getClusterId(); + return result; + } + } + } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { @@ -4971,6 +5055,7 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction { + public getClusterId() { + super("getClusterId"); + } + + public getClusterId_args getEmptyArgsInstance() { + return new getClusterId_args(); + } + + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.String o) { + getClusterId_result result = new getClusterId_result(); + result.success = o; + try { + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); + } + } + public void onError(java.lang.Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TSerializable msg; + getClusterId_result result = new getClusterId_result(); + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); + } + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getClusterId_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + iface.getClusterId(resultHandler); + } + } + } public static class exists_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -36537,13 +36683,759 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_result.class, metaDataMap); + } + + public createTable_result() { + } + + public createTable_result( + TIOError io) + { + this(); + this.io = io; + } + + /** + * Performs a deep copy on other. + */ + public createTable_result(createTable_result other) { + if (other.isSetIo()) { + this.io = new TIOError(other.io); + } + } + + public createTable_result deepCopy() { + return new createTable_result(this); + } + + @Override + public void clear() { + this.io = null; + } + + @org.apache.thrift.annotation.Nullable + public TIOError getIo() { + return this.io; + } + + public createTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + this.io = io; + return this; + } + + public void unsetIo() { + this.io = null; + } + + /** Returns true if field io is set (has been assigned a value) and false otherwise */ + public boolean isSetIo() { + return this.io != null; + } + + public void setIoIsSet(boolean value) { + if (!value) { + this.io = null; + } + } + + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { + switch (field) { + case IO: + if (value == null) { + unsetIo(); + } else { + setIo((TIOError)value); + } + break; + + } + } + + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { + switch (field) { + case IO: + return getIo(); + + } + throw new java.lang.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 java.lang.IllegalArgumentException(); + } + + switch (field) { + case IO: + return isSetIo(); + } + throw new java.lang.IllegalStateException(); + } + + @Override + public boolean equals(java.lang.Object that) { + if (that == null) + return false; + if (that instanceof createTable_result) + return this.equals((createTable_result)that); + return false; + } + + public boolean equals(createTable_result that) { + if (that == null) + return false; + if (this == that) + return true; + + boolean this_present_io = true && this.isSetIo(); + boolean that_present_io = true && that.isSetIo(); + if (this_present_io || that_present_io) { + if (!(this_present_io && that_present_io)) + return false; + if (!this.io.equals(that.io)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); + if (isSetIo()) + hashCode = hashCode * 8191 + io.hashCode(); + + return hashCode; + } + + @Override + public int compareTo(createTable_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIo()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + @org.apache.thrift.annotation.Nullable + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + scheme(iprot).read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + scheme(oprot).write(oprot, this); + } + + @Override + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createTable_result("); + boolean first = true; + + sb.append("io:"); + if (this.io == null) { + sb.append("null"); + } else { + sb.append(this.io); + } + 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, java.lang.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 createTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public createTable_resultStandardScheme getScheme() { + return new createTable_resultStandardScheme(); + } + } + + private static class createTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_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 1: // IO + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(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(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, createTable_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.io != null) { + oprot.writeFieldBegin(IO_FIELD_DESC); + struct.io.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class createTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public createTable_resultTupleScheme getScheme() { + return new createTable_resultTupleScheme(); + } + } + + private static class createTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); + if (struct.isSetIo()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetIo()) { + struct.io.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.io = new TIOError(); + struct.io.read(iprot); + struct.setIoIsSet(true); + } + } + } + + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } + } + + public static class deleteTable_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("deleteTable_args"); + + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteTable_argsTupleSchemeFactory(); + + /** + * the tablename to delete + */ + public @org.apache.thrift.annotation.Nullable TTableName tableName; // 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 { + /** + * the tablename to delete + */ + TABLE_NAME((short)1, "tableName"); + + private static final java.util.Map byName = new java.util.HashMap(); + + static { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // TABLE_NAME + return TABLE_NAME; + 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { + return byName.get(name); + } + + private final short _thriftId; + private final java.lang.String _fieldName; + + _Fields(short thriftId, java.lang.String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public java.lang.String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_args.class, metaDataMap); + } + + public deleteTable_args() { + } + + public deleteTable_args( + TTableName tableName) + { + this(); + this.tableName = tableName; + } + + /** + * Performs a deep copy on other. + */ + public deleteTable_args(deleteTable_args other) { + if (other.isSetTableName()) { + this.tableName = new TTableName(other.tableName); + } + } + + public deleteTable_args deepCopy() { + return new deleteTable_args(this); + } + + @Override + public void clear() { + this.tableName = null; + } + + /** + * the tablename to delete + */ + @org.apache.thrift.annotation.Nullable + public TTableName getTableName() { + return this.tableName; + } + + /** + * the tablename to delete + */ + public deleteTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + this.tableName = tableName; + return this; + } + + public void unsetTableName() { + this.tableName = null; + } + + /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ + public boolean isSetTableName() { + return this.tableName != null; + } + + public void setTableNameIsSet(boolean value) { + if (!value) { + this.tableName = null; + } + } + + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { + switch (field) { + case TABLE_NAME: + if (value == null) { + unsetTableName(); + } else { + setTableName((TTableName)value); + } + break; + + } + } + + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { + switch (field) { + case TABLE_NAME: + return getTableName(); + + } + throw new java.lang.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 java.lang.IllegalArgumentException(); + } + + switch (field) { + case TABLE_NAME: + return isSetTableName(); + } + throw new java.lang.IllegalStateException(); + } + + @Override + public boolean equals(java.lang.Object that) { + if (that == null) + return false; + if (that instanceof deleteTable_args) + return this.equals((deleteTable_args)that); + return false; + } + + public boolean equals(deleteTable_args that) { + if (that == null) + return false; + if (this == that) + return true; + + boolean this_present_tableName = true && this.isSetTableName(); + boolean that_present_tableName = true && that.isSetTableName(); + if (this_present_tableName || that_present_tableName) { + if (!(this_present_tableName && that_present_tableName)) + return false; + if (!this.tableName.equals(that.tableName)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); + if (isSetTableName()) + hashCode = hashCode * 8191 + tableName.hashCode(); + + return hashCode; + } + + @Override + public int compareTo(deleteTable_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTableName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + @org.apache.thrift.annotation.Nullable + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + scheme(iprot).read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + scheme(oprot).write(oprot, this); + } + + @Override + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_args("); + boolean first = true; + + sb.append("tableName:"); + if (this.tableName == null) { + sb.append("null"); + } else { + sb.append(this.tableName); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (tableName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableName' was not present! Struct: " + toString()); + } + // check for sub-struct validity + if (tableName != null) { + tableName.validate(); + } + } + + 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, java.lang.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 deleteTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteTable_argsStandardScheme getScheme() { + return new deleteTable_argsStandardScheme(); + } + } + + private static class deleteTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_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: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.tableName = new TTableName(); + struct.tableName.read(iprot); + struct.setTableNameIsSet(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(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.tableName != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + struct.tableName.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class deleteTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteTable_argsTupleScheme getScheme() { + return new deleteTable_argsTupleScheme(); + } + } + + private static class deleteTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + struct.tableName.write(oprot); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + struct.tableName = new TTableName(); + struct.tableName.read(iprot); + struct.setTableNameIsSet(true); + } + } + + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } + } + + public static class deleteTable_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("deleteTable_result"); + + private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteTable_resultTupleSchemeFactory(); + + public @org.apache.thrift.annotation.Nullable TIOError io; // 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 { + IO((short)1, "io"); + + private static final java.util.Map byName = new java.util.HashMap(); + + static { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // IO + return IO; + 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { + return byName.get(name); + } + + private final short _thriftId; + private final java.lang.String _fieldName; + + _Fields(short thriftId, java.lang.String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public java.lang.String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_result.class, metaDataMap); } - public createTable_result() { + public deleteTable_result() { } - public createTable_result( + public deleteTable_result( TIOError io) { this(); @@ -36553,14 +37445,14 @@ public createTable_result( /** * Performs a deep copy on other. */ - public createTable_result(createTable_result other) { + public deleteTable_result(deleteTable_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public createTable_result deepCopy() { - return new createTable_result(this); + public deleteTable_result deepCopy() { + return new deleteTable_result(this); } @Override @@ -36573,7 +37465,7 @@ public TIOError getIo() { return this.io; } - public createTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public deleteTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -36633,12 +37525,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof createTable_result) - return this.equals((createTable_result)that); + if (that instanceof deleteTable_result) + return this.equals((deleteTable_result)that); return false; } - public boolean equals(createTable_result that) { + public boolean equals(deleteTable_result that) { if (that == null) return false; if (this == that) @@ -36668,7 +37560,7 @@ public int hashCode() { } @Override - public int compareTo(createTable_result other) { + public int compareTo(deleteTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -36703,7 +37595,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("createTable_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_result("); boolean first = true; sb.append("io:"); @@ -36738,15 +37630,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class createTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public createTable_resultStandardScheme getScheme() { - return new createTable_resultStandardScheme(); + private static class deleteTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteTable_resultStandardScheme getScheme() { + return new deleteTable_resultStandardScheme(); } } - private static class createTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class deleteTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -36776,7 +37668,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -36791,16 +37683,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, createTable_result } - private static class createTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public createTable_resultTupleScheme getScheme() { - return new createTable_resultTupleScheme(); + private static class deleteTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteTable_resultTupleScheme getScheme() { + return new deleteTable_resultTupleScheme(); } } - private static class createTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class deleteTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -36813,7 +37705,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, createTable_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -36829,25 +37721,34 @@ private static S scheme(org.apache. } } - public static class deleteTable_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("deleteTable_args"); + public static class truncateTable_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("truncateTable_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField PRESERVE_SPLITS_FIELD_DESC = new org.apache.thrift.protocol.TField("preserveSplits", org.apache.thrift.protocol.TType.BOOL, (short)2); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteTable_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteTable_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new truncateTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new truncateTable_argsTupleSchemeFactory(); /** - * the tablename to delete + * the tablename to truncate */ public @org.apache.thrift.annotation.Nullable TTableName tableName; // required + /** + * whether to preserve previous splits + */ + public boolean preserveSplits; // 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 { /** - * the tablename to delete + * the tablename to truncate */ - TABLE_NAME((short)1, "tableName"); + TABLE_NAME((short)1, "tableName"), + /** + * whether to preserve previous splits + */ + PRESERVE_SPLITS((short)2, "preserveSplits"); private static final java.util.Map byName = new java.util.HashMap(); @@ -36865,6 +37766,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME return TABLE_NAME; + case 2: // PRESERVE_SPLITS + return PRESERVE_SPLITS; default: return null; } @@ -36906,45 +37809,56 @@ public java.lang.String getFieldName() { } // isset id assignments + private static final int __PRESERVESPLITS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); + tmpMap.put(_Fields.PRESERVE_SPLITS, new org.apache.thrift.meta_data.FieldMetaData("preserveSplits", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncateTable_args.class, metaDataMap); } - public deleteTable_args() { + public truncateTable_args() { } - public deleteTable_args( - TTableName tableName) + public truncateTable_args( + TTableName tableName, + boolean preserveSplits) { this(); this.tableName = tableName; + this.preserveSplits = preserveSplits; + setPreserveSplitsIsSet(true); } /** * Performs a deep copy on other. */ - public deleteTable_args(deleteTable_args other) { + public truncateTable_args(truncateTable_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } + this.preserveSplits = other.preserveSplits; } - public deleteTable_args deepCopy() { - return new deleteTable_args(this); + public truncateTable_args deepCopy() { + return new truncateTable_args(this); } @Override public void clear() { this.tableName = null; + setPreserveSplitsIsSet(false); + this.preserveSplits = false; } /** - * the tablename to delete + * the tablename to truncate */ @org.apache.thrift.annotation.Nullable public TTableName getTableName() { @@ -36952,9 +37866,9 @@ public TTableName getTableName() { } /** - * the tablename to delete + * the tablename to truncate */ - public deleteTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public truncateTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -36974,6 +37888,35 @@ public void setTableNameIsSet(boolean value) { } } + /** + * whether to preserve previous splits + */ + public boolean isPreserveSplits() { + return this.preserveSplits; + } + + /** + * whether to preserve previous splits + */ + public truncateTable_args setPreserveSplits(boolean preserveSplits) { + this.preserveSplits = preserveSplits; + setPreserveSplitsIsSet(true); + return this; + } + + public void unsetPreserveSplits() { + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID); + } + + /** Returns true if field preserveSplits is set (has been assigned a value) and false otherwise */ + public boolean isSetPreserveSplits() { + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID); + } + + public void setPreserveSplitsIsSet(boolean value) { + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID, value); + } + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: @@ -36984,6 +37927,14 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable } break; + case PRESERVE_SPLITS: + if (value == null) { + unsetPreserveSplits(); + } else { + setPreserveSplits((java.lang.Boolean)value); + } + break; + } } @@ -36993,6 +37944,9 @@ public java.lang.Object getFieldValue(_Fields field) { case TABLE_NAME: return getTableName(); + case PRESERVE_SPLITS: + return isPreserveSplits(); + } throw new java.lang.IllegalStateException(); } @@ -37006,6 +37960,8 @@ public boolean isSet(_Fields field) { switch (field) { case TABLE_NAME: return isSetTableName(); + case PRESERVE_SPLITS: + return isSetPreserveSplits(); } throw new java.lang.IllegalStateException(); } @@ -37014,12 +37970,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof deleteTable_args) - return this.equals((deleteTable_args)that); + if (that instanceof truncateTable_args) + return this.equals((truncateTable_args)that); return false; } - public boolean equals(deleteTable_args that) { + public boolean equals(truncateTable_args that) { if (that == null) return false; if (this == that) @@ -37034,6 +37990,15 @@ public boolean equals(deleteTable_args that) { return false; } + boolean this_present_preserveSplits = true; + boolean that_present_preserveSplits = true; + if (this_present_preserveSplits || that_present_preserveSplits) { + if (!(this_present_preserveSplits && that_present_preserveSplits)) + return false; + if (this.preserveSplits != that.preserveSplits) + return false; + } + return true; } @@ -37045,11 +38010,13 @@ public int hashCode() { if (isSetTableName()) hashCode = hashCode * 8191 + tableName.hashCode(); + hashCode = hashCode * 8191 + ((preserveSplits) ? 131071 : 524287); + return hashCode; } @Override - public int compareTo(deleteTable_args other) { + public int compareTo(truncateTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -37066,6 +38033,16 @@ public int compareTo(deleteTable_args other) { return lastComparison; } } + lastComparison = java.lang.Boolean.valueOf(isSetPreserveSplits()).compareTo(other.isSetPreserveSplits()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPreserveSplits()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preserveSplits, other.preserveSplits); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -37084,7 +38061,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("truncateTable_args("); boolean first = true; sb.append("tableName:"); @@ -37094,6 +38071,10 @@ public java.lang.String toString() { sb.append(this.tableName); } first = false; + if (!first) sb.append(", "); + sb.append("preserveSplits:"); + sb.append(this.preserveSplits); + first = false; sb.append(")"); return sb.toString(); } @@ -37103,6 +38084,7 @@ public void validate() throws org.apache.thrift.TException { if (tableName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableName' was not present! Struct: " + toString()); } + // alas, we cannot check 'preserveSplits' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity if (tableName != null) { tableName.validate(); @@ -37119,21 +38101,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; 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 deleteTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteTable_argsStandardScheme getScheme() { - return new deleteTable_argsStandardScheme(); + private static class truncateTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public truncateTable_argsStandardScheme getScheme() { + return new truncateTable_argsStandardScheme(); } } - private static class deleteTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class truncateTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, truncateTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37152,6 +38136,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_args st org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // PRESERVE_SPLITS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.preserveSplits = iprot.readBool(); + struct.setPreserveSplitsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -37160,10 +38152,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_args st iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetPreserveSplits()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'preserveSplits' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, truncateTable_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -37172,32 +38167,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_args s struct.tableName.write(oprot); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(PRESERVE_SPLITS_FIELD_DESC); + oprot.writeBool(struct.preserveSplits); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class deleteTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteTable_argsTupleScheme getScheme() { - return new deleteTable_argsTupleScheme(); + private static class truncateTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public truncateTable_argsTupleScheme getScheme() { + return new truncateTable_argsTupleScheme(); } } - private static class deleteTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class truncateTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, truncateTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); + oprot.writeBool(struct.preserveSplits); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, truncateTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); + struct.preserveSplits = iprot.readBool(); + struct.setPreserveSplitsIsSet(true); } } @@ -37206,13 +38207,13 @@ private static S scheme(org.apache. } } - public static class deleteTable_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("deleteTable_result"); + public static class truncateTable_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("truncateTable_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteTable_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteTable_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new truncateTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new truncateTable_resultTupleSchemeFactory(); public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -37283,13 +38284,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncateTable_result.class, metaDataMap); } - public deleteTable_result() { + public truncateTable_result() { } - public deleteTable_result( + public truncateTable_result( TIOError io) { this(); @@ -37299,14 +38300,14 @@ public deleteTable_result( /** * Performs a deep copy on other. */ - public deleteTable_result(deleteTable_result other) { + public truncateTable_result(truncateTable_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public deleteTable_result deepCopy() { - return new deleteTable_result(this); + public truncateTable_result deepCopy() { + return new truncateTable_result(this); } @Override @@ -37319,7 +38320,7 @@ public TIOError getIo() { return this.io; } - public deleteTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public truncateTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -37379,12 +38380,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof deleteTable_result) - return this.equals((deleteTable_result)that); + if (that instanceof truncateTable_result) + return this.equals((truncateTable_result)that); return false; } - public boolean equals(deleteTable_result that) { + public boolean equals(truncateTable_result that) { if (that == null) return false; if (this == that) @@ -37414,7 +38415,7 @@ public int hashCode() { } @Override - public int compareTo(deleteTable_result other) { + public int compareTo(truncateTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -37449,7 +38450,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("truncateTable_result("); boolean first = true; sb.append("io:"); @@ -37484,15 +38485,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class deleteTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteTable_resultStandardScheme getScheme() { - return new deleteTable_resultStandardScheme(); + private static class truncateTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public truncateTable_resultStandardScheme getScheme() { + return new truncateTable_resultStandardScheme(); } } - private static class deleteTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class truncateTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, truncateTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37522,7 +38523,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, truncateTable_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -37537,16 +38538,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_result } - private static class deleteTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteTable_resultTupleScheme getScheme() { - return new deleteTable_resultTupleScheme(); + private static class truncateTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public truncateTable_resultTupleScheme getScheme() { + return new truncateTable_resultTupleScheme(); } } - private static class deleteTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class truncateTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, truncateTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -37559,7 +38560,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, truncateTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -37575,34 +38576,25 @@ private static S scheme(org.apache. } } - public static class truncateTable_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("truncateTable_args"); + public static class enableTable_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("enableTable_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField PRESERVE_SPLITS_FIELD_DESC = new org.apache.thrift.protocol.TField("preserveSplits", org.apache.thrift.protocol.TType.BOOL, (short)2); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new truncateTable_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new truncateTable_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new enableTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new enableTable_argsTupleSchemeFactory(); /** - * the tablename to truncate + * the tablename to enable */ public @org.apache.thrift.annotation.Nullable TTableName tableName; // required - /** - * whether to preserve previous splits - */ - public boolean preserveSplits; // 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 { /** - * the tablename to truncate - */ - TABLE_NAME((short)1, "tableName"), - /** - * whether to preserve previous splits + * the tablename to enable */ - PRESERVE_SPLITS((short)2, "preserveSplits"); + TABLE_NAME((short)1, "tableName"); private static final java.util.Map byName = new java.util.HashMap(); @@ -37620,8 +38612,6 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME return TABLE_NAME; - case 2: // PRESERVE_SPLITS - return PRESERVE_SPLITS; default: return null; } @@ -37663,56 +38653,45 @@ public java.lang.String getFieldName() { } // isset id assignments - private static final int __PRESERVESPLITS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - tmpMap.put(_Fields.PRESERVE_SPLITS, new org.apache.thrift.meta_data.FieldMetaData("preserveSplits", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncateTable_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap); } - public truncateTable_args() { + public enableTable_args() { } - public truncateTable_args( - TTableName tableName, - boolean preserveSplits) + public enableTable_args( + TTableName tableName) { this(); this.tableName = tableName; - this.preserveSplits = preserveSplits; - setPreserveSplitsIsSet(true); } /** * Performs a deep copy on other. */ - public truncateTable_args(truncateTable_args other) { - __isset_bitfield = other.__isset_bitfield; + public enableTable_args(enableTable_args other) { if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } - this.preserveSplits = other.preserveSplits; } - public truncateTable_args deepCopy() { - return new truncateTable_args(this); + public enableTable_args deepCopy() { + return new enableTable_args(this); } @Override public void clear() { this.tableName = null; - setPreserveSplitsIsSet(false); - this.preserveSplits = false; } /** - * the tablename to truncate + * the tablename to enable */ @org.apache.thrift.annotation.Nullable public TTableName getTableName() { @@ -37720,9 +38699,9 @@ public TTableName getTableName() { } /** - * the tablename to truncate + * the tablename to enable */ - public truncateTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public enableTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -37742,35 +38721,6 @@ public void setTableNameIsSet(boolean value) { } } - /** - * whether to preserve previous splits - */ - public boolean isPreserveSplits() { - return this.preserveSplits; - } - - /** - * whether to preserve previous splits - */ - public truncateTable_args setPreserveSplits(boolean preserveSplits) { - this.preserveSplits = preserveSplits; - setPreserveSplitsIsSet(true); - return this; - } - - public void unsetPreserveSplits() { - __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID); - } - - /** Returns true if field preserveSplits is set (has been assigned a value) and false otherwise */ - public boolean isSetPreserveSplits() { - return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID); - } - - public void setPreserveSplitsIsSet(boolean value) { - __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PRESERVESPLITS_ISSET_ID, value); - } - public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: @@ -37781,14 +38731,6 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable } break; - case PRESERVE_SPLITS: - if (value == null) { - unsetPreserveSplits(); - } else { - setPreserveSplits((java.lang.Boolean)value); - } - break; - } } @@ -37798,9 +38740,6 @@ public java.lang.Object getFieldValue(_Fields field) { case TABLE_NAME: return getTableName(); - case PRESERVE_SPLITS: - return isPreserveSplits(); - } throw new java.lang.IllegalStateException(); } @@ -37814,8 +38753,6 @@ public boolean isSet(_Fields field) { switch (field) { case TABLE_NAME: return isSetTableName(); - case PRESERVE_SPLITS: - return isSetPreserveSplits(); } throw new java.lang.IllegalStateException(); } @@ -37824,12 +38761,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof truncateTable_args) - return this.equals((truncateTable_args)that); + if (that instanceof enableTable_args) + return this.equals((enableTable_args)that); return false; } - public boolean equals(truncateTable_args that) { + public boolean equals(enableTable_args that) { if (that == null) return false; if (this == that) @@ -37844,15 +38781,6 @@ public boolean equals(truncateTable_args that) { return false; } - boolean this_present_preserveSplits = true; - boolean that_present_preserveSplits = true; - if (this_present_preserveSplits || that_present_preserveSplits) { - if (!(this_present_preserveSplits && that_present_preserveSplits)) - return false; - if (this.preserveSplits != that.preserveSplits) - return false; - } - return true; } @@ -37864,13 +38792,11 @@ public int hashCode() { if (isSetTableName()) hashCode = hashCode * 8191 + tableName.hashCode(); - hashCode = hashCode * 8191 + ((preserveSplits) ? 131071 : 524287); - return hashCode; } @Override - public int compareTo(truncateTable_args other) { + public int compareTo(enableTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -37887,16 +38813,6 @@ public int compareTo(truncateTable_args other) { return lastComparison; } } - lastComparison = java.lang.Boolean.valueOf(isSetPreserveSplits()).compareTo(other.isSetPreserveSplits()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPreserveSplits()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preserveSplits, other.preserveSplits); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -37915,7 +38831,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("truncateTable_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_args("); boolean first = true; sb.append("tableName:"); @@ -37925,10 +38841,6 @@ public java.lang.String toString() { sb.append(this.tableName); } first = false; - if (!first) sb.append(", "); - sb.append("preserveSplits:"); - sb.append(this.preserveSplits); - first = false; sb.append(")"); return sb.toString(); } @@ -37938,7 +38850,6 @@ public void validate() throws org.apache.thrift.TException { if (tableName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableName' was not present! Struct: " + toString()); } - // alas, we cannot check 'preserveSplits' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity if (tableName != null) { tableName.validate(); @@ -37955,23 +38866,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; 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 truncateTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public truncateTable_argsStandardScheme getScheme() { - return new truncateTable_argsStandardScheme(); + private static class enableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public enableTable_argsStandardScheme getScheme() { + return new enableTable_argsStandardScheme(); } } - private static class truncateTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class enableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, truncateTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37990,14 +38899,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncateTable_args org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PRESERVE_SPLITS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.preserveSplits = iprot.readBool(); - struct.setPreserveSplitsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -38006,13 +38907,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncateTable_args iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method - if (!struct.isSetPreserveSplits()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'preserveSplits' was not found in serialized data! Struct: " + toString()); - } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, truncateTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -38021,38 +38919,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncateTable_args struct.tableName.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(PRESERVE_SPLITS_FIELD_DESC); - oprot.writeBool(struct.preserveSplits); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class truncateTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public truncateTable_argsTupleScheme getScheme() { - return new truncateTable_argsTupleScheme(); + private static class enableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public enableTable_argsTupleScheme getScheme() { + return new enableTable_argsTupleScheme(); } } - private static class truncateTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class enableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, truncateTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); - oprot.writeBool(struct.preserveSplits); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, truncateTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); - struct.preserveSplits = iprot.readBool(); - struct.setPreserveSplitsIsSet(true); } } @@ -38061,13 +38953,13 @@ private static S scheme(org.apache. } } - public static class truncateTable_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("truncateTable_result"); + public static class enableTable_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("enableTable_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new truncateTable_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new truncateTable_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new enableTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new enableTable_resultTupleSchemeFactory(); public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -38138,13 +39030,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(truncateTable_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_result.class, metaDataMap); } - public truncateTable_result() { + public enableTable_result() { } - public truncateTable_result( + public enableTable_result( TIOError io) { this(); @@ -38154,14 +39046,14 @@ public truncateTable_result( /** * Performs a deep copy on other. */ - public truncateTable_result(truncateTable_result other) { + public enableTable_result(enableTable_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public truncateTable_result deepCopy() { - return new truncateTable_result(this); + public enableTable_result deepCopy() { + return new enableTable_result(this); } @Override @@ -38174,7 +39066,7 @@ public TIOError getIo() { return this.io; } - public truncateTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public enableTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -38234,12 +39126,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof truncateTable_result) - return this.equals((truncateTable_result)that); + if (that instanceof enableTable_result) + return this.equals((enableTable_result)that); return false; } - public boolean equals(truncateTable_result that) { + public boolean equals(enableTable_result that) { if (that == null) return false; if (this == that) @@ -38269,7 +39161,7 @@ public int hashCode() { } @Override - public int compareTo(truncateTable_result other) { + public int compareTo(enableTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -38304,7 +39196,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("truncateTable_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_result("); boolean first = true; sb.append("io:"); @@ -38339,15 +39231,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class truncateTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public truncateTable_resultStandardScheme getScheme() { - return new truncateTable_resultStandardScheme(); + private static class enableTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public enableTable_resultStandardScheme getScheme() { + return new enableTable_resultStandardScheme(); } } - private static class truncateTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class enableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, truncateTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -38377,7 +39269,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, truncateTable_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, truncateTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -38392,16 +39284,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, truncateTable_resu } - private static class truncateTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public truncateTable_resultTupleScheme getScheme() { - return new truncateTable_resultTupleScheme(); + private static class enableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public enableTable_resultTupleScheme getScheme() { + return new enableTable_resultTupleScheme(); } } - private static class truncateTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class enableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, truncateTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -38414,7 +39306,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, truncateTable_resul } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, truncateTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -38430,23 +39322,23 @@ private static S scheme(org.apache. } } - public static class enableTable_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("enableTable_args"); + public static class disableTable_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("disableTable_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new enableTable_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new enableTable_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new disableTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new disableTable_argsTupleSchemeFactory(); /** - * the tablename to enable + * the tablename to disable */ public @org.apache.thrift.annotation.Nullable TTableName tableName; // 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 { /** - * the tablename to enable + * the tablename to disable */ TABLE_NAME((short)1, "tableName"); @@ -38513,13 +39405,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_args.class, metaDataMap); } - public enableTable_args() { + public disableTable_args() { } - public enableTable_args( + public disableTable_args( TTableName tableName) { this(); @@ -38529,14 +39421,14 @@ public enableTable_args( /** * Performs a deep copy on other. */ - public enableTable_args(enableTable_args other) { + public disableTable_args(disableTable_args other) { if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } } - public enableTable_args deepCopy() { - return new enableTable_args(this); + public disableTable_args deepCopy() { + return new disableTable_args(this); } @Override @@ -38545,7 +39437,7 @@ public void clear() { } /** - * the tablename to enable + * the tablename to disable */ @org.apache.thrift.annotation.Nullable public TTableName getTableName() { @@ -38553,9 +39445,9 @@ public TTableName getTableName() { } /** - * the tablename to enable + * the tablename to disable */ - public enableTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public disableTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -38615,12 +39507,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof enableTable_args) - return this.equals((enableTable_args)that); + if (that instanceof disableTable_args) + return this.equals((disableTable_args)that); return false; } - public boolean equals(enableTable_args that) { + public boolean equals(disableTable_args that) { if (that == null) return false; if (this == that) @@ -38650,7 +39542,7 @@ public int hashCode() { } @Override - public int compareTo(enableTable_args other) { + public int compareTo(disableTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -38685,7 +39577,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_args("); boolean first = true; sb.append("tableName:"); @@ -38726,15 +39618,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class enableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public enableTable_argsStandardScheme getScheme() { - return new enableTable_argsStandardScheme(); + private static class disableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public disableTable_argsStandardScheme getScheme() { + return new disableTable_argsStandardScheme(); } } - private static class enableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class disableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -38764,7 +39656,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -38779,22 +39671,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_args s } - private static class enableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public enableTable_argsTupleScheme getScheme() { - return new enableTable_argsTupleScheme(); + private static class disableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public disableTable_argsTupleScheme getScheme() { + return new disableTable_argsTupleScheme(); } } - private static class enableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class disableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); @@ -38807,13 +39699,13 @@ private static S scheme(org.apache. } } - public static class enableTable_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("enableTable_result"); + public static class disableTable_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("disableTable_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new enableTable_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new enableTable_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new disableTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new disableTable_resultTupleSchemeFactory(); public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -38884,13 +39776,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_result.class, metaDataMap); } - public enableTable_result() { + public disableTable_result() { } - public enableTable_result( + public disableTable_result( TIOError io) { this(); @@ -38900,14 +39792,14 @@ public enableTable_result( /** * Performs a deep copy on other. */ - public enableTable_result(enableTable_result other) { + public disableTable_result(disableTable_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public enableTable_result deepCopy() { - return new enableTable_result(this); + public disableTable_result deepCopy() { + return new disableTable_result(this); } @Override @@ -38920,7 +39812,7 @@ public TIOError getIo() { return this.io; } - public enableTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public disableTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -38980,12 +39872,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof enableTable_result) - return this.equals((enableTable_result)that); + if (that instanceof disableTable_result) + return this.equals((disableTable_result)that); return false; } - public boolean equals(enableTable_result that) { + public boolean equals(disableTable_result that) { if (that == null) return false; if (this == that) @@ -39015,7 +39907,7 @@ public int hashCode() { } @Override - public int compareTo(enableTable_result other) { + public int compareTo(disableTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -39050,7 +39942,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_result("); boolean first = true; sb.append("io:"); @@ -39085,15 +39977,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class enableTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public enableTable_resultStandardScheme getScheme() { - return new enableTable_resultStandardScheme(); + private static class disableTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public disableTable_resultStandardScheme getScheme() { + return new disableTable_resultStandardScheme(); } } - private static class enableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class disableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -39123,7 +40015,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -39138,16 +40030,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_result } - private static class enableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public enableTable_resultTupleScheme getScheme() { - return new enableTable_resultTupleScheme(); + private static class disableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public disableTable_resultTupleScheme getScheme() { + return new disableTable_resultTupleScheme(); } } - private static class enableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class disableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -39160,7 +40052,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -39176,23 +40068,23 @@ private static S scheme(org.apache. } } - public static class disableTable_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("disableTable_args"); + public static class isTableEnabled_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("isTableEnabled_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new disableTable_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new disableTable_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableEnabled_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableEnabled_argsTupleSchemeFactory(); /** - * the tablename to disable + * the tablename to check */ public @org.apache.thrift.annotation.Nullable TTableName tableName; // 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 { /** - * the tablename to disable + * the tablename to check */ TABLE_NAME((short)1, "tableName"); @@ -39259,13 +40151,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_args.class, metaDataMap); } - public disableTable_args() { + public isTableEnabled_args() { } - public disableTable_args( + public isTableEnabled_args( TTableName tableName) { this(); @@ -39275,14 +40167,14 @@ public disableTable_args( /** * Performs a deep copy on other. */ - public disableTable_args(disableTable_args other) { + public isTableEnabled_args(isTableEnabled_args other) { if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } } - public disableTable_args deepCopy() { - return new disableTable_args(this); + public isTableEnabled_args deepCopy() { + return new isTableEnabled_args(this); } @Override @@ -39291,7 +40183,7 @@ public void clear() { } /** - * the tablename to disable + * the tablename to check */ @org.apache.thrift.annotation.Nullable public TTableName getTableName() { @@ -39299,9 +40191,9 @@ public TTableName getTableName() { } /** - * the tablename to disable + * the tablename to check */ - public disableTable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public isTableEnabled_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -39361,12 +40253,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof disableTable_args) - return this.equals((disableTable_args)that); + if (that instanceof isTableEnabled_args) + return this.equals((isTableEnabled_args)that); return false; } - public boolean equals(disableTable_args that) { + public boolean equals(isTableEnabled_args that) { if (that == null) return false; if (this == that) @@ -39396,7 +40288,7 @@ public int hashCode() { } @Override - public int compareTo(disableTable_args other) { + public int compareTo(isTableEnabled_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -39431,7 +40323,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_args("); boolean first = true; sb.append("tableName:"); @@ -39472,15 +40364,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class disableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public disableTable_argsStandardScheme getScheme() { - return new disableTable_argsStandardScheme(); + private static class isTableEnabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableEnabled_argsStandardScheme getScheme() { + return new isTableEnabled_argsStandardScheme(); } } - private static class disableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class isTableEnabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -39510,7 +40402,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_args s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -39525,22 +40417,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_args } - private static class disableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public disableTable_argsTupleScheme getScheme() { - return new disableTable_argsTupleScheme(); + private static class isTableEnabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableEnabled_argsTupleScheme getScheme() { + return new isTableEnabled_argsTupleScheme(); } } - private static class disableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class isTableEnabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); @@ -39553,18 +40445,21 @@ private static S scheme(org.apache. } } - public static class disableTable_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("disableTable_result"); + public static class isTableEnabled_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("isTableEnabled_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new disableTable_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new disableTable_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableEnabled_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableEnabled_resultTupleSchemeFactory(); + public boolean success; // required public @org.apache.thrift.annotation.Nullable TIOError io; // 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"), IO((short)1, "io"); private static final java.util.Map byName = new java.util.HashMap(); @@ -39581,6 +40476,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // IO return IO; default: @@ -39624,49 +40521,83 @@ public java.lang.String getFieldName() { } // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_result.class, metaDataMap); } - public disableTable_result() { + public isTableEnabled_result() { } - public disableTable_result( + public isTableEnabled_result( + boolean success, TIOError io) { this(); + this.success = success; + setSuccessIsSet(true); this.io = io; } /** * Performs a deep copy on other. */ - public disableTable_result(disableTable_result other) { + public isTableEnabled_result(isTableEnabled_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public disableTable_result deepCopy() { - return new disableTable_result(this); + public isTableEnabled_result deepCopy() { + return new isTableEnabled_result(this); } @Override public void clear() { + setSuccessIsSet(false); + this.success = false; this.io = null; } + public boolean isSuccess() { + return this.success; + } + + public isTableEnabled_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public disableTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public isTableEnabled_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -39688,6 +40619,14 @@ public void setIoIsSet(boolean value) { public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((java.lang.Boolean)value); + } + break; + case IO: if (value == null) { unsetIo(); @@ -39702,6 +40641,9 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return isSuccess(); + case IO: return getIo(); @@ -39716,6 +40658,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case IO: return isSetIo(); } @@ -39726,17 +40670,26 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof disableTable_result) - return this.equals((disableTable_result)that); + if (that instanceof isTableEnabled_result) + return this.equals((isTableEnabled_result)that); return false; } - public boolean equals(disableTable_result that) { + public boolean equals(isTableEnabled_result that) { if (that == null) return false; if (this == that) return true; + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { @@ -39753,6 +40706,8 @@ public boolean equals(disableTable_result that) { public int hashCode() { int hashCode = 1; + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); if (isSetIo()) hashCode = hashCode * 8191 + io.hashCode(); @@ -39761,13 +40716,23 @@ public int hashCode() { } @Override - public int compareTo(disableTable_result other) { + public int compareTo(isTableEnabled_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = java.lang.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 = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; @@ -39796,9 +40761,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_result("); boolean first = true; + sb.append("success:"); + sb.append(this.success); + first = false; + if (!first) sb.append(", "); sb.append("io:"); if (this.io == null) { sb.append("null"); @@ -39825,21 +40794,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; 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 disableTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public disableTable_resultStandardScheme getScheme() { - return new disableTable_resultStandardScheme(); + private static class isTableEnabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableEnabled_resultStandardScheme getScheme() { + return new isTableEnabled_resultStandardScheme(); } } - private static class disableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class isTableEnabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -39849,6 +40820,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_result break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // IO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.io = new TIOError(); @@ -39869,10 +40848,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } if (struct.io != null) { oprot.writeFieldBegin(IO_FIELD_DESC); struct.io.write(oprot); @@ -39884,32 +40868,42 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_resul } - private static class disableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public disableTable_resultTupleScheme getScheme() { - return new disableTable_resultTupleScheme(); + private static class isTableEnabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableEnabled_resultTupleScheme getScheme() { + return new isTableEnabled_resultTupleScheme(); } } - private static class disableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class isTableEnabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); - if (struct.isSetIo()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetIo()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } if (struct.isSetIo()) { struct.io.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); @@ -39922,13 +40916,13 @@ private static S scheme(org.apache. } } - public static class isTableEnabled_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("isTableEnabled_args"); + public static class isTableDisabled_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("isTableDisabled_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableEnabled_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableEnabled_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableDisabled_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableDisabled_argsTupleSchemeFactory(); /** * the tablename to check @@ -40005,13 +40999,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableDisabled_args.class, metaDataMap); } - public isTableEnabled_args() { + public isTableDisabled_args() { } - public isTableEnabled_args( + public isTableDisabled_args( TTableName tableName) { this(); @@ -40021,14 +41015,14 @@ public isTableEnabled_args( /** * Performs a deep copy on other. */ - public isTableEnabled_args(isTableEnabled_args other) { + public isTableDisabled_args(isTableDisabled_args other) { if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } } - public isTableEnabled_args deepCopy() { - return new isTableEnabled_args(this); + public isTableDisabled_args deepCopy() { + return new isTableDisabled_args(this); } @Override @@ -40047,7 +41041,7 @@ public TTableName getTableName() { /** * the tablename to check */ - public isTableEnabled_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public isTableDisabled_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -40107,12 +41101,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof isTableEnabled_args) - return this.equals((isTableEnabled_args)that); + if (that instanceof isTableDisabled_args) + return this.equals((isTableDisabled_args)that); return false; } - public boolean equals(isTableEnabled_args that) { + public boolean equals(isTableDisabled_args that) { if (that == null) return false; if (this == that) @@ -40142,7 +41136,7 @@ public int hashCode() { } @Override - public int compareTo(isTableEnabled_args other) { + public int compareTo(isTableDisabled_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -40177,7 +41171,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_args("); boolean first = true; sb.append("tableName:"); @@ -40218,15 +41212,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class isTableEnabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableEnabled_argsStandardScheme getScheme() { - return new isTableEnabled_argsStandardScheme(); + private static class isTableDisabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableDisabled_argsStandardScheme getScheme() { + return new isTableDisabled_argsStandardScheme(); } } - private static class isTableEnabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class isTableDisabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isTableDisabled_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40256,7 +41250,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isTableDisabled_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -40271,22 +41265,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_arg } - private static class isTableEnabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableEnabled_argsTupleScheme getScheme() { - return new isTableEnabled_argsTupleScheme(); + private static class isTableDisabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableDisabled_argsTupleScheme getScheme() { + return new isTableDisabled_argsTupleScheme(); } } - private static class isTableEnabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class isTableDisabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); @@ -40299,14 +41293,14 @@ private static S scheme(org.apache. } } - public static class isTableEnabled_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("isTableEnabled_result"); + public static class isTableDisabled_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("isTableDisabled_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableEnabled_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableEnabled_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableDisabled_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableDisabled_resultTupleSchemeFactory(); public boolean success; // required public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -40385,13 +41379,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableDisabled_result.class, metaDataMap); } - public isTableEnabled_result() { + public isTableDisabled_result() { } - public isTableEnabled_result( + public isTableDisabled_result( boolean success, TIOError io) { @@ -40404,7 +41398,7 @@ public isTableEnabled_result( /** * Performs a deep copy on other. */ - public isTableEnabled_result(isTableEnabled_result other) { + public isTableDisabled_result(isTableDisabled_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetIo()) { @@ -40412,8 +41406,8 @@ public isTableEnabled_result(isTableEnabled_result other) { } } - public isTableEnabled_result deepCopy() { - return new isTableEnabled_result(this); + public isTableDisabled_result deepCopy() { + return new isTableDisabled_result(this); } @Override @@ -40427,7 +41421,7 @@ public boolean isSuccess() { return this.success; } - public isTableEnabled_result setSuccess(boolean success) { + public isTableDisabled_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -40451,7 +41445,7 @@ public TIOError getIo() { return this.io; } - public isTableEnabled_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public isTableDisabled_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -40524,12 +41518,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof isTableEnabled_result) - return this.equals((isTableEnabled_result)that); + if (that instanceof isTableDisabled_result) + return this.equals((isTableDisabled_result)that); return false; } - public boolean equals(isTableEnabled_result that) { + public boolean equals(isTableDisabled_result that) { if (that == null) return false; if (this == that) @@ -40570,7 +41564,7 @@ public int hashCode() { } @Override - public int compareTo(isTableEnabled_result other) { + public int compareTo(isTableDisabled_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -40615,7 +41609,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_result("); boolean first = true; sb.append("success:"); @@ -40656,15 +41650,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class isTableEnabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableEnabled_resultStandardScheme getScheme() { - return new isTableEnabled_resultStandardScheme(); + private static class isTableDisabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableDisabled_resultStandardScheme getScheme() { + return new isTableDisabled_resultStandardScheme(); } } - private static class isTableEnabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class isTableDisabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isTableDisabled_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40702,7 +41696,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isTableDisabled_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -40722,16 +41716,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_res } - private static class isTableEnabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableEnabled_resultTupleScheme getScheme() { - return new isTableEnabled_resultTupleScheme(); + private static class isTableDisabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableDisabled_resultTupleScheme getScheme() { + return new isTableDisabled_resultTupleScheme(); } } - private static class isTableEnabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class isTableDisabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { @@ -40750,7 +41744,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -40770,13 +41764,13 @@ private static S scheme(org.apache. } } - public static class isTableDisabled_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("isTableDisabled_args"); + public static class isTableAvailable_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("isTableAvailable_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableDisabled_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableDisabled_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailable_argsTupleSchemeFactory(); /** * the tablename to check @@ -40853,13 +41847,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableDisabled_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailable_args.class, metaDataMap); } - public isTableDisabled_args() { + public isTableAvailable_args() { } - public isTableDisabled_args( + public isTableAvailable_args( TTableName tableName) { this(); @@ -40869,14 +41863,14 @@ public isTableDisabled_args( /** * Performs a deep copy on other. */ - public isTableDisabled_args(isTableDisabled_args other) { + public isTableAvailable_args(isTableAvailable_args other) { if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } } - public isTableDisabled_args deepCopy() { - return new isTableDisabled_args(this); + public isTableAvailable_args deepCopy() { + return new isTableAvailable_args(this); } @Override @@ -40895,7 +41889,7 @@ public TTableName getTableName() { /** * the tablename to check */ - public isTableDisabled_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public isTableAvailable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -40955,12 +41949,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof isTableDisabled_args) - return this.equals((isTableDisabled_args)that); + if (that instanceof isTableAvailable_args) + return this.equals((isTableAvailable_args)that); return false; } - public boolean equals(isTableDisabled_args that) { + public boolean equals(isTableAvailable_args that) { if (that == null) return false; if (this == that) @@ -40990,7 +41984,7 @@ public int hashCode() { } @Override - public int compareTo(isTableDisabled_args other) { + public int compareTo(isTableAvailable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -41025,7 +42019,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_args("); boolean first = true; sb.append("tableName:"); @@ -41066,15 +42060,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class isTableDisabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableDisabled_argsStandardScheme getScheme() { - return new isTableDisabled_argsStandardScheme(); + private static class isTableAvailable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableAvailable_argsStandardScheme getScheme() { + return new isTableAvailable_argsStandardScheme(); } } - private static class isTableDisabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class isTableAvailable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isTableDisabled_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41104,7 +42098,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableDisabled_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isTableDisabled_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailable_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -41119,22 +42113,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isTableDisabled_ar } - private static class isTableDisabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableDisabled_argsTupleScheme getScheme() { - return new isTableDisabled_argsTupleScheme(); + private static class isTableAvailable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableAvailable_argsTupleScheme getScheme() { + return new isTableAvailable_argsTupleScheme(); } } - private static class isTableDisabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class isTableAvailable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); @@ -41147,14 +42141,14 @@ private static S scheme(org.apache. } } - public static class isTableDisabled_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("isTableDisabled_result"); + public static class isTableAvailable_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("isTableAvailable_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableDisabled_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableDisabled_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailable_resultTupleSchemeFactory(); public boolean success; // required public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -41233,13 +42227,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableDisabled_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailable_result.class, metaDataMap); } - public isTableDisabled_result() { + public isTableAvailable_result() { } - public isTableDisabled_result( + public isTableAvailable_result( boolean success, TIOError io) { @@ -41252,7 +42246,7 @@ public isTableDisabled_result( /** * Performs a deep copy on other. */ - public isTableDisabled_result(isTableDisabled_result other) { + public isTableAvailable_result(isTableAvailable_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetIo()) { @@ -41260,8 +42254,8 @@ public isTableDisabled_result(isTableDisabled_result other) { } } - public isTableDisabled_result deepCopy() { - return new isTableDisabled_result(this); + public isTableAvailable_result deepCopy() { + return new isTableAvailable_result(this); } @Override @@ -41275,7 +42269,7 @@ public boolean isSuccess() { return this.success; } - public isTableDisabled_result setSuccess(boolean success) { + public isTableAvailable_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -41299,7 +42293,7 @@ public TIOError getIo() { return this.io; } - public isTableDisabled_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public isTableAvailable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -41372,12 +42366,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof isTableDisabled_result) - return this.equals((isTableDisabled_result)that); + if (that instanceof isTableAvailable_result) + return this.equals((isTableAvailable_result)that); return false; } - public boolean equals(isTableDisabled_result that) { + public boolean equals(isTableAvailable_result that) { if (that == null) return false; if (this == that) @@ -41418,7 +42412,7 @@ public int hashCode() { } @Override - public int compareTo(isTableDisabled_result other) { + public int compareTo(isTableAvailable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -41463,7 +42457,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_result("); boolean first = true; sb.append("success:"); @@ -41504,15 +42498,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class isTableDisabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableDisabled_resultStandardScheme getScheme() { - return new isTableDisabled_resultStandardScheme(); + private static class isTableAvailable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableAvailable_resultStandardScheme getScheme() { + return new isTableAvailable_resultStandardScheme(); } } - private static class isTableDisabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class isTableAvailable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isTableDisabled_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41550,7 +42544,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableDisabled_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isTableDisabled_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailable_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -41570,16 +42564,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isTableDisabled_re } - private static class isTableDisabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableDisabled_resultTupleScheme getScheme() { - return new isTableDisabled_resultTupleScheme(); + private static class isTableAvailable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableAvailable_resultTupleScheme getScheme() { + return new isTableAvailable_resultTupleScheme(); } } - private static class isTableDisabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class isTableAvailable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { @@ -41598,7 +42592,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isTableDisabled_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -41618,25 +42612,34 @@ private static S scheme(org.apache. } } - public static class isTableAvailable_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("isTableAvailable_args"); + public static class isTableAvailableWithSplit_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("isTableAvailableWithSplit_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SPLIT_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("splitKeys", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailable_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailable_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailableWithSplit_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailableWithSplit_argsTupleSchemeFactory(); /** * the tablename to check */ public @org.apache.thrift.annotation.Nullable TTableName tableName; // required + /** + * keys to check if the table has been created with all split keys + */ + public @org.apache.thrift.annotation.Nullable java.util.List splitKeys; // 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 { /** * the tablename to check */ - TABLE_NAME((short)1, "tableName"); + TABLE_NAME((short)1, "tableName"), + /** + * keys to check if the table has been created with all split keys + */ + SPLIT_KEYS((short)2, "splitKeys"); private static final java.util.Map byName = new java.util.HashMap(); @@ -41654,6 +42657,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME return TABLE_NAME; + case 2: // SPLIT_KEYS + return SPLIT_KEYS; default: return null; } @@ -41700,36 +42705,46 @@ public java.lang.String getFieldName() { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); + tmpMap.put(_Fields.SPLIT_KEYS, new org.apache.thrift.meta_data.FieldMetaData("splitKeys", 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 , true)))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailable_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailableWithSplit_args.class, metaDataMap); } - public isTableAvailable_args() { + public isTableAvailableWithSplit_args() { } - public isTableAvailable_args( - TTableName tableName) + public isTableAvailableWithSplit_args( + TTableName tableName, + java.util.List splitKeys) { this(); this.tableName = tableName; + this.splitKeys = splitKeys; } /** * Performs a deep copy on other. */ - public isTableAvailable_args(isTableAvailable_args other) { + public isTableAvailableWithSplit_args(isTableAvailableWithSplit_args other) { if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } + if (other.isSetSplitKeys()) { + java.util.List __this__splitKeys = new java.util.ArrayList(other.splitKeys); + this.splitKeys = __this__splitKeys; + } } - public isTableAvailable_args deepCopy() { - return new isTableAvailable_args(this); + public isTableAvailableWithSplit_args deepCopy() { + return new isTableAvailableWithSplit_args(this); } @Override public void clear() { this.tableName = null; + this.splitKeys = null; } /** @@ -41743,7 +42758,7 @@ public TTableName getTableName() { /** * the tablename to check */ - public isTableAvailable_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public isTableAvailableWithSplit_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -41763,6 +42778,53 @@ public void setTableNameIsSet(boolean value) { } } + public int getSplitKeysSize() { + return (this.splitKeys == null) ? 0 : this.splitKeys.size(); + } + + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSplitKeysIterator() { + return (this.splitKeys == null) ? null : this.splitKeys.iterator(); + } + + public void addToSplitKeys(java.nio.ByteBuffer elem) { + if (this.splitKeys == null) { + this.splitKeys = new java.util.ArrayList(); + } + this.splitKeys.add(elem); + } + + /** + * keys to check if the table has been created with all split keys + */ + @org.apache.thrift.annotation.Nullable + public java.util.List getSplitKeys() { + return this.splitKeys; + } + + /** + * keys to check if the table has been created with all split keys + */ + public isTableAvailableWithSplit_args setSplitKeys(@org.apache.thrift.annotation.Nullable java.util.List splitKeys) { + this.splitKeys = splitKeys; + return this; + } + + public void unsetSplitKeys() { + this.splitKeys = null; + } + + /** Returns true if field splitKeys is set (has been assigned a value) and false otherwise */ + public boolean isSetSplitKeys() { + return this.splitKeys != null; + } + + public void setSplitKeysIsSet(boolean value) { + if (!value) { + this.splitKeys = null; + } + } + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TABLE_NAME: @@ -41773,6 +42835,14 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable } break; + case SPLIT_KEYS: + if (value == null) { + unsetSplitKeys(); + } else { + setSplitKeys((java.util.List)value); + } + break; + } } @@ -41782,6 +42852,9 @@ public java.lang.Object getFieldValue(_Fields field) { case TABLE_NAME: return getTableName(); + case SPLIT_KEYS: + return getSplitKeys(); + } throw new java.lang.IllegalStateException(); } @@ -41795,6 +42868,8 @@ public boolean isSet(_Fields field) { switch (field) { case TABLE_NAME: return isSetTableName(); + case SPLIT_KEYS: + return isSetSplitKeys(); } throw new java.lang.IllegalStateException(); } @@ -41803,12 +42878,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof isTableAvailable_args) - return this.equals((isTableAvailable_args)that); + if (that instanceof isTableAvailableWithSplit_args) + return this.equals((isTableAvailableWithSplit_args)that); return false; } - public boolean equals(isTableAvailable_args that) { + public boolean equals(isTableAvailableWithSplit_args that) { if (that == null) return false; if (this == that) @@ -41823,6 +42898,15 @@ public boolean equals(isTableAvailable_args that) { return false; } + boolean this_present_splitKeys = true && this.isSetSplitKeys(); + boolean that_present_splitKeys = true && that.isSetSplitKeys(); + if (this_present_splitKeys || that_present_splitKeys) { + if (!(this_present_splitKeys && that_present_splitKeys)) + return false; + if (!this.splitKeys.equals(that.splitKeys)) + return false; + } + return true; } @@ -41834,11 +42918,15 @@ public int hashCode() { if (isSetTableName()) hashCode = hashCode * 8191 + tableName.hashCode(); + hashCode = hashCode * 8191 + ((isSetSplitKeys()) ? 131071 : 524287); + if (isSetSplitKeys()) + hashCode = hashCode * 8191 + splitKeys.hashCode(); + return hashCode; } @Override - public int compareTo(isTableAvailable_args other) { + public int compareTo(isTableAvailableWithSplit_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -41855,6 +42943,16 @@ public int compareTo(isTableAvailable_args other) { return lastComparison; } } + lastComparison = java.lang.Boolean.valueOf(isSetSplitKeys()).compareTo(other.isSetSplitKeys()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSplitKeys()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.splitKeys, other.splitKeys); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -41873,7 +42971,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_args("); boolean first = true; sb.append("tableName:"); @@ -41883,6 +42981,14 @@ public java.lang.String toString() { sb.append(this.tableName); } first = false; + if (!first) sb.append(", "); + sb.append("splitKeys:"); + if (this.splitKeys == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.splitKeys, sb); + } + first = false; sb.append(")"); return sb.toString(); } @@ -41914,15 +43020,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class isTableAvailable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableAvailable_argsStandardScheme getScheme() { - return new isTableAvailable_argsStandardScheme(); + private static class isTableAvailableWithSplit_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableAvailableWithSplit_argsStandardScheme getScheme() { + return new isTableAvailableWithSplit_argsStandardScheme(); } } - private static class isTableAvailable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class isTableAvailableWithSplit_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41941,6 +43047,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailable_ar org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // SPLIT_KEYS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list326 = iprot.readListBegin(); + struct.splitKeys = new java.util.ArrayList(_list326.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem327; + for (int _i328 = 0; _i328 < _list326.size; ++_i328) + { + _elem327 = iprot.readBinary(); + struct.splitKeys.add(_elem327); + } + iprot.readListEnd(); + } + struct.setSplitKeysIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -41952,7 +43076,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailable_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -41961,32 +43085,72 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailable_a struct.tableName.write(oprot); oprot.writeFieldEnd(); } + if (struct.splitKeys != null) { + oprot.writeFieldBegin(SPLIT_KEYS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.splitKeys.size())); + for (java.nio.ByteBuffer _iter329 : struct.splitKeys) + { + oprot.writeBinary(_iter329); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class isTableAvailable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableAvailable_argsTupleScheme getScheme() { - return new isTableAvailable_argsTupleScheme(); + private static class isTableAvailableWithSplit_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableAvailableWithSplit_argsTupleScheme getScheme() { + return new isTableAvailableWithSplit_argsTupleScheme(); } } - private static class isTableAvailable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class isTableAvailableWithSplit_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); + java.util.BitSet optionals = new java.util.BitSet(); + if (struct.isSetSplitKeys()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSplitKeys()) { + { + oprot.writeI32(struct.splitKeys.size()); + for (java.nio.ByteBuffer _iter330 : struct.splitKeys) + { + oprot.writeBinary(_iter330); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); + java.util.BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.splitKeys = new java.util.ArrayList(_list331.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem332; + for (int _i333 = 0; _i333 < _list331.size; ++_i333) + { + _elem332 = iprot.readBinary(); + struct.splitKeys.add(_elem332); + } + } + struct.setSplitKeysIsSet(true); + } } } @@ -41995,14 +43159,14 @@ private static S scheme(org.apache. } } - public static class isTableAvailable_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("isTableAvailable_result"); + public static class isTableAvailableWithSplit_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("isTableAvailableWithSplit_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailable_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailable_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailableWithSplit_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailableWithSplit_resultTupleSchemeFactory(); public boolean success; // required public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -42081,13 +43245,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailable_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailableWithSplit_result.class, metaDataMap); } - public isTableAvailable_result() { + public isTableAvailableWithSplit_result() { } - public isTableAvailable_result( + public isTableAvailableWithSplit_result( boolean success, TIOError io) { @@ -42100,7 +43264,7 @@ public isTableAvailable_result( /** * Performs a deep copy on other. */ - public isTableAvailable_result(isTableAvailable_result other) { + public isTableAvailableWithSplit_result(isTableAvailableWithSplit_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetIo()) { @@ -42108,8 +43272,8 @@ public isTableAvailable_result(isTableAvailable_result other) { } } - public isTableAvailable_result deepCopy() { - return new isTableAvailable_result(this); + public isTableAvailableWithSplit_result deepCopy() { + return new isTableAvailableWithSplit_result(this); } @Override @@ -42123,7 +43287,7 @@ public boolean isSuccess() { return this.success; } - public isTableAvailable_result setSuccess(boolean success) { + public isTableAvailableWithSplit_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -42147,7 +43311,7 @@ public TIOError getIo() { return this.io; } - public isTableAvailable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public isTableAvailableWithSplit_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -42220,12 +43384,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof isTableAvailable_result) - return this.equals((isTableAvailable_result)that); + if (that instanceof isTableAvailableWithSplit_result) + return this.equals((isTableAvailableWithSplit_result)that); return false; } - public boolean equals(isTableAvailable_result that) { + public boolean equals(isTableAvailableWithSplit_result that) { if (that == null) return false; if (this == that) @@ -42266,7 +43430,7 @@ public int hashCode() { } @Override - public int compareTo(isTableAvailable_result other) { + public int compareTo(isTableAvailableWithSplit_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -42311,7 +43475,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_result("); boolean first = true; sb.append("success:"); @@ -42352,15 +43516,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class isTableAvailable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableAvailable_resultStandardScheme getScheme() { - return new isTableAvailable_resultStandardScheme(); + private static class isTableAvailableWithSplit_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableAvailableWithSplit_resultStandardScheme getScheme() { + return new isTableAvailableWithSplit_resultStandardScheme(); } } - private static class isTableAvailable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class isTableAvailableWithSplit_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42398,7 +43562,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailable_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -42418,16 +43582,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailable_r } - private static class isTableAvailable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableAvailable_resultTupleScheme getScheme() { - return new isTableAvailable_resultTupleScheme(); + private static class isTableAvailableWithSplit_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public isTableAvailableWithSplit_resultTupleScheme getScheme() { + return new isTableAvailableWithSplit_resultTupleScheme(); } } - private static class isTableAvailable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class isTableAvailableWithSplit_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { @@ -42446,7 +43610,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_re } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -42466,34 +43630,34 @@ private static S scheme(org.apache. } } - public static class isTableAvailableWithSplit_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("isTableAvailableWithSplit_args"); + public static class addColumnFamily_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("addColumnFamily_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField SPLIT_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("splitKeys", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailableWithSplit_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailableWithSplit_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new addColumnFamily_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new addColumnFamily_argsTupleSchemeFactory(); /** - * the tablename to check + * the tablename to add column family to */ public @org.apache.thrift.annotation.Nullable TTableName tableName; // required /** - * keys to check if the table has been created with all split keys + * column family descriptor of column family to be added */ - public @org.apache.thrift.annotation.Nullable java.util.List splitKeys; // required + public @org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column; // 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 { /** - * the tablename to check + * the tablename to add column family to */ TABLE_NAME((short)1, "tableName"), /** - * keys to check if the table has been created with all split keys + * column family descriptor of column family to be added */ - SPLIT_KEYS((short)2, "splitKeys"); + COLUMN((short)2, "column"); private static final java.util.Map byName = new java.util.HashMap(); @@ -42511,8 +43675,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TABLE_NAME return TABLE_NAME; - case 2: // SPLIT_KEYS - return SPLIT_KEYS; + case 2: // COLUMN + return COLUMN; default: return null; } @@ -42559,50 +43723,48 @@ public java.lang.String getFieldName() { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - tmpMap.put(_Fields.SPLIT_KEYS, new org.apache.thrift.meta_data.FieldMetaData("splitKeys", 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 , true)))); + tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TColumnFamilyDescriptor.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailableWithSplit_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addColumnFamily_args.class, metaDataMap); } - public isTableAvailableWithSplit_args() { + public addColumnFamily_args() { } - public isTableAvailableWithSplit_args( + public addColumnFamily_args( TTableName tableName, - java.util.List splitKeys) + TColumnFamilyDescriptor column) { this(); this.tableName = tableName; - this.splitKeys = splitKeys; + this.column = column; } /** * Performs a deep copy on other. */ - public isTableAvailableWithSplit_args(isTableAvailableWithSplit_args other) { + public addColumnFamily_args(addColumnFamily_args other) { if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } - if (other.isSetSplitKeys()) { - java.util.List __this__splitKeys = new java.util.ArrayList(other.splitKeys); - this.splitKeys = __this__splitKeys; + if (other.isSetColumn()) { + this.column = new TColumnFamilyDescriptor(other.column); } } - public isTableAvailableWithSplit_args deepCopy() { - return new isTableAvailableWithSplit_args(this); + public addColumnFamily_args deepCopy() { + return new addColumnFamily_args(this); } @Override public void clear() { this.tableName = null; - this.splitKeys = null; + this.column = null; } /** - * the tablename to check + * the tablename to add column family to */ @org.apache.thrift.annotation.Nullable public TTableName getTableName() { @@ -42610,9 +43772,9 @@ public TTableName getTableName() { } /** - * the tablename to check + * the tablename to add column family to */ - public isTableAvailableWithSplit_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public addColumnFamily_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -42632,50 +43794,34 @@ public void setTableNameIsSet(boolean value) { } } - public int getSplitKeysSize() { - return (this.splitKeys == null) ? 0 : this.splitKeys.size(); - } - - @org.apache.thrift.annotation.Nullable - public java.util.Iterator getSplitKeysIterator() { - return (this.splitKeys == null) ? null : this.splitKeys.iterator(); - } - - public void addToSplitKeys(java.nio.ByteBuffer elem) { - if (this.splitKeys == null) { - this.splitKeys = new java.util.ArrayList(); - } - this.splitKeys.add(elem); - } - /** - * keys to check if the table has been created with all split keys + * column family descriptor of column family to be added */ @org.apache.thrift.annotation.Nullable - public java.util.List getSplitKeys() { - return this.splitKeys; + public TColumnFamilyDescriptor getColumn() { + return this.column; } /** - * keys to check if the table has been created with all split keys + * column family descriptor of column family to be added */ - public isTableAvailableWithSplit_args setSplitKeys(@org.apache.thrift.annotation.Nullable java.util.List splitKeys) { - this.splitKeys = splitKeys; + public addColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) { + this.column = column; return this; } - public void unsetSplitKeys() { - this.splitKeys = null; + public void unsetColumn() { + this.column = null; } - /** Returns true if field splitKeys is set (has been assigned a value) and false otherwise */ - public boolean isSetSplitKeys() { - return this.splitKeys != null; + /** Returns true if field column is set (has been assigned a value) and false otherwise */ + public boolean isSetColumn() { + return this.column != null; } - public void setSplitKeysIsSet(boolean value) { + public void setColumnIsSet(boolean value) { if (!value) { - this.splitKeys = null; + this.column = null; } } @@ -42689,11 +43835,11 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable } break; - case SPLIT_KEYS: + case COLUMN: if (value == null) { - unsetSplitKeys(); + unsetColumn(); } else { - setSplitKeys((java.util.List)value); + setColumn((TColumnFamilyDescriptor)value); } break; @@ -42706,8 +43852,8 @@ public java.lang.Object getFieldValue(_Fields field) { case TABLE_NAME: return getTableName(); - case SPLIT_KEYS: - return getSplitKeys(); + case COLUMN: + return getColumn(); } throw new java.lang.IllegalStateException(); @@ -42722,8 +43868,8 @@ public boolean isSet(_Fields field) { switch (field) { case TABLE_NAME: return isSetTableName(); - case SPLIT_KEYS: - return isSetSplitKeys(); + case COLUMN: + return isSetColumn(); } throw new java.lang.IllegalStateException(); } @@ -42732,12 +43878,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof isTableAvailableWithSplit_args) - return this.equals((isTableAvailableWithSplit_args)that); + if (that instanceof addColumnFamily_args) + return this.equals((addColumnFamily_args)that); return false; } - public boolean equals(isTableAvailableWithSplit_args that) { + public boolean equals(addColumnFamily_args that) { if (that == null) return false; if (this == that) @@ -42752,12 +43898,12 @@ public boolean equals(isTableAvailableWithSplit_args that) { return false; } - boolean this_present_splitKeys = true && this.isSetSplitKeys(); - boolean that_present_splitKeys = true && that.isSetSplitKeys(); - if (this_present_splitKeys || that_present_splitKeys) { - if (!(this_present_splitKeys && that_present_splitKeys)) + boolean this_present_column = true && this.isSetColumn(); + boolean that_present_column = true && that.isSetColumn(); + if (this_present_column || that_present_column) { + if (!(this_present_column && that_present_column)) return false; - if (!this.splitKeys.equals(that.splitKeys)) + if (!this.column.equals(that.column)) return false; } @@ -42772,15 +43918,15 @@ public int hashCode() { if (isSetTableName()) hashCode = hashCode * 8191 + tableName.hashCode(); - hashCode = hashCode * 8191 + ((isSetSplitKeys()) ? 131071 : 524287); - if (isSetSplitKeys()) - hashCode = hashCode * 8191 + splitKeys.hashCode(); + hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); + if (isSetColumn()) + hashCode = hashCode * 8191 + column.hashCode(); return hashCode; } @Override - public int compareTo(isTableAvailableWithSplit_args other) { + public int compareTo(addColumnFamily_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -42797,12 +43943,12 @@ public int compareTo(isTableAvailableWithSplit_args other) { return lastComparison; } } - lastComparison = java.lang.Boolean.valueOf(isSetSplitKeys()).compareTo(other.isSetSplitKeys()); + lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; } - if (isSetSplitKeys()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.splitKeys, other.splitKeys); + if (isSetColumn()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) { return lastComparison; } @@ -42825,7 +43971,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("addColumnFamily_args("); boolean first = true; sb.append("tableName:"); @@ -42836,11 +43982,11 @@ public java.lang.String toString() { } first = false; if (!first) sb.append(", "); - sb.append("splitKeys:"); - if (this.splitKeys == null) { + sb.append("column:"); + if (this.column == null) { sb.append("null"); } else { - org.apache.thrift.TBaseHelper.toString(this.splitKeys, sb); + sb.append(this.column); } first = false; sb.append(")"); @@ -42852,10 +43998,16 @@ public void validate() throws org.apache.thrift.TException { if (tableName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableName' was not present! Struct: " + toString()); } + if (column == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'column' was not present! Struct: " + toString()); + } // check for sub-struct validity if (tableName != null) { tableName.validate(); } + if (column != null) { + column.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -42874,15 +44026,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class isTableAvailableWithSplit_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableAvailableWithSplit_argsStandardScheme getScheme() { - return new isTableAvailableWithSplit_argsStandardScheme(); + private static class addColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public addColumnFamily_argsStandardScheme getScheme() { + return new addColumnFamily_argsStandardScheme(); } } - private static class isTableAvailableWithSplit_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class addColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, addColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42901,20 +44053,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWit org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // SPLIT_KEYS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list326 = iprot.readListBegin(); - struct.splitKeys = new java.util.ArrayList(_list326.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem327; - for (int _i328 = 0; _i328 < _list326.size; ++_i328) - { - _elem327 = iprot.readBinary(); - struct.splitKeys.add(_elem327); - } - iprot.readListEnd(); - } - struct.setSplitKeysIsSet(true); + case 2: // COLUMN + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.column = new TColumnFamilyDescriptor(); + struct.column.read(iprot); + struct.setColumnIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -42930,7 +44073,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWit struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, addColumnFamily_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -42939,16 +44082,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailableWi struct.tableName.write(oprot); oprot.writeFieldEnd(); } - if (struct.splitKeys != null) { - oprot.writeFieldBegin(SPLIT_KEYS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.splitKeys.size())); - for (java.nio.ByteBuffer _iter329 : struct.splitKeys) - { - oprot.writeBinary(_iter329); - } - oprot.writeListEnd(); - } + if (struct.column != null) { + oprot.writeFieldBegin(COLUMN_FIELD_DESC); + struct.column.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -42957,54 +44093,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailableWi } - private static class isTableAvailableWithSplit_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableAvailableWithSplit_argsTupleScheme getScheme() { - return new isTableAvailableWithSplit_argsTupleScheme(); + private static class addColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public addColumnFamily_argsTupleScheme getScheme() { + return new addColumnFamily_argsTupleScheme(); } } - private static class isTableAvailableWithSplit_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class addColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); - java.util.BitSet optionals = new java.util.BitSet(); - if (struct.isSetSplitKeys()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSplitKeys()) { - { - oprot.writeI32(struct.splitKeys.size()); - for (java.nio.ByteBuffer _iter330 : struct.splitKeys) - { - oprot.writeBinary(_iter330); - } - } - } + struct.column.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); - java.util.BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.splitKeys = new java.util.ArrayList(_list331.size); - @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem332; - for (int _i333 = 0; _i333 < _list331.size; ++_i333) - { - _elem332 = iprot.readBinary(); - struct.splitKeys.add(_elem332); - } - } - struct.setSplitKeysIsSet(true); - } + struct.column = new TColumnFamilyDescriptor(); + struct.column.read(iprot); + struct.setColumnIsSet(true); } } @@ -43013,21 +44125,18 @@ private static S scheme(org.apache. } } - public static class isTableAvailableWithSplit_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("isTableAvailableWithSplit_result"); + public static class addColumnFamily_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("addColumnFamily_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isTableAvailableWithSplit_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailableWithSplit_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new addColumnFamily_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new addColumnFamily_resultTupleSchemeFactory(); - public boolean success; // required public @org.apache.thrift.annotation.Nullable TIOError io; // 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"), IO((short)1, "io"); private static final java.util.Map byName = new java.util.HashMap(); @@ -43044,8 +44153,6 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // IO return IO; default: @@ -43089,83 +44196,49 @@ public java.lang.String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailableWithSplit_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addColumnFamily_result.class, metaDataMap); } - public isTableAvailableWithSplit_result() { + public addColumnFamily_result() { } - public isTableAvailableWithSplit_result( - boolean success, + public addColumnFamily_result( TIOError io) { this(); - this.success = success; - setSuccessIsSet(true); this.io = io; } /** * Performs a deep copy on other. */ - public isTableAvailableWithSplit_result(isTableAvailableWithSplit_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public addColumnFamily_result(addColumnFamily_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public isTableAvailableWithSplit_result deepCopy() { - return new isTableAvailableWithSplit_result(this); + public addColumnFamily_result deepCopy() { + return new addColumnFamily_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; this.io = null; } - public boolean isSuccess() { - return this.success; - } - - public isTableAvailableWithSplit_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); - return this; - } - - public void unsetSuccess() { - __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - public void setSuccessIsSet(boolean value) { - __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); - } - @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public isTableAvailableWithSplit_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public addColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -43187,14 +44260,6 @@ public void setIoIsSet(boolean value) { public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((java.lang.Boolean)value); - } - break; - case IO: if (value == null) { unsetIo(); @@ -43209,9 +44274,6 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return isSuccess(); - case IO: return getIo(); @@ -43226,8 +44288,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case IO: return isSetIo(); } @@ -43238,26 +44298,17 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof isTableAvailableWithSplit_result) - return this.equals((isTableAvailableWithSplit_result)that); + if (that instanceof addColumnFamily_result) + return this.equals((addColumnFamily_result)that); return false; } - public boolean equals(isTableAvailableWithSplit_result that) { + public boolean equals(addColumnFamily_result that) { if (that == null) return false; if (this == that) return true; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - boolean this_present_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { @@ -43274,8 +44325,6 @@ public boolean equals(isTableAvailableWithSplit_result that) { public int hashCode() { int hashCode = 1; - hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); if (isSetIo()) hashCode = hashCode * 8191 + io.hashCode(); @@ -43284,23 +44333,13 @@ public int hashCode() { } @Override - public int compareTo(isTableAvailableWithSplit_result other) { + public int compareTo(addColumnFamily_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = java.lang.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 = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; @@ -43329,13 +44368,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("addColumnFamily_result("); boolean first = true; - sb.append("success:"); - sb.append(this.success); - first = false; - if (!first) sb.append(", "); sb.append("io:"); if (this.io == null) { sb.append("null"); @@ -43362,23 +44397,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; 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 isTableAvailableWithSplit_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableAvailableWithSplit_resultStandardScheme getScheme() { - return new isTableAvailableWithSplit_resultStandardScheme(); + private static class addColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public addColumnFamily_resultStandardScheme getScheme() { + return new addColumnFamily_resultStandardScheme(); } } - private static class isTableAvailableWithSplit_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class addColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, addColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43388,14 +44421,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWit break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // IO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.io = new TIOError(); @@ -43416,15 +44441,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isTableAvailableWit struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, addColumnFamily_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); - oprot.writeFieldEnd(); - } if (struct.io != null) { oprot.writeFieldBegin(IO_FIELD_DESC); struct.io.write(oprot); @@ -43436,42 +44456,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isTableAvailableWi } - private static class isTableAvailableWithSplit_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public isTableAvailableWithSplit_resultTupleScheme getScheme() { - return new isTableAvailableWithSplit_resultTupleScheme(); + private static class addColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public addColumnFamily_resultTupleScheme getScheme() { + return new addColumnFamily_resultTupleScheme(); } } - private static class isTableAvailableWithSplit_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class addColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetIo()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + optionals.set(0); } + oprot.writeBitSet(optionals, 1); if (struct.isSetIo()) { struct.io.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); @@ -43484,32 +44494,32 @@ private static S scheme(org.apache. } } - public static class addColumnFamily_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("addColumnFamily_args"); + public static class deleteColumnFamily_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("deleteColumnFamily_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new addColumnFamily_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new addColumnFamily_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteColumnFamily_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteColumnFamily_argsTupleSchemeFactory(); /** - * the tablename to add column family to + * the tablename to delete column family from */ public @org.apache.thrift.annotation.Nullable TTableName tableName; // required /** - * column family descriptor of column family to be added + * name of column family to be deleted */ - public @org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // 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 { /** - * the tablename to add column family to + * the tablename to delete column family from */ TABLE_NAME((short)1, "tableName"), /** - * column family descriptor of column family to be added + * name of column family to be deleted */ COLUMN((short)2, "column"); @@ -43578,37 +44588,37 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TColumnFamilyDescriptor.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addColumnFamily_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteColumnFamily_args.class, metaDataMap); } - public addColumnFamily_args() { + public deleteColumnFamily_args() { } - public addColumnFamily_args( + public deleteColumnFamily_args( TTableName tableName, - TColumnFamilyDescriptor column) + java.nio.ByteBuffer column) { this(); this.tableName = tableName; - this.column = column; + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); } /** * Performs a deep copy on other. */ - public addColumnFamily_args(addColumnFamily_args other) { + public deleteColumnFamily_args(deleteColumnFamily_args other) { if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } if (other.isSetColumn()) { - this.column = new TColumnFamilyDescriptor(other.column); + this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); } } - public addColumnFamily_args deepCopy() { - return new addColumnFamily_args(this); + public deleteColumnFamily_args deepCopy() { + return new deleteColumnFamily_args(this); } @Override @@ -43618,7 +44628,7 @@ public void clear() { } /** - * the tablename to add column family to + * the tablename to delete column family from */ @org.apache.thrift.annotation.Nullable public TTableName getTableName() { @@ -43626,9 +44636,9 @@ public TTableName getTableName() { } /** - * the tablename to add column family to + * the tablename to delete column family from */ - public addColumnFamily_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public deleteColumnFamily_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -43649,18 +44659,27 @@ public void setTableNameIsSet(boolean value) { } /** - * column family descriptor of column family to be added + * name of column family to be deleted */ - @org.apache.thrift.annotation.Nullable - public TColumnFamilyDescriptor getColumn() { - return this.column; + public byte[] getColumn() { + setColumn(org.apache.thrift.TBaseHelper.rightSize(column)); + return column == null ? null : column.array(); + } + + public java.nio.ByteBuffer bufferForColumn() { + return org.apache.thrift.TBaseHelper.copyBinary(column); } /** - * column family descriptor of column family to be added + * name of column family to be deleted */ - public addColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) { - this.column = column; + public deleteColumnFamily_args setColumn(byte[] column) { + this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone()); + return this; + } + + public deleteColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { + this.column = org.apache.thrift.TBaseHelper.copyBinary(column); return this; } @@ -43693,7 +44712,11 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable if (value == null) { unsetColumn(); } else { - setColumn((TColumnFamilyDescriptor)value); + if (value instanceof byte[]) { + setColumn((byte[])value); + } else { + setColumn((java.nio.ByteBuffer)value); + } } break; @@ -43732,12 +44755,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof addColumnFamily_args) - return this.equals((addColumnFamily_args)that); + if (that instanceof deleteColumnFamily_args) + return this.equals((deleteColumnFamily_args)that); return false; } - public boolean equals(addColumnFamily_args that) { + public boolean equals(deleteColumnFamily_args that) { if (that == null) return false; if (this == that) @@ -43780,7 +44803,7 @@ public int hashCode() { } @Override - public int compareTo(addColumnFamily_args other) { + public int compareTo(deleteColumnFamily_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -43825,7 +44848,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("addColumnFamily_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_args("); boolean first = true; sb.append("tableName:"); @@ -43840,7 +44863,7 @@ public java.lang.String toString() { if (this.column == null) { sb.append("null"); } else { - sb.append(this.column); + org.apache.thrift.TBaseHelper.toString(this.column, sb); } first = false; sb.append(")"); @@ -43859,9 +44882,6 @@ public void validate() throws org.apache.thrift.TException { if (tableName != null) { tableName.validate(); } - if (column != null) { - column.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -43880,15 +44900,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class addColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public addColumnFamily_argsStandardScheme getScheme() { - return new addColumnFamily_argsStandardScheme(); + private static class deleteColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteColumnFamily_argsStandardScheme getScheme() { + return new deleteColumnFamily_argsStandardScheme(); } } - private static class addColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class deleteColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, addColumnFamily_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43908,9 +44928,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, addColumnFamily_arg } break; case 2: // COLUMN - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.column = new TColumnFamilyDescriptor(); - struct.column.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.column = iprot.readBinary(); struct.setColumnIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -43927,7 +44946,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, addColumnFamily_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, addColumnFamily_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -43938,7 +44957,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, addColumnFamily_ar } if (struct.column != null) { oprot.writeFieldBegin(COLUMN_FIELD_DESC); - struct.column.write(oprot); + oprot.writeBinary(struct.column); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -43947,29 +44966,28 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, addColumnFamily_ar } - private static class addColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public addColumnFamily_argsTupleScheme getScheme() { - return new addColumnFamily_argsTupleScheme(); + private static class deleteColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteColumnFamily_argsTupleScheme getScheme() { + return new deleteColumnFamily_argsTupleScheme(); } } - private static class addColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class deleteColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); - struct.column.write(oprot); + oprot.writeBinary(struct.column); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); - struct.column = new TColumnFamilyDescriptor(); - struct.column.read(iprot); + struct.column = iprot.readBinary(); struct.setColumnIsSet(true); } } @@ -43979,13 +44997,13 @@ private static S scheme(org.apache. } } - public static class addColumnFamily_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("addColumnFamily_result"); + public static class deleteColumnFamily_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("deleteColumnFamily_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new addColumnFamily_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new addColumnFamily_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteColumnFamily_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteColumnFamily_resultTupleSchemeFactory(); public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -44056,13 +45074,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addColumnFamily_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteColumnFamily_result.class, metaDataMap); } - public addColumnFamily_result() { + public deleteColumnFamily_result() { } - public addColumnFamily_result( + public deleteColumnFamily_result( TIOError io) { this(); @@ -44072,14 +45090,14 @@ public addColumnFamily_result( /** * Performs a deep copy on other. */ - public addColumnFamily_result(addColumnFamily_result other) { + public deleteColumnFamily_result(deleteColumnFamily_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public addColumnFamily_result deepCopy() { - return new addColumnFamily_result(this); + public deleteColumnFamily_result deepCopy() { + return new deleteColumnFamily_result(this); } @Override @@ -44092,7 +45110,7 @@ public TIOError getIo() { return this.io; } - public addColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public deleteColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -44152,12 +45170,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof addColumnFamily_result) - return this.equals((addColumnFamily_result)that); + if (that instanceof deleteColumnFamily_result) + return this.equals((deleteColumnFamily_result)that); return false; } - public boolean equals(addColumnFamily_result that) { + public boolean equals(deleteColumnFamily_result that) { if (that == null) return false; if (this == that) @@ -44187,7 +45205,7 @@ public int hashCode() { } @Override - public int compareTo(addColumnFamily_result other) { + public int compareTo(deleteColumnFamily_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -44222,7 +45240,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("addColumnFamily_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_result("); boolean first = true; sb.append("io:"); @@ -44257,15 +45275,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class addColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public addColumnFamily_resultStandardScheme getScheme() { - return new addColumnFamily_resultStandardScheme(); + private static class deleteColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteColumnFamily_resultStandardScheme getScheme() { + return new deleteColumnFamily_resultStandardScheme(); } } - private static class addColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class deleteColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, addColumnFamily_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44295,7 +45313,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, addColumnFamily_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, addColumnFamily_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteColumnFamily_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -44310,16 +45328,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, addColumnFamily_re } - private static class addColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public addColumnFamily_resultTupleScheme getScheme() { - return new addColumnFamily_resultTupleScheme(); + private static class deleteColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteColumnFamily_resultTupleScheme getScheme() { + return new deleteColumnFamily_resultTupleScheme(); } } - private static class addColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class deleteColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -44332,7 +45350,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, addColumnFamily_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -44348,32 +45366,32 @@ private static S scheme(org.apache. } } - public static class deleteColumnFamily_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("deleteColumnFamily_args"); + public static class modifyColumnFamily_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("modifyColumnFamily_args"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteColumnFamily_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteColumnFamily_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyColumnFamily_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyColumnFamily_argsTupleSchemeFactory(); /** - * the tablename to delete column family from + * the tablename to modify column family */ public @org.apache.thrift.annotation.Nullable TTableName tableName; // required /** - * name of column family to be deleted + * column family descriptor of column family to be modified */ - public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column; // required + public @org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column; // 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 { /** - * the tablename to delete column family from + * the tablename to modify column family */ TABLE_NAME((short)1, "tableName"), /** - * name of column family to be deleted + * column family descriptor of column family to be modified */ COLUMN((short)2, "column"); @@ -44442,37 +45460,37 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TColumnFamilyDescriptor.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteColumnFamily_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyColumnFamily_args.class, metaDataMap); } - public deleteColumnFamily_args() { + public modifyColumnFamily_args() { } - public deleteColumnFamily_args( + public modifyColumnFamily_args( TTableName tableName, - java.nio.ByteBuffer column) + TColumnFamilyDescriptor column) { this(); this.tableName = tableName; - this.column = org.apache.thrift.TBaseHelper.copyBinary(column); + this.column = column; } /** * Performs a deep copy on other. */ - public deleteColumnFamily_args(deleteColumnFamily_args other) { + public modifyColumnFamily_args(modifyColumnFamily_args other) { if (other.isSetTableName()) { this.tableName = new TTableName(other.tableName); } if (other.isSetColumn()) { - this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); + this.column = new TColumnFamilyDescriptor(other.column); } } - public deleteColumnFamily_args deepCopy() { - return new deleteColumnFamily_args(this); + public modifyColumnFamily_args deepCopy() { + return new modifyColumnFamily_args(this); } @Override @@ -44482,7 +45500,7 @@ public void clear() { } /** - * the tablename to delete column family from + * the tablename to modify column family */ @org.apache.thrift.annotation.Nullable public TTableName getTableName() { @@ -44490,9 +45508,9 @@ public TTableName getTableName() { } /** - * the tablename to delete column family from + * the tablename to modify column family */ - public deleteColumnFamily_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { + public modifyColumnFamily_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { this.tableName = tableName; return this; } @@ -44513,27 +45531,18 @@ public void setTableNameIsSet(boolean value) { } /** - * name of column family to be deleted + * column family descriptor of column family to be modified */ - public byte[] getColumn() { - setColumn(org.apache.thrift.TBaseHelper.rightSize(column)); - return column == null ? null : column.array(); - } - - public java.nio.ByteBuffer bufferForColumn() { - return org.apache.thrift.TBaseHelper.copyBinary(column); + @org.apache.thrift.annotation.Nullable + public TColumnFamilyDescriptor getColumn() { + return this.column; } /** - * name of column family to be deleted + * column family descriptor of column family to be modified */ - public deleteColumnFamily_args setColumn(byte[] column) { - this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone()); - return this; - } - - public deleteColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) { - this.column = org.apache.thrift.TBaseHelper.copyBinary(column); + public modifyColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) { + this.column = column; return this; } @@ -44566,11 +45575,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable if (value == null) { unsetColumn(); } else { - if (value instanceof byte[]) { - setColumn((byte[])value); - } else { - setColumn((java.nio.ByteBuffer)value); - } + setColumn((TColumnFamilyDescriptor)value); } break; @@ -44609,12 +45614,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof deleteColumnFamily_args) - return this.equals((deleteColumnFamily_args)that); + if (that instanceof modifyColumnFamily_args) + return this.equals((modifyColumnFamily_args)that); return false; } - public boolean equals(deleteColumnFamily_args that) { + public boolean equals(modifyColumnFamily_args that) { if (that == null) return false; if (this == that) @@ -44657,7 +45662,7 @@ public int hashCode() { } @Override - public int compareTo(deleteColumnFamily_args other) { + public int compareTo(modifyColumnFamily_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -44702,7 +45707,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_args("); boolean first = true; sb.append("tableName:"); @@ -44717,7 +45722,7 @@ public java.lang.String toString() { if (this.column == null) { sb.append("null"); } else { - org.apache.thrift.TBaseHelper.toString(this.column, sb); + sb.append(this.column); } first = false; sb.append(")"); @@ -44736,6 +45741,9 @@ public void validate() throws org.apache.thrift.TException { if (tableName != null) { tableName.validate(); } + if (column != null) { + column.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -44754,15 +45762,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class deleteColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteColumnFamily_argsStandardScheme getScheme() { - return new deleteColumnFamily_argsStandardScheme(); + private static class modifyColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyColumnFamily_argsStandardScheme getScheme() { + return new modifyColumnFamily_argsStandardScheme(); } } - private static class deleteColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class modifyColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44782,8 +45790,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, deleteColumnFamily_ } break; case 2: // COLUMN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.column = iprot.readBinary(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.column = new TColumnFamilyDescriptor(); + struct.column.read(iprot); struct.setColumnIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -44800,7 +45809,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, deleteColumnFamily_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -44811,7 +45820,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, deleteColumnFamily } if (struct.column != null) { oprot.writeFieldBegin(COLUMN_FIELD_DESC); - oprot.writeBinary(struct.column); + struct.column.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -44820,28 +45829,29 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, deleteColumnFamily } - private static class deleteColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteColumnFamily_argsTupleScheme getScheme() { - return new deleteColumnFamily_argsTupleScheme(); + private static class modifyColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyColumnFamily_argsTupleScheme getScheme() { + return new modifyColumnFamily_argsTupleScheme(); } } - private static class deleteColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class modifyColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName.write(oprot); - oprot.writeBinary(struct.column); + struct.column.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.tableName = new TTableName(); struct.tableName.read(iprot); struct.setTableNameIsSet(true); - struct.column = iprot.readBinary(); + struct.column = new TColumnFamilyDescriptor(); + struct.column.read(iprot); struct.setColumnIsSet(true); } } @@ -44851,13 +45861,13 @@ private static S scheme(org.apache. } } - public static class deleteColumnFamily_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("deleteColumnFamily_result"); + public static class modifyColumnFamily_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("modifyColumnFamily_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteColumnFamily_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteColumnFamily_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyColumnFamily_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyColumnFamily_resultTupleSchemeFactory(); public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -44928,13 +45938,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteColumnFamily_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyColumnFamily_result.class, metaDataMap); } - public deleteColumnFamily_result() { + public modifyColumnFamily_result() { } - public deleteColumnFamily_result( + public modifyColumnFamily_result( TIOError io) { this(); @@ -44944,14 +45954,14 @@ public deleteColumnFamily_result( /** * Performs a deep copy on other. */ - public deleteColumnFamily_result(deleteColumnFamily_result other) { + public modifyColumnFamily_result(modifyColumnFamily_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public deleteColumnFamily_result deepCopy() { - return new deleteColumnFamily_result(this); + public modifyColumnFamily_result deepCopy() { + return new modifyColumnFamily_result(this); } @Override @@ -44964,7 +45974,7 @@ public TIOError getIo() { return this.io; } - public deleteColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public modifyColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -45024,12 +46034,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof deleteColumnFamily_result) - return this.equals((deleteColumnFamily_result)that); + if (that instanceof modifyColumnFamily_result) + return this.equals((modifyColumnFamily_result)that); return false; } - public boolean equals(deleteColumnFamily_result that) { + public boolean equals(modifyColumnFamily_result that) { if (that == null) return false; if (this == that) @@ -45059,7 +46069,7 @@ public int hashCode() { } @Override - public int compareTo(deleteColumnFamily_result other) { + public int compareTo(modifyColumnFamily_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -45094,7 +46104,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_result("); boolean first = true; sb.append("io:"); @@ -45129,15 +46139,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class deleteColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteColumnFamily_resultStandardScheme getScheme() { - return new deleteColumnFamily_resultStandardScheme(); + private static class modifyColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyColumnFamily_resultStandardScheme getScheme() { + return new modifyColumnFamily_resultStandardScheme(); } } - private static class deleteColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class modifyColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteColumnFamily_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, modifyColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -45167,7 +46177,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, deleteColumnFamily_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteColumnFamily_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, modifyColumnFamily_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -45182,16 +46192,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, deleteColumnFamily } - private static class deleteColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteColumnFamily_resultTupleScheme getScheme() { - return new deleteColumnFamily_resultTupleScheme(); + private static class modifyColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyColumnFamily_resultTupleScheme getScheme() { + return new modifyColumnFamily_resultTupleScheme(); } } - private static class deleteColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class modifyColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -45204,7 +46214,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteColumnFamily_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -45220,34 +46230,25 @@ private static S scheme(org.apache. } } - public static class modifyColumnFamily_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("modifyColumnFamily_args"); + public static class modifyTable_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("modifyTable_args"); - private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyColumnFamily_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyColumnFamily_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyTable_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyTable_argsTupleSchemeFactory(); /** - * the tablename to modify column family - */ - public @org.apache.thrift.annotation.Nullable TTableName tableName; // required - /** - * column family descriptor of column family to be modified + * the descriptor of the table to modify */ - public @org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column; // required + public @org.apache.thrift.annotation.Nullable TTableDescriptor desc; // 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 { /** - * the tablename to modify column family - */ - TABLE_NAME((short)1, "tableName"), - /** - * column family descriptor of column family to be modified + * the descriptor of the table to modify */ - COLUMN((short)2, "column"); + DESC((short)1, "desc"); private static final java.util.Map byName = new java.util.HashMap(); @@ -45263,10 +46264,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TABLE_NAME - return TABLE_NAME; - case 2: // COLUMN - return COLUMN; + case 1: // DESC + return DESC; default: return null; } @@ -45311,125 +46310,78 @@ public java.lang.String getFieldName() { public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableName.class))); - tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TColumnFamilyDescriptor.class))); + tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableDescriptor.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyColumnFamily_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyTable_args.class, metaDataMap); } - public modifyColumnFamily_args() { + public modifyTable_args() { } - public modifyColumnFamily_args( - TTableName tableName, - TColumnFamilyDescriptor column) + public modifyTable_args( + TTableDescriptor desc) { this(); - this.tableName = tableName; - this.column = column; + this.desc = desc; } /** * Performs a deep copy on other. */ - public modifyColumnFamily_args(modifyColumnFamily_args other) { - if (other.isSetTableName()) { - this.tableName = new TTableName(other.tableName); - } - if (other.isSetColumn()) { - this.column = new TColumnFamilyDescriptor(other.column); + public modifyTable_args(modifyTable_args other) { + if (other.isSetDesc()) { + this.desc = new TTableDescriptor(other.desc); } } - public modifyColumnFamily_args deepCopy() { - return new modifyColumnFamily_args(this); + public modifyTable_args deepCopy() { + return new modifyTable_args(this); } @Override public void clear() { - this.tableName = null; - this.column = null; - } - - /** - * the tablename to modify column family - */ - @org.apache.thrift.annotation.Nullable - public TTableName getTableName() { - return this.tableName; - } - - /** - * the tablename to modify column family - */ - public modifyColumnFamily_args setTableName(@org.apache.thrift.annotation.Nullable TTableName tableName) { - this.tableName = tableName; - return this; - } - - public void unsetTableName() { - this.tableName = null; - } - - /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ - public boolean isSetTableName() { - return this.tableName != null; - } - - public void setTableNameIsSet(boolean value) { - if (!value) { - this.tableName = null; - } + this.desc = null; } /** - * column family descriptor of column family to be modified + * the descriptor of the table to modify */ @org.apache.thrift.annotation.Nullable - public TColumnFamilyDescriptor getColumn() { - return this.column; + public TTableDescriptor getDesc() { + return this.desc; } /** - * column family descriptor of column family to be modified + * the descriptor of the table to modify */ - public modifyColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) { - this.column = column; + public modifyTable_args setDesc(@org.apache.thrift.annotation.Nullable TTableDescriptor desc) { + this.desc = desc; return this; } - public void unsetColumn() { - this.column = null; + public void unsetDesc() { + this.desc = null; } - /** Returns true if field column is set (has been assigned a value) and false otherwise */ - public boolean isSetColumn() { - return this.column != null; + /** Returns true if field desc is set (has been assigned a value) and false otherwise */ + public boolean isSetDesc() { + return this.desc != null; } - public void setColumnIsSet(boolean value) { + public void setDescIsSet(boolean value) { if (!value) { - this.column = null; + this.desc = null; } } public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case TABLE_NAME: - if (value == null) { - unsetTableName(); - } else { - setTableName((TTableName)value); - } - break; - - case COLUMN: + case DESC: if (value == null) { - unsetColumn(); + unsetDesc(); } else { - setColumn((TColumnFamilyDescriptor)value); + setDesc((TTableDescriptor)value); } break; @@ -45439,11 +46391,8 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case TABLE_NAME: - return getTableName(); - - case COLUMN: - return getColumn(); + case DESC: + return getDesc(); } throw new java.lang.IllegalStateException(); @@ -45456,10 +46405,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case TABLE_NAME: - return isSetTableName(); - case COLUMN: - return isSetColumn(); + case DESC: + return isSetDesc(); } throw new java.lang.IllegalStateException(); } @@ -45468,32 +46415,23 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof modifyColumnFamily_args) - return this.equals((modifyColumnFamily_args)that); + if (that instanceof modifyTable_args) + return this.equals((modifyTable_args)that); return false; } - public boolean equals(modifyColumnFamily_args that) { + public boolean equals(modifyTable_args that) { if (that == null) return false; if (this == that) return true; - boolean this_present_tableName = true && this.isSetTableName(); - boolean that_present_tableName = true && that.isSetTableName(); - if (this_present_tableName || that_present_tableName) { - if (!(this_present_tableName && that_present_tableName)) - return false; - if (!this.tableName.equals(that.tableName)) - return false; - } - - boolean this_present_column = true && this.isSetColumn(); - boolean that_present_column = true && that.isSetColumn(); - if (this_present_column || that_present_column) { - if (!(this_present_column && that_present_column)) + boolean this_present_desc = true && this.isSetDesc(); + boolean that_present_desc = true && that.isSetDesc(); + if (this_present_desc || that_present_desc) { + if (!(this_present_desc && that_present_desc)) return false; - if (!this.column.equals(that.column)) + if (!this.desc.equals(that.desc)) return false; } @@ -45504,41 +46442,27 @@ public boolean equals(modifyColumnFamily_args that) { public int hashCode() { int hashCode = 1; - hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); - if (isSetTableName()) - hashCode = hashCode * 8191 + tableName.hashCode(); - - hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); - if (isSetColumn()) - hashCode = hashCode * 8191 + column.hashCode(); + hashCode = hashCode * 8191 + ((isSetDesc()) ? 131071 : 524287); + if (isSetDesc()) + hashCode = hashCode * 8191 + desc.hashCode(); return hashCode; } @Override - public int compareTo(modifyColumnFamily_args other) { + public int compareTo(modifyTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = java.lang.Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); + lastComparison = java.lang.Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); if (lastComparison != 0) { return lastComparison; } - if (isSetColumn()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); + if (isSetDesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); if (lastComparison != 0) { return lastComparison; } @@ -45561,22 +46485,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyTable_args("); boolean first = true; - sb.append("tableName:"); - if (this.tableName == null) { - sb.append("null"); - } else { - sb.append(this.tableName); - } - first = false; - if (!first) sb.append(", "); - sb.append("column:"); - if (this.column == null) { + sb.append("desc:"); + if (this.desc == null) { sb.append("null"); } else { - sb.append(this.column); + sb.append(this.desc); } first = false; sb.append(")"); @@ -45585,18 +46501,12 @@ public java.lang.String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields - if (tableName == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableName' was not present! Struct: " + toString()); - } - if (column == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'column' was not present! Struct: " + toString()); + if (desc == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'desc' was not present! Struct: " + toString()); } // check for sub-struct validity - if (tableName != null) { - tableName.validate(); - } - if (column != null) { - column.validate(); + if (desc != null) { + desc.validate(); } } @@ -45616,15 +46526,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class modifyColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyColumnFamily_argsStandardScheme getScheme() { - return new modifyColumnFamily_argsStandardScheme(); + private static class modifyTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyTable_argsStandardScheme getScheme() { + return new modifyTable_argsStandardScheme(); } } - private static class modifyColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class modifyTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -45634,20 +46544,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, modifyColumnFamily_ break; } switch (schemeField.id) { - case 1: // TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tableName = new TTableName(); - struct.tableName.read(iprot); - struct.setTableNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // COLUMN + case 1: // DESC if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.column = new TColumnFamilyDescriptor(); - struct.column.read(iprot); - struct.setColumnIsSet(true); + struct.desc = new TTableDescriptor(); + struct.desc.read(iprot); + struct.setDescIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -45663,18 +46564,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, modifyColumnFamily_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, modifyTable_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.tableName != null) { - oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); - struct.tableName.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.column != null) { - oprot.writeFieldBegin(COLUMN_FIELD_DESC); - struct.column.write(oprot); + if (struct.desc != null) { + oprot.writeFieldBegin(DESC_FIELD_DESC); + struct.desc.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -45683,30 +46579,26 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, modifyColumnFamily } - private static class modifyColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyColumnFamily_argsTupleScheme getScheme() { - return new modifyColumnFamily_argsTupleScheme(); + private static class modifyTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyTable_argsTupleScheme getScheme() { + return new modifyTable_argsTupleScheme(); } } - private static class modifyColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class modifyTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, modifyTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - struct.tableName.write(oprot); - struct.column.write(oprot); + struct.desc.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, modifyTable_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - struct.tableName = new TTableName(); - struct.tableName.read(iprot); - struct.setTableNameIsSet(true); - struct.column = new TColumnFamilyDescriptor(); - struct.column.read(iprot); - struct.setColumnIsSet(true); + struct.desc = new TTableDescriptor(); + struct.desc.read(iprot); + struct.setDescIsSet(true); } } @@ -45715,13 +46607,13 @@ private static S scheme(org.apache. } } - public static class modifyColumnFamily_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("modifyColumnFamily_result"); + public static class modifyTable_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("modifyTable_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyColumnFamily_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyColumnFamily_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyTable_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyTable_resultTupleSchemeFactory(); public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -45792,13 +46684,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyColumnFamily_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyTable_result.class, metaDataMap); } - public modifyColumnFamily_result() { + public modifyTable_result() { } - public modifyColumnFamily_result( + public modifyTable_result( TIOError io) { this(); @@ -45808,14 +46700,14 @@ public modifyColumnFamily_result( /** * Performs a deep copy on other. */ - public modifyColumnFamily_result(modifyColumnFamily_result other) { + public modifyTable_result(modifyTable_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public modifyColumnFamily_result deepCopy() { - return new modifyColumnFamily_result(this); + public modifyTable_result deepCopy() { + return new modifyTable_result(this); } @Override @@ -45828,7 +46720,7 @@ public TIOError getIo() { return this.io; } - public modifyColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public modifyTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -45888,12 +46780,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof modifyColumnFamily_result) - return this.equals((modifyColumnFamily_result)that); + if (that instanceof modifyTable_result) + return this.equals((modifyTable_result)that); return false; } - public boolean equals(modifyColumnFamily_result that) { + public boolean equals(modifyTable_result that) { if (that == null) return false; if (this == that) @@ -45923,7 +46815,7 @@ public int hashCode() { } @Override - public int compareTo(modifyColumnFamily_result other) { + public int compareTo(modifyTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -45958,7 +46850,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyTable_result("); boolean first = true; sb.append("io:"); @@ -45993,15 +46885,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class modifyColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyColumnFamily_resultStandardScheme getScheme() { - return new modifyColumnFamily_resultStandardScheme(); + private static class modifyTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyTable_resultStandardScheme getScheme() { + return new modifyTable_resultStandardScheme(); } } - private static class modifyColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class modifyTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, modifyColumnFamily_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46031,7 +46923,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, modifyColumnFamily_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, modifyColumnFamily_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, modifyTable_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -46046,16 +46938,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, modifyColumnFamily } - private static class modifyColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyColumnFamily_resultTupleScheme getScheme() { - return new modifyColumnFamily_resultTupleScheme(); + private static class modifyTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyTable_resultTupleScheme getScheme() { + return new modifyTable_resultTupleScheme(); } } - private static class modifyColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class modifyTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, modifyTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -46068,7 +46960,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, modifyColumnFamily_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, modifyTable_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -46084,25 +46976,25 @@ private static S scheme(org.apache. } } - public static class modifyTable_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("modifyTable_args"); + public static class createNamespace_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("createNamespace_args"); - private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NAMESPACE_DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("namespaceDesc", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyTable_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyTable_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createNamespace_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createNamespace_argsTupleSchemeFactory(); /** - * the descriptor of the table to modify + * descriptor which describes the new namespace */ - public @org.apache.thrift.annotation.Nullable TTableDescriptor desc; // required + public @org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc; // 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 { /** - * the descriptor of the table to modify + * descriptor which describes the new namespace */ - DESC((short)1, "desc"); + NAMESPACE_DESC((short)1, "namespaceDesc"); private static final java.util.Map byName = new java.util.HashMap(); @@ -46118,8 +47010,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DESC - return DESC; + case 1: // NAMESPACE_DESC + return NAMESPACE_DESC; default: return null; } @@ -46164,78 +47056,78 @@ public java.lang.String getFieldName() { public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTableDescriptor.class))); + tmpMap.put(_Fields.NAMESPACE_DESC, new org.apache.thrift.meta_data.FieldMetaData("namespaceDesc", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNamespaceDescriptor.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyTable_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createNamespace_args.class, metaDataMap); } - public modifyTable_args() { + public createNamespace_args() { } - public modifyTable_args( - TTableDescriptor desc) + public createNamespace_args( + TNamespaceDescriptor namespaceDesc) { this(); - this.desc = desc; + this.namespaceDesc = namespaceDesc; } /** * Performs a deep copy on other. */ - public modifyTable_args(modifyTable_args other) { - if (other.isSetDesc()) { - this.desc = new TTableDescriptor(other.desc); + public createNamespace_args(createNamespace_args other) { + if (other.isSetNamespaceDesc()) { + this.namespaceDesc = new TNamespaceDescriptor(other.namespaceDesc); } } - public modifyTable_args deepCopy() { - return new modifyTable_args(this); + public createNamespace_args deepCopy() { + return new createNamespace_args(this); } @Override public void clear() { - this.desc = null; + this.namespaceDesc = null; } /** - * the descriptor of the table to modify + * descriptor which describes the new namespace */ @org.apache.thrift.annotation.Nullable - public TTableDescriptor getDesc() { - return this.desc; + public TNamespaceDescriptor getNamespaceDesc() { + return this.namespaceDesc; } /** - * the descriptor of the table to modify + * descriptor which describes the new namespace */ - public modifyTable_args setDesc(@org.apache.thrift.annotation.Nullable TTableDescriptor desc) { - this.desc = desc; + public createNamespace_args setNamespaceDesc(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc) { + this.namespaceDesc = namespaceDesc; return this; } - public void unsetDesc() { - this.desc = null; + public void unsetNamespaceDesc() { + this.namespaceDesc = null; } - /** Returns true if field desc is set (has been assigned a value) and false otherwise */ - public boolean isSetDesc() { - return this.desc != null; + /** Returns true if field namespaceDesc is set (has been assigned a value) and false otherwise */ + public boolean isSetNamespaceDesc() { + return this.namespaceDesc != null; } - public void setDescIsSet(boolean value) { + public void setNamespaceDescIsSet(boolean value) { if (!value) { - this.desc = null; + this.namespaceDesc = null; } } public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case DESC: + case NAMESPACE_DESC: if (value == null) { - unsetDesc(); + unsetNamespaceDesc(); } else { - setDesc((TTableDescriptor)value); + setNamespaceDesc((TNamespaceDescriptor)value); } break; @@ -46245,8 +47137,8 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case DESC: - return getDesc(); + case NAMESPACE_DESC: + return getNamespaceDesc(); } throw new java.lang.IllegalStateException(); @@ -46259,8 +47151,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DESC: - return isSetDesc(); + case NAMESPACE_DESC: + return isSetNamespaceDesc(); } throw new java.lang.IllegalStateException(); } @@ -46269,23 +47161,23 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof modifyTable_args) - return this.equals((modifyTable_args)that); + if (that instanceof createNamespace_args) + return this.equals((createNamespace_args)that); return false; } - public boolean equals(modifyTable_args that) { + public boolean equals(createNamespace_args that) { if (that == null) return false; if (this == that) return true; - boolean this_present_desc = true && this.isSetDesc(); - boolean that_present_desc = true && that.isSetDesc(); - if (this_present_desc || that_present_desc) { - if (!(this_present_desc && that_present_desc)) + boolean this_present_namespaceDesc = true && this.isSetNamespaceDesc(); + boolean that_present_namespaceDesc = true && that.isSetNamespaceDesc(); + if (this_present_namespaceDesc || that_present_namespaceDesc) { + if (!(this_present_namespaceDesc && that_present_namespaceDesc)) return false; - if (!this.desc.equals(that.desc)) + if (!this.namespaceDesc.equals(that.namespaceDesc)) return false; } @@ -46296,27 +47188,27 @@ public boolean equals(modifyTable_args that) { public int hashCode() { int hashCode = 1; - hashCode = hashCode * 8191 + ((isSetDesc()) ? 131071 : 524287); - if (isSetDesc()) - hashCode = hashCode * 8191 + desc.hashCode(); + hashCode = hashCode * 8191 + ((isSetNamespaceDesc()) ? 131071 : 524287); + if (isSetNamespaceDesc()) + hashCode = hashCode * 8191 + namespaceDesc.hashCode(); return hashCode; } @Override - public int compareTo(modifyTable_args other) { + public int compareTo(createNamespace_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = java.lang.Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); + lastComparison = java.lang.Boolean.valueOf(isSetNamespaceDesc()).compareTo(other.isSetNamespaceDesc()); if (lastComparison != 0) { return lastComparison; } - if (isSetDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); + if (isSetNamespaceDesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.namespaceDesc, other.namespaceDesc); if (lastComparison != 0) { return lastComparison; } @@ -46339,14 +47231,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyTable_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("createNamespace_args("); boolean first = true; - sb.append("desc:"); - if (this.desc == null) { + sb.append("namespaceDesc:"); + if (this.namespaceDesc == null) { sb.append("null"); } else { - sb.append(this.desc); + sb.append(this.namespaceDesc); } first = false; sb.append(")"); @@ -46355,12 +47247,12 @@ public java.lang.String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields - if (desc == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'desc' was not present! Struct: " + toString()); + if (namespaceDesc == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'namespaceDesc' was not present! Struct: " + toString()); } // check for sub-struct validity - if (desc != null) { - desc.validate(); + if (namespaceDesc != null) { + namespaceDesc.validate(); } } @@ -46380,15 +47272,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class modifyTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyTable_argsStandardScheme getScheme() { - return new modifyTable_argsStandardScheme(); + private static class createNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public createNamespace_argsStandardScheme getScheme() { + return new createNamespace_argsStandardScheme(); } } - private static class modifyTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class createNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46398,11 +47290,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTable_args st break; } switch (schemeField.id) { - case 1: // DESC + case 1: // NAMESPACE_DESC if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.desc = new TTableDescriptor(); - struct.desc.read(iprot); - struct.setDescIsSet(true); + struct.namespaceDesc = new TNamespaceDescriptor(); + struct.namespaceDesc.read(iprot); + struct.setNamespaceDescIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -46418,13 +47310,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTable_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, modifyTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createNamespace_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.desc != null) { - oprot.writeFieldBegin(DESC_FIELD_DESC); - struct.desc.write(oprot); + if (struct.namespaceDesc != null) { + oprot.writeFieldBegin(NAMESPACE_DESC_FIELD_DESC); + struct.namespaceDesc.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -46433,26 +47325,26 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, modifyTable_args s } - private static class modifyTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyTable_argsTupleScheme getScheme() { - return new modifyTable_argsTupleScheme(); + private static class createNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public createNamespace_argsTupleScheme getScheme() { + return new createNamespace_argsTupleScheme(); } } - private static class modifyTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class createNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, modifyTable_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - struct.desc.write(oprot); + struct.namespaceDesc.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, modifyTable_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - struct.desc = new TTableDescriptor(); - struct.desc.read(iprot); - struct.setDescIsSet(true); + struct.namespaceDesc = new TNamespaceDescriptor(); + struct.namespaceDesc.read(iprot); + struct.setNamespaceDescIsSet(true); } } @@ -46461,13 +47353,13 @@ private static S scheme(org.apache. } } - public static class modifyTable_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("modifyTable_result"); + public static class createNamespace_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("createNamespace_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyTable_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyTable_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createNamespace_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createNamespace_resultTupleSchemeFactory(); public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -46538,13 +47430,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyTable_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createNamespace_result.class, metaDataMap); } - public modifyTable_result() { + public createNamespace_result() { } - public modifyTable_result( + public createNamespace_result( TIOError io) { this(); @@ -46554,14 +47446,14 @@ public modifyTable_result( /** * Performs a deep copy on other. */ - public modifyTable_result(modifyTable_result other) { + public createNamespace_result(createNamespace_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public modifyTable_result deepCopy() { - return new modifyTable_result(this); + public createNamespace_result deepCopy() { + return new createNamespace_result(this); } @Override @@ -46574,7 +47466,7 @@ public TIOError getIo() { return this.io; } - public modifyTable_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public createNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -46634,12 +47526,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof modifyTable_result) - return this.equals((modifyTable_result)that); + if (that instanceof createNamespace_result) + return this.equals((createNamespace_result)that); return false; } - public boolean equals(modifyTable_result that) { + public boolean equals(createNamespace_result that) { if (that == null) return false; if (this == that) @@ -46669,7 +47561,7 @@ public int hashCode() { } @Override - public int compareTo(modifyTable_result other) { + public int compareTo(createNamespace_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -46704,7 +47596,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyTable_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("createNamespace_result("); boolean first = true; sb.append("io:"); @@ -46739,15 +47631,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class modifyTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyTable_resultStandardScheme getScheme() { - return new modifyTable_resultStandardScheme(); + private static class createNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public createNamespace_resultStandardScheme getScheme() { + return new createNamespace_resultStandardScheme(); } } - private static class modifyTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class createNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46777,7 +47669,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, modifyTable_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, modifyTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createNamespace_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -46792,16 +47684,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, modifyTable_result } - private static class modifyTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyTable_resultTupleScheme getScheme() { - return new modifyTable_resultTupleScheme(); + private static class createNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public createNamespace_resultTupleScheme getScheme() { + return new createNamespace_resultTupleScheme(); } } - private static class modifyTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class createNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, modifyTable_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -46814,7 +47706,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifyTable_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, modifyTable_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -46830,13 +47722,13 @@ private static S scheme(org.apache. } } - public static class createNamespace_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("createNamespace_args"); + public static class modifyNamespace_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("modifyNamespace_args"); private static final org.apache.thrift.protocol.TField NAMESPACE_DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("namespaceDesc", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createNamespace_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createNamespace_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyNamespace_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyNamespace_argsTupleSchemeFactory(); /** * descriptor which describes the new namespace @@ -46913,13 +47805,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.NAMESPACE_DESC, new org.apache.thrift.meta_data.FieldMetaData("namespaceDesc", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNamespaceDescriptor.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createNamespace_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyNamespace_args.class, metaDataMap); } - public createNamespace_args() { + public modifyNamespace_args() { } - public createNamespace_args( + public modifyNamespace_args( TNamespaceDescriptor namespaceDesc) { this(); @@ -46929,14 +47821,14 @@ public createNamespace_args( /** * Performs a deep copy on other. */ - public createNamespace_args(createNamespace_args other) { + public modifyNamespace_args(modifyNamespace_args other) { if (other.isSetNamespaceDesc()) { this.namespaceDesc = new TNamespaceDescriptor(other.namespaceDesc); } } - public createNamespace_args deepCopy() { - return new createNamespace_args(this); + public modifyNamespace_args deepCopy() { + return new modifyNamespace_args(this); } @Override @@ -46955,7 +47847,7 @@ public TNamespaceDescriptor getNamespaceDesc() { /** * descriptor which describes the new namespace */ - public createNamespace_args setNamespaceDesc(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc) { + public modifyNamespace_args setNamespaceDesc(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc) { this.namespaceDesc = namespaceDesc; return this; } @@ -47015,12 +47907,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof createNamespace_args) - return this.equals((createNamespace_args)that); + if (that instanceof modifyNamespace_args) + return this.equals((modifyNamespace_args)that); return false; } - public boolean equals(createNamespace_args that) { + public boolean equals(modifyNamespace_args that) { if (that == null) return false; if (this == that) @@ -47050,7 +47942,7 @@ public int hashCode() { } @Override - public int compareTo(createNamespace_args other) { + public int compareTo(modifyNamespace_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -47085,7 +47977,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("createNamespace_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyNamespace_args("); boolean first = true; sb.append("namespaceDesc:"); @@ -47126,15 +48018,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class createNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public createNamespace_argsStandardScheme getScheme() { - return new createNamespace_argsStandardScheme(); + private static class modifyNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyNamespace_argsStandardScheme getScheme() { + return new modifyNamespace_argsStandardScheme(); } } - private static class createNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class modifyNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createNamespace_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47164,7 +48056,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, createNamespace_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createNamespace_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, modifyNamespace_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47179,22 +48071,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, createNamespace_ar } - private static class createNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public createNamespace_argsTupleScheme getScheme() { - return new createNamespace_argsTupleScheme(); + private static class modifyNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyNamespace_argsTupleScheme getScheme() { + return new modifyNamespace_argsTupleScheme(); } } - private static class createNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class modifyNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createNamespace_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.namespaceDesc.write(oprot); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createNamespace_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.namespaceDesc = new TNamespaceDescriptor(); struct.namespaceDesc.read(iprot); @@ -47207,13 +48099,13 @@ private static S scheme(org.apache. } } - public static class createNamespace_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("createNamespace_result"); + public static class modifyNamespace_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("modifyNamespace_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createNamespace_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createNamespace_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyNamespace_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyNamespace_resultTupleSchemeFactory(); public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -47284,13 +48176,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createNamespace_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyNamespace_result.class, metaDataMap); } - public createNamespace_result() { + public modifyNamespace_result() { } - public createNamespace_result( + public modifyNamespace_result( TIOError io) { this(); @@ -47300,14 +48192,14 @@ public createNamespace_result( /** * Performs a deep copy on other. */ - public createNamespace_result(createNamespace_result other) { + public modifyNamespace_result(modifyNamespace_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public createNamespace_result deepCopy() { - return new createNamespace_result(this); + public modifyNamespace_result deepCopy() { + return new modifyNamespace_result(this); } @Override @@ -47320,7 +48212,7 @@ public TIOError getIo() { return this.io; } - public createNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public modifyNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -47380,12 +48272,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof createNamespace_result) - return this.equals((createNamespace_result)that); + if (that instanceof modifyNamespace_result) + return this.equals((modifyNamespace_result)that); return false; } - public boolean equals(createNamespace_result that) { + public boolean equals(modifyNamespace_result that) { if (that == null) return false; if (this == that) @@ -47415,7 +48307,7 @@ public int hashCode() { } @Override - public int compareTo(createNamespace_result other) { + public int compareTo(modifyNamespace_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -47450,7 +48342,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("createNamespace_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyNamespace_result("); boolean first = true; sb.append("io:"); @@ -47485,15 +48377,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class createNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public createNamespace_resultStandardScheme getScheme() { - return new createNamespace_resultStandardScheme(); + private static class modifyNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyNamespace_resultStandardScheme getScheme() { + return new modifyNamespace_resultStandardScheme(); } } - private static class createNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class modifyNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createNamespace_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47523,7 +48415,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, createNamespace_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createNamespace_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, modifyNamespace_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47538,16 +48430,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, createNamespace_re } - private static class createNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public createNamespace_resultTupleScheme getScheme() { - return new createNamespace_resultTupleScheme(); + private static class modifyNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public modifyNamespace_resultTupleScheme getScheme() { + return new modifyNamespace_resultTupleScheme(); } } - private static class createNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class modifyNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createNamespace_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -47560,7 +48452,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, createNamespace_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createNamespace_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -47576,25 +48468,25 @@ private static S scheme(org.apache. } } - public static class modifyNamespace_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("modifyNamespace_args"); + public static class deleteNamespace_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("deleteNamespace_args"); - private static final org.apache.thrift.protocol.TField NAMESPACE_DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("namespaceDesc", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyNamespace_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyNamespace_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteNamespace_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteNamespace_argsTupleSchemeFactory(); /** - * descriptor which describes the new namespace + * namespace name */ - public @org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc; // required + public @org.apache.thrift.annotation.Nullable java.lang.String 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 { /** - * descriptor which describes the new namespace + * namespace name */ - NAMESPACE_DESC((short)1, "namespaceDesc"); + NAME((short)1, "name"); private static final java.util.Map byName = new java.util.HashMap(); @@ -47610,8 +48502,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NAMESPACE_DESC - return NAMESPACE_DESC; + case 1: // NAME + return NAME; default: return null; } @@ -47656,78 +48548,78 @@ public java.lang.String getFieldName() { public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAMESPACE_DESC, new org.apache.thrift.meta_data.FieldMetaData("namespaceDesc", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNamespaceDescriptor.class))); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyNamespace_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteNamespace_args.class, metaDataMap); } - public modifyNamespace_args() { + public deleteNamespace_args() { } - public modifyNamespace_args( - TNamespaceDescriptor namespaceDesc) + public deleteNamespace_args( + java.lang.String name) { this(); - this.namespaceDesc = namespaceDesc; + this.name = name; } /** * Performs a deep copy on other. */ - public modifyNamespace_args(modifyNamespace_args other) { - if (other.isSetNamespaceDesc()) { - this.namespaceDesc = new TNamespaceDescriptor(other.namespaceDesc); + public deleteNamespace_args(deleteNamespace_args other) { + if (other.isSetName()) { + this.name = other.name; } } - public modifyNamespace_args deepCopy() { - return new modifyNamespace_args(this); + public deleteNamespace_args deepCopy() { + return new deleteNamespace_args(this); } @Override public void clear() { - this.namespaceDesc = null; + this.name = null; } /** - * descriptor which describes the new namespace + * namespace name */ @org.apache.thrift.annotation.Nullable - public TNamespaceDescriptor getNamespaceDesc() { - return this.namespaceDesc; + public java.lang.String getName() { + return this.name; } /** - * descriptor which describes the new namespace + * namespace name */ - public modifyNamespace_args setNamespaceDesc(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc) { - this.namespaceDesc = namespaceDesc; + public deleteNamespace_args setName(@org.apache.thrift.annotation.Nullable java.lang.String name) { + this.name = name; return this; } - public void unsetNamespaceDesc() { - this.namespaceDesc = null; + public void unsetName() { + this.name = null; } - /** Returns true if field namespaceDesc is set (has been assigned a value) and false otherwise */ - public boolean isSetNamespaceDesc() { - return this.namespaceDesc != null; + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; } - public void setNamespaceDescIsSet(boolean value) { + public void setNameIsSet(boolean value) { if (!value) { - this.namespaceDesc = null; + this.name = null; } } public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case NAMESPACE_DESC: + case NAME: if (value == null) { - unsetNamespaceDesc(); + unsetName(); } else { - setNamespaceDesc((TNamespaceDescriptor)value); + setName((java.lang.String)value); } break; @@ -47737,8 +48629,8 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case NAMESPACE_DESC: - return getNamespaceDesc(); + case NAME: + return getName(); } throw new java.lang.IllegalStateException(); @@ -47751,8 +48643,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case NAMESPACE_DESC: - return isSetNamespaceDesc(); + case NAME: + return isSetName(); } throw new java.lang.IllegalStateException(); } @@ -47761,23 +48653,23 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof modifyNamespace_args) - return this.equals((modifyNamespace_args)that); + if (that instanceof deleteNamespace_args) + return this.equals((deleteNamespace_args)that); return false; } - public boolean equals(modifyNamespace_args that) { + public boolean equals(deleteNamespace_args that) { if (that == null) return false; if (this == that) return true; - boolean this_present_namespaceDesc = true && this.isSetNamespaceDesc(); - boolean that_present_namespaceDesc = true && that.isSetNamespaceDesc(); - if (this_present_namespaceDesc || that_present_namespaceDesc) { - if (!(this_present_namespaceDesc && that_present_namespaceDesc)) + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) return false; - if (!this.namespaceDesc.equals(that.namespaceDesc)) + if (!this.name.equals(that.name)) return false; } @@ -47788,27 +48680,27 @@ public boolean equals(modifyNamespace_args that) { public int hashCode() { int hashCode = 1; - hashCode = hashCode * 8191 + ((isSetNamespaceDesc()) ? 131071 : 524287); - if (isSetNamespaceDesc()) - hashCode = hashCode * 8191 + namespaceDesc.hashCode(); + hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); + if (isSetName()) + hashCode = hashCode * 8191 + name.hashCode(); return hashCode; } @Override - public int compareTo(modifyNamespace_args other) { + public int compareTo(deleteNamespace_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = java.lang.Boolean.valueOf(isSetNamespaceDesc()).compareTo(other.isSetNamespaceDesc()); + lastComparison = java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } - if (isSetNamespaceDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.namespaceDesc, other.namespaceDesc); + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } @@ -47831,14 +48723,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyNamespace_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteNamespace_args("); boolean first = true; - sb.append("namespaceDesc:"); - if (this.namespaceDesc == null) { + sb.append("name:"); + if (this.name == null) { sb.append("null"); } else { - sb.append(this.namespaceDesc); + sb.append(this.name); } first = false; sb.append(")"); @@ -47847,13 +48739,10 @@ public java.lang.String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields - if (namespaceDesc == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'namespaceDesc' was not present! Struct: " + toString()); + if (name == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' was not present! Struct: " + toString()); } // check for sub-struct validity - if (namespaceDesc != null) { - namespaceDesc.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -47872,15 +48761,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class modifyNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyNamespace_argsStandardScheme getScheme() { - return new modifyNamespace_argsStandardScheme(); + private static class deleteNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteNamespace_argsStandardScheme getScheme() { + return new deleteNamespace_argsStandardScheme(); } } - private static class modifyNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class deleteNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespace_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47890,11 +48779,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespace_arg break; } switch (schemeField.id) { - case 1: // NAMESPACE_DESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.namespaceDesc = new TNamespaceDescriptor(); - struct.namespaceDesc.read(iprot); - struct.setNamespaceDescIsSet(true); + case 1: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -47910,13 +48798,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespace_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, modifyNamespace_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteNamespace_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.namespaceDesc != null) { - oprot.writeFieldBegin(NAMESPACE_DESC_FIELD_DESC); - struct.namespaceDesc.write(oprot); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -47925,26 +48813,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, modifyNamespace_ar } - private static class modifyNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyNamespace_argsTupleScheme getScheme() { - return new modifyNamespace_argsTupleScheme(); + private static class deleteNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteNamespace_argsTupleScheme getScheme() { + return new deleteNamespace_argsTupleScheme(); } } - private static class modifyNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class deleteNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - struct.namespaceDesc.write(oprot); + oprot.writeString(struct.name); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - struct.namespaceDesc = new TNamespaceDescriptor(); - struct.namespaceDesc.read(iprot); - struct.setNamespaceDescIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); } } @@ -47953,13 +48840,13 @@ private static S scheme(org.apache. } } - public static class modifyNamespace_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("modifyNamespace_result"); + public static class deleteNamespace_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("deleteNamespace_result"); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new modifyNamespace_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyNamespace_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteNamespace_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteNamespace_resultTupleSchemeFactory(); public @org.apache.thrift.annotation.Nullable TIOError io; // required @@ -48030,13 +48917,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyNamespace_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteNamespace_result.class, metaDataMap); } - public modifyNamespace_result() { + public deleteNamespace_result() { } - public modifyNamespace_result( + public deleteNamespace_result( TIOError io) { this(); @@ -48046,14 +48933,14 @@ public modifyNamespace_result( /** * Performs a deep copy on other. */ - public modifyNamespace_result(modifyNamespace_result other) { + public deleteNamespace_result(deleteNamespace_result other) { if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public modifyNamespace_result deepCopy() { - return new modifyNamespace_result(this); + public deleteNamespace_result deepCopy() { + return new deleteNamespace_result(this); } @Override @@ -48066,7 +48953,7 @@ public TIOError getIo() { return this.io; } - public modifyNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public deleteNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -48126,12 +49013,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof modifyNamespace_result) - return this.equals((modifyNamespace_result)that); + if (that instanceof deleteNamespace_result) + return this.equals((deleteNamespace_result)that); return false; } - public boolean equals(modifyNamespace_result that) { + public boolean equals(deleteNamespace_result that) { if (that == null) return false; if (this == that) @@ -48161,7 +49048,7 @@ public int hashCode() { } @Override - public int compareTo(modifyNamespace_result other) { + public int compareTo(deleteNamespace_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -48196,7 +49083,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyNamespace_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteNamespace_result("); boolean first = true; sb.append("io:"); @@ -48231,15 +49118,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class modifyNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyNamespace_resultStandardScheme getScheme() { - return new modifyNamespace_resultStandardScheme(); + private static class deleteNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteNamespace_resultStandardScheme getScheme() { + return new deleteNamespace_resultStandardScheme(); } } - private static class modifyNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class deleteNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespace_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48269,7 +49156,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, modifyNamespace_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, modifyNamespace_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteNamespace_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -48284,16 +49171,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, modifyNamespace_re } - private static class modifyNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public modifyNamespace_resultTupleScheme getScheme() { - return new modifyNamespace_resultTupleScheme(); + private static class deleteNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public deleteNamespace_resultTupleScheme getScheme() { + return new deleteNamespace_resultTupleScheme(); } } - private static class modifyNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class deleteNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIo()) { @@ -48306,7 +49193,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_res } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, modifyNamespace_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -48322,23 +49209,23 @@ private static S scheme(org.apache. } } - public static class deleteNamespace_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("deleteNamespace_args"); + public static class getNamespaceDescriptor_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("getNamespaceDescriptor_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteNamespace_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteNamespace_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getNamespaceDescriptor_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getNamespaceDescriptor_argsTupleSchemeFactory(); /** - * namespace name + * name of namespace descriptor */ public @org.apache.thrift.annotation.Nullable java.lang.String 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 { /** - * namespace name + * name of namespace descriptor */ NAME((short)1, "name"); @@ -48405,13 +49292,13 @@ public java.lang.String getFieldName() { tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteNamespace_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNamespaceDescriptor_args.class, metaDataMap); } - public deleteNamespace_args() { + public getNamespaceDescriptor_args() { } - public deleteNamespace_args( + public getNamespaceDescriptor_args( java.lang.String name) { this(); @@ -48421,14 +49308,14 @@ public deleteNamespace_args( /** * Performs a deep copy on other. */ - public deleteNamespace_args(deleteNamespace_args other) { + public getNamespaceDescriptor_args(getNamespaceDescriptor_args other) { if (other.isSetName()) { this.name = other.name; } } - public deleteNamespace_args deepCopy() { - return new deleteNamespace_args(this); + public getNamespaceDescriptor_args deepCopy() { + return new getNamespaceDescriptor_args(this); } @Override @@ -48437,7 +49324,7 @@ public void clear() { } /** - * namespace name + * name of namespace descriptor */ @org.apache.thrift.annotation.Nullable public java.lang.String getName() { @@ -48445,9 +49332,9 @@ public java.lang.String getName() { } /** - * namespace name + * name of namespace descriptor */ - public deleteNamespace_args setName(@org.apache.thrift.annotation.Nullable java.lang.String name) { + public getNamespaceDescriptor_args setName(@org.apache.thrift.annotation.Nullable java.lang.String name) { this.name = name; return this; } @@ -48507,12 +49394,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof deleteNamespace_args) - return this.equals((deleteNamespace_args)that); + if (that instanceof getNamespaceDescriptor_args) + return this.equals((getNamespaceDescriptor_args)that); return false; } - public boolean equals(deleteNamespace_args that) { + public boolean equals(getNamespaceDescriptor_args that) { if (that == null) return false; if (this == that) @@ -48542,7 +49429,7 @@ public int hashCode() { } @Override - public int compareTo(deleteNamespace_args other) { + public int compareTo(getNamespaceDescriptor_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -48577,7 +49464,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteNamespace_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("getNamespaceDescriptor_args("); boolean first = true; sb.append("name:"); @@ -48615,15 +49502,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class deleteNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteNamespace_argsStandardScheme getScheme() { - return new deleteNamespace_argsStandardScheme(); + private static class getNamespaceDescriptor_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getNamespaceDescriptor_argsStandardScheme getScheme() { + return new getNamespaceDescriptor_argsStandardScheme(); } } - private static class deleteNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class getNamespaceDescriptor_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteNamespace_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48652,7 +49539,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, deleteNamespace_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteNamespace_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -48667,22 +49554,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, deleteNamespace_ar } - private static class deleteNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteNamespace_argsTupleScheme getScheme() { - return new deleteNamespace_argsTupleScheme(); + private static class getNamespaceDescriptor_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getNamespaceDescriptor_argsTupleScheme getScheme() { + return new getNamespaceDescriptor_argsTupleScheme(); } } - private static class deleteNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class getNamespaceDescriptor_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.name); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(true); @@ -48694,18 +49581,21 @@ private static S scheme(org.apache. } } - public static class deleteNamespace_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("deleteNamespace_result"); + public static class getNamespaceDescriptor_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("getNamespaceDescriptor_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteNamespace_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteNamespace_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getNamespaceDescriptor_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getNamespaceDescriptor_resultTupleSchemeFactory(); + public @org.apache.thrift.annotation.Nullable TNamespaceDescriptor success; // required public @org.apache.thrift.annotation.Nullable TIOError io; // 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"), IO((short)1, "io"); private static final java.util.Map byName = new java.util.HashMap(); @@ -48722,6 +49612,8 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // IO return IO; default: @@ -48768,46 +49660,79 @@ public java.lang.String getFieldName() { public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNamespaceDescriptor.class))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteNamespace_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNamespaceDescriptor_result.class, metaDataMap); } - public deleteNamespace_result() { + public getNamespaceDescriptor_result() { } - public deleteNamespace_result( + public getNamespaceDescriptor_result( + TNamespaceDescriptor success, TIOError io) { this(); + this.success = success; this.io = io; } /** * Performs a deep copy on other. */ - public deleteNamespace_result(deleteNamespace_result other) { + public getNamespaceDescriptor_result(getNamespaceDescriptor_result other) { + if (other.isSetSuccess()) { + this.success = new TNamespaceDescriptor(other.success); + } if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public deleteNamespace_result deepCopy() { - return new deleteNamespace_result(this); + public getNamespaceDescriptor_result deepCopy() { + return new getNamespaceDescriptor_result(this); } @Override public void clear() { + this.success = null; this.io = null; } + @org.apache.thrift.annotation.Nullable + public TNamespaceDescriptor getSuccess() { + return this.success; + } + + public getNamespaceDescriptor_result setSuccess(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor success) { + this.success = success; + return this; + } + + 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; + } + } + @org.apache.thrift.annotation.Nullable public TIOError getIo() { return this.io; } - public deleteNamespace_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public getNamespaceDescriptor_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -48829,6 +49754,14 @@ public void setIoIsSet(boolean value) { public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((TNamespaceDescriptor)value); + } + break; + case IO: if (value == null) { unsetIo(); @@ -48843,6 +49776,9 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case IO: return getIo(); @@ -48857,6 +49793,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case IO: return isSetIo(); } @@ -48867,17 +49805,26 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof deleteNamespace_result) - return this.equals((deleteNamespace_result)that); + if (that instanceof getNamespaceDescriptor_result) + return this.equals((getNamespaceDescriptor_result)that); return false; } - public boolean equals(deleteNamespace_result that) { + public boolean equals(getNamespaceDescriptor_result that) { if (that == null) return false; if (this == that) return true; + 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_io = true && this.isSetIo(); boolean that_present_io = true && that.isSetIo(); if (this_present_io || that_present_io) { @@ -48894,6 +49841,10 @@ public boolean equals(deleteNamespace_result that) { public int hashCode() { int hashCode = 1; + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); + hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); if (isSetIo()) hashCode = hashCode * 8191 + io.hashCode(); @@ -48902,13 +49853,23 @@ public int hashCode() { } @Override - public int compareTo(deleteNamespace_result other) { + public int compareTo(getNamespaceDescriptor_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = java.lang.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 = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); if (lastComparison != 0) { return lastComparison; @@ -48937,9 +49898,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteNamespace_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("getNamespaceDescriptor_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("io:"); if (this.io == null) { sb.append("null"); @@ -48954,6 +49923,9 @@ public java.lang.String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -48972,15 +49944,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class deleteNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteNamespace_resultStandardScheme getScheme() { - return new deleteNamespace_resultStandardScheme(); + private static class getNamespaceDescriptor_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getNamespaceDescriptor_resultStandardScheme getScheme() { + return new getNamespaceDescriptor_resultStandardScheme(); } } - private static class deleteNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class getNamespaceDescriptor_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteNamespace_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescriptor_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48990,6 +49962,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, deleteNamespace_res break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TNamespaceDescriptor(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // IO if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.io = new TIOError(); @@ -49010,10 +49991,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, deleteNamespace_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteNamespace_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getNamespaceDescriptor_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.io != null) { oprot.writeFieldBegin(IO_FIELD_DESC); struct.io.write(oprot); @@ -49025,32 +50011,43 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, deleteNamespace_re } - private static class deleteNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public deleteNamespace_resultTupleScheme getScheme() { - return new deleteNamespace_resultTupleScheme(); + private static class getNamespaceDescriptor_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getNamespaceDescriptor_resultTupleScheme getScheme() { + return new getNamespaceDescriptor_resultTupleScheme(); } } - private static class deleteNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class getNamespaceDescriptor_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); - if (struct.isSetIo()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetIo()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetIo()) { struct.io.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteNamespace_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(1); + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { + struct.success = new TNamespaceDescriptor(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); @@ -49063,25 +50060,17 @@ private static S scheme(org.apache. } } - public static class getNamespaceDescriptor_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("getNamespaceDescriptor_args"); + public static class listNamespaceDescriptors_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("listNamespaceDescriptors_args"); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getNamespaceDescriptor_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getNamespaceDescriptor_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaceDescriptors_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaceDescriptors_argsTupleSchemeFactory(); - /** - * name of namespace descriptor - */ - public @org.apache.thrift.annotation.Nullable java.lang.String 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 { - /** - * name of namespace descriptor - */ - NAME((short)1, "name"); +; private static final java.util.Map byName = new java.util.HashMap(); @@ -49097,8 +50086,6 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NAME - return NAME; default: return null; } @@ -49138,95 +50125,38 @@ public java.lang.String getFieldName() { return _fieldName; } } - - // isset id assignments public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNamespaceDescriptor_args.class, metaDataMap); - } - - public getNamespaceDescriptor_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamespaceDescriptors_args.class, metaDataMap); } - public getNamespaceDescriptor_args( - java.lang.String name) - { - this(); - this.name = name; + public listNamespaceDescriptors_args() { } /** * Performs a deep copy on other. */ - public getNamespaceDescriptor_args(getNamespaceDescriptor_args other) { - if (other.isSetName()) { - this.name = other.name; - } + public listNamespaceDescriptors_args(listNamespaceDescriptors_args other) { } - public getNamespaceDescriptor_args deepCopy() { - return new getNamespaceDescriptor_args(this); + public listNamespaceDescriptors_args deepCopy() { + return new listNamespaceDescriptors_args(this); } @Override public void clear() { - this.name = null; - } - - /** - * name of namespace descriptor - */ - @org.apache.thrift.annotation.Nullable - public java.lang.String getName() { - return this.name; - } - - /** - * name of namespace descriptor - */ - public getNamespaceDescriptor_args setName(@org.apache.thrift.annotation.Nullable java.lang.String name) { - this.name = name; - return this; - } - - public void unsetName() { - this.name = null; - } - - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != null; - } - - public void setNameIsSet(boolean value) { - if (!value) { - this.name = null; - } } public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { - case NAME: - if (value == null) { - unsetName(); - } else { - setName((java.lang.String)value); - } - break; - } } @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { - case NAME: - return getName(); - } throw new java.lang.IllegalStateException(); } @@ -49238,8 +50168,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case NAME: - return isSetName(); } throw new java.lang.IllegalStateException(); } @@ -49248,26 +50176,17 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof getNamespaceDescriptor_args) - return this.equals((getNamespaceDescriptor_args)that); + if (that instanceof listNamespaceDescriptors_args) + return this.equals((listNamespaceDescriptors_args)that); return false; } - public boolean equals(getNamespaceDescriptor_args that) { + public boolean equals(listNamespaceDescriptors_args that) { if (that == null) return false; if (this == that) return true; - boolean this_present_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) - return false; - if (!this.name.equals(that.name)) - return false; - } - return true; } @@ -49275,31 +50194,17 @@ public boolean equals(getNamespaceDescriptor_args that) { public int hashCode() { int hashCode = 1; - hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); - if (isSetName()) - hashCode = hashCode * 8191 + name.hashCode(); - return hashCode; } @Override - public int compareTo(getNamespaceDescriptor_args other) { + public int compareTo(listNamespaceDescriptors_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -49318,25 +50223,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("getNamespaceDescriptor_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaceDescriptors_args("); boolean first = true; - sb.append("name:"); - if (this.name == null) { - sb.append("null"); - } else { - sb.append(this.name); - } - first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields - if (name == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' was not present! Struct: " + toString()); - } // check for sub-struct validity } @@ -49356,15 +50251,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getNamespaceDescriptor_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public getNamespaceDescriptor_argsStandardScheme getScheme() { - return new getNamespaceDescriptor_argsStandardScheme(); + private static class listNamespaceDescriptors_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public listNamespaceDescriptors_argsStandardScheme getScheme() { + return new listNamespaceDescriptors_argsStandardScheme(); } } - private static class getNamespaceDescriptor_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class listNamespaceDescriptors_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaceDescriptors_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49374,14 +50269,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescrip break; } switch (schemeField.id) { - case 1: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -49393,40 +50280,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescrip struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaceDescriptors_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getNamespaceDescriptor_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public getNamespaceDescriptor_argsTupleScheme getScheme() { - return new getNamespaceDescriptor_argsTupleScheme(); + private static class listNamespaceDescriptors_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public listNamespaceDescriptors_argsTupleScheme getScheme() { + return new listNamespaceDescriptors_argsTupleScheme(); } } - private static class getNamespaceDescriptor_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class listNamespaceDescriptors_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - oprot.writeString(struct.name); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - struct.name = iprot.readString(); - struct.setNameIsSet(true); } } @@ -49435,16 +50314,16 @@ private static S scheme(org.apache. } } - public static class getNamespaceDescriptor_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("getNamespaceDescriptor_result"); + public static class listNamespaceDescriptors_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("listNamespaceDescriptors_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField 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 IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getNamespaceDescriptor_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getNamespaceDescriptor_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaceDescriptors_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaceDescriptors_resultTupleSchemeFactory(); - public @org.apache.thrift.annotation.Nullable TNamespaceDescriptor success; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -49515,18 +50394,19 @@ public java.lang.String getFieldName() { static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNamespaceDescriptor.class))); + 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, TNamespaceDescriptor.class)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNamespaceDescriptor_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamespaceDescriptors_result.class, metaDataMap); } - public getNamespaceDescriptor_result() { + public listNamespaceDescriptors_result() { } - public getNamespaceDescriptor_result( - TNamespaceDescriptor success, + public listNamespaceDescriptors_result( + java.util.List success, TIOError io) { this(); @@ -49537,17 +50417,21 @@ public getNamespaceDescriptor_result( /** * Performs a deep copy on other. */ - public getNamespaceDescriptor_result(getNamespaceDescriptor_result other) { + public listNamespaceDescriptors_result(listNamespaceDescriptors_result other) { if (other.isSetSuccess()) { - this.success = new TNamespaceDescriptor(other.success); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); + for (TNamespaceDescriptor other_element : other.success) { + __this__success.add(new TNamespaceDescriptor(other_element)); + } + this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } } - public getNamespaceDescriptor_result deepCopy() { - return new getNamespaceDescriptor_result(this); + public listNamespaceDescriptors_result deepCopy() { + return new listNamespaceDescriptors_result(this); } @Override @@ -49556,12 +50440,28 @@ public void clear() { this.io = null; } + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + @org.apache.thrift.annotation.Nullable - public TNamespaceDescriptor getSuccess() { + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(TNamespaceDescriptor elem) { + if (this.success == null) { + this.success = new java.util.ArrayList(); + } + this.success.add(elem); + } + + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getNamespaceDescriptor_result setSuccess(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor success) { + public listNamespaceDescriptors_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -49586,7 +50486,7 @@ public TIOError getIo() { return this.io; } - public getNamespaceDescriptor_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public listNamespaceDescriptors_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -49612,7 +50512,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable if (value == null) { unsetSuccess(); } else { - setSuccess((TNamespaceDescriptor)value); + setSuccess((java.util.List)value); } break; @@ -49659,12 +50559,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof getNamespaceDescriptor_result) - return this.equals((getNamespaceDescriptor_result)that); + if (that instanceof listNamespaceDescriptors_result) + return this.equals((listNamespaceDescriptors_result)that); return false; } - public boolean equals(getNamespaceDescriptor_result that) { + public boolean equals(listNamespaceDescriptors_result that) { if (that == null) return false; if (this == that) @@ -49707,7 +50607,7 @@ public int hashCode() { } @Override - public int compareTo(getNamespaceDescriptor_result other) { + public int compareTo(listNamespaceDescriptors_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -49752,7 +50652,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("getNamespaceDescriptor_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaceDescriptors_result("); boolean first = true; sb.append("success:"); @@ -49777,9 +50677,6 @@ public java.lang.String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -49798,15 +50695,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getNamespaceDescriptor_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public getNamespaceDescriptor_resultStandardScheme getScheme() { - return new getNamespaceDescriptor_resultStandardScheme(); + private static class listNamespaceDescriptors_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public listNamespaceDescriptors_resultStandardScheme getScheme() { + return new listNamespaceDescriptors_resultStandardScheme(); } } - private static class getNamespaceDescriptor_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class listNamespaceDescriptors_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescriptor_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaceDescriptors_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49817,9 +50714,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescrip } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TNamespaceDescriptor(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list334 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list334.size); + @org.apache.thrift.annotation.Nullable TNamespaceDescriptor _elem335; + for (int _i336 = 0; _i336 < _list334.size; ++_i336) + { + _elem335 = new TNamespaceDescriptor(); + _elem335.read(iprot); + struct.success.add(_elem335); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -49845,13 +50752,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getNamespaceDescrip struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getNamespaceDescriptor_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaceDescriptors_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (TNamespaceDescriptor _iter337 : struct.success) + { + _iter337.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.io != null) { @@ -49865,16 +50779,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getNamespaceDescri } - private static class getNamespaceDescriptor_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public getNamespaceDescriptor_resultTupleScheme getScheme() { - return new getNamespaceDescriptor_resultTupleScheme(); + private static class listNamespaceDescriptors_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public listNamespaceDescriptors_resultTupleScheme getScheme() { + return new listNamespaceDescriptors_resultTupleScheme(); } } - private static class getNamespaceDescriptor_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class listNamespaceDescriptors_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { @@ -49885,7 +50799,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescrip } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (TNamespaceDescriptor _iter338 : struct.success) + { + _iter338.write(oprot); + } + } } if (struct.isSetIo()) { struct.io.write(oprot); @@ -49893,12 +50813,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescrip } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getNamespaceDescriptor_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new TNamespaceDescriptor(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new java.util.ArrayList(_list339.size); + @org.apache.thrift.annotation.Nullable TNamespaceDescriptor _elem340; + for (int _i341 = 0; _i341 < _list339.size; ++_i341) + { + _elem340 = new TNamespaceDescriptor(); + _elem340.read(iprot); + struct.success.add(_elem340); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -49914,12 +50843,12 @@ private static S scheme(org.apache. } } - public static class listNamespaceDescriptors_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("listNamespaceDescriptors_args"); + public static class listNamespaces_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("listNamespaces_args"); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaceDescriptors_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaceDescriptors_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaces_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaces_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -49983,20 +50912,20 @@ public java.lang.String getFieldName() { static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamespaceDescriptors_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamespaces_args.class, metaDataMap); } - public listNamespaceDescriptors_args() { + public listNamespaces_args() { } /** * Performs a deep copy on other. */ - public listNamespaceDescriptors_args(listNamespaceDescriptors_args other) { + public listNamespaces_args(listNamespaces_args other) { } - public listNamespaceDescriptors_args deepCopy() { - return new listNamespaceDescriptors_args(this); + public listNamespaces_args deepCopy() { + return new listNamespaces_args(this); } @Override @@ -50030,12 +50959,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof listNamespaceDescriptors_args) - return this.equals((listNamespaceDescriptors_args)that); + if (that instanceof listNamespaces_args) + return this.equals((listNamespaces_args)that); return false; } - public boolean equals(listNamespaceDescriptors_args that) { + public boolean equals(listNamespaces_args that) { if (that == null) return false; if (this == that) @@ -50052,7 +50981,7 @@ public int hashCode() { } @Override - public int compareTo(listNamespaceDescriptors_args other) { + public int compareTo(listNamespaces_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -50077,7 +51006,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaceDescriptors_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaces_args("); boolean first = true; sb.append(")"); @@ -50105,15 +51034,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class listNamespaceDescriptors_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public listNamespaceDescriptors_argsStandardScheme getScheme() { - return new listNamespaceDescriptors_argsStandardScheme(); + private static class listNamespaces_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public listNamespaces_argsStandardScheme getScheme() { + return new listNamespaces_argsStandardScheme(); } } - private static class listNamespaceDescriptors_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class listNamespaces_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaceDescriptors_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaces_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -50134,7 +51063,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaceDescri struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaceDescriptors_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaces_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -50144,21 +51073,21 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaceDescr } - private static class listNamespaceDescriptors_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public listNamespaceDescriptors_argsTupleScheme getScheme() { - return new listNamespaceDescriptors_argsTupleScheme(); + private static class listNamespaces_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public listNamespaces_argsTupleScheme getScheme() { + return new listNamespaces_argsTupleScheme(); } } - private static class listNamespaceDescriptors_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class listNamespaces_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaces_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, listNamespaces_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } @@ -50168,16 +51097,16 @@ private static S scheme(org.apache. } } - public static class listNamespaceDescriptors_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("listNamespaceDescriptors_result"); + public static class listNamespaces_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("listNamespaces_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 IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaceDescriptors_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaceDescriptors_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaces_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaces_resultTupleSchemeFactory(); - public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required public @org.apache.thrift.annotation.Nullable TIOError io; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -50249,18 +51178,18 @@ public java.lang.String getFieldName() { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TNamespaceDescriptor.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamespaceDescriptors_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamespaces_result.class, metaDataMap); } - public listNamespaceDescriptors_result() { + public listNamespaces_result() { } - public listNamespaceDescriptors_result( - java.util.List success, + public listNamespaces_result( + java.util.List success, TIOError io) { this(); @@ -50271,12 +51200,9 @@ public listNamespaceDescriptors_result( /** * Performs a deep copy on other. */ - public listNamespaceDescriptors_result(listNamespaceDescriptors_result other) { + public listNamespaces_result(listNamespaces_result other) { if (other.isSetSuccess()) { - java.util.List __this__success = new java.util.ArrayList(other.success.size()); - for (TNamespaceDescriptor other_element : other.success) { - __this__success.add(new TNamespaceDescriptor(other_element)); - } + java.util.List __this__success = new java.util.ArrayList(other.success); this.success = __this__success; } if (other.isSetIo()) { @@ -50284,8 +51210,8 @@ public listNamespaceDescriptors_result(listNamespaceDescriptors_result other) { } } - public listNamespaceDescriptors_result deepCopy() { - return new listNamespaceDescriptors_result(this); + public listNamespaces_result deepCopy() { + return new listNamespaces_result(this); } @Override @@ -50299,23 +51225,23 @@ public int getSuccessSize() { } @org.apache.thrift.annotation.Nullable - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(TNamespaceDescriptor elem) { + public void addToSuccess(java.lang.String elem) { if (this.success == null) { - this.success = new java.util.ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } @org.apache.thrift.annotation.Nullable - public java.util.List getSuccess() { + public java.util.List getSuccess() { return this.success; } - public listNamespaceDescriptors_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { + public listNamespaces_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -50340,7 +51266,7 @@ public TIOError getIo() { return this.io; } - public listNamespaceDescriptors_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { + public listNamespaces_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { this.io = io; return this; } @@ -50366,7 +51292,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable if (value == null) { unsetSuccess(); } else { - setSuccess((java.util.List)value); + setSuccess((java.util.List)value); } break; @@ -50413,12 +51339,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof listNamespaceDescriptors_result) - return this.equals((listNamespaceDescriptors_result)that); + if (that instanceof listNamespaces_result) + return this.equals((listNamespaces_result)that); return false; } - public boolean equals(listNamespaceDescriptors_result that) { + public boolean equals(listNamespaces_result that) { if (that == null) return false; if (this == that) @@ -50461,7 +51387,7 @@ public int hashCode() { } @Override - public int compareTo(listNamespaceDescriptors_result other) { + public int compareTo(listNamespaces_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -50506,7 +51432,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaceDescriptors_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaces_result("); boolean first = true; sb.append("success:"); @@ -50549,15 +51475,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class listNamespaceDescriptors_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public listNamespaceDescriptors_resultStandardScheme getScheme() { - return new listNamespaceDescriptors_resultStandardScheme(); + private static class listNamespaces_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public listNamespaces_resultStandardScheme getScheme() { + return new listNamespaces_resultStandardScheme(); } } - private static class listNamespaceDescriptors_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class listNamespaces_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaceDescriptors_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaces_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -50570,14 +51496,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaceDescri case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list334 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list334.size); - @org.apache.thrift.annotation.Nullable TNamespaceDescriptor _elem335; - for (int _i336 = 0; _i336 < _list334.size; ++_i336) + org.apache.thrift.protocol.TList _list342 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list342.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem343; + for (int _i344 = 0; _i344 < _list342.size; ++_i344) { - _elem335 = new TNamespaceDescriptor(); - _elem335.read(iprot); - struct.success.add(_elem335); + _elem343 = iprot.readString(); + struct.success.add(_elem343); } iprot.readListEnd(); } @@ -50606,17 +51531,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaceDescri struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaceDescriptors_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaces_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.STRUCT, struct.success.size())); - for (TNamespaceDescriptor _iter337 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (java.lang.String _iter345 : struct.success) { - _iter337.write(oprot); + oprot.writeString(_iter345); } oprot.writeListEnd(); } @@ -50633,16 +51558,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaceDescr } - private static class listNamespaceDescriptors_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public listNamespaceDescriptors_resultTupleScheme getScheme() { - return new listNamespaceDescriptors_resultTupleScheme(); + private static class listNamespaces_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public listNamespaces_resultTupleScheme getScheme() { + return new listNamespaces_resultTupleScheme(); } } - private static class listNamespaceDescriptors_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class listNamespaces_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaces_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { @@ -50655,9 +51580,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescri if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TNamespaceDescriptor _iter338 : struct.success) + for (java.lang.String _iter346 : struct.success) { - _iter338.write(oprot); + oprot.writeString(_iter346); } } } @@ -50667,19 +51592,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescri } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, listNamespaceDescriptors_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, listNamespaces_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list339 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new java.util.ArrayList(_list339.size); - @org.apache.thrift.annotation.Nullable TNamespaceDescriptor _elem340; - for (int _i341 = 0; _i341 < _list339.size; ++_i341) + org.apache.thrift.protocol.TList _list347 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new java.util.ArrayList(_list347.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem348; + for (int _i349 = 0; _i349 < _list347.size; ++_i349) { - _elem340 = new TNamespaceDescriptor(); - _elem340.read(iprot); - struct.success.add(_elem340); + _elem348 = iprot.readString(); + struct.success.add(_elem348); } } struct.setSuccessIsSet(true); @@ -50697,12 +51621,12 @@ private static S scheme(org.apache. } } - public static class listNamespaces_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("listNamespaces_args"); + public static class getThriftServerType_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("getThriftServerType_args"); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaces_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaces_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getThriftServerType_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getThriftServerType_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -50766,20 +51690,20 @@ public java.lang.String getFieldName() { static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamespaces_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getThriftServerType_args.class, metaDataMap); } - public listNamespaces_args() { + public getThriftServerType_args() { } /** * Performs a deep copy on other. */ - public listNamespaces_args(listNamespaces_args other) { + public getThriftServerType_args(getThriftServerType_args other) { } - public listNamespaces_args deepCopy() { - return new listNamespaces_args(this); + public getThriftServerType_args deepCopy() { + return new getThriftServerType_args(this); } @Override @@ -50813,12 +51737,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof listNamespaces_args) - return this.equals((listNamespaces_args)that); + if (that instanceof getThriftServerType_args) + return this.equals((getThriftServerType_args)that); return false; } - public boolean equals(listNamespaces_args that) { + public boolean equals(getThriftServerType_args that) { if (that == null) return false; if (this == that) @@ -50835,7 +51759,7 @@ public int hashCode() { } @Override - public int compareTo(listNamespaces_args other) { + public int compareTo(getThriftServerType_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -50860,7 +51784,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaces_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("getThriftServerType_args("); boolean first = true; sb.append(")"); @@ -50888,15 +51812,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class listNamespaces_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public listNamespaces_argsStandardScheme getScheme() { - return new listNamespaces_argsStandardScheme(); + private static class getThriftServerType_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getThriftServerType_argsStandardScheme getScheme() { + return new getThriftServerType_argsStandardScheme(); } } - private static class listNamespaces_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class getThriftServerType_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaces_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getThriftServerType_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -50917,7 +51841,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaces_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaces_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getThriftServerType_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -50927,21 +51851,21 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaces_arg } - private static class listNamespaces_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public listNamespaces_argsTupleScheme getScheme() { - return new listNamespaces_argsTupleScheme(); + private static class getThriftServerType_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getThriftServerType_argsTupleScheme getScheme() { + return new getThriftServerType_argsTupleScheme(); } } - private static class listNamespaces_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class getThriftServerType_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaces_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getThriftServerType_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, listNamespaces_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getThriftServerType_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } @@ -50951,22 +51875,27 @@ private static S scheme(org.apache. } } - public static class listNamespaces_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("listNamespaces_result"); + public static class getThriftServerType_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("getThriftServerType_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 IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new listNamespaces_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new listNamespaces_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getThriftServerType_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getThriftServerType_resultTupleSchemeFactory(); - public @org.apache.thrift.annotation.Nullable java.util.List success; // required - public @org.apache.thrift.annotation.Nullable TIOError io; // required + /** + * + * @see TThriftServerType + */ + public @org.apache.thrift.annotation.Nullable TThriftServerType success; // 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"), - IO((short)1, "io"); + /** + * + * @see TThriftServerType + */ + SUCCESS((short)0, "success"); private static final java.util.Map byName = new java.util.HashMap(); @@ -50984,8 +51913,6 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // IO - return IO; default: return null; } @@ -51031,71 +51958,53 @@ public java.lang.String getFieldName() { static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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)))); - tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIOError.class))); + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TThriftServerType.class))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamespaces_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getThriftServerType_result.class, metaDataMap); } - public listNamespaces_result() { + public getThriftServerType_result() { } - public listNamespaces_result( - java.util.List success, - TIOError io) + public getThriftServerType_result( + TThriftServerType success) { this(); this.success = success; - this.io = io; } /** * Performs a deep copy on other. */ - public listNamespaces_result(listNamespaces_result other) { + public getThriftServerType_result(getThriftServerType_result other) { if (other.isSetSuccess()) { - java.util.List __this__success = new java.util.ArrayList(other.success); - this.success = __this__success; - } - if (other.isSetIo()) { - this.io = new TIOError(other.io); + this.success = other.success; } } - public listNamespaces_result deepCopy() { - return new listNamespaces_result(this); + public getThriftServerType_result deepCopy() { + return new getThriftServerType_result(this); } @Override public void clear() { this.success = null; - this.io = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - @org.apache.thrift.annotation.Nullable - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(java.lang.String elem) { - if (this.success == null) { - this.success = new java.util.ArrayList(); - } - this.success.add(elem); } + /** + * + * @see TThriftServerType + */ @org.apache.thrift.annotation.Nullable - public java.util.List getSuccess() { + public TThriftServerType getSuccess() { return this.success; } - public listNamespaces_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { + /** + * + * @see TThriftServerType + */ + public getThriftServerType_result setSuccess(@org.apache.thrift.annotation.Nullable TThriftServerType success) { this.success = success; return this; } @@ -51115,46 +52024,13 @@ public void setSuccessIsSet(boolean value) { } } - @org.apache.thrift.annotation.Nullable - public TIOError getIo() { - return this.io; - } - - public listNamespaces_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) { - this.io = io; - return this; - } - - public void unsetIo() { - this.io = null; - } - - /** Returns true if field io is set (has been assigned a value) and false otherwise */ - public boolean isSetIo() { - return this.io != null; - } - - public void setIoIsSet(boolean value) { - if (!value) { - this.io = null; - } - } - public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((java.util.List)value); - } - break; - - case IO: - if (value == null) { - unsetIo(); - } else { - setIo((TIOError)value); + setSuccess((TThriftServerType)value); } break; @@ -51167,9 +52043,6 @@ public java.lang.Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case IO: - return getIo(); - } throw new java.lang.IllegalStateException(); } @@ -51183,8 +52056,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case IO: - return isSetIo(); } throw new java.lang.IllegalStateException(); } @@ -51193,12 +52064,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof listNamespaces_result) - return this.equals((listNamespaces_result)that); + if (that instanceof getThriftServerType_result) + return this.equals((getThriftServerType_result)that); return false; } - public boolean equals(listNamespaces_result that) { + public boolean equals(getThriftServerType_result that) { if (that == null) return false; if (this == that) @@ -51213,15 +52084,6 @@ public boolean equals(listNamespaces_result that) { return false; } - boolean this_present_io = true && this.isSetIo(); - boolean that_present_io = true && that.isSetIo(); - if (this_present_io || that_present_io) { - if (!(this_present_io && that_present_io)) - return false; - if (!this.io.equals(that.io)) - return false; - } - return true; } @@ -51231,17 +52093,13 @@ public int hashCode() { hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); if (isSetSuccess()) - hashCode = hashCode * 8191 + success.hashCode(); - - hashCode = hashCode * 8191 + ((isSetIo()) ? 131071 : 524287); - if (isSetIo()) - hashCode = hashCode * 8191 + io.hashCode(); + hashCode = hashCode * 8191 + success.getValue(); return hashCode; } @Override - public int compareTo(listNamespaces_result other) { + public int compareTo(getThriftServerType_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -51258,16 +52116,6 @@ public int compareTo(listNamespaces_result other) { return lastComparison; } } - lastComparison = java.lang.Boolean.valueOf(isSetIo()).compareTo(other.isSetIo()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, other.io); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -51286,7 +52134,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("listNamespaces_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("getThriftServerType_result("); boolean first = true; sb.append("success:"); @@ -51296,14 +52144,6 @@ public java.lang.String toString() { sb.append(this.success); } first = false; - if (!first) sb.append(", "); - sb.append("io:"); - if (this.io == null) { - sb.append("null"); - } else { - sb.append(this.io); - } - first = false; sb.append(")"); return sb.toString(); } @@ -51329,15 +52169,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class listNamespaces_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public listNamespaces_resultStandardScheme getScheme() { - return new listNamespaces_resultStandardScheme(); + private static class getThriftServerType_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getThriftServerType_resultStandardScheme getScheme() { + return new getThriftServerType_resultStandardScheme(); } } - private static class listNamespaces_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class getThriftServerType_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaces_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getThriftServerType_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -51348,32 +52188,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaces_resu } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list342 = iprot.readListBegin(); - struct.success = new java.util.ArrayList(_list342.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem343; - for (int _i344 = 0; _i344 < _list342.size; ++_i344) - { - _elem343 = iprot.readString(); - struct.success.add(_elem343); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = org.apache.hadoop.hbase.thrift2.generated.TThriftServerType.findByValue(iprot.readI32()); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // IO - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -51385,25 +52206,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, listNamespaces_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaces_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getThriftServerType_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 (java.lang.String _iter345 : struct.success) - { - oprot.writeString(_iter345); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.io != null) { - oprot.writeFieldBegin(IO_FIELD_DESC); - struct.io.write(oprot); + oprot.writeI32(struct.success.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -51412,61 +52221,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, listNamespaces_res } - private static class listNamespaces_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public listNamespaces_resultTupleScheme getScheme() { - return new listNamespaces_resultTupleScheme(); + private static class getThriftServerType_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getThriftServerType_resultTupleScheme getScheme() { + return new getThriftServerType_resultTupleScheme(); } } - private static class listNamespaces_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class getThriftServerType_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, listNamespaces_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getThriftServerType_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetIo()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (java.lang.String _iter346 : struct.success) - { - oprot.writeString(_iter346); - } - } - } - if (struct.isSetIo()) { - struct.io.write(oprot); + oprot.writeI32(struct.success.getValue()); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, listNamespaces_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getThriftServerType_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; - java.util.BitSet incoming = iprot.readBitSet(2); + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list347 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new java.util.ArrayList(_list347.size); - @org.apache.thrift.annotation.Nullable java.lang.String _elem348; - for (int _i349 = 0; _i349 < _list347.size; ++_i349) - { - _elem348 = iprot.readString(); - struct.success.add(_elem348); - } - } + struct.success = org.apache.hadoop.hbase.thrift2.generated.TThriftServerType.findByValue(iprot.readI32()); struct.setSuccessIsSet(true); } - if (incoming.get(1)) { - struct.io = new TIOError(); - struct.io.read(iprot); - struct.setIoIsSet(true); - } } } @@ -51475,12 +52258,12 @@ private static S scheme(org.apache. } } - public static class getThriftServerType_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("getThriftServerType_args"); + public static class getClusterId_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("getClusterId_args"); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getThriftServerType_argsStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getThriftServerType_argsTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getClusterId_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getClusterId_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -51544,20 +52327,20 @@ public java.lang.String getFieldName() { static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getThriftServerType_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClusterId_args.class, metaDataMap); } - public getThriftServerType_args() { + public getClusterId_args() { } /** * Performs a deep copy on other. */ - public getThriftServerType_args(getThriftServerType_args other) { + public getClusterId_args(getClusterId_args other) { } - public getThriftServerType_args deepCopy() { - return new getThriftServerType_args(this); + public getClusterId_args deepCopy() { + return new getClusterId_args(this); } @Override @@ -51591,12 +52374,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof getThriftServerType_args) - return this.equals((getThriftServerType_args)that); + if (that instanceof getClusterId_args) + return this.equals((getClusterId_args)that); return false; } - public boolean equals(getThriftServerType_args that) { + public boolean equals(getClusterId_args that) { if (that == null) return false; if (this == that) @@ -51613,7 +52396,7 @@ public int hashCode() { } @Override - public int compareTo(getThriftServerType_args other) { + public int compareTo(getClusterId_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -51638,7 +52421,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("getThriftServerType_args("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("getClusterId_args("); boolean first = true; sb.append(")"); @@ -51666,15 +52449,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getThriftServerType_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public getThriftServerType_argsStandardScheme getScheme() { - return new getThriftServerType_argsStandardScheme(); + private static class getClusterId_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getClusterId_argsStandardScheme getScheme() { + return new getClusterId_argsStandardScheme(); } } - private static class getThriftServerType_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class getClusterId_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getThriftServerType_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getClusterId_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -51695,7 +52478,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getThriftServerType struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getThriftServerType_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getClusterId_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -51705,21 +52488,21 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getThriftServerTyp } - private static class getThriftServerType_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public getThriftServerType_argsTupleScheme getScheme() { - return new getThriftServerType_argsTupleScheme(); + private static class getClusterId_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getClusterId_argsTupleScheme getScheme() { + return new getClusterId_argsTupleScheme(); } } - private static class getThriftServerType_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class getClusterId_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getThriftServerType_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getClusterId_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getThriftServerType_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getClusterId_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } @@ -51729,26 +52512,18 @@ private static S scheme(org.apache. } } - public static class getThriftServerType_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("getThriftServerType_result"); + public static class getClusterId_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("getClusterId_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); - private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getThriftServerType_resultStandardSchemeFactory(); - private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getThriftServerType_resultTupleSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getClusterId_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getClusterId_resultTupleSchemeFactory(); - /** - * - * @see TThriftServerType - */ - public @org.apache.thrift.annotation.Nullable TThriftServerType success; // required + public @org.apache.thrift.annotation.Nullable java.lang.String success; // 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 { - /** - * - * @see TThriftServerType - */ SUCCESS((short)0, "success"); private static final java.util.Map byName = new java.util.HashMap(); @@ -51812,16 +52587,16 @@ public java.lang.String getFieldName() { static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TThriftServerType.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getThriftServerType_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClusterId_result.class, metaDataMap); } - public getThriftServerType_result() { + public getClusterId_result() { } - public getThriftServerType_result( - TThriftServerType success) + public getClusterId_result( + java.lang.String success) { this(); this.success = success; @@ -51830,14 +52605,14 @@ public getThriftServerType_result( /** * Performs a deep copy on other. */ - public getThriftServerType_result(getThriftServerType_result other) { + public getClusterId_result(getClusterId_result other) { if (other.isSetSuccess()) { this.success = other.success; } } - public getThriftServerType_result deepCopy() { - return new getThriftServerType_result(this); + public getClusterId_result deepCopy() { + return new getClusterId_result(this); } @Override @@ -51845,20 +52620,12 @@ public void clear() { this.success = null; } - /** - * - * @see TThriftServerType - */ @org.apache.thrift.annotation.Nullable - public TThriftServerType getSuccess() { + public java.lang.String getSuccess() { return this.success; } - /** - * - * @see TThriftServerType - */ - public getThriftServerType_result setSuccess(@org.apache.thrift.annotation.Nullable TThriftServerType success) { + public getClusterId_result setSuccess(@org.apache.thrift.annotation.Nullable java.lang.String success) { this.success = success; return this; } @@ -51884,7 +52651,7 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable if (value == null) { unsetSuccess(); } else { - setSuccess((TThriftServerType)value); + setSuccess((java.lang.String)value); } break; @@ -51918,12 +52685,12 @@ public boolean isSet(_Fields field) { public boolean equals(java.lang.Object that) { if (that == null) return false; - if (that instanceof getThriftServerType_result) - return this.equals((getThriftServerType_result)that); + if (that instanceof getClusterId_result) + return this.equals((getClusterId_result)that); return false; } - public boolean equals(getThriftServerType_result that) { + public boolean equals(getClusterId_result that) { if (that == null) return false; if (this == that) @@ -51947,13 +52714,13 @@ public int hashCode() { hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); if (isSetSuccess()) - hashCode = hashCode * 8191 + success.getValue(); + hashCode = hashCode * 8191 + success.hashCode(); return hashCode; } @Override - public int compareTo(getThriftServerType_result other) { + public int compareTo(getClusterId_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -51988,7 +52755,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public java.lang.String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder("getThriftServerType_result("); + java.lang.StringBuilder sb = new java.lang.StringBuilder("getClusterId_result("); boolean first = true; sb.append("success:"); @@ -52023,15 +52790,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getThriftServerType_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public getThriftServerType_resultStandardScheme getScheme() { - return new getThriftServerType_resultStandardScheme(); + private static class getClusterId_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getClusterId_resultStandardScheme getScheme() { + return new getClusterId_resultStandardScheme(); } } - private static class getThriftServerType_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { + private static class getClusterId_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getThriftServerType_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getClusterId_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -52042,8 +52809,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getThriftServerType } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.success = org.apache.hadoop.hbase.thrift2.generated.TThriftServerType.findByValue(iprot.readI32()); + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -52060,13 +52827,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getThriftServerType struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getThriftServerType_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getClusterId_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeI32(struct.success.getValue()); + oprot.writeString(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -52075,16 +52842,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getThriftServerTyp } - private static class getThriftServerType_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { - public getThriftServerType_resultTupleScheme getScheme() { - return new getThriftServerType_resultTupleScheme(); + private static class getClusterId_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { + public getClusterId_resultTupleScheme getScheme() { + return new getClusterId_resultTupleScheme(); } } - private static class getThriftServerType_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { + private static class getClusterId_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getThriftServerType_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getClusterId_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { @@ -52092,16 +52859,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getThriftServerType } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeI32(struct.success.getValue()); + oprot.writeString(struct.success); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getThriftServerType_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getClusterId_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = org.apache.hadoop.hbase.thrift2.generated.TThriftServerType.findByValue(iprot.readI32()); + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } } diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java index f95f77b1b528..3358575a93ae 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionInfo.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift2.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class THRegionInfo 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("THRegionInfo"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java index cae8d4ad1eee..eab7f0c90c62 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/THRegionLocation.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift2.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class THRegionLocation 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("THRegionLocation"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java index 1e5366ff6e6f..c8d2f7824cd8 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIOError.java @@ -12,7 +12,7 @@ * to the HBase master or a HBase region server. Also used to return * more general HBase error conditions. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TIOError extends org.apache.thrift.TException 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("TIOError"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java index 571786741133..313006151eb7 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIllegalArgument.java @@ -11,7 +11,7 @@ * A TIllegalArgument exception indicates an illegal or invalid * argument was passed into a procedure. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TIllegalArgument extends org.apache.thrift.TException 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("TIllegalArgument"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java index 3167d948cd72..de5c35799efc 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TIncrement.java @@ -14,7 +14,7 @@ * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TIncrement 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("TIncrement"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TKeepDeletedCells.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TKeepDeletedCells.java index 3ca76d5f158b..121d8c0aeea6 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TKeepDeletedCells.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TKeepDeletedCells.java @@ -11,7 +11,7 @@ * Thrift wrapper around * org.apache.hadoop.hbase.KeepDeletedCells */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TKeepDeletedCells implements org.apache.thrift.TEnum { /** * Deleted Cells are not retained. diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java index d1deeff34b51..ace4aade116a 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TMutation.java @@ -10,7 +10,7 @@ /** * Atomic mutation for the specified row. It can be either Put or Delete. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TMutation extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TMutation"); private static final org.apache.thrift.protocol.TField PUT_FIELD_DESC = new org.apache.thrift.protocol.TField("put", org.apache.thrift.protocol.TType.STRUCT, (short)1); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TNamespaceDescriptor.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TNamespaceDescriptor.java index cba7e4dcb388..5e12e114bdad 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TNamespaceDescriptor.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TNamespaceDescriptor.java @@ -11,7 +11,7 @@ * Thrift wrapper around * org.apache.hadoop.hbase.NamespaceDescriptor */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TNamespaceDescriptor 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("TNamespaceDescriptor"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java index 6d4e4b7a4e8d..52f3ab4f7249 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TPut.java @@ -19,7 +19,7 @@ * by changing the durability. If you don't provide durability, it defaults to * column family's default setting for durability. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TPut 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("TPut"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TReadType.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TReadType.java index 9af263a8ebd5..b81638b2ad39 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TReadType.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TReadType.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift2.generated; -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TReadType implements org.apache.thrift.TEnum { DEFAULT(1), STREAM(2), diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java index 1e220a7be9ab..ce62c95a284c 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TResult.java @@ -10,7 +10,7 @@ /** * if no Result is found, row and columnValues will not be set. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TResult 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("TResult"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java index 6696f50dd88d..d78e44f22139 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TRowMutations.java @@ -10,7 +10,7 @@ /** * A TRowMutations object is used to apply a number of Mutations to a single row. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TRowMutations 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("TRowMutations"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java index 41f9f2cb6283..bfd322750973 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TScan.java @@ -11,7 +11,7 @@ * Any timestamps in the columns are ignored but the colFamTimeRangeMap included, use timeRange to select by timestamp. * Max versions defaults to 1. */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TScan 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("TScan"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java index 6add949e57db..15668cbe91b4 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TServerName.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift2.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TServerName 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("TServerName"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableDescriptor.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableDescriptor.java index 3e7886006bfe..f7413689608e 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableDescriptor.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableDescriptor.java @@ -11,7 +11,7 @@ * Thrift wrapper around * org.apache.hadoop.hbase.client.TableDescriptor */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TTableDescriptor 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("TTableDescriptor"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableName.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableName.java index 9f0e86f507c5..8795bc313949 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableName.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTableName.java @@ -11,7 +11,7 @@ * Thrift wrapper around * org.apache.hadoop.hbase.TableName */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TTableName 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("TTableName"); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TThriftServerType.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TThriftServerType.java index 124b0b273c45..b5e73790d89e 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TThriftServerType.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TThriftServerType.java @@ -10,7 +10,7 @@ /** * Specify type of thrift server: thrift and thrift2 */ -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public enum TThriftServerType implements org.apache.thrift.TEnum { ONE(1), TWO(2); diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java index 24c0cf342348..1f16e09917e0 100644 --- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java +++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TTimeRange.java @@ -7,7 +7,7 @@ package org.apache.hadoop.hbase.thrift2.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) -@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-07") +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2020-01-22") public class TTimeRange 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("TTimeRange"); diff --git a/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift b/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift index 91ed9dae0e48..b20cd11fe856 100644 --- a/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift +++ b/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift @@ -972,4 +972,9 @@ service Hbase { * @return the type of this thrift server */ TThriftServerType getThriftServerType() + + /** + * Returns the cluster ID for this cluster. + */ + string getClusterId() } diff --git a/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift b/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift index eb990b793d92..98dc871abdfc 100644 --- a/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift +++ b/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift @@ -1053,4 +1053,9 @@ service THBaseService { * @return the type of this thrift server */ TThriftServerType getThriftServerType() + + /** + * Returns the cluster ID for this cluster. + */ + string getClusterId() } diff --git a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftConnection.java b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftConnection.java index a9d4ee9da167..f04bffe4d1bc 100644 --- a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftConnection.java +++ b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftConnection.java @@ -196,10 +196,19 @@ public static void shutdown() throws Exception { } @Test - public void testThrfitAdmin() throws Exception { - testThriftAdmin(thriftConnection, "testThrfitAdminNamesapce", "testThrfitAdminTable"); - testThriftAdmin(thriftHttpConnection, "testThrfitHttpAdminNamesapce", - "testThrfitHttpAdminTable"); + public void testGetClusterId() { + String actualClusterId = TEST_UTIL.getMiniHBaseCluster().getMaster().getClusterId(); + for (Connection conn: new Connection[] {thriftConnection, thriftHttpConnection}) { + String thriftClusterId = conn.getClusterId(); + assertEquals(actualClusterId, thriftClusterId); + } + } + + @Test + public void testThriftAdmin() throws Exception { + testThriftAdmin(thriftConnection, "testThriftAdminNamespace", "testThriftAdminTable"); + testThriftAdmin(thriftHttpConnection, "testThriftHttpAdminNamespace", + "testThriftHttpAdminTable"); } @Test @@ -209,7 +218,7 @@ public void testGet() throws Exception { } - public void testGet(Connection connection, String tableName) throws IOException { + private void testGet(Connection connection, String tableName) throws IOException { createTable(thriftAdmin, tableName); try (Table table = connection.getTable(TableName.valueOf(tableName))){ Get get = new Get(ROW_1);