You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by vj...@apache.org on 2020/03/23 18:13:52 UTC
[hbase] branch branch-2.3 updated: HBASE-23936 : Thrift support for
Online SlowLog APIs (#1317)
This is an automated email from the ASF dual-hosted git repository.
vjasani pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.3 by this push:
new bb87927 HBASE-23936 : Thrift support for Online SlowLog APIs (#1317)
bb87927 is described below
commit bb879272f1b201d57ec2f3b4fa8b5685e041cb3e
Author: Viraj Jasani <vj...@apache.org>
AuthorDate: Mon Mar 23 23:29:55 2020 +0530
HBASE-23936 : Thrift support for Online SlowLog APIs (#1317)
Signed-off-by: ramkrish86 <ra...@apache.org>
---
.../hbase/thrift2/ThriftHBaseServiceHandler.java | 33 +
.../hadoop/hbase/thrift2/ThriftUtilities.java | 105 +
.../hadoop/hbase/thrift2/client/ThriftAdmin.java | 26 +-
.../hadoop/hbase/thrift2/generated/TAppend.java | 4 +-
.../hbase/thrift2/generated/TAuthorization.java | 4 +-
.../hbase/thrift2/generated/TBloomFilterType.java | 4 +-
.../hbase/thrift2/generated/TCellVisibility.java | 4 +-
.../hadoop/hbase/thrift2/generated/TColumn.java | 4 +-
.../thrift2/generated/TColumnFamilyDescriptor.java | 4 +-
.../hbase/thrift2/generated/TColumnIncrement.java | 4 +-
.../hbase/thrift2/generated/TColumnValue.java | 4 +-
.../hadoop/hbase/thrift2/generated/TCompareOp.java | 4 +-
.../thrift2/generated/TCompressionAlgorithm.java | 4 +-
.../hbase/thrift2/generated/TConsistency.java | 4 +-
.../thrift2/generated/TDataBlockEncoding.java | 4 +-
.../hadoop/hbase/thrift2/generated/TDelete.java | 4 +-
.../hbase/thrift2/generated/TDeleteType.java | 4 +-
.../hbase/thrift2/generated/TDurability.java | 4 +-
.../hadoop/hbase/thrift2/generated/TGet.java | 4 +-
.../hbase/thrift2/generated/THBaseService.java | 7818 +++++++++++++-------
.../hbase/thrift2/generated/THRegionInfo.java | 4 +-
.../hbase/thrift2/generated/THRegionLocation.java | 4 +-
.../hadoop/hbase/thrift2/generated/TIOError.java | 4 +-
.../hbase/thrift2/generated/TIllegalArgument.java | 4 +-
.../hadoop/hbase/thrift2/generated/TIncrement.java | 4 +-
.../hbase/thrift2/generated/TKeepDeletedCells.java | 4 +-
.../hadoop/hbase/thrift2/generated/TMutation.java | 4 +-
.../thrift2/generated/TNamespaceDescriptor.java | 4 +-
.../hadoop/hbase/thrift2/generated/TPut.java | 4 +-
.../hadoop/hbase/thrift2/generated/TReadType.java | 4 +-
.../hadoop/hbase/thrift2/generated/TResult.java | 4 +-
.../hbase/thrift2/generated/TRowMutations.java | 4 +-
.../hadoop/hbase/thrift2/generated/TScan.java | 4 +-
.../hbase/thrift2/generated/TServerName.java | 4 +-
.../thrift2/generated/TSlowLogQueryFilter.java | 805 ++
.../hbase/thrift2/generated/TSlowLogRecord.java | 1645 ++++
.../hbase/thrift2/generated/TTableDescriptor.java | 4 +-
.../hadoop/hbase/thrift2/generated/TTableName.java | 4 +-
.../hbase/thrift2/generated/TThriftServerType.java | 4 +-
.../hadoop/hbase/thrift2/generated/TTimeRange.java | 4 +-
.../org/apache/hadoop/hbase/thrift2/hbase.thrift | 61 +
.../thrift2/TestThriftHBaseServiceHandler.java | 33 +
42 files changed, 7873 insertions(+), 2789 deletions(-)
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 7788698..37ee9a1 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
@@ -51,6 +51,7 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.regex.Pattern;
@@ -59,10 +60,13 @@ import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.DoNotRetryIOException;
import org.apache.hadoop.hbase.HRegionLocation;
import org.apache.hadoop.hbase.NamespaceDescriptor;
+import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.ColumnFamilyDescriptor;
import org.apache.hadoop.hbase.client.RegionLocator;
import org.apache.hadoop.hbase.client.ResultScanner;
+import org.apache.hadoop.hbase.client.SlowLogQueryFilter;
+import org.apache.hadoop.hbase.client.SlowLogRecord;
import org.apache.hadoop.hbase.client.Table;
import org.apache.hadoop.hbase.client.TableDescriptor;
import org.apache.hadoop.hbase.security.UserProvider;
@@ -82,6 +86,9 @@ import org.apache.hadoop.hbase.thrift2.generated.TPut;
import org.apache.hadoop.hbase.thrift2.generated.TResult;
import org.apache.hadoop.hbase.thrift2.generated.TRowMutations;
import org.apache.hadoop.hbase.thrift2.generated.TScan;
+import org.apache.hadoop.hbase.thrift2.generated.TServerName;
+import org.apache.hadoop.hbase.thrift2.generated.TSlowLogQueryFilter;
+import org.apache.hadoop.hbase.thrift2.generated.TSlowLogRecord;
import org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor;
import org.apache.hadoop.hbase.thrift2.generated.TTableName;
import org.apache.hadoop.hbase.thrift2.generated.TThriftServerType;
@@ -819,6 +826,32 @@ public class ThriftHBaseServiceHandler extends HBaseServiceHandler implements TH
}
@Override
+ public List<TSlowLogRecord> getSlowLogResponses(Set<TServerName> tServerNames,
+ TSlowLogQueryFilter tSlowLogQueryFilter) throws TIOError, TException {
+ try {
+ Set<ServerName> serverNames = ThriftUtilities.getServerNamesFromThrift(tServerNames);
+ SlowLogQueryFilter slowLogQueryFilter =
+ ThriftUtilities.getSlowLogQueryFromThrift(tSlowLogQueryFilter);
+ List<SlowLogRecord> slowLogRecords =
+ connectionCache.getAdmin().getSlowLogResponses(serverNames, slowLogQueryFilter);
+ return ThriftUtilities.getSlowLogRecordsFromHBase(slowLogRecords);
+ } catch (IOException e) {
+ throw getTIOError(e);
+ }
+ }
+
+ @Override
+ public List<Boolean> clearSlowLogResponses(Set<TServerName> tServerNames)
+ throws TIOError, TException {
+ Set<ServerName> serverNames = ThriftUtilities.getServerNamesFromThrift(tServerNames);
+ try {
+ return connectionCache.getAdmin().clearSlowLogResponses(serverNames);
+ } catch (IOException e) {
+ throw getTIOError(e);
+ }
+ }
+
+ @Override
public List<TNamespaceDescriptor> listNamespaceDescriptors() throws TIOError, TException {
try {
NamespaceDescriptor[] descriptors = connectionCache.getAdmin().listNamespaceDescriptors();
diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java
index de56438..7ce75a85 100644
--- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java
+++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/ThriftUtilities.java
@@ -23,9 +23,12 @@ import static org.apache.hadoop.hbase.util.Bytes.getBytes;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.NavigableSet;
+import java.util.Set;
+import java.util.stream.Collectors;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.CellBuilderFactory;
@@ -58,6 +61,8 @@ import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.RowMutations;
import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.client.Scan.ReadType;
+import org.apache.hadoop.hbase.client.SlowLogQueryFilter;
+import org.apache.hadoop.hbase.client.SlowLogRecord;
import org.apache.hadoop.hbase.client.TableDescriptor;
import org.apache.hadoop.hbase.client.TableDescriptorBuilder;
import org.apache.hadoop.hbase.exceptions.DeserializationException;
@@ -97,10 +102,13 @@ import org.apache.hadoop.hbase.thrift2.generated.TResult;
import org.apache.hadoop.hbase.thrift2.generated.TRowMutations;
import org.apache.hadoop.hbase.thrift2.generated.TScan;
import org.apache.hadoop.hbase.thrift2.generated.TServerName;
+import org.apache.hadoop.hbase.thrift2.generated.TSlowLogQueryFilter;
+import org.apache.hadoop.hbase.thrift2.generated.TSlowLogRecord;
import org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor;
import org.apache.hadoop.hbase.thrift2.generated.TTableName;
import org.apache.hadoop.hbase.thrift2.generated.TTimeRange;
import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.hbase.thirdparty.org.apache.commons.collections4.CollectionUtils;
import org.apache.yetus.audience.InterfaceAudience;
import org.apache.hbase.thirdparty.org.apache.commons.collections4.MapUtils;
@@ -1467,4 +1475,101 @@ public class ThriftUtilities {
return out;
}
+ public static Set<TServerName> getServerNamesFromHBase(Set<ServerName> serverNames) {
+ if (CollectionUtils.isEmpty(serverNames)) {
+ return Collections.emptySet();
+ }
+ return serverNames.stream().map(serverName -> {
+ TServerName tServerName = new TServerName();
+ tServerName.setHostName(serverName.getHostname());
+ tServerName.setPort(serverName.getPort());
+ tServerName.setStartCode(serverName.getStartcode());
+ return tServerName;
+ }).collect(Collectors.toSet());
+ }
+
+ public static Set<ServerName> getServerNamesFromThrift(Set<TServerName> tServerNames) {
+ if (CollectionUtils.isEmpty(tServerNames)) {
+ return Collections.emptySet();
+ }
+ return tServerNames.stream().map(tServerName ->
+ ServerName.valueOf(tServerName.getHostName(),
+ tServerName.getPort(),
+ tServerName.getStartCode()))
+ .collect(Collectors.toSet());
+ }
+
+ public static TSlowLogQueryFilter getSlowLogQueryFromHBase(
+ SlowLogQueryFilter slowLogQueryFilter) {
+ TSlowLogQueryFilter tSlowLogQueryFilter = new TSlowLogQueryFilter();
+ tSlowLogQueryFilter.setRegionName(slowLogQueryFilter.getRegionName());
+ tSlowLogQueryFilter.setClientAddress(slowLogQueryFilter.getClientAddress());
+ tSlowLogQueryFilter.setTableName(slowLogQueryFilter.getTableName());
+ tSlowLogQueryFilter.setUserName(slowLogQueryFilter.getUserName());
+ tSlowLogQueryFilter.setLimit(slowLogQueryFilter.getLimit());
+ return tSlowLogQueryFilter;
+ }
+
+ public static SlowLogQueryFilter getSlowLogQueryFromThrift(
+ TSlowLogQueryFilter tSlowLogQueryFilter) {
+ SlowLogQueryFilter slowLogQueryFilter = new SlowLogQueryFilter();
+ slowLogQueryFilter.setRegionName(tSlowLogQueryFilter.getRegionName());
+ slowLogQueryFilter.setClientAddress(tSlowLogQueryFilter.getClientAddress());
+ slowLogQueryFilter.setTableName(tSlowLogQueryFilter.getTableName());
+ slowLogQueryFilter.setUserName(tSlowLogQueryFilter.getUserName());
+ slowLogQueryFilter.setLimit(tSlowLogQueryFilter.getLimit());
+ return slowLogQueryFilter;
+ }
+
+ public static List<TSlowLogRecord> getSlowLogRecordsFromHBase(
+ List<SlowLogRecord> slowLogRecords) {
+ if (CollectionUtils.isEmpty(slowLogRecords)) {
+ return Collections.emptyList();
+ }
+ return slowLogRecords.stream()
+ .map(slowLogRecord -> {
+ TSlowLogRecord tSlowLogRecord = new TSlowLogRecord();
+ tSlowLogRecord.setCallDetails(slowLogRecord.getCallDetails());
+ tSlowLogRecord.setClientAddress(slowLogRecord.getClientAddress());
+ tSlowLogRecord.setMethodName(slowLogRecord.getMethodName());
+ tSlowLogRecord.setMultiGetsCount(slowLogRecord.getMultiGetsCount());
+ tSlowLogRecord.setMultiMutationsCount(slowLogRecord.getMultiMutationsCount());
+ tSlowLogRecord.setMultiServiceCalls(slowLogRecord.getMultiServiceCalls());
+ tSlowLogRecord.setParam(slowLogRecord.getParam());
+ tSlowLogRecord.setProcessingTime(slowLogRecord.getProcessingTime());
+ tSlowLogRecord.setQueueTime(slowLogRecord.getQueueTime());
+ tSlowLogRecord.setRegionName(slowLogRecord.getRegionName());
+ tSlowLogRecord.setResponseSize(slowLogRecord.getResponseSize());
+ tSlowLogRecord.setServerClass(slowLogRecord.getServerClass());
+ tSlowLogRecord.setStartTime(slowLogRecord.getStartTime());
+ tSlowLogRecord.setUserName(slowLogRecord.getUserName());
+ return tSlowLogRecord;
+ }).collect(Collectors.toList());
+ }
+
+ public static List<SlowLogRecord> getSlowLogRecordsFromThrift(
+ List<TSlowLogRecord> tSlowLogRecords) {
+ if (CollectionUtils.isEmpty(tSlowLogRecords)) {
+ return Collections.emptyList();
+ }
+ return tSlowLogRecords.stream()
+ .map(tSlowLogRecord -> new SlowLogRecord.SlowLogRecordBuilder()
+ .setCallDetails(tSlowLogRecord.getCallDetails())
+ .setClientAddress(tSlowLogRecord.getClientAddress())
+ .setMethodName(tSlowLogRecord.getMethodName())
+ .setMultiGetsCount(tSlowLogRecord.getMultiGetsCount())
+ .setMultiMutationsCount(tSlowLogRecord.getMultiMutationsCount())
+ .setMultiServiceCalls(tSlowLogRecord.getMultiServiceCalls())
+ .setParam(tSlowLogRecord.getParam())
+ .setProcessingTime(tSlowLogRecord.getProcessingTime())
+ .setQueueTime(tSlowLogRecord.getQueueTime())
+ .setRegionName(tSlowLogRecord.getRegionName())
+ .setResponseSize(tSlowLogRecord.getResponseSize())
+ .setServerClass(tSlowLogRecord.getServerClass())
+ .setStartTime(tSlowLogRecord.getStartTime())
+ .setUserName(tSlowLogRecord.getUserName())
+ .build())
+ .collect(Collectors.toList());
+ }
+
}
diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/client/ThriftAdmin.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/client/ThriftAdmin.java
index 5b56e62..befdaa3 100644
--- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/client/ThriftAdmin.java
+++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/client/ThriftAdmin.java
@@ -68,6 +68,9 @@ import org.apache.hadoop.hbase.thrift2.ThriftUtilities;
import org.apache.hadoop.hbase.thrift2.generated.TColumnFamilyDescriptor;
import org.apache.hadoop.hbase.thrift2.generated.THBaseService;
import org.apache.hadoop.hbase.thrift2.generated.TNamespaceDescriptor;
+import org.apache.hadoop.hbase.thrift2.generated.TServerName;
+import org.apache.hadoop.hbase.thrift2.generated.TSlowLogQueryFilter;
+import org.apache.hadoop.hbase.thrift2.generated.TSlowLogRecord;
import org.apache.hadoop.hbase.thrift2.generated.TTableDescriptor;
import org.apache.hadoop.hbase.thrift2.generated.TTableName;
import org.apache.hadoop.hbase.util.Bytes;
@@ -1396,13 +1399,28 @@ public class ThriftAdmin implements Admin {
@Override
public List<SlowLogRecord> getSlowLogResponses(final Set<ServerName> serverNames,
- final SlowLogQueryFilter slowLogQueryFilter) {
- throw new NotImplementedException("getSlowLogResponses not supported in ThriftAdmin");
+ final SlowLogQueryFilter slowLogQueryFilter) throws IOException {
+ Set<TServerName> tServerNames = ThriftUtilities.getServerNamesFromHBase(serverNames);
+ TSlowLogQueryFilter tSlowLogQueryFilter =
+ ThriftUtilities.getSlowLogQueryFromHBase(slowLogQueryFilter);
+ try {
+ List<TSlowLogRecord> tSlowLogRecords =
+ client.getSlowLogResponses(tServerNames, tSlowLogQueryFilter);
+ return ThriftUtilities.getSlowLogRecordsFromThrift(tSlowLogRecords);
+ } catch (TException e) {
+ throw new IOException(e);
+ }
}
@Override
- public List<Boolean> clearSlowLogResponses(final Set<ServerName> serverNames) {
- throw new NotImplementedException("clearSlowLogsResponses not supported in ThriftAdmin");
+ public List<Boolean> clearSlowLogResponses(final Set<ServerName> serverNames)
+ throws IOException {
+ Set<TServerName> tServerNames = ThriftUtilities.getServerNamesFromHBase(serverNames);
+ try {
+ return client.clearSlowLogResponses(tServerNames);
+ } catch (TException e) {
+ throw new IOException(e);
+ }
}
@Override
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 51ee872..d51c490 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class TAppend implements org.apache.thrift.TBase<TAppend, TAppend._Fields>, java.io.Serializable, Cloneable, Comparable<TAppend> {
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 09ced16..5b21e71 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class TAuthorization implements org.apache.thrift.TBase<TAuthorization, TAuthorization._Fields>, java.io.Serializable, Cloneable, Comparable<TAuthorization> {
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 06b4e5b..38299e4 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,7 +11,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* Thrift wrapper around
* org.apache.hadoop.hbase.regionserver.BloomType
*/
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
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 2032c6d..c6c9df0 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class TCellVisibility implements org.apache.thrift.TBase<TCellVisibility, TCellVisibility._Fields>, java.io.Serializable, Cloneable, Comparable<TCellVisibility> {
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 eb3e0a6..443dfbf 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,7 +12,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* 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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class TColumn implements org.apache.thrift.TBase<TColumn, TColumn._Fields>, java.io.Serializable, Cloneable, Comparable<TColumn> {
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 2a6a184..7008872 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,7 +11,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* Thrift wrapper around
* org.apache.hadoop.hbase.client.ColumnFamilyDescriptor
*/
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class TColumnFamilyDescriptor implements org.apache.thrift.TBase<TColumnFamilyDescriptor, TColumnFamilyDescriptor._Fields>, java.io.Serializable, Cloneable, Comparable<TColumnFamilyDescriptor> {
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 47de646..934ce44 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -10,7 +10,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
/**
* 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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class TColumnIncrement implements org.apache.thrift.TBase<TColumnIncrement, TColumnIncrement._Fields>, java.io.Serializable, Cloneable, Comparable<TColumnIncrement> {
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 c519f28..f09c4a5 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -10,7 +10,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
/**
* Represents a single cell and its value.
*/
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class TColumnValue implements org.apache.thrift.TBase<TColumnValue, TColumnValue._Fields>, java.io.Serializable, Cloneable, Comparable<TColumnValue> {
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/TCompareOp.java b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOp.java
index ca4b40e..f94db11 100644
--- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOp.java
+++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/TCompareOp.java
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,7 +11,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* Thrift wrapper around
* org.apache.hadoop.hbase.filter.CompareFilter$CompareOp.
*/
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public enum TCompareOp 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 48c3b70..3fe4dda 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,7 +11,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* Thrift wrapper around
* org.apache.hadoop.hbase.io.compress.Algorithm
*/
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
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 a724db8..c38a98c 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,7 +12,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* - 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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
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 15fa8c8..cc47bf9 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,7 +11,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* Thrift wrapper around
* org.apache.hadoop.hbase.io.encoding.DataBlockEncoding
*/
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2019-11-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
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 e865fc2..2ac2c48 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -33,7 +33,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* 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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class TDelete implements org.apache.thrift.TBase<TDelete, TDelete._Fields>, java.io.Serializable, Cloneable, Comparable<TDelete> {
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 8a9d246..67cd2a8 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,7 +12,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* - 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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
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 effcb85..93bd821 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -14,7 +14,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* - 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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
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 eafc26e..0457e1c 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -20,7 +20,7 @@ package org.apache.hadoop.hbase.thrift2.generated;
* 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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class TGet implements org.apache.thrift.TBase<TGet, TGet._Fields>, java.io.Serializable, Cloneable, Comparable<TGet> {
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 9c7f3fb..95063f2 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
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.12.0)
+ * Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -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-26")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2020-03-23")
public class THBaseService {
public interface Iface {
@@ -507,6 +507,31 @@ public class THBaseService {
*/
public TThriftServerType getThriftServerType() throws org.apache.thrift.TException;
+ /**
+ * Retrieves online slow RPC logs from the provided list of
+ * RegionServers
+ *
+ * @return online slowlog response list
+ * @throws TIOError if a remote or network exception occurs
+ *
+ * @param serverNames @param serverNames Server names to get slowlog responses from
+ *
+ * @param slowLogQueryFilter @param slowLogQueryFilter filter to be used if provided
+ */
+ public java.util.List<TSlowLogRecord> getSlowLogResponses(java.util.Set<TServerName> serverNames, TSlowLogQueryFilter slowLogQueryFilter) throws TIOError, org.apache.thrift.TException;
+
+ /**
+ * Clears online slow RPC logs from the provided list of
+ * RegionServers
+ *
+ * @return List of booleans representing if online slowlog response buffer is cleaned
+ * from each RegionServer
+ * @throws TIOError if a remote or network exception occurs
+ *
+ * @param serverNames @param serverNames Set of Server names to clean slowlog responses from
+ */
+ public java.util.List<java.lang.Boolean> clearSlowLogResponses(java.util.Set<TServerName> serverNames) throws TIOError, org.apache.thrift.TException;
+
}
public interface AsyncIface {
@@ -605,6 +630,10 @@ public class THBaseService {
public void getThriftServerType(org.apache.thrift.async.AsyncMethodCallback<TThriftServerType> resultHandler) throws org.apache.thrift.TException;
+ public void getSlowLogResponses(java.util.Set<TServerName> serverNames, TSlowLogQueryFilter slowLogQueryFilter, org.apache.thrift.async.AsyncMethodCallback<java.util.List<TSlowLogRecord>> resultHandler) throws org.apache.thrift.TException;
+
+ public void clearSlowLogResponses(java.util.Set<TServerName> serverNames, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.Boolean>> resultHandler) throws org.apache.thrift.TException;
+
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
@@ -1839,6 +1868,59 @@ public class THBaseService {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getThriftServerType failed: unknown result");
}
+ public java.util.List<TSlowLogRecord> getSlowLogResponses(java.util.Set<TServerName> serverNames, TSlowLogQueryFilter slowLogQueryFilter) throws TIOError, org.apache.thrift.TException
+ {
+ send_getSlowLogResponses(serverNames, slowLogQueryFilter);
+ return recv_getSlowLogResponses();
+ }
+
+ public void send_getSlowLogResponses(java.util.Set<TServerName> serverNames, TSlowLogQueryFilter slowLogQueryFilter) throws org.apache.thrift.TException
+ {
+ getSlowLogResponses_args args = new getSlowLogResponses_args();
+ args.setServerNames(serverNames);
+ args.setSlowLogQueryFilter(slowLogQueryFilter);
+ sendBase("getSlowLogResponses", args);
+ }
+
+ public java.util.List<TSlowLogRecord> recv_getSlowLogResponses() throws TIOError, org.apache.thrift.TException
+ {
+ getSlowLogResponses_result result = new getSlowLogResponses_result();
+ receiveBase(result, "getSlowLogResponses");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.io != null) {
+ throw result.io;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSlowLogResponses failed: unknown result");
+ }
+
+ public java.util.List<java.lang.Boolean> clearSlowLogResponses(java.util.Set<TServerName> serverNames) throws TIOError, org.apache.thrift.TException
+ {
+ send_clearSlowLogResponses(serverNames);
+ return recv_clearSlowLogResponses();
+ }
+
+ public void send_clearSlowLogResponses(java.util.Set<TServerName> serverNames) throws org.apache.thrift.TException
+ {
+ clearSlowLogResponses_args args = new clearSlowLogResponses_args();
+ args.setServerNames(serverNames);
+ sendBase("clearSlowLogResponses", args);
+ }
+
+ public java.util.List<java.lang.Boolean> recv_clearSlowLogResponses() throws TIOError, org.apache.thrift.TException
+ {
+ clearSlowLogResponses_result result = new clearSlowLogResponses_result();
+ receiveBase(result, "clearSlowLogResponses");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.io != null) {
+ throw result.io;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "clearSlowLogResponses 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<AsyncClient> {
@@ -3475,6 +3557,73 @@ public class THBaseService {
}
}
+ public void getSlowLogResponses(java.util.Set<TServerName> serverNames, TSlowLogQueryFilter slowLogQueryFilter, org.apache.thrift.async.AsyncMethodCallback<java.util.List<TSlowLogRecord>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getSlowLogResponses_call method_call = new getSlowLogResponses_call(serverNames, slowLogQueryFilter, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getSlowLogResponses_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<TSlowLogRecord>> {
+ private java.util.Set<TServerName> serverNames;
+ private TSlowLogQueryFilter slowLogQueryFilter;
+ public getSlowLogResponses_call(java.util.Set<TServerName> serverNames, TSlowLogQueryFilter slowLogQueryFilter, org.apache.thrift.async.AsyncMethodCallback<java.util.List<TSlowLogRecord>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.serverNames = serverNames;
+ this.slowLogQueryFilter = slowLogQueryFilter;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSlowLogResponses", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getSlowLogResponses_args args = new getSlowLogResponses_args();
+ args.setServerNames(serverNames);
+ args.setSlowLogQueryFilter(slowLogQueryFilter);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<TSlowLogRecord> getResult() throws TIOError, 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_getSlowLogResponses();
+ }
+ }
+
+ public void clearSlowLogResponses(java.util.Set<TServerName> serverNames, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.Boolean>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ clearSlowLogResponses_call method_call = new clearSlowLogResponses_call(serverNames, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class clearSlowLogResponses_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<java.lang.Boolean>> {
+ private java.util.Set<TServerName> serverNames;
+ public clearSlowLogResponses_call(java.util.Set<TServerName> serverNames, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.Boolean>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.serverNames = serverNames;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearSlowLogResponses", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ clearSlowLogResponses_args args = new clearSlowLogResponses_args();
+ args.setServerNames(serverNames);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<java.lang.Boolean> getResult() throws TIOError, 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_clearSlowLogResponses();
+ }
+ }
+
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
@@ -3535,6 +3684,8 @@ public class THBaseService {
processMap.put("listNamespaceDescriptors", new listNamespaceDescriptors());
processMap.put("listNamespaces", new listNamespaces());
processMap.put("getThriftServerType", new getThriftServerType());
+ processMap.put("getSlowLogResponses", new getSlowLogResponses());
+ processMap.put("clearSlowLogResponses", new clearSlowLogResponses());
return processMap;
}
@@ -4911,6 +5062,64 @@ public class THBaseService {
}
}
+ public static class getSlowLogResponses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSlowLogResponses_args> {
+ public getSlowLogResponses() {
+ super("getSlowLogResponses");
+ }
+
+ public getSlowLogResponses_args getEmptyArgsInstance() {
+ return new getSlowLogResponses_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ public getSlowLogResponses_result getResult(I iface, getSlowLogResponses_args args) throws org.apache.thrift.TException {
+ getSlowLogResponses_result result = new getSlowLogResponses_result();
+ try {
+ result.success = iface.getSlowLogResponses(args.serverNames, args.slowLogQueryFilter);
+ } catch (TIOError io) {
+ result.io = io;
+ }
+ return result;
+ }
+ }
+
+ public static class clearSlowLogResponses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearSlowLogResponses_args> {
+ public clearSlowLogResponses() {
+ super("clearSlowLogResponses");
+ }
+
+ public clearSlowLogResponses_args getEmptyArgsInstance() {
+ return new clearSlowLogResponses_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ public clearSlowLogResponses_result getResult(I iface, clearSlowLogResponses_args args) throws org.apache.thrift.TException {
+ clearSlowLogResponses_result result = new clearSlowLogResponses_result();
+ try {
+ result.success = iface.clearSlowLogResponses(args.serverNames);
+ } catch (TIOError io) {
+ result.io = io;
+ }
+ return result;
+ }
+ }
+
}
public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
@@ -4971,6 +5180,8 @@ public class THBaseService {
processMap.put("listNamespaceDescriptors", new listNamespaceDescriptors());
processMap.put("listNamespaces", new listNamespaces());
processMap.put("getThriftServerType", new getThriftServerType());
+ processMap.put("getSlowLogResponses", new getSlowLogResponses());
+ processMap.put("clearSlowLogResponses", new clearSlowLogResponses());
return processMap;
}
@@ -8026,6 +8237,136 @@ public class THBaseService {
}
}
+ public static class getSlowLogResponses<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSlowLogResponses_args, java.util.List<TSlowLogRecord>> {
+ public getSlowLogResponses() {
+ super("getSlowLogResponses");
+ }
+
+ public getSlowLogResponses_args getEmptyArgsInstance() {
+ return new getSlowLogResponses_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<TSlowLogRecord>> 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<java.util.List<TSlowLogRecord>>() {
+ public void onComplete(java.util.List<TSlowLogRecord> o) {
+ getSlowLogResponses_result result = new getSlowLogResponses_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;
+ getSlowLogResponses_result result = new getSlowLogResponses_result();
+ if (e instanceof TIOError) {
+ result.io = (TIOError) e;
+ result.setIoIsSet(true);
+ msg = result;
+ } else 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, getSlowLogResponses_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<TSlowLogRecord>> resultHandler) throws org.apache.thrift.TException {
+ iface.getSlowLogResponses(args.serverNames, args.slowLogQueryFilter,resultHandler);
+ }
+ }
+
+ public static class clearSlowLogResponses<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, clearSlowLogResponses_args, java.util.List<java.lang.Boolean>> {
+ public clearSlowLogResponses() {
+ super("clearSlowLogResponses");
+ }
+
+ public clearSlowLogResponses_args getEmptyArgsInstance() {
+ return new clearSlowLogResponses_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.Boolean>> 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<java.util.List<java.lang.Boolean>>() {
+ public void onComplete(java.util.List<java.lang.Boolean> o) {
+ clearSlowLogResponses_result result = new clearSlowLogResponses_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;
+ clearSlowLogResponses_result result = new clearSlowLogResponses_result();
+ if (e instanceof TIOError) {
+ result.io = (TIOError) e;
+ result.setIoIsSet(true);
+ msg = result;
+ } else 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, clearSlowLogResponses_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.Boolean>> resultHandler) throws org.apache.thrift.TException {
+ iface.clearSlowLogResponses(args.serverNames,resultHandler);
+ }
+ }
+
}
public static class exists_args implements org.apache.thrift.TBase<exists_args, exists_args._Fields>, java.io.Serializable, Cloneable, Comparable<exists_args> {
@@ -36272,23 +36613,1662 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("createTable_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("createTable_args(");
+ boolean first = true;
+
+ sb.append("desc:");
+ if (this.desc == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.desc);
+ }
+ 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();
+ }
+
+ 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());
+ }
+ // check for sub-struct validity
+ if (desc != null) {
+ desc.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 createTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public createTable_argsStandardScheme getScheme() {
+ return new createTable_argsStandardScheme();
+ }
+ }
+
+ private static class createTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<createTable_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_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: // DESC
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.desc = new TTableDescriptor();
+ struct.desc.read(iprot);
+ struct.setDescIsSet(true);
+ } else {
+ 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 _list318 = iprot.readListBegin();
+ struct.splitKeys = new java.util.ArrayList<java.nio.ByteBuffer>(_list318.size);
+ @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem319;
+ for (int _i320 = 0; _i320 < _list318.size; ++_i320)
+ {
+ _elem319 = iprot.readBinary();
+ struct.splitKeys.add(_elem319);
+ }
+ 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);
+ }
+ 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_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);
+ 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 _iter321 : struct.splitKeys)
+ {
+ oprot.writeBinary(_iter321);
+ }
+ oprot.writeListEnd();
+ }
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class createTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public createTable_argsTupleScheme getScheme() {
+ return new createTable_argsTupleScheme();
+ }
+ }
+
+ private static class createTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<createTable_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ struct.desc.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 _iter322 : struct.splitKeys)
+ {
+ oprot.writeBinary(_iter322);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, createTable_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);
+ java.util.BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ {
+ org.apache.thrift.protocol.TList _list323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.splitKeys = new java.util.ArrayList<java.nio.ByteBuffer>(_list323.size);
+ @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem324;
+ for (int _i325 = 0; _i325 < _list323.size; ++_i325)
+ {
+ _elem324 = iprot.readBinary();
+ struct.splitKeys.add(_elem324);
+ }
+ }
+ struct.setSplitKeysIsSet(true);
+ }
+ }
+ }
+
+ private static <S extends org.apache.thrift.scheme.IScheme> 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 createTable_result implements org.apache.thrift.TBase<createTable_result, createTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<createTable_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_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 createTable_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createTable_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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ 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(createTable_result.class, metaDataMap);
+ }
+
+ public createTable_result() {
+ }
+
+ public createTable_result(
+ TIOError io)
+ {
+ this();
+ this.io = io;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ 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<createTable_result> {
+
+ 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<createTable_result> {
+
+ @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 extends org.apache.thrift.scheme.IScheme> 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<deleteTable_args, deleteTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteTable_args> {
+ 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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ 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 <i>other</i>.
+ */
+ 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<deleteTable_args> {
+
+ 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<deleteTable_args> {
+
+ @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 extends org.apache.thrift.scheme.IScheme> 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<deleteTable_result, deleteTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteTable_result> {
+ 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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ 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 deleteTable_result() {
+ }
+
+ public deleteTable_result(
+ TIOError io)
+ {
+ this();
+ this.io = io;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public deleteTable_result(deleteTable_result other) {
+ if (other.isSetIo()) {
+ this.io = new TIOError(other.io);
+ }
+ }
+
+ public deleteTable_result deepCopy() {
+ return new deleteTable_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.io = null;
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ public TIOError getIo() {
+ return this.io;
+ }
+
+ public deleteTable_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 deleteTable_result)
+ return this.equals((deleteTable_result)that);
+ return false;
+ }
+
+ public boolean equals(deleteTable_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(deleteTable_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("deleteTable_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 deleteTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public deleteTable_resultStandardScheme getScheme() {
+ return new deleteTable_resultStandardScheme();
+ }
+ }
+
+ private static class deleteTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteTable_result> {
+
+ 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)
+ {
+ 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, deleteTable_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 deleteTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public deleteTable_resultTupleScheme getScheme() {
+ return new deleteTable_resultTupleScheme();
+ }
+ }
+
+ private static class deleteTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteTable_result> {
+
+ @Override
+ 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()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetIo()) {
+ struct.io.write(oprot);
+ }
+ }
+
+ @Override
+ 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)) {
+ struct.io = new TIOError();
+ struct.io.read(iprot);
+ struct.setIoIsSet(true);
+ }
+ }
+ }
+
+ private static <S extends org.apache.thrift.scheme.IScheme> 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 truncateTable_args implements org.apache.thrift.TBase<truncateTable_args, truncateTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<truncateTable_args> {
+ 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 truncateTable_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new truncateTable_argsTupleSchemeFactory();
+
+ /**
+ * 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 truncate
+ */
+ TABLE_NAME((short)1, "tableName"),
+ /**
+ * whether to preserve previous splits
+ */
+ PRESERVE_SPLITS((short)2, "preserveSplits");
+
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ 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;
+ case 2: // PRESERVE_SPLITS
+ return PRESERVE_SPLITS;
+ 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
+ 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);
+ }
+
+ public truncateTable_args() {
+ }
+
+ public truncateTable_args(
+ TTableName tableName,
+ boolean preserveSplits)
+ {
+ this();
+ this.tableName = tableName;
+ this.preserveSplits = preserveSplits;
+ setPreserveSplitsIsSet(true);
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ 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 truncateTable_args deepCopy() {
+ return new truncateTable_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.tableName = null;
+ setPreserveSplitsIsSet(false);
+ this.preserveSplits = false;
+ }
+
+ /**
+ * the tablename to truncate
+ */
+ @org.apache.thrift.annotation.Nullable
+ public TTableName getTableName() {
+ return this.tableName;
+ }
+
+ /**
+ * the tablename to truncate
+ */
+ public truncateTable_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;
+ }
+ }
+
+ /**
+ * 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:
+ if (value == null) {
+ unsetTableName();
+ } else {
+ setTableName((TTableName)value);
+ }
+ break;
+
+ case PRESERVE_SPLITS:
+ if (value == null) {
+ unsetPreserveSplits();
+ } else {
+ setPreserveSplits((java.lang.Boolean)value);
+ }
+ break;
+
+ }
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.Object getFieldValue(_Fields field) {
+ switch (field) {
+ case TABLE_NAME:
+ return getTableName();
+
+ case PRESERVE_SPLITS:
+ return isPreserveSplits();
+
+ }
+ 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();
+ case PRESERVE_SPLITS:
+ return isSetPreserveSplits();
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(java.lang.Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof truncateTable_args)
+ return this.equals((truncateTable_args)that);
+ return false;
+ }
+
+ public boolean equals(truncateTable_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_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;
+ }
+
+ @Override
+ public int hashCode() {
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287);
+ if (isSetTableName())
+ hashCode = hashCode * 8191 + tableName.hashCode();
+
+ hashCode = hashCode * 8191 + ((preserveSplits) ? 131071 : 524287);
+
+ return hashCode;
+ }
+
+ @Override
+ public int compareTo(truncateTable_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(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;
+ }
+
+ @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("truncateTable_args(");
boolean first = true;
- sb.append("desc:");
- if (this.desc == null) {
+ sb.append("tableName:");
+ if (this.tableName == null) {
sb.append("null");
} else {
- sb.append(this.desc);
+ 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);
- }
+ sb.append("preserveSplits:");
+ sb.append(this.preserveSplits);
first = false;
sb.append(")");
return sb.toString();
@@ -36296,12 +38276,13 @@ public class THBaseService {
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 (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 (desc != null) {
- desc.validate();
+ if (tableName != null) {
+ tableName.validate();
}
}
@@ -36315,21 +38296,23 @@ public class THBaseService {
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 createTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public createTable_argsStandardScheme getScheme() {
- return new createTable_argsStandardScheme();
+ private static class truncateTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public truncateTable_argsStandardScheme getScheme() {
+ return new truncateTable_argsStandardScheme();
}
}
- private static class createTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<createTable_args> {
+ private static class truncateTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<truncateTable_args> {
- public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_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)
@@ -36339,29 +38322,19 @@ public class THBaseService {
break;
}
switch (schemeField.id) {
- case 1: // DESC
+ case 1: // TABLE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.desc = new TTableDescriptor();
- struct.desc.read(iprot);
- struct.setDescIsSet(true);
+ struct.tableName = new TTableName();
+ struct.tableName.read(iprot);
+ struct.setTableNameIsSet(true);
} else {
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 _list318 = iprot.readListBegin();
- struct.splitKeys = new java.util.ArrayList<java.nio.ByteBuffer>(_list318.size);
- @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem319;
- for (int _i320 = 0; _i320 < _list318.size; ++_i320)
- {
- _elem319 = iprot.readBinary();
- struct.splitKeys.add(_elem319);
- }
- iprot.readListEnd();
- }
- struct.setSplitKeysIsSet(true);
+ 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);
}
@@ -36374,84 +38347,53 @@ public class THBaseService {
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, createTable_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);
- if (struct.desc != null) {
- oprot.writeFieldBegin(DESC_FIELD_DESC);
- struct.desc.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 _iter321 : struct.splitKeys)
- {
- oprot.writeBinary(_iter321);
- }
- oprot.writeListEnd();
- }
+ if (struct.tableName != null) {
+ oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
+ 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 createTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public createTable_argsTupleScheme getScheme() {
- return new createTable_argsTupleScheme();
+ private static class truncateTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public truncateTable_argsTupleScheme getScheme() {
+ return new truncateTable_argsTupleScheme();
}
}
- private static class createTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<createTable_args> {
+ private static class truncateTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<truncateTable_args> {
@Override
- public void write(org.apache.thrift.protocol.TProtocol prot, createTable_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.desc.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 _iter322 : struct.splitKeys)
- {
- oprot.writeBinary(_iter322);
- }
- }
- }
+ struct.tableName.write(oprot);
+ oprot.writeBool(struct.preserveSplits);
}
@Override
- public void read(org.apache.thrift.protocol.TProtocol prot, createTable_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.desc = new TTableDescriptor();
- struct.desc.read(iprot);
- struct.setDescIsSet(true);
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- {
- org.apache.thrift.protocol.TList _list323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.splitKeys = new java.util.ArrayList<java.nio.ByteBuffer>(_list323.size);
- @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem324;
- for (int _i325 = 0; _i325 < _list323.size; ++_i325)
- {
- _elem324 = iprot.readBinary();
- struct.splitKeys.add(_elem324);
- }
- }
- struct.setSplitKeysIsSet(true);
- }
+ struct.tableName = new TTableName();
+ struct.tableName.read(iprot);
+ struct.setTableNameIsSet(true);
+ struct.preserveSplits = iprot.readBool();
+ struct.setPreserveSplitsIsSet(true);
}
}
@@ -36460,13 +38402,13 @@ public class THBaseService {
}
}
- public static class createTable_result implements org.apache.thrift.TBase<createTable_result, createTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<createTable_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_result");
+ public static class truncateTable_result implements org.apache.thrift.TBase<truncateTable_result, truncateTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<truncateTable_result> {
+ 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 createTable_resultStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createTable_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
@@ -36537,13 +38479,13 @@ public class THBaseService {
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(truncateTable_result.class, metaDataMap);
}
- public createTable_result() {
+ public truncateTable_result() {
}
- public createTable_result(
+ public truncateTable_result(
TIOError io)
{
this();
@@ -36553,14 +38495,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public createTable_result(createTable_result other) {
+ public truncateTable_result(truncateTable_result other) {
if (other.isSetIo()) {
this.io = new TIOError(other.io);
}
}
- public createTable_result deepCopy() {
- return new createTable_result(this);
+ public truncateTable_result deepCopy() {
+ return new truncateTable_result(this);
}
@Override
@@ -36573,7 +38515,7 @@ public class THBaseService {
return this.io;
}
- public createTable_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;
}
@@ -36633,12 +38575,12 @@ public class THBaseService {
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 truncateTable_result)
+ return this.equals((truncateTable_result)that);
return false;
}
- public boolean equals(createTable_result that) {
+ public boolean equals(truncateTable_result that) {
if (that == null)
return false;
if (this == that)
@@ -36668,7 +38610,7 @@ public class THBaseService {
}
@Override
- public int compareTo(createTable_result other) {
+ public int compareTo(truncateTable_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -36703,7 +38645,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("createTable_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("truncateTable_result(");
boolean first = true;
sb.append("io:");
@@ -36738,15 +38680,15 @@ public class THBaseService {
}
}
- private static class createTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public createTable_resultStandardScheme getScheme() {
- return new createTable_resultStandardScheme();
+ private static class truncateTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public truncateTable_resultStandardScheme getScheme() {
+ return new truncateTable_resultStandardScheme();
}
}
- private static class createTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<createTable_result> {
+ private static class truncateTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<truncateTable_result> {
- 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, truncateTable_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -36776,7 +38718,7 @@ public class THBaseService {
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, truncateTable_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -36791,16 +38733,16 @@ public class THBaseService {
}
- private static class createTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public createTable_resultTupleScheme getScheme() {
- return new createTable_resultTupleScheme();
+ private static class truncateTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public truncateTable_resultTupleScheme getScheme() {
+ return new truncateTable_resultTupleScheme();
}
}
- private static class createTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<createTable_result> {
+ private static class truncateTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<truncateTable_result> {
@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, 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()) {
@@ -36813,7 +38755,7 @@ public class THBaseService {
}
@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, 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)) {
@@ -36829,23 +38771,23 @@ public class THBaseService {
}
}
- public static class deleteTable_args implements org.apache.thrift.TBase<deleteTable_args, deleteTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteTable_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_args");
+ public static class enableTable_args implements org.apache.thrift.TBase<enableTable_args, enableTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableTable_args> {
+ 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.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 enableTable_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new enableTable_argsTupleSchemeFactory();
/**
- * the tablename to delete
+ * the tablename to enable
*/
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
+ * the tablename to enable
*/
TABLE_NAME((short)1, "tableName");
@@ -36912,13 +38854,13 @@ public class THBaseService {
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);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap);
}
- public deleteTable_args() {
+ public enableTable_args() {
}
- public deleteTable_args(
+ public enableTable_args(
TTableName tableName)
{
this();
@@ -36928,14 +38870,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public deleteTable_args(deleteTable_args other) {
+ public enableTable_args(enableTable_args other) {
if (other.isSetTableName()) {
this.tableName = new TTableName(other.tableName);
}
}
- public deleteTable_args deepCopy() {
- return new deleteTable_args(this);
+ public enableTable_args deepCopy() {
+ return new enableTable_args(this);
}
@Override
@@ -36944,7 +38886,7 @@ public class THBaseService {
}
/**
- * the tablename to delete
+ * the tablename to enable
*/
@org.apache.thrift.annotation.Nullable
public TTableName getTableName() {
@@ -36952,9 +38894,9 @@ public class THBaseService {
}
/**
- * the tablename to delete
+ * the tablename to enable
*/
- public deleteTable_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;
}
@@ -37014,12 +38956,12 @@ public class THBaseService {
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 enableTable_args)
+ return this.equals((enableTable_args)that);
return false;
}
- public boolean equals(deleteTable_args that) {
+ public boolean equals(enableTable_args that) {
if (that == null)
return false;
if (this == that)
@@ -37049,7 +38991,7 @@ public class THBaseService {
}
@Override
- public int compareTo(deleteTable_args other) {
+ public int compareTo(enableTable_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -37084,7 +39026,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_args(");
boolean first = true;
sb.append("tableName:");
@@ -37125,15 +39067,15 @@ public class THBaseService {
}
}
- private static class deleteTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public deleteTable_argsStandardScheme getScheme() {
- return new deleteTable_argsStandardScheme();
+ private static class enableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public enableTable_argsStandardScheme getScheme() {
+ return new enableTable_argsStandardScheme();
}
}
- private static class deleteTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteTable_args> {
+ private static class enableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<enableTable_args> {
- 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, enableTable_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -37163,7 +39105,7 @@ public class THBaseService {
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, enableTable_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -37178,22 +39120,22 @@ public class THBaseService {
}
- private static class deleteTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public deleteTable_argsTupleScheme getScheme() {
- return new deleteTable_argsTupleScheme();
+ private static class enableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public enableTable_argsTupleScheme getScheme() {
+ return new enableTable_argsTupleScheme();
}
}
- private static class deleteTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteTable_args> {
+ private static class enableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<enableTable_args> {
@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, enableTable_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 {
+ 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);
@@ -37206,13 +39148,13 @@ public class THBaseService {
}
}
- public static class deleteTable_result implements org.apache.thrift.TBase<deleteTable_result, deleteTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteTable_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_result");
+ public static class enableTable_result implements org.apache.thrift.TBase<enableTable_result, enableTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableTable_result> {
+ 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 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 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
@@ -37283,13 +39225,13 @@ public class THBaseService {
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(enableTable_result.class, metaDataMap);
}
- public deleteTable_result() {
+ public enableTable_result() {
}
- public deleteTable_result(
+ public enableTable_result(
TIOError io)
{
this();
@@ -37299,14 +39241,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public deleteTable_result(deleteTable_result other) {
+ public enableTable_result(enableTable_result other) {
if (other.isSetIo()) {
this.io = new TIOError(other.io);
}
}
- public deleteTable_result deepCopy() {
- return new deleteTable_result(this);
+ public enableTable_result deepCopy() {
+ return new enableTable_result(this);
}
@Override
@@ -37319,7 +39261,7 @@ public class THBaseService {
return this.io;
}
- public deleteTable_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;
}
@@ -37379,12 +39321,12 @@ public class THBaseService {
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 enableTable_result)
+ return this.equals((enableTable_result)that);
return false;
}
- public boolean equals(deleteTable_result that) {
+ public boolean equals(enableTable_result that) {
if (that == null)
return false;
if (this == that)
@@ -37414,7 +39356,7 @@ public class THBaseService {
}
@Override
- public int compareTo(deleteTable_result other) {
+ public int compareTo(enableTable_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -37449,7 +39391,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteTable_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_result(");
boolean first = true;
sb.append("io:");
@@ -37484,15 +39426,15 @@ public class THBaseService {
}
}
- private static class deleteTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public deleteTable_resultStandardScheme getScheme() {
- return new deleteTable_resultStandardScheme();
+ private static class enableTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public enableTable_resultStandardScheme getScheme() {
+ return new enableTable_resultStandardScheme();
}
}
- private static class deleteTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteTable_result> {
+ private static class enableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<enableTable_result> {
- 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, enableTable_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -37522,7 +39464,7 @@ public class THBaseService {
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, enableTable_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -37537,16 +39479,16 @@ public class THBaseService {
}
- private static class deleteTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public deleteTable_resultTupleScheme getScheme() {
- return new deleteTable_resultTupleScheme();
+ private static class enableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public enableTable_resultTupleScheme getScheme() {
+ return new enableTable_resultTupleScheme();
}
}
- private static class deleteTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteTable_result> {
+ private static class enableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<enableTable_result> {
@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, 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()) {
@@ -37559,7 +39501,7 @@ public class THBaseService {
}
@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, 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)) {
@@ -37575,34 +39517,25 @@ public class THBaseService {
}
}
- public static class truncateTable_args implements org.apache.thrift.TBase<truncateTable_args, truncateTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<truncateTable_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncateTable_args");
+ public static class disableTable_args implements org.apache.thrift.TBase<disableTable_args, disableTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableTable_args> {
+ 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.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 disableTable_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new disableTable_argsTupleSchemeFactory();
/**
- * the tablename to truncate
+ * the tablename to disable
*/
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 disable
*/
- PRESERVE_SPLITS((short)2, "preserveSplits");
+ TABLE_NAME((short)1, "tableName");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -37620,8 +39553,6 @@ public class THBaseService {
switch(fieldId) {
case 1: // TABLE_NAME
return TABLE_NAME;
- case 2: // PRESERVE_SPLITS
- return PRESERVE_SPLITS;
default:
return null;
}
@@ -37663,56 +39594,45 @@ public class THBaseService {
}
// 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(disableTable_args.class, metaDataMap);
}
- public truncateTable_args() {
+ public disableTable_args() {
}
- public truncateTable_args(
- TTableName tableName,
- boolean preserveSplits)
+ public disableTable_args(
+ TTableName tableName)
{
this();
this.tableName = tableName;
- this.preserveSplits = preserveSplits;
- setPreserveSplitsIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public truncateTable_args(truncateTable_args other) {
- __isset_bitfield = other.__isset_bitfield;
+ public disableTable_args(disableTable_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 disableTable_args deepCopy() {
+ return new disableTable_args(this);
}
@Override
public void clear() {
this.tableName = null;
- setPreserveSplitsIsSet(false);
- this.preserveSplits = false;
}
/**
- * the tablename to truncate
+ * the tablename to disable
*/
@org.apache.thrift.annotation.Nullable
public TTableName getTableName() {
@@ -37720,9 +39640,9 @@ public class THBaseService {
}
/**
- * the tablename to truncate
+ * the tablename to disable
*/
- public truncateTable_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;
}
@@ -37742,35 +39662,6 @@ public class THBaseService {
}
}
- /**
- * 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 +39672,6 @@ public class THBaseService {
}
break;
- case PRESERVE_SPLITS:
- if (value == null) {
- unsetPreserveSplits();
- } else {
- setPreserveSplits((java.lang.Boolean)value);
- }
- break;
-
}
}
@@ -37798,9 +39681,6 @@ public class THBaseService {
case TABLE_NAME:
return getTableName();
- case PRESERVE_SPLITS:
- return isPreserveSplits();
-
}
throw new java.lang.IllegalStateException();
}
@@ -37814,8 +39694,6 @@ public class THBaseService {
switch (field) {
case TABLE_NAME:
return isSetTableName();
- case PRESERVE_SPLITS:
- return isSetPreserveSplits();
}
throw new java.lang.IllegalStateException();
}
@@ -37824,12 +39702,12 @@ public class THBaseService {
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 disableTable_args)
+ return this.equals((disableTable_args)that);
return false;
}
- public boolean equals(truncateTable_args that) {
+ public boolean equals(disableTable_args that) {
if (that == null)
return false;
if (this == that)
@@ -37844,15 +39722,6 @@ public class THBaseService {
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 +39733,11 @@ public class THBaseService {
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(disableTable_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -37887,16 +39754,6 @@ public class THBaseService {
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 +39772,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("truncateTable_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_args(");
boolean first = true;
sb.append("tableName:");
@@ -37925,10 +39782,6 @@ public class THBaseService {
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 +39791,6 @@ public class THBaseService {
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 +39807,21 @@ public class THBaseService {
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 disableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public disableTable_argsStandardScheme getScheme() {
+ return new disableTable_argsStandardScheme();
}
}
- private static class truncateTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<truncateTable_args> {
+ private static class disableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<disableTable_args> {
- 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, disableTable_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -37990,14 +39840,6 @@ public class THBaseService {
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 +39848,10 @@ public class THBaseService {
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, disableTable_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -38021,38 +39860,32 @@ public class THBaseService {
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 disableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public disableTable_argsTupleScheme getScheme() {
+ return new disableTable_argsTupleScheme();
}
}
- private static class truncateTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<truncateTable_args> {
+ private static class disableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<disableTable_args> {
@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, disableTable_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, 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);
struct.setTableNameIsSet(true);
- struct.preserveSplits = iprot.readBool();
- struct.setPreserveSplitsIsSet(true);
}
}
@@ -38061,13 +39894,13 @@ public class THBaseService {
}
}
- public static class truncateTable_result implements org.apache.thrift.TBase<truncateTable_result, truncateTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<truncateTable_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("truncateTable_result");
+ public static class disableTable_result implements org.apache.thrift.TBase<disableTable_result, disableTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableTable_result> {
+ 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 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 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
@@ -38138,13 +39971,13 @@ public class THBaseService {
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(disableTable_result.class, metaDataMap);
}
- public truncateTable_result() {
+ public disableTable_result() {
}
- public truncateTable_result(
+ public disableTable_result(
TIOError io)
{
this();
@@ -38154,14 +39987,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public truncateTable_result(truncateTable_result other) {
+ public disableTable_result(disableTable_result other) {
if (other.isSetIo()) {
this.io = new TIOError(other.io);
}
}
- public truncateTable_result deepCopy() {
- return new truncateTable_result(this);
+ public disableTable_result deepCopy() {
+ return new disableTable_result(this);
}
@Override
@@ -38174,7 +40007,7 @@ public class THBaseService {
return this.io;
}
- public truncateTable_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;
}
@@ -38234,12 +40067,12 @@ public class THBaseService {
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 disableTable_result)
+ return this.equals((disableTable_result)that);
return false;
}
- public boolean equals(truncateTable_result that) {
+ public boolean equals(disableTable_result that) {
if (that == null)
return false;
if (this == that)
@@ -38269,7 +40102,7 @@ public class THBaseService {
}
@Override
- public int compareTo(truncateTable_result other) {
+ public int compareTo(disableTable_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -38304,7 +40137,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("truncateTable_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_result(");
boolean first = true;
sb.append("io:");
@@ -38339,15 +40172,15 @@ public class THBaseService {
}
}
- private static class truncateTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public truncateTable_resultStandardScheme getScheme() {
- return new truncateTable_resultStandardScheme();
+ private static class disableTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public disableTable_resultStandardScheme getScheme() {
+ return new disableTable_resultStandardScheme();
}
}
- private static class truncateTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<truncateTable_result> {
+ private static class disableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<disableTable_result> {
- 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, disableTable_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -38377,7 +40210,7 @@ public class THBaseService {
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, disableTable_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -38392,16 +40225,16 @@ public class THBaseService {
}
- private static class truncateTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public truncateTable_resultTupleScheme getScheme() {
- return new truncateTable_resultTupleScheme();
+ private static class disableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public disableTable_resultTupleScheme getScheme() {
+ return new disableTable_resultTupleScheme();
}
}
- private static class truncateTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<truncateTable_result> {
+ private static class disableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<disableTable_result> {
@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, 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()) {
@@ -38414,7 +40247,7 @@ public class THBaseService {
}
@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, 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)) {
@@ -38430,23 +40263,23 @@ public class THBaseService {
}
}
- public static class enableTable_args implements org.apache.thrift.TBase<enableTable_args, enableTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableTable_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_args");
+ public static class isTableEnabled_args implements org.apache.thrift.TBase<isTableEnabled_args, isTableEnabled_args._Fields>, java.io.Serializable, Cloneable, Comparable<isTableEnabled_args> {
+ 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 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 isTableEnabled_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableEnabled_argsTupleSchemeFactory();
/**
- * the tablename to enable
+ * 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 enable
+ * the tablename to check
*/
TABLE_NAME((short)1, "tableName");
@@ -38513,13 +40346,13 @@ public class THBaseService {
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(isTableEnabled_args.class, metaDataMap);
}
- public enableTable_args() {
+ public isTableEnabled_args() {
}
- public enableTable_args(
+ public isTableEnabled_args(
TTableName tableName)
{
this();
@@ -38529,14 +40362,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public enableTable_args(enableTable_args other) {
+ public isTableEnabled_args(isTableEnabled_args other) {
if (other.isSetTableName()) {
this.tableName = new TTableName(other.tableName);
}
}
- public enableTable_args deepCopy() {
- return new enableTable_args(this);
+ public isTableEnabled_args deepCopy() {
+ return new isTableEnabled_args(this);
}
@Override
@@ -38545,7 +40378,7 @@ public class THBaseService {
}
/**
- * the tablename to enable
+ * the tablename to check
*/
@org.apache.thrift.annotation.Nullable
public TTableName getTableName() {
@@ -38553,9 +40386,9 @@ public class THBaseService {
}
/**
- * the tablename to enable
+ * the tablename to check
*/
- public enableTable_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;
}
@@ -38615,12 +40448,12 @@ public class THBaseService {
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 isTableEnabled_args)
+ return this.equals((isTableEnabled_args)that);
return false;
}
- public boolean equals(enableTable_args that) {
+ public boolean equals(isTableEnabled_args that) {
if (that == null)
return false;
if (this == that)
@@ -38650,7 +40483,7 @@ public class THBaseService {
}
@Override
- public int compareTo(enableTable_args other) {
+ public int compareTo(isTableEnabled_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -38685,7 +40518,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_args(");
boolean first = true;
sb.append("tableName:");
@@ -38726,15 +40559,15 @@ public class THBaseService {
}
}
- private static class enableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public enableTable_argsStandardScheme getScheme() {
- return new enableTable_argsStandardScheme();
+ private static class isTableEnabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableEnabled_argsStandardScheme getScheme() {
+ return new isTableEnabled_argsStandardScheme();
}
}
- private static class enableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<enableTable_args> {
+ private static class isTableEnabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableEnabled_args> {
- 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, isTableEnabled_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -38764,7 +40597,7 @@ public class THBaseService {
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, isTableEnabled_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -38779,22 +40612,22 @@ public class THBaseService {
}
- private static class enableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public enableTable_argsTupleScheme getScheme() {
- return new enableTable_argsTupleScheme();
+ private static class isTableEnabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableEnabled_argsTupleScheme getScheme() {
+ return new isTableEnabled_argsTupleScheme();
}
}
- private static class enableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<enableTable_args> {
+ private static class isTableEnabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableEnabled_args> {
@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, 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, enableTable_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);
@@ -38807,18 +40640,21 @@ public class THBaseService {
}
}
- public static class enableTable_result implements org.apache.thrift.TBase<enableTable_result, enableTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableTable_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_result");
+ public static class isTableEnabled_result implements org.apache.thrift.TBase<isTableEnabled_result, isTableEnabled_result._Fields>, java.io.Serializable, Cloneable, Comparable<isTableEnabled_result> {
+ 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 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 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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -38835,6 +40671,8 @@ public class THBaseService {
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
case 1: // IO
return IO;
default:
@@ -38878,49 +40716,83 @@ public class THBaseService {
}
// 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(enableTable_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_result.class, metaDataMap);
}
- public enableTable_result() {
+ public isTableEnabled_result() {
}
- public enableTable_result(
+ public isTableEnabled_result(
+ boolean success,
TIOError io)
{
this();
+ this.success = success;
+ setSuccessIsSet(true);
this.io = io;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public enableTable_result(enableTable_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 enableTable_result deepCopy() {
- return new enableTable_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 enableTable_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;
}
@@ -38942,6 +40814,14 @@ public class THBaseService {
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();
@@ -38956,6 +40836,9 @@ public class THBaseService {
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
+ case SUCCESS:
+ return isSuccess();
+
case IO:
return getIo();
@@ -38970,6 +40853,8 @@ public class THBaseService {
}
switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
case IO:
return isSetIo();
}
@@ -38980,17 +40865,26 @@ public class THBaseService {
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 isTableEnabled_result)
+ return this.equals((isTableEnabled_result)that);
return false;
}
- public boolean equals(enableTable_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) {
@@ -39007,6 +40901,8 @@ public class THBaseService {
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();
@@ -39015,13 +40911,23 @@ public class THBaseService {
}
@Override
- public int compareTo(enableTable_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;
@@ -39050,9 +40956,13 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("enableTable_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");
@@ -39079,21 +40989,23 @@ public class THBaseService {
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 enableTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public enableTable_resultStandardScheme getScheme() {
- return new enableTable_resultStandardScheme();
+ private static class isTableEnabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableEnabled_resultStandardScheme getScheme() {
+ return new isTableEnabled_resultStandardScheme();
}
}
- private static class enableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<enableTable_result> {
+ private static class isTableEnabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableEnabled_result> {
- 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, isTableEnabled_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -39103,6 +41015,14 @@ public class THBaseService {
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();
@@ -39123,10 +41043,15 @@ public class THBaseService {
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, 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);
@@ -39138,32 +41063,42 @@ public class THBaseService {
}
- private static class enableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public enableTable_resultTupleScheme getScheme() {
- return new enableTable_resultTupleScheme();
+ private static class isTableEnabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableEnabled_resultTupleScheme getScheme() {
+ return new isTableEnabled_resultTupleScheme();
}
}
- private static class enableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<enableTable_result> {
+ private static class isTableEnabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableEnabled_result> {
@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, 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, enableTable_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);
@@ -39176,23 +41111,23 @@ public class THBaseService {
}
}
- public static class disableTable_args implements org.apache.thrift.TBase<disableTable_args, disableTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableTable_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_args");
+ public static class isTableDisabled_args implements org.apache.thrift.TBase<isTableDisabled_args, isTableDisabled_args._Fields>, java.io.Serializable, Cloneable, Comparable<isTableDisabled_args> {
+ 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 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 isTableDisabled_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableDisabled_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 +41194,13 @@ public class THBaseService {
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(isTableDisabled_args.class, metaDataMap);
}
- public disableTable_args() {
+ public isTableDisabled_args() {
}
- public disableTable_args(
+ public isTableDisabled_args(
TTableName tableName)
{
this();
@@ -39275,14 +41210,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public disableTable_args(disableTable_args other) {
+ public isTableDisabled_args(isTableDisabled_args other) {
if (other.isSetTableName()) {
this.tableName = new TTableName(other.tableName);
}
}
- public disableTable_args deepCopy() {
- return new disableTable_args(this);
+ public isTableDisabled_args deepCopy() {
+ return new isTableDisabled_args(this);
}
@Override
@@ -39291,7 +41226,7 @@ public class THBaseService {
}
/**
- * the tablename to disable
+ * the tablename to check
*/
@org.apache.thrift.annotation.Nullable
public TTableName getTableName() {
@@ -39299,9 +41234,9 @@ public class THBaseService {
}
/**
- * the tablename to disable
+ * the tablename to check
*/
- public disableTable_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;
}
@@ -39361,12 +41296,12 @@ public class THBaseService {
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 isTableDisabled_args)
+ return this.equals((isTableDisabled_args)that);
return false;
}
- public boolean equals(disableTable_args that) {
+ public boolean equals(isTableDisabled_args that) {
if (that == null)
return false;
if (this == that)
@@ -39396,7 +41331,7 @@ public class THBaseService {
}
@Override
- public int compareTo(disableTable_args other) {
+ public int compareTo(isTableDisabled_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -39431,7 +41366,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_args(");
boolean first = true;
sb.append("tableName:");
@@ -39472,15 +41407,15 @@ public class THBaseService {
}
}
- private static class disableTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public disableTable_argsStandardScheme getScheme() {
- return new disableTable_argsStandardScheme();
+ private static class isTableDisabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableDisabled_argsStandardScheme getScheme() {
+ return new isTableDisabled_argsStandardScheme();
}
}
- private static class disableTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<disableTable_args> {
+ private static class isTableDisabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableDisabled_args> {
- 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, isTableDisabled_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -39510,7 +41445,7 @@ public class THBaseService {
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, isTableDisabled_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -39525,22 +41460,22 @@ public class THBaseService {
}
- private static class disableTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public disableTable_argsTupleScheme getScheme() {
- return new disableTable_argsTupleScheme();
+ private static class isTableDisabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableDisabled_argsTupleScheme getScheme() {
+ return new isTableDisabled_argsTupleScheme();
}
}
- private static class disableTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<disableTable_args> {
+ private static class isTableDisabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableDisabled_args> {
@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, 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, disableTable_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);
@@ -39553,18 +41488,21 @@ public class THBaseService {
}
}
- public static class disableTable_result implements org.apache.thrift.TBase<disableTable_result, disableTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableTable_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_result");
+ public static class isTableDisabled_result implements org.apache.thrift.TBase<isTableDisabled_result, isTableDisabled_result._Fields>, java.io.Serializable, Cloneable, Comparable<isTableDisabled_result> {
+ 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 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 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
/** 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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -39581,6 +41519,8 @@ public class THBaseService {
@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 +41564,83 @@ public class THBaseService {
}
// 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(isTableDisabled_result.class, metaDataMap);
}
- public disableTable_result() {
+ public isTableDisabled_result() {
}
- public disableTable_result(
+ public isTableDisabled_result(
+ boolean success,
TIOError io)
{
this();
+ this.success = success;
+ setSuccessIsSet(true);
this.io = io;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public disableTable_result(disableTable_result other) {
+ public isTableDisabled_result(isTableDisabled_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 isTableDisabled_result deepCopy() {
+ return new isTableDisabled_result(this);
}
@Override
public void clear() {
+ setSuccessIsSet(false);
+ this.success = false;
this.io = null;
}
+ public boolean isSuccess() {
+ return this.success;
+ }
+
+ public isTableDisabled_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 isTableDisabled_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) {
this.io = io;
return this;
}
@@ -39688,6 +41662,14 @@ public class THBaseService {
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 +41684,9 @@ public class THBaseService {
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
+ case SUCCESS:
+ return isSuccess();
+
case IO:
return getIo();
@@ -39716,6 +41701,8 @@ public class THBaseService {
}
switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
case IO:
return isSetIo();
}
@@ -39726,17 +41713,26 @@ public class THBaseService {
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 isTableDisabled_result)
+ return this.equals((isTableDisabled_result)that);
return false;
}
- public boolean equals(disableTable_result that) {
+ public boolean equals(isTableDisabled_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 +41749,8 @@ public class THBaseService {
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 +41759,23 @@ public class THBaseService {
}
@Override
- public int compareTo(disableTable_result other) {
+ public int compareTo(isTableDisabled_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 +41804,13 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("disableTable_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_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 +41837,23 @@ public class THBaseService {
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 isTableDisabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableDisabled_resultStandardScheme getScheme() {
+ return new isTableDisabled_resultStandardScheme();
}
}
- private static class disableTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<disableTable_result> {
+ private static class isTableDisabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableDisabled_result> {
- 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, isTableDisabled_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -39849,6 +41863,14 @@ public class THBaseService {
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 +41891,15 @@ public class THBaseService {
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, isTableDisabled_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 +41911,42 @@ public class THBaseService {
}
- private static class disableTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public disableTable_resultTupleScheme getScheme() {
- return new disableTable_resultTupleScheme();
+ private static class isTableDisabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableDisabled_resultTupleScheme getScheme() {
+ return new isTableDisabled_resultTupleScheme();
}
}
- private static class disableTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<disableTable_result> {
+ private static class isTableDisabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableDisabled_result> {
@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, 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.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, 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(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 +41959,13 @@ public class THBaseService {
}
}
- public static class isTableEnabled_args implements org.apache.thrift.TBase<isTableEnabled_args, isTableEnabled_args._Fields>, java.io.Serializable, Cloneable, Comparable<isTableEnabled_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_args");
+ public static class isTableAvailable_args implements org.apache.thrift.TBase<isTableAvailable_args, isTableAvailable_args._Fields>, java.io.Serializable, Cloneable, Comparable<isTableAvailable_args> {
+ 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 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 isTableAvailable_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isTableAvailable_argsTupleSchemeFactory();
/**
* the tablename to check
@@ -40005,13 +42042,13 @@ public class THBaseService {
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(isTableAvailable_args.class, metaDataMap);
}
- public isTableEnabled_args() {
+ public isTableAvailable_args() {
}
- public isTableEnabled_args(
+ public isTableAvailable_args(
TTableName tableName)
{
this();
@@ -40021,14 +42058,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public isTableEnabled_args(isTableEnabled_args other) {
+ public isTableAvailable_args(isTableAvailable_args other) {
if (other.isSetTableName()) {
this.tableName = new TTableName(other.tableName);
}
}
- public isTableEnabled_args deepCopy() {
- return new isTableEnabled_args(this);
+ public isTableAvailable_args deepCopy() {
+ return new isTableAvailable_args(this);
}
@Override
@@ -40047,7 +42084,7 @@ public class THBaseService {
/**
* the tablename to check
*/
- public isTableEnabled_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;
}
@@ -40107,12 +42144,12 @@ public class THBaseService {
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 isTableAvailable_args)
+ return this.equals((isTableAvailable_args)that);
return false;
}
- public boolean equals(isTableEnabled_args that) {
+ public boolean equals(isTableAvailable_args that) {
if (that == null)
return false;
if (this == that)
@@ -40142,7 +42179,7 @@ public class THBaseService {
}
@Override
- public int compareTo(isTableEnabled_args other) {
+ public int compareTo(isTableAvailable_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -40177,7 +42214,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_args(");
boolean first = true;
sb.append("tableName:");
@@ -40218,15 +42255,15 @@ public class THBaseService {
}
}
- private static class isTableEnabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableEnabled_argsStandardScheme getScheme() {
- return new isTableEnabled_argsStandardScheme();
+ private static class isTableAvailable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableAvailable_argsStandardScheme getScheme() {
+ return new isTableAvailable_argsStandardScheme();
}
}
- private static class isTableEnabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableEnabled_args> {
+ private static class isTableAvailable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableAvailable_args> {
- 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, isTableAvailable_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -40256,7 +42293,7 @@ public class THBaseService {
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, isTableAvailable_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -40271,22 +42308,22 @@ public class THBaseService {
}
- private static class isTableEnabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableEnabled_argsTupleScheme getScheme() {
- return new isTableEnabled_argsTupleScheme();
+ private static class isTableAvailable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableAvailable_argsTupleScheme getScheme() {
+ return new isTableAvailable_argsTupleScheme();
}
}
- private static class isTableEnabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableEnabled_args> {
+ private static class isTableAvailable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableAvailable_args> {
@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, 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, isTableEnabled_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);
@@ -40299,14 +42336,14 @@ public class THBaseService {
}
}
- public static class isTableEnabled_result implements org.apache.thrift.TBase<isTableEnabled_result, isTableEnabled_result._Fields>, java.io.Serializable, Cloneable, Comparable<isTableEnabled_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_result");
+ public static class isTableAvailable_result implements org.apache.thrift.TBase<isTableAvailable_result, isTableAvailable_result._Fields>, java.io.Serializable, Cloneable, Comparable<isTableAvailable_result> {
+ 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 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 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
@@ -40385,13 +42422,13 @@ public class THBaseService {
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(isTableAvailable_result.class, metaDataMap);
}
- public isTableEnabled_result() {
+ public isTableAvailable_result() {
}
- public isTableEnabled_result(
+ public isTableAvailable_result(
boolean success,
TIOError io)
{
@@ -40404,7 +42441,7 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public isTableEnabled_result(isTableEnabled_result other) {
+ public isTableAvailable_result(isTableAvailable_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetIo()) {
@@ -40412,8 +42449,8 @@ public class THBaseService {
}
}
- public isTableEnabled_result deepCopy() {
- return new isTableEnabled_result(this);
+ public isTableAvailable_result deepCopy() {
+ return new isTableAvailable_result(this);
}
@Override
@@ -40427,7 +42464,7 @@ public class THBaseService {
return this.success;
}
- public isTableEnabled_result setSuccess(boolean success) {
+ public isTableAvailable_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
@@ -40451,7 +42488,7 @@ public class THBaseService {
return this.io;
}
- public isTableEnabled_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;
}
@@ -40524,12 +42561,12 @@ public class THBaseService {
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 isTableAvailable_result)
+ return this.equals((isTableAvailable_result)that);
return false;
}
- public boolean equals(isTableEnabled_result that) {
+ public boolean equals(isTableAvailable_result that) {
if (that == null)
return false;
if (this == that)
@@ -40570,7 +42607,7 @@ public class THBaseService {
}
@Override
- public int compareTo(isTableEnabled_result other) {
+ public int compareTo(isTableAvailable_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -40615,7 +42652,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableEnabled_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_result(");
boolean first = true;
sb.append("success:");
@@ -40656,15 +42693,15 @@ public class THBaseService {
}
}
- private static class isTableEnabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableEnabled_resultStandardScheme getScheme() {
- return new isTableEnabled_resultStandardScheme();
+ private static class isTableAvailable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableAvailable_resultStandardScheme getScheme() {
+ return new isTableAvailable_resultStandardScheme();
}
}
- private static class isTableEnabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableEnabled_result> {
+ private static class isTableAvailable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableAvailable_result> {
- 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, isTableAvailable_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -40702,7 +42739,7 @@ public class THBaseService {
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, isTableAvailable_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -40722,16 +42759,16 @@ public class THBaseService {
}
- private static class isTableEnabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableEnabled_resultTupleScheme getScheme() {
- return new isTableEnabled_resultTupleScheme();
+ private static class isTableAvailable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableAvailable_resultTupleScheme getScheme() {
+ return new isTableAvailable_resultTupleScheme();
}
}
- private static class isTableEnabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableEnabled_result> {
+ private static class isTableAvailable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableAvailable_result> {
@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, 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()) {
@@ -40750,7 +42787,7 @@ public class THBaseService {
}
@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, 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)) {
@@ -40770,25 +42807,34 @@ public class THBaseService {
}
}
- public static class isTableDisabled_args implements org.apache.thrift.TBase<isTableDisabled_args, isTableDisabled_args._Fields>, java.io.Serializable, Cloneable, Comparable<isTableDisabled_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableDisabled_args");
+ public static class isTableAvailableWithSplit_args implements org.apache.thrift.TBase<isTableAvailableWithSplit_args, isTableAvailableWithSplit_args._Fields>, java.io.Serializable, Cloneable, Comparable<isTableAvailableWithSplit_args> {
+ 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 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 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<java.nio.ByteBuffer> 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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -40806,6 +42852,8 @@ public class THBaseService {
switch(fieldId) {
case 1: // TABLE_NAME
return TABLE_NAME;
+ case 2: // SPLIT_KEYS
+ return SPLIT_KEYS;
default:
return null;
}
@@ -40852,36 +42900,46 @@ public class THBaseService {
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(isTableDisabled_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailableWithSplit_args.class, metaDataMap);
}
- public isTableDisabled_args() {
+ public isTableAvailableWithSplit_args() {
}
- public isTableDisabled_args(
- TTableName tableName)
+ public isTableAvailableWithSplit_args(
+ TTableName tableName,
+ java.util.List<java.nio.ByteBuffer> splitKeys)
{
this();
this.tableName = tableName;
+ this.splitKeys = splitKeys;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public isTableDisabled_args(isTableDisabled_args other) {
+ public isTableAvailableWithSplit_args(isTableAvailableWithSplit_args other) {
if (other.isSetTableName()) {
this.tableName = new TTableName(other.tableName);
}
+ if (other.isSetSplitKeys()) {
+ java.util.List<java.nio.ByteBuffer> __this__splitKeys = new java.util.ArrayList<java.nio.ByteBuffer>(other.splitKeys);
+ this.splitKeys = __this__splitKeys;
+ }
}
- public isTableDisabled_args deepCopy() {
- return new isTableDisabled_args(this);
+ public isTableAvailableWithSplit_args deepCopy() {
+ return new isTableAvailableWithSplit_args(this);
}
@Override
public void clear() {
this.tableName = null;
+ this.splitKeys = null;
}
/**
@@ -40895,7 +42953,7 @@ public class THBaseService {
/**
* the tablename to check
*/
- public isTableDisabled_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;
}
@@ -40915,6 +42973,53 @@ public class THBaseService {
}
}
+ public int getSplitKeysSize() {
+ return (this.splitKeys == null) ? 0 : this.splitKeys.size();
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Iterator<java.nio.ByteBuffer> 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<java.nio.ByteBuffer>();
+ }
+ 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<java.nio.ByteBuffer> 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<java.nio.ByteBuffer> 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:
@@ -40925,6 +43030,14 @@ public class THBaseService {
}
break;
+ case SPLIT_KEYS:
+ if (value == null) {
+ unsetSplitKeys();
+ } else {
+ setSplitKeys((java.util.List<java.nio.ByteBuffer>)value);
+ }
+ break;
+
}
}
@@ -40934,6 +43047,9 @@ public class THBaseService {
case TABLE_NAME:
return getTableName();
+ case SPLIT_KEYS:
+ return getSplitKeys();
+
}
throw new java.lang.IllegalStateException();
}
@@ -40947,6 +43063,8 @@ public class THBaseService {
switch (field) {
case TABLE_NAME:
return isSetTableName();
+ case SPLIT_KEYS:
+ return isSetSplitKeys();
}
throw new java.lang.IllegalStateException();
}
@@ -40955,12 +43073,12 @@ public class THBaseService {
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 isTableAvailableWithSplit_args)
+ return this.equals((isTableAvailableWithSplit_args)that);
return false;
}
- public boolean equals(isTableDisabled_args that) {
+ public boolean equals(isTableAvailableWithSplit_args that) {
if (that == null)
return false;
if (this == that)
@@ -40975,6 +43093,15 @@ public class THBaseService {
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;
}
@@ -40986,11 +43113,15 @@ public class THBaseService {
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(isTableDisabled_args other) {
+ public int compareTo(isTableAvailableWithSplit_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -41007,6 +43138,16 @@ public class THBaseService {
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;
}
@@ -41025,7 +43166,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_args(");
boolean first = true;
sb.append("tableName:");
@@ -41035,6 +43176,14 @@ public class THBaseService {
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();
}
@@ -41066,15 +43215,15 @@ public class THBaseService {
}
}
- private static class isTableDisabled_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableDisabled_argsStandardScheme getScheme() {
- return new isTableDisabled_argsStandardScheme();
+ private static class isTableAvailableWithSplit_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableAvailableWithSplit_argsStandardScheme getScheme() {
+ return new isTableAvailableWithSplit_argsStandardScheme();
}
}
- private static class isTableDisabled_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableDisabled_args> {
+ private static class isTableAvailableWithSplit_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableAvailableWithSplit_args> {
- 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, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -41093,6 +43242,24 @@ public class THBaseService {
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<java.nio.ByteBuffer>(_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);
}
@@ -41104,7 +43271,7 @@ public class THBaseService {
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, isTableAvailableWithSplit_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -41113,32 +43280,72 @@ public class THBaseService {
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 isTableDisabled_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableDisabled_argsTupleScheme getScheme() {
- return new isTableDisabled_argsTupleScheme();
+ private static class isTableAvailableWithSplit_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableAvailableWithSplit_argsTupleScheme getScheme() {
+ return new isTableAvailableWithSplit_argsTupleScheme();
}
}
- private static class isTableDisabled_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableDisabled_args> {
+ private static class isTableAvailableWithSplit_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableAvailableWithSplit_args> {
@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, 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, isTableDisabled_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<java.nio.ByteBuffer>(_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);
+ }
}
}
@@ -41147,14 +43354,14 @@ public class THBaseService {
}
}
- public static class isTableDisabled_result implements org.apache.thrift.TBase<isTableDisabled_result, isTableDisabled_result._Fields>, java.io.Serializable, Cloneable, Comparable<isTableDisabled_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableDisabled_result");
+ public static class isTableAvailableWithSplit_result implements org.apache.thrift.TBase<isTableAvailableWithSplit_result, isTableAvailableWithSplit_result._Fields>, java.io.Serializable, Cloneable, Comparable<isTableAvailableWithSplit_result> {
+ 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 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 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
@@ -41233,13 +43440,13 @@ public class THBaseService {
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(isTableAvailableWithSplit_result.class, metaDataMap);
}
- public isTableDisabled_result() {
+ public isTableAvailableWithSplit_result() {
}
- public isTableDisabled_result(
+ public isTableAvailableWithSplit_result(
boolean success,
TIOError io)
{
@@ -41252,7 +43459,7 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public isTableDisabled_result(isTableDisabled_result other) {
+ public isTableAvailableWithSplit_result(isTableAvailableWithSplit_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetIo()) {
@@ -41260,8 +43467,8 @@ public class THBaseService {
}
}
- public isTableDisabled_result deepCopy() {
- return new isTableDisabled_result(this);
+ public isTableAvailableWithSplit_result deepCopy() {
+ return new isTableAvailableWithSplit_result(this);
}
@Override
@@ -41275,7 +43482,7 @@ public class THBaseService {
return this.success;
}
- public isTableDisabled_result setSuccess(boolean success) {
+ public isTableAvailableWithSplit_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
@@ -41299,7 +43506,7 @@ public class THBaseService {
return this.io;
}
- public isTableDisabled_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;
}
@@ -41372,12 +43579,12 @@ public class THBaseService {
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 isTableAvailableWithSplit_result)
+ return this.equals((isTableAvailableWithSplit_result)that);
return false;
}
- public boolean equals(isTableDisabled_result that) {
+ public boolean equals(isTableAvailableWithSplit_result that) {
if (that == null)
return false;
if (this == that)
@@ -41418,7 +43625,7 @@ public class THBaseService {
}
@Override
- public int compareTo(isTableDisabled_result other) {
+ public int compareTo(isTableAvailableWithSplit_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -41463,7 +43670,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableDisabled_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_result(");
boolean first = true;
sb.append("success:");
@@ -41504,15 +43711,15 @@ public class THBaseService {
}
}
- private static class isTableDisabled_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableDisabled_resultStandardScheme getScheme() {
- return new isTableDisabled_resultStandardScheme();
+ private static class isTableAvailableWithSplit_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableAvailableWithSplit_resultStandardScheme getScheme() {
+ return new isTableAvailableWithSplit_resultStandardScheme();
}
}
- private static class isTableDisabled_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableDisabled_result> {
+ private static class isTableAvailableWithSplit_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableAvailableWithSplit_result> {
- 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, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -41550,7 +43757,7 @@ public class THBaseService {
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, isTableAvailableWithSplit_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -41570,16 +43777,16 @@ public class THBaseService {
}
- private static class isTableDisabled_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableDisabled_resultTupleScheme getScheme() {
- return new isTableDisabled_resultTupleScheme();
+ private static class isTableAvailableWithSplit_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isTableAvailableWithSplit_resultTupleScheme getScheme() {
+ return new isTableAvailableWithSplit_resultTupleScheme();
}
}
- private static class isTableDisabled_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableDisabled_result> {
+ private static class isTableAvailableWithSplit_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableAvailableWithSplit_result> {
@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, 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()) {
@@ -41598,7 +43805,7 @@ public class THBaseService {
}
@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, 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)) {
@@ -41618,25 +43825,34 @@ public class THBaseService {
}
}
- public static class isTableAvailable_args implements org.apache.thrift.TBase<isTableAvailable_args, isTableAvailable_args._Fields>, java.io.Serializable, Cloneable, Comparable<isTableAvailable_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableAvailable_args");
+ public static class addColumnFamily_args implements org.apache.thrift.TBase<addColumnFamily_args, addColumnFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<addColumnFamily_args> {
+ 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 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 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 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
+ /**
+ * column family descriptor of column family to be added
+ */
+ 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");
+ TABLE_NAME((short)1, "tableName"),
+ /**
+ * column family descriptor of column family to be added
+ */
+ COLUMN((short)2, "column");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -41654,6 +43870,8 @@ public class THBaseService {
switch(fieldId) {
case 1: // TABLE_NAME
return TABLE_NAME;
+ case 2: // COLUMN
+ return COLUMN;
default:
return null;
}
@@ -41700,40 +43918,48 @@ public class THBaseService {
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)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailable_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addColumnFamily_args.class, metaDataMap);
}
- public isTableAvailable_args() {
+ public addColumnFamily_args() {
}
- public isTableAvailable_args(
- TTableName tableName)
+ public addColumnFamily_args(
+ TTableName tableName,
+ TColumnFamilyDescriptor column)
{
this();
this.tableName = tableName;
+ this.column = column;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public isTableAvailable_args(isTableAvailable_args other) {
+ public addColumnFamily_args(addColumnFamily_args other) {
if (other.isSetTableName()) {
this.tableName = new TTableName(other.tableName);
}
+ if (other.isSetColumn()) {
+ this.column = new TColumnFamilyDescriptor(other.column);
+ }
}
- public isTableAvailable_args deepCopy() {
- return new isTableAvailable_args(this);
+ public addColumnFamily_args deepCopy() {
+ return new addColumnFamily_args(this);
}
@Override
public void clear() {
this.tableName = null;
+ this.column = null;
}
/**
- * the tablename to check
+ * the tablename to add column family to
*/
@org.apache.thrift.annotation.Nullable
public TTableName getTableName() {
@@ -41741,9 +43967,9 @@ public class THBaseService {
}
/**
- * the tablename to check
+ * the tablename to add column family to
*/
- public isTableAvailable_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;
}
@@ -41763,6 +43989,37 @@ public class THBaseService {
}
}
+ /**
+ * column family descriptor of column family to be added
+ */
+ @org.apache.thrift.annotation.Nullable
+ public TColumnFamilyDescriptor getColumn() {
+ return this.column;
+ }
+
+ /**
+ * column family descriptor of column family to be added
+ */
+ public addColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) {
+ this.column = column;
+ return this;
+ }
+
+ public void unsetColumn() {
+ this.column = 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 setColumnIsSet(boolean value) {
+ if (!value) {
+ this.column = null;
+ }
+ }
+
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case TABLE_NAME:
@@ -41773,6 +44030,14 @@ public class THBaseService {
}
break;
+ case COLUMN:
+ if (value == null) {
+ unsetColumn();
+ } else {
+ setColumn((TColumnFamilyDescriptor)value);
+ }
+ break;
+
}
}
@@ -41782,6 +44047,9 @@ public class THBaseService {
case TABLE_NAME:
return getTableName();
+ case COLUMN:
+ return getColumn();
+
}
throw new java.lang.IllegalStateException();
}
@@ -41795,6 +44063,8 @@ public class THBaseService {
switch (field) {
case TABLE_NAME:
return isSetTableName();
+ case COLUMN:
+ return isSetColumn();
}
throw new java.lang.IllegalStateException();
}
@@ -41803,12 +44073,12 @@ public class THBaseService {
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 addColumnFamily_args)
+ return this.equals((addColumnFamily_args)that);
return false;
}
- public boolean equals(isTableAvailable_args that) {
+ public boolean equals(addColumnFamily_args that) {
if (that == null)
return false;
if (this == that)
@@ -41823,6 +44093,15 @@ public class THBaseService {
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))
+ return false;
+ if (!this.column.equals(that.column))
+ return false;
+ }
+
return true;
}
@@ -41834,11 +44113,15 @@ public class THBaseService {
if (isSetTableName())
hashCode = hashCode * 8191 + tableName.hashCode();
+ hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287);
+ if (isSetColumn())
+ hashCode = hashCode * 8191 + column.hashCode();
+
return hashCode;
}
@Override
- public int compareTo(isTableAvailable_args other) {
+ public int compareTo(addColumnFamily_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -41855,6 +44138,16 @@ public class THBaseService {
return lastComparison;
}
}
+ lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetColumn()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
return 0;
}
@@ -41873,7 +44166,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("addColumnFamily_args(");
boolean first = true;
sb.append("tableName:");
@@ -41883,6 +44176,14 @@ public class THBaseService {
sb.append(this.tableName);
}
first = false;
+ if (!first) sb.append(", ");
+ sb.append("column:");
+ if (this.column == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.column);
+ }
+ first = false;
sb.append(")");
return sb.toString();
}
@@ -41892,10 +44193,16 @@ public class THBaseService {
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 {
@@ -41914,15 +44221,15 @@ public class THBaseService {
}
}
- private static class isTableAvailable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableAvailable_argsStandardScheme getScheme() {
- return new isTableAvailable_argsStandardScheme();
+ private static class addColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public addColumnFamily_argsStandardScheme getScheme() {
+ return new addColumnFamily_argsStandardScheme();
}
}
- private static class isTableAvailable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableAvailable_args> {
+ private static class addColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<addColumnFamily_args> {
- 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, addColumnFamily_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -41941,6 +44248,15 @@ public class THBaseService {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ 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);
+ }
+ break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -41952,7 +44268,7 @@ public class THBaseService {
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, addColumnFamily_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -41961,32 +44277,41 @@ public class THBaseService {
struct.tableName.write(oprot);
oprot.writeFieldEnd();
}
+ if (struct.column != null) {
+ oprot.writeFieldBegin(COLUMN_FIELD_DESC);
+ struct.column.write(oprot);
+ 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 addColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public addColumnFamily_argsTupleScheme getScheme() {
+ return new addColumnFamily_argsTupleScheme();
}
}
- private static class isTableAvailable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableAvailable_args> {
+ private static class addColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<addColumnFamily_args> {
@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, addColumnFamily_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);
}
@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, 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);
+ struct.column = new TColumnFamilyDescriptor();
+ struct.column.read(iprot);
+ struct.setColumnIsSet(true);
}
}
@@ -41995,21 +44320,18 @@ public class THBaseService {
}
}
- public static class isTableAvailable_result implements org.apache.thrift.TBase<isTableAvailable_result, isTableAvailable_result._Fields>, java.io.Serializable, Cloneable, Comparable<isTableAvailable_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableAvailable_result");
+ public static class addColumnFamily_result implements org.apache.thrift.TBase<addColumnFamily_result, addColumnFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<addColumnFamily_result> {
+ 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 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 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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -42026,8 +44348,6 @@ public class THBaseService {
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
- case 0: // SUCCESS
- return SUCCESS;
case 1: // IO
return IO;
default:
@@ -42071,83 +44391,49 @@ public class THBaseService {
}
// 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(isTableAvailable_result.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addColumnFamily_result.class, metaDataMap);
}
- public isTableAvailable_result() {
+ public addColumnFamily_result() {
}
- public isTableAvailable_result(
- boolean success,
+ public addColumnFamily_result(
TIOError io)
{
this();
- this.success = success;
- setSuccessIsSet(true);
this.io = io;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public isTableAvailable_result(isTableAvailable_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 isTableAvailable_result deepCopy() {
- return new isTableAvailable_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 isTableAvailable_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 isTableAvailable_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;
}
@@ -42169,14 +44455,6 @@ public class THBaseService {
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();
@@ -42191,9 +44469,6 @@ public class THBaseService {
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
- case SUCCESS:
- return isSuccess();
-
case IO:
return getIo();
@@ -42208,8 +44483,6 @@ public class THBaseService {
}
switch (field) {
- case SUCCESS:
- return isSetSuccess();
case IO:
return isSetIo();
}
@@ -42220,26 +44493,17 @@ public class THBaseService {
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 addColumnFamily_result)
+ return this.equals((addColumnFamily_result)that);
return false;
}
- public boolean equals(isTableAvailable_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) {
@@ -42256,8 +44520,6 @@ public class THBaseService {
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();
@@ -42266,23 +44528,13 @@ public class THBaseService {
}
@Override
- public int compareTo(isTableAvailable_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;
@@ -42311,13 +44563,9 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailable_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");
@@ -42344,23 +44592,21 @@ public class THBaseService {
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 isTableAvailable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableAvailable_resultStandardScheme getScheme() {
- return new isTableAvailable_resultStandardScheme();
+ private static class addColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public addColumnFamily_resultStandardScheme getScheme() {
+ return new addColumnFamily_resultStandardScheme();
}
}
- private static class isTableAvailable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableAvailable_result> {
+ private static class addColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<addColumnFamily_result> {
- 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, addColumnFamily_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -42370,14 +44616,6 @@ public class THBaseService {
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();
@@ -42398,15 +44636,10 @@ public class THBaseService {
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, 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);
@@ -42418,42 +44651,32 @@ public class THBaseService {
}
- private static class isTableAvailable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableAvailable_resultTupleScheme getScheme() {
- return new isTableAvailable_resultTupleScheme();
+ private static class addColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public addColumnFamily_resultTupleScheme getScheme() {
+ return new addColumnFamily_resultTupleScheme();
}
}
- private static class isTableAvailable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableAvailable_result> {
+ private static class addColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<addColumnFamily_result> {
@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, 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, isTableAvailable_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);
@@ -42466,34 +44689,34 @@ public class THBaseService {
}
}
- public static class isTableAvailableWithSplit_args implements org.apache.thrift.TBase<isTableAvailableWithSplit_args, isTableAvailableWithSplit_args._Fields>, java.io.Serializable, Cloneable, Comparable<isTableAvailableWithSplit_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableAvailableWithSplit_args");
+ public static class deleteColumnFamily_args implements org.apache.thrift.TBase<deleteColumnFamily_args, deleteColumnFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteColumnFamily_args> {
+ 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 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.STRING, (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 deleteColumnFamily_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteColumnFamily_argsTupleSchemeFactory();
/**
- * the tablename to check
+ * the tablename to delete column family from
*/
public @org.apache.thrift.annotation.Nullable TTableName tableName; // required
/**
- * keys to check if the table has been created with all split keys
+ * name of column family to be deleted
*/
- public @org.apache.thrift.annotation.Nullable java.util.List<java.nio.ByteBuffer> splitKeys; // 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 check
+ * the tablename to delete column family from
*/
TABLE_NAME((short)1, "tableName"),
/**
- * keys to check if the table has been created with all split keys
+ * name of column family to be deleted
*/
- SPLIT_KEYS((short)2, "splitKeys");
+ COLUMN((short)2, "column");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -42511,8 +44734,8 @@ public class THBaseService {
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 +44782,48 @@ public class THBaseService {
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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableAvailableWithSplit_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteColumnFamily_args.class, metaDataMap);
}
- public isTableAvailableWithSplit_args() {
+ public deleteColumnFamily_args() {
}
- public isTableAvailableWithSplit_args(
+ public deleteColumnFamily_args(
TTableName tableName,
- java.util.List<java.nio.ByteBuffer> splitKeys)
+ java.nio.ByteBuffer column)
{
this();
this.tableName = tableName;
- this.splitKeys = splitKeys;
+ this.column = org.apache.thrift.TBaseHelper.copyBinary(column);
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public isTableAvailableWithSplit_args(isTableAvailableWithSplit_args other) {
+ public deleteColumnFamily_args(deleteColumnFamily_args other) {
if (other.isSetTableName()) {
this.tableName = new TTableName(other.tableName);
}
- if (other.isSetSplitKeys()) {
- java.util.List<java.nio.ByteBuffer> __this__splitKeys = new java.util.ArrayList<java.nio.ByteBuffer>(other.splitKeys);
- this.splitKeys = __this__splitKeys;
+ if (other.isSetColumn()) {
+ this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column);
}
}
- public isTableAvailableWithSplit_args deepCopy() {
- return new isTableAvailableWithSplit_args(this);
+ public deleteColumnFamily_args deepCopy() {
+ return new deleteColumnFamily_args(this);
}
@Override
public void clear() {
this.tableName = null;
- this.splitKeys = null;
+ this.column = null;
}
/**
- * the tablename to check
+ * the tablename to delete column family from
*/
@org.apache.thrift.annotation.Nullable
public TTableName getTableName() {
@@ -42610,9 +44831,9 @@ public class THBaseService {
}
/**
- * the tablename to check
+ * the tablename to delete column family from
*/
- public isTableAvailableWithSplit_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;
}
@@ -42632,50 +44853,43 @@ public class THBaseService {
}
}
- public int getSplitKeysSize() {
- return (this.splitKeys == null) ? 0 : this.splitKeys.size();
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.util.Iterator<java.nio.ByteBuffer> getSplitKeysIterator() {
- return (this.splitKeys == null) ? null : this.splitKeys.iterator();
+ /**
+ * name of column family to be deleted
+ */
+ public byte[] getColumn() {
+ setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
+ return column == null ? null : column.array();
}
- public void addToSplitKeys(java.nio.ByteBuffer elem) {
- if (this.splitKeys == null) {
- this.splitKeys = new java.util.ArrayList<java.nio.ByteBuffer>();
- }
- this.splitKeys.add(elem);
+ public java.nio.ByteBuffer bufferForColumn() {
+ return org.apache.thrift.TBaseHelper.copyBinary(column);
}
/**
- * keys to check if the table has been created with all split keys
+ * name of column family to be deleted
*/
- @org.apache.thrift.annotation.Nullable
- public java.util.List<java.nio.ByteBuffer> getSplitKeys() {
- return this.splitKeys;
+ public deleteColumnFamily_args setColumn(byte[] column) {
+ this.column = column == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(column.clone());
+ return this;
}
- /**
- * 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<java.nio.ByteBuffer> splitKeys) {
- this.splitKeys = splitKeys;
+ public deleteColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer column) {
+ this.column = org.apache.thrift.TBaseHelper.copyBinary(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 +44903,15 @@ public class THBaseService {
}
break;
- case SPLIT_KEYS:
+ case COLUMN:
if (value == null) {
- unsetSplitKeys();
+ unsetColumn();
} else {
- setSplitKeys((java.util.List<java.nio.ByteBuffer>)value);
+ if (value instanceof byte[]) {
+ setColumn((byte[])value);
+ } else {
+ setColumn((java.nio.ByteBuffer)value);
+ }
}
break;
@@ -42706,8 +44924,8 @@ public class THBaseService {
case TABLE_NAME:
return getTableName();
- case SPLIT_KEYS:
- return getSplitKeys();
+ case COLUMN:
+ return getColumn();
}
throw new java.lang.IllegalStateException();
@@ -42722,8 +44940,8 @@ public class THBaseService {
switch (field) {
case TABLE_NAME:
return isSetTableName();
- case SPLIT_KEYS:
- return isSetSplitKeys();
+ case COLUMN:
+ return isSetColumn();
}
throw new java.lang.IllegalStateException();
}
@@ -42732,12 +44950,12 @@ public class THBaseService {
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 deleteColumnFamily_args)
+ return this.equals((deleteColumnFamily_args)that);
return false;
}
- public boolean equals(isTableAvailableWithSplit_args that) {
+ public boolean equals(deleteColumnFamily_args that) {
if (that == null)
return false;
if (this == that)
@@ -42752,12 +44970,12 @@ public class THBaseService {
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 +44990,15 @@ public class THBaseService {
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(deleteColumnFamily_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -42797,12 +45015,12 @@ public class THBaseService {
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 +45043,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_args(");
boolean first = true;
sb.append("tableName:");
@@ -42836,11 +45054,11 @@ public class THBaseService {
}
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);
+ org.apache.thrift.TBaseHelper.toString(this.column, sb);
}
first = false;
sb.append(")");
@@ -42852,6 +45070,9 @@ public class THBaseService {
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();
@@ -42874,15 +45095,15 @@ public class THBaseService {
}
}
- private static class isTableAvailableWithSplit_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableAvailableWithSplit_argsStandardScheme getScheme() {
- return new isTableAvailableWithSplit_argsStandardScheme();
+ private static class deleteColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public deleteColumnFamily_argsStandardScheme getScheme() {
+ return new deleteColumnFamily_argsStandardScheme();
}
}
- private static class isTableAvailableWithSplit_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableAvailableWithSplit_args> {
+ private static class deleteColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteColumnFamily_args> {
- 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, deleteColumnFamily_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -42901,20 +45122,10 @@ public class THBaseService {
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<java.nio.ByteBuffer>(_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.STRING) {
+ struct.column = iprot.readBinary();
+ struct.setColumnIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -42930,7 +45141,7 @@ public class THBaseService {
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, deleteColumnFamily_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -42939,16 +45150,9 @@ public class THBaseService {
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);
+ oprot.writeBinary(struct.column);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -42957,54 +45161,29 @@ public class THBaseService {
}
- private static class isTableAvailableWithSplit_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableAvailableWithSplit_argsTupleScheme getScheme() {
- return new isTableAvailableWithSplit_argsTupleScheme();
+ private static class deleteColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public deleteColumnFamily_argsTupleScheme getScheme() {
+ return new deleteColumnFamily_argsTupleScheme();
}
}
- private static class isTableAvailableWithSplit_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableAvailableWithSplit_args> {
+ private static class deleteColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteColumnFamily_args> {
@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, deleteColumnFamily_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);
- }
- }
- }
+ oprot.writeBinary(struct.column);
}
@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, 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);
- 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<java.nio.ByteBuffer>(_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 = iprot.readBinary();
+ struct.setColumnIsSet(true);
}
}
@@ -43013,21 +45192,18 @@ public class THBaseService {
}
}
- public static class isTableAvailableWithSplit_result implements org.apache.thrift.TBase<isTableAvailableWithSplit_result, isTableAvailableWithSplit_result._Fields>, java.io.Serializable, Cloneable, Comparable<isTableAvailableWithSplit_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableAvailableWithSplit_result");
+ public static class deleteColumnFamily_result implements org.apache.thrift.TBase<deleteColumnFamily_result, deleteColumnFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteColumnFamily_result> {
+ 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 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 deleteColumnFamily_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteColumnFamily_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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -43044,8 +45220,6 @@ public class THBaseService {
@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 +45263,49 @@ public class THBaseService {
}
// 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(deleteColumnFamily_result.class, metaDataMap);
}
- public isTableAvailableWithSplit_result() {
+ public deleteColumnFamily_result() {
}
- public isTableAvailableWithSplit_result(
- boolean success,
+ public deleteColumnFamily_result(
TIOError io)
{
this();
- this.success = success;
- setSuccessIsSet(true);
this.io = io;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public isTableAvailableWithSplit_result(isTableAvailableWithSplit_result other) {
- __isset_bitfield = other.__isset_bitfield;
- this.success = other.success;
+ public deleteColumnFamily_result(deleteColumnFamily_result other) {
if (other.isSetIo()) {
this.io = new TIOError(other.io);
}
}
- public isTableAvailableWithSplit_result deepCopy() {
- return new isTableAvailableWithSplit_result(this);
+ public deleteColumnFamily_result deepCopy() {
+ return new deleteColumnFamily_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 deleteColumnFamily_result setIo(@org.apache.thrift.annotation.Nullable TIOError io) {
this.io = io;
return this;
}
@@ -43187,14 +45327,6 @@ public class THBaseService {
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 +45341,6 @@ public class THBaseService {
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
- case SUCCESS:
- return isSuccess();
-
case IO:
return getIo();
@@ -43226,8 +45355,6 @@ public class THBaseService {
}
switch (field) {
- case SUCCESS:
- return isSetSuccess();
case IO:
return isSetIo();
}
@@ -43238,26 +45365,17 @@ public class THBaseService {
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 deleteColumnFamily_result)
+ return this.equals((deleteColumnFamily_result)that);
return false;
}
- public boolean equals(isTableAvailableWithSplit_result that) {
+ public boolean equals(deleteColumnFamily_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 +45392,6 @@ public class THBaseService {
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 +45400,13 @@ public class THBaseService {
}
@Override
- public int compareTo(isTableAvailableWithSplit_result other) {
+ public int compareTo(deleteColumnFamily_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 +45435,9 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("isTableAvailableWithSplit_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_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 +45464,21 @@ public class THBaseService {
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 deleteColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public deleteColumnFamily_resultStandardScheme getScheme() {
+ return new deleteColumnFamily_resultStandardScheme();
}
}
- private static class isTableAvailableWithSplit_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isTableAvailableWithSplit_result> {
+ private static class deleteColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteColumnFamily_result> {
- 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, deleteColumnFamily_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -43388,14 +45488,6 @@ public class THBaseService {
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 +45508,10 @@ public class THBaseService {
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, deleteColumnFamily_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 +45523,32 @@ public class THBaseService {
}
- private static class isTableAvailableWithSplit_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public isTableAvailableWithSplit_resultTupleScheme getScheme() {
- return new isTableAvailableWithSplit_resultTupleScheme();
+ private static class deleteColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public deleteColumnFamily_resultTupleScheme getScheme() {
+ return new deleteColumnFamily_resultTupleScheme();
}
}
- private static class isTableAvailableWithSplit_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isTableAvailableWithSplit_result> {
+ private static class deleteColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteColumnFamily_result> {
@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, 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.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, 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(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 +45561,32 @@ public class THBaseService {
}
}
- public static class addColumnFamily_args implements org.apache.thrift.TBase<addColumnFamily_args, addColumnFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<addColumnFamily_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addColumnFamily_args");
+ public static class modifyColumnFamily_args implements org.apache.thrift.TBase<modifyColumnFamily_args, modifyColumnFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<modifyColumnFamily_args> {
+ 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.STRUCT, (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 modifyColumnFamily_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyColumnFamily_argsTupleSchemeFactory();
/**
- * the tablename to add column family to
+ * the tablename to modify column family
*/
public @org.apache.thrift.annotation.Nullable TTableName tableName; // required
/**
- * column family descriptor of column family to be added
+ * column family descriptor of column family to be modified
*/
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 add column family to
+ * the tablename to modify column family
*/
TABLE_NAME((short)1, "tableName"),
/**
- * column family descriptor of column family to be added
+ * column family descriptor of column family to be modified
*/
COLUMN((short)2, "column");
@@ -43580,13 +45657,13 @@ public class THBaseService {
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(addColumnFamily_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyColumnFamily_args.class, metaDataMap);
}
- public addColumnFamily_args() {
+ public modifyColumnFamily_args() {
}
- public addColumnFamily_args(
+ public modifyColumnFamily_args(
TTableName tableName,
TColumnFamilyDescriptor column)
{
@@ -43598,7 +45675,7 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public addColumnFamily_args(addColumnFamily_args other) {
+ public modifyColumnFamily_args(modifyColumnFamily_args other) {
if (other.isSetTableName()) {
this.tableName = new TTableName(other.tableName);
}
@@ -43607,8 +45684,8 @@ public class THBaseService {
}
}
- public addColumnFamily_args deepCopy() {
- return new addColumnFamily_args(this);
+ public modifyColumnFamily_args deepCopy() {
+ return new modifyColumnFamily_args(this);
}
@Override
@@ -43618,7 +45695,7 @@ public class THBaseService {
}
/**
- * the tablename to add column family to
+ * the tablename to modify column family
*/
@org.apache.thrift.annotation.Nullable
public TTableName getTableName() {
@@ -43626,9 +45703,9 @@ public class THBaseService {
}
/**
- * the tablename to add column family to
+ * the tablename to modify column family
*/
- public addColumnFamily_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;
}
@@ -43649,7 +45726,7 @@ public class THBaseService {
}
/**
- * column family descriptor of column family to be added
+ * column family descriptor of column family to be modified
*/
@org.apache.thrift.annotation.Nullable
public TColumnFamilyDescriptor getColumn() {
@@ -43657,9 +45734,9 @@ public class THBaseService {
}
/**
- * column family descriptor of column family to be added
+ * column family descriptor of column family to be modified
*/
- public addColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) {
+ public modifyColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) {
this.column = column;
return this;
}
@@ -43732,12 +45809,12 @@ public class THBaseService {
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 modifyColumnFamily_args)
+ return this.equals((modifyColumnFamily_args)that);
return false;
}
- public boolean equals(addColumnFamily_args that) {
+ public boolean equals(modifyColumnFamily_args that) {
if (that == null)
return false;
if (this == that)
@@ -43780,7 +45857,7 @@ public class THBaseService {
}
@Override
- public int compareTo(addColumnFamily_args other) {
+ public int compareTo(modifyColumnFamily_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -43825,7 +45902,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("addColumnFamily_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_args(");
boolean first = true;
sb.append("tableName:");
@@ -43880,15 +45957,15 @@ public class THBaseService {
}
}
- private static class addColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public addColumnFamily_argsStandardScheme getScheme() {
- return new addColumnFamily_argsStandardScheme();
+ private static class modifyColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyColumnFamily_argsStandardScheme getScheme() {
+ return new modifyColumnFamily_argsStandardScheme();
}
}
- private static class addColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<addColumnFamily_args> {
+ private static class modifyColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyColumnFamily_args> {
- 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, modifyColumnFamily_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -43927,7 +46004,7 @@ public class THBaseService {
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, modifyColumnFamily_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -43947,23 +46024,23 @@ public class THBaseService {
}
- private static class addColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public addColumnFamily_argsTupleScheme getScheme() {
- return new addColumnFamily_argsTupleScheme();
+ private static class modifyColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyColumnFamily_argsTupleScheme getScheme() {
+ return new modifyColumnFamily_argsTupleScheme();
}
}
- private static class addColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<addColumnFamily_args> {
+ private static class modifyColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyColumnFamily_args> {
@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, modifyColumnFamily_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);
}
@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, 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);
@@ -43979,13 +46056,13 @@ public class THBaseService {
}
}
- public static class addColumnFamily_result implements org.apache.thrift.TBase<addColumnFamily_result, addColumnFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<addColumnFamily_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addColumnFamily_result");
+ public static class modifyColumnFamily_result implements org.apache.thrift.TBase<modifyColumnFamily_result, modifyColumnFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<modifyColumnFamily_result> {
+ 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 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 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
@@ -44056,13 +46133,13 @@ public class THBaseService {
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(modifyColumnFamily_result.class, metaDataMap);
}
- public addColumnFamily_result() {
+ public modifyColumnFamily_result() {
}
- public addColumnFamily_result(
+ public modifyColumnFamily_result(
TIOError io)
{
this();
@@ -44072,14 +46149,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public addColumnFamily_result(addColumnFamily_result other) {
+ public modifyColumnFamily_result(modifyColumnFamily_result other) {
if (other.isSetIo()) {
this.io = new TIOError(other.io);
}
}
- public addColumnFamily_result deepCopy() {
- return new addColumnFamily_result(this);
+ public modifyColumnFamily_result deepCopy() {
+ return new modifyColumnFamily_result(this);
}
@Override
@@ -44092,7 +46169,7 @@ public class THBaseService {
return this.io;
}
- public addColumnFamily_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;
}
@@ -44152,12 +46229,12 @@ public class THBaseService {
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 modifyColumnFamily_result)
+ return this.equals((modifyColumnFamily_result)that);
return false;
}
- public boolean equals(addColumnFamily_result that) {
+ public boolean equals(modifyColumnFamily_result that) {
if (that == null)
return false;
if (this == that)
@@ -44187,7 +46264,7 @@ public class THBaseService {
}
@Override
- public int compareTo(addColumnFamily_result other) {
+ public int compareTo(modifyColumnFamily_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -44222,7 +46299,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("addColumnFamily_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_result(");
boolean first = true;
sb.append("io:");
@@ -44257,15 +46334,15 @@ public class THBaseService {
}
}
- private static class addColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public addColumnFamily_resultStandardScheme getScheme() {
- return new addColumnFamily_resultStandardScheme();
+ private static class modifyColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyColumnFamily_resultStandardScheme getScheme() {
+ return new modifyColumnFamily_resultStandardScheme();
}
}
- private static class addColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<addColumnFamily_result> {
+ private static class modifyColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyColumnFamily_result> {
- 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, modifyColumnFamily_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -44295,7 +46372,7 @@ public class THBaseService {
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, modifyColumnFamily_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -44310,16 +46387,16 @@ public class THBaseService {
}
- private static class addColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public addColumnFamily_resultTupleScheme getScheme() {
- return new addColumnFamily_resultTupleScheme();
+ private static class modifyColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyColumnFamily_resultTupleScheme getScheme() {
+ return new modifyColumnFamily_resultTupleScheme();
}
}
- private static class addColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<addColumnFamily_result> {
+ private static class modifyColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyColumnFamily_result> {
@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, 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()) {
@@ -44332,7 +46409,7 @@ public class THBaseService {
}
@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, 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)) {
@@ -44348,34 +46425,25 @@ public class THBaseService {
}
}
- public static class deleteColumnFamily_args implements org.apache.thrift.TBase<deleteColumnFamily_args, deleteColumnFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteColumnFamily_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteColumnFamily_args");
+ public static class modifyTable_args implements org.apache.thrift.TBase<modifyTable_args, modifyTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<modifyTable_args> {
+ 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.STRING, (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 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 modifyTable_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyTable_argsTupleSchemeFactory();
/**
- * the tablename to delete column family from
- */
- public @org.apache.thrift.annotation.Nullable TTableName tableName; // required
- /**
- * name of column family to be deleted
+ * the descriptor of the table to modify
*/
- public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer 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 delete column family from
- */
- TABLE_NAME((short)1, "tableName"),
- /**
- * name of column family to be deleted
+ * the descriptor of the table to modify
*/
- COLUMN((short)2, "column");
+ DESC((short)1, "desc");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -44391,10 +46459,8 @@ public class THBaseService {
@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;
}
@@ -44439,138 +46505,78 @@ public class THBaseService {
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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
+ 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(deleteColumnFamily_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(modifyTable_args.class, metaDataMap);
}
- public deleteColumnFamily_args() {
+ public modifyTable_args() {
}
- public deleteColumnFamily_args(
- TTableName tableName,
- java.nio.ByteBuffer column)
+ public modifyTable_args(
+ TTableDescriptor desc)
{
this();
- this.tableName = tableName;
- this.column = org.apache.thrift.TBaseHelper.copyBinary(column);
+ this.desc = desc;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public deleteColumnFamily_args(deleteColumnFamily_args other) {
- if (other.isSetTableName()) {
- this.tableName = new TTableName(other.tableName);
- }
- if (other.isSetColumn()) {
- this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column);
+ public modifyTable_args(modifyTable_args other) {
+ if (other.isSetDesc()) {
+ this.desc = new TTableDescriptor(other.desc);
}
}
- public deleteColumnFamily_args deepCopy() {
- return new deleteColumnFamily_args(this);
+ public modifyTable_args deepCopy() {
+ return new modifyTable_args(this);
}
@Override
public void clear() {
- this.tableName = null;
- this.column = null;
+ this.desc = null;
}
/**
- * the tablename to delete column family from
+ * the descriptor of the table to modify
*/
@org.apache.thrift.annotation.Nullable
- public TTableName getTableName() {
- return this.tableName;
- }
-
- /**
- * the tablename to delete column family from
- */
- public deleteColumnFamily_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;
- }
- }
-
- /**
- * name of column family to be deleted
- */
- 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);
+ public TTableDescriptor getDesc() {
+ return this.desc;
}
/**
- * name of column family to be deleted
+ * the descriptor of the table to modify
*/
- 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 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 {
- if (value instanceof byte[]) {
- setColumn((byte[])value);
- } else {
- setColumn((java.nio.ByteBuffer)value);
- }
+ setDesc((TTableDescriptor)value);
}
break;
@@ -44580,11 +46586,8 @@ public class THBaseService {
@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();
@@ -44597,10 +46600,8 @@ public class THBaseService {
}
switch (field) {
- case TABLE_NAME:
- return isSetTableName();
- case COLUMN:
- return isSetColumn();
+ case DESC:
+ return isSetDesc();
}
throw new java.lang.IllegalStateException();
}
@@ -44609,32 +46610,23 @@ public class THBaseService {
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 modifyTable_args)
+ return this.equals((modifyTable_args)that);
return false;
}
- public boolean equals(deleteColumnFamily_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;
}
@@ -44645,41 +46637,27 @@ public class THBaseService {
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(deleteColumnFamily_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;
}
@@ -44702,22 +46680,14 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_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 {
- org.apache.thrift.TBaseHelper.toString(this.column, sb);
+ sb.append(this.desc);
}
first = false;
sb.append(")");
@@ -44726,15 +46696,12 @@ public class THBaseService {
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 (desc != null) {
+ desc.validate();
}
}
@@ -44754,15 +46721,15 @@ public class THBaseService {
}
}
- private static class deleteColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public deleteColumnFamily_argsStandardScheme getScheme() {
- return new deleteColumnFamily_argsStandardScheme();
+ private static class modifyTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyTable_argsStandardScheme getScheme() {
+ return new modifyTable_argsStandardScheme();
}
}
- private static class deleteColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteColumnFamily_args> {
+ private static class modifyTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyTable_args> {
- 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, modifyTable_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -44772,19 +46739,11 @@ public class THBaseService {
break;
}
switch (schemeField.id) {
- case 1: // TABLE_NAME
+ case 1: // DESC
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
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.column = iprot.readBinary();
- struct.setColumnIsSet(true);
+ struct.desc = new TTableDescriptor();
+ struct.desc.read(iprot);
+ struct.setDescIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -44800,18 +46759,13 @@ public class THBaseService {
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, 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);
- oprot.writeBinary(struct.column);
+ if (struct.desc != null) {
+ oprot.writeFieldBegin(DESC_FIELD_DESC);
+ struct.desc.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -44820,29 +46774,26 @@ public class THBaseService {
}
- private static class deleteColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public deleteColumnFamily_argsTupleScheme getScheme() {
- return new deleteColumnFamily_argsTupleScheme();
+ private static class modifyTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyTable_argsTupleScheme getScheme() {
+ return new modifyTable_argsTupleScheme();
}
}
- private static class deleteColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteColumnFamily_args> {
+ private static class modifyTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyTable_args> {
@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, modifyTable_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.desc.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, 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 = iprot.readBinary();
- struct.setColumnIsSet(true);
+ struct.desc = new TTableDescriptor();
+ struct.desc.read(iprot);
+ struct.setDescIsSet(true);
}
}
@@ -44851,13 +46802,13 @@ public class THBaseService {
}
}
- public static class deleteColumnFamily_result implements org.apache.thrift.TBase<deleteColumnFamily_result, deleteColumnFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteColumnFamily_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteColumnFamily_result");
+ public static class modifyTable_result implements org.apache.thrift.TBase<modifyTable_result, modifyTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<modifyTable_result> {
+ 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 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 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
@@ -44928,13 +46879,13 @@ public class THBaseService {
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(modifyTable_result.class, metaDataMap);
}
- public deleteColumnFamily_result() {
+ public modifyTable_result() {
}
- public deleteColumnFamily_result(
+ public modifyTable_result(
TIOError io)
{
this();
@@ -44944,14 +46895,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public deleteColumnFamily_result(deleteColumnFamily_result other) {
+ public modifyTable_result(modifyTable_result other) {
if (other.isSetIo()) {
this.io = new TIOError(other.io);
}
}
- public deleteColumnFamily_result deepCopy() {
- return new deleteColumnFamily_result(this);
+ public modifyTable_result deepCopy() {
+ return new modifyTable_result(this);
}
@Override
@@ -44964,7 +46915,7 @@ public class THBaseService {
return this.io;
}
- public deleteColumnFamily_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;
}
@@ -45024,12 +46975,12 @@ public class THBaseService {
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 modifyTable_result)
+ return this.equals((modifyTable_result)that);
return false;
}
- public boolean equals(deleteColumnFamily_result that) {
+ public boolean equals(modifyTable_result that) {
if (that == null)
return false;
if (this == that)
@@ -45059,7 +47010,7 @@ public class THBaseService {
}
@Override
- public int compareTo(deleteColumnFamily_result other) {
+ public int compareTo(modifyTable_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -45094,7 +47045,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteColumnFamily_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyTable_result(");
boolean first = true;
sb.append("io:");
@@ -45129,15 +47080,15 @@ public class THBaseService {
}
}
- private static class deleteColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public deleteColumnFamily_resultStandardScheme getScheme() {
- return new deleteColumnFamily_resultStandardScheme();
+ private static class modifyTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyTable_resultStandardScheme getScheme() {
+ return new modifyTable_resultStandardScheme();
}
}
- private static class deleteColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteColumnFamily_result> {
+ private static class modifyTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyTable_result> {
- 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, modifyTable_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -45167,7 +47118,7 @@ public class THBaseService {
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, modifyTable_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -45182,16 +47133,16 @@ public class THBaseService {
}
- private static class deleteColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public deleteColumnFamily_resultTupleScheme getScheme() {
- return new deleteColumnFamily_resultTupleScheme();
+ private static class modifyTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyTable_resultTupleScheme getScheme() {
+ return new modifyTable_resultTupleScheme();
}
}
- private static class deleteColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteColumnFamily_result> {
+ private static class modifyTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyTable_result> {
@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, 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()) {
@@ -45204,7 +47155,7 @@ public class THBaseService {
}
@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, 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)) {
@@ -45220,34 +47171,25 @@ public class THBaseService {
}
}
- public static class modifyColumnFamily_args implements org.apache.thrift.TBase<modifyColumnFamily_args, modifyColumnFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<modifyColumnFamily_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("modifyColumnFamily_args");
+ public static class createNamespace_args implements org.apache.thrift.TBase<createNamespace_args, createNamespace_args._Fields>, java.io.Serializable, Cloneable, Comparable<createNamespace_args> {
+ 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 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 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 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 createNamespace_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createNamespace_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
+ * descriptor which describes the new namespace
*/
- public @org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column; // 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 tablename to modify column family
- */
- TABLE_NAME((short)1, "tableName"),
- /**
- * column family descriptor of column family to be modified
+ * descriptor which describes the new namespace
*/
- COLUMN((short)2, "column");
+ NAMESPACE_DESC((short)1, "namespaceDesc");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -45263,10 +47205,8 @@ public class THBaseService {
@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: // NAMESPACE_DESC
+ return NAMESPACE_DESC;
default:
return null;
}
@@ -45311,125 +47251,78 @@ public class THBaseService {
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.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(modifyColumnFamily_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createNamespace_args.class, metaDataMap);
}
- public modifyColumnFamily_args() {
+ public createNamespace_args() {
}
- public modifyColumnFamily_args(
- TTableName tableName,
- TColumnFamilyDescriptor column)
+ public createNamespace_args(
+ TNamespaceDescriptor namespaceDesc)
{
this();
- this.tableName = tableName;
- this.column = column;
+ this.namespaceDesc = namespaceDesc;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- 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 createNamespace_args(createNamespace_args other) {
+ if (other.isSetNamespaceDesc()) {
+ this.namespaceDesc = new TNamespaceDescriptor(other.namespaceDesc);
}
}
- public modifyColumnFamily_args deepCopy() {
- return new modifyColumnFamily_args(this);
+ public createNamespace_args deepCopy() {
+ return new createNamespace_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.namespaceDesc = null;
}
/**
- * column family descriptor of column family to be modified
+ * descriptor which describes the new namespace
*/
@org.apache.thrift.annotation.Nullable
- public TColumnFamilyDescriptor getColumn() {
- return this.column;
+ public TNamespaceDescriptor getNamespaceDesc() {
+ return this.namespaceDesc;
}
/**
- * column family descriptor of column family to be modified
+ * descriptor which describes the new namespace
*/
- public modifyColumnFamily_args setColumn(@org.apache.thrift.annotation.Nullable TColumnFamilyDescriptor column) {
- this.column = column;
+ public createNamespace_args setNamespaceDesc(@org.apache.thrift.annotation.Nullable TNamespaceDescriptor namespaceDesc) {
+ this.namespaceDesc = namespaceDesc;
return this;
}
- public void unsetColumn() {
- this.column = null;
+ public void unsetNamespaceDesc() {
+ this.namespaceDesc = 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 namespaceDesc is set (has been assigned a value) and false otherwise */
+ public boolean isSetNamespaceDesc() {
+ return this.namespaceDesc != null;
}
- public void setColumnIsSet(boolean value) {
+ public void setNamespaceDescIsSet(boolean value) {
if (!value) {
- this.column = null;
+ this.namespaceDesc = 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 NAMESPACE_DESC:
if (value == null) {
- unsetColumn();
+ unsetNamespaceDesc();
} else {
- setColumn((TColumnFamilyDescriptor)value);
+ setNamespaceDesc((TNamespaceDescriptor)value);
}
break;
@@ -45439,11 +47332,8 @@ public class THBaseService {
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
- case TABLE_NAME:
- return getTableName();
-
- case COLUMN:
- return getColumn();
+ case NAMESPACE_DESC:
+ return getNamespaceDesc();
}
throw new java.lang.IllegalStateException();
@@ -45456,10 +47346,8 @@ public class THBaseService {
}
switch (field) {
- case TABLE_NAME:
- return isSetTableName();
- case COLUMN:
- return isSetColumn();
+ case NAMESPACE_DESC:
+ return isSetNamespaceDesc();
}
throw new java.lang.IllegalStateException();
}
@@ -45468,32 +47356,23 @@ public class THBaseService {
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 createNamespace_args)
+ return this.equals((createNamespace_args)that);
return false;
}
- public boolean equals(modifyColumnFamily_args that) {
+ public boolean equals(createNamespace_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_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.column.equals(that.column))
+ if (!this.namespaceDesc.equals(that.namespaceDesc))
return false;
}
@@ -45504,41 +47383,27 @@ public class THBaseService {
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 + ((isSetNamespaceDesc()) ? 131071 : 524287);
+ if (isSetNamespaceDesc())
+ hashCode = hashCode * 8191 + namespaceDesc.hashCode();
return hashCode;
}
@Override
- public int compareTo(modifyColumnFamily_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(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(isSetNamespaceDesc()).compareTo(other.isSetNamespaceDesc());
if (lastComparison != 0) {
return lastComparison;
}
- if (isSetColumn()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column);
+ if (isSetNamespaceDesc()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.namespaceDesc, other.namespaceDesc);
if (lastComparison != 0) {
return lastComparison;
}
@@ -45561,22 +47426,14 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("createNamespace_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("namespaceDesc:");
+ if (this.namespaceDesc == null) {
sb.append("null");
} else {
- sb.append(this.column);
+ sb.append(this.namespaceDesc);
}
first = false;
sb.append(")");
@@ -45585,18 +47442,12 @@ public class THBaseService {
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 (namespaceDesc == null) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'namespaceDesc' was not present! Struct: " + toString());
}
// check for sub-struct validity
- if (tableName != null) {
- tableName.validate();
- }
- if (column != null) {
- column.validate();
+ if (namespaceDesc != null) {
+ namespaceDesc.validate();
}
}
@@ -45616,15 +47467,15 @@ public class THBaseService {
}
}
- private static class modifyColumnFamily_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public modifyColumnFamily_argsStandardScheme getScheme() {
- return new modifyColumnFamily_argsStandardScheme();
+ private static class createNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public createNamespace_argsStandardScheme getScheme() {
+ return new createNamespace_argsStandardScheme();
}
}
- private static class modifyColumnFamily_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyColumnFamily_args> {
+ private static class createNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<createNamespace_args> {
- 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, createNamespace_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -45634,20 +47485,11 @@ public class THBaseService {
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: // NAMESPACE_DESC
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.column = new TColumnFamilyDescriptor();
- struct.column.read(iprot);
- struct.setColumnIsSet(true);
+ struct.namespaceDesc = new TNamespaceDescriptor();
+ struct.namespaceDesc.read(iprot);
+ struct.setNamespaceDescIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
@@ -45663,18 +47505,13 @@ public class THBaseService {
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, createNamespace_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.namespaceDesc != null) {
+ oprot.writeFieldBegin(NAMESPACE_DESC_FIELD_DESC);
+ struct.namespaceDesc.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
@@ -45683,30 +47520,26 @@ public class THBaseService {
}
- private static class modifyColumnFamily_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public modifyColumnFamily_argsTupleScheme getScheme() {
- return new modifyColumnFamily_argsTupleScheme();
+ private static class createNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public createNamespace_argsTupleScheme getScheme() {
+ return new createNamespace_argsTupleScheme();
}
}
- private static class modifyColumnFamily_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyColumnFamily_args> {
+ private static class createNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<createNamespace_args> {
@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, createNamespace_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.namespaceDesc.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, createNamespace_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.namespaceDesc = new TNamespaceDescriptor();
+ struct.namespaceDesc.read(iprot);
+ struct.setNamespaceDescIsSet(true);
}
}
@@ -45715,13 +47548,13 @@ public class THBaseService {
}
}
- public static class modifyColumnFamily_result implements org.apache.thrift.TBase<modifyColumnFamily_result, modifyColumnFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<modifyColumnFamily_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("modifyColumnFamily_result");
+ public static class createNamespace_result implements org.apache.thrift.TBase<createNamespace_result, createNamespace_result._Fields>, java.io.Serializable, Cloneable, Comparable<createNamespace_result> {
+ 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 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 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
@@ -45792,13 +47625,13 @@ public class THBaseService {
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(createNamespace_result.class, metaDataMap);
}
- public modifyColumnFamily_result() {
+ public createNamespace_result() {
}
- public modifyColumnFamily_result(
+ public createNamespace_result(
TIOError io)
{
this();
@@ -45808,14 +47641,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public modifyColumnFamily_result(modifyColumnFamily_result other) {
+ public createNamespace_result(createNamespace_result other) {
if (other.isSetIo()) {
this.io = new TIOError(other.io);
}
}
- public modifyColumnFamily_result deepCopy() {
- return new modifyColumnFamily_result(this);
+ public createNamespace_result deepCopy() {
+ return new createNamespace_result(this);
}
@Override
@@ -45828,7 +47661,7 @@ public class THBaseService {
return this.io;
}
- public modifyColumnFamily_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;
}
@@ -45888,12 +47721,12 @@ public class THBaseService {
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 createNamespace_result)
+ return this.equals((createNamespace_result)that);
return false;
}
- public boolean equals(modifyColumnFamily_result that) {
+ public boolean equals(createNamespace_result that) {
if (that == null)
return false;
if (this == that)
@@ -45923,7 +47756,7 @@ public class THBaseService {
}
@Override
- public int compareTo(modifyColumnFamily_result other) {
+ public int compareTo(createNamespace_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -45958,7 +47791,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyColumnFamily_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("createNamespace_result(");
boolean first = true;
sb.append("io:");
@@ -45993,15 +47826,15 @@ public class THBaseService {
}
}
- private static class modifyColumnFamily_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public modifyColumnFamily_resultStandardScheme getScheme() {
- return new modifyColumnFamily_resultStandardScheme();
+ private static class createNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public createNamespace_resultStandardScheme getScheme() {
+ return new createNamespace_resultStandardScheme();
}
}
- private static class modifyColumnFamily_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyColumnFamily_result> {
+ private static class createNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<createNamespace_result> {
- 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, createNamespace_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -46031,7 +47864,7 @@ public class THBaseService {
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, createNamespace_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -46046,16 +47879,16 @@ public class THBaseService {
}
- private static class modifyColumnFamily_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public modifyColumnFamily_resultTupleScheme getScheme() {
- return new modifyColumnFamily_resultTupleScheme();
+ private static class createNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public createNamespace_resultTupleScheme getScheme() {
+ return new createNamespace_resultTupleScheme();
}
}
- private static class modifyColumnFamily_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyColumnFamily_result> {
+ private static class createNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<createNamespace_result> {
@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, 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()) {
@@ -46068,7 +47901,7 @@ public class THBaseService {
}
@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, 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)) {
@@ -46084,25 +47917,25 @@ public class THBaseService {
}
}
- public static class modifyTable_args implements org.apache.thrift.TBase<modifyTable_args, modifyTable_args._Fields>, java.io.Serializable, Cloneable, Comparable<modifyTable_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("modifyTable_args");
+ public static class modifyNamespace_args implements org.apache.thrift.TBase<modifyNamespace_args, modifyNamespace_args._Fields>, java.io.Serializable, Cloneable, Comparable<modifyNamespace_args> {
+ 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 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 modifyNamespace_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new modifyNamespace_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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -46118,8 +47951,8 @@ public class THBaseService {
@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 +47997,78 @@ public class THBaseService {
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(modifyNamespace_args.class, metaDataMap);
}
- public modifyTable_args() {
+ public modifyNamespace_args() {
}
- public modifyTable_args(
- TTableDescriptor desc)
+ public modifyNamespace_args(
+ TNamespaceDescriptor namespaceDesc)
{
this();
- this.desc = desc;
+ this.namespaceDesc = namespaceDesc;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public modifyTable_args(modifyTable_args other) {
- if (other.isSetDesc()) {
- this.desc = new TTableDescriptor(other.desc);
+ public modifyNamespace_args(modifyNamespace_args other) {
+ if (other.isSetNamespaceDesc()) {
+ this.namespaceDesc = new TNamespaceDescriptor(other.namespaceDesc);
}
}
- public modifyTable_args deepCopy() {
- return new modifyTable_args(this);
+ public modifyNamespace_args deepCopy() {
+ return new modifyNamespace_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 modifyNamespace_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 +48078,8 @@ public class THBaseService {
@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 +48092,8 @@ public class THBaseService {
}
switch (field) {
- case DESC:
- return isSetDesc();
+ case NAMESPACE_DESC:
+ return isSetNamespaceDesc();
}
throw new java.lang.IllegalStateException();
}
@@ -46269,23 +48102,23 @@ public class THBaseService {
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 modifyNamespace_args)
+ return this.equals((modifyNamespace_args)that);
return false;
}
- public boolean equals(modifyTable_args that) {
+ public boolean equals(modifyNamespace_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 +48129,27 @@ public class THBaseService {
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(modifyNamespace_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 +48172,14 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyTable_args(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyNamespace_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 +48188,12 @@ public class THBaseService {
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 +48213,15 @@ public class THBaseService {
}
}
- private static class modifyTable_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public modifyTable_argsStandardScheme getScheme() {
- return new modifyTable_argsStandardScheme();
+ private static class modifyNamespace_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyNamespace_argsStandardScheme getScheme() {
+ return new modifyNamespace_argsStandardScheme();
}
}
- private static class modifyTable_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyTable_args> {
+ private static class modifyNamespace_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyNamespace_args> {
- 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, modifyNamespace_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -46398,11 +48231,11 @@ public class THBaseService {
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 +48251,13 @@ public class THBaseService {
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, modifyNamespace_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 +48266,26 @@ public class THBaseService {
}
- private static class modifyTable_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public modifyTable_argsTupleScheme getScheme() {
- return new modifyTable_argsTupleScheme();
+ private static class modifyNamespace_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyNamespace_argsTupleScheme getScheme() {
+ return new modifyNamespace_argsTupleScheme();
}
}
- private static class modifyTable_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyTable_args> {
+ private static class modifyNamespace_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyNamespace_args> {
@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, modifyNamespace_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, modifyNamespace_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 +48294,13 @@ public class THBaseService {
}
}
- public static class modifyTable_result implements org.apache.thrift.TBase<modifyTable_result, modifyTable_result._Fields>, java.io.Serializable, Cloneable, Comparable<modifyTable_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("modifyTable_result");
+ public static class modifyNamespace_result implements org.apache.thrift.TBase<modifyNamespace_result, modifyNamespace_result._Fields>, java.io.Serializable, Cloneable, Comparable<modifyNamespace_result> {
+ 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 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 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
@@ -46538,13 +48371,13 @@ public class THBaseService {
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(modifyNamespace_result.class, metaDataMap);
}
- public modifyTable_result() {
+ public modifyNamespace_result() {
}
- public modifyTable_result(
+ public modifyNamespace_result(
TIOError io)
{
this();
@@ -46554,14 +48387,14 @@ public class THBaseService {
/**
* Performs a deep copy on <i>other</i>.
*/
- public modifyTable_result(modifyTable_result other) {
+ public modifyNamespace_result(modifyNamespace_result other) {
if (other.isSetIo()) {
this.io = new TIOError(other.io);
}
}
- public modifyTable_result deepCopy() {
- return new modifyTable_result(this);
+ public modifyNamespace_result deepCopy() {
+ return new modifyNamespace_result(this);
}
@Override
@@ -46574,7 +48407,7 @@ public class THBaseService {
return this.io;
}
- public modifyTable_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;
}
@@ -46634,12 +48467,12 @@ public class THBaseService {
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 modifyNamespace_result)
+ return this.equals((modifyNamespace_result)that);
return false;
}
- public boolean equals(modifyTable_result that) {
+ public boolean equals(modifyNamespace_result that) {
if (that == null)
return false;
if (this == that)
@@ -46669,7 +48502,7 @@ public class THBaseService {
}
@Override
- public int compareTo(modifyTable_result other) {
+ public int compareTo(modifyNamespace_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
@@ -46704,7 +48537,7 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyTable_result(");
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("modifyNamespace_result(");
boolean first = true;
sb.append("io:");
@@ -46739,15 +48572,15 @@ public class THBaseService {
}
}
- private static class modifyTable_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public modifyTable_resultStandardScheme getScheme() {
- return new modifyTable_resultStandardScheme();
+ private static class modifyNamespace_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyNamespace_resultStandardScheme getScheme() {
+ return new modifyNamespace_resultStandardScheme();
}
}
- private static class modifyTable_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyTable_result> {
+ private static class modifyNamespace_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<modifyNamespace_result> {
- 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, modifyNamespace_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
@@ -46777,7 +48610,7 @@ public class THBaseService {
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, modifyNamespace_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
@@ -46792,16 +48625,16 @@ public class THBaseService {
}
- private static class modifyTable_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public modifyTable_resultTupleScheme getScheme() {
- return new modifyTable_resultTupleScheme();
+ private static class modifyNamespace_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public modifyNamespace_resultTupleScheme getScheme() {
+ return new modifyNamespace_resultTupleScheme();
}
}
- private static class modifyTable_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyTable_result> {
+ private static class modifyNamespace_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<modifyNamespace_result> {
@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, 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()) {
@@ -46814,7 +48647,7 @@ public class THBaseService {
}
@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, 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)) {
@@ -46830,25 +48663,25 @@ public class THBaseService {
}
}
- public static class createNamespace_args implements org.apache.thrift.TBase<createNamespace_args, createNamespace_args._Fields>, java.io.Serializable, Cloneable, Comparable<createNamespace_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createNamespace_args");
+ public static class deleteNamespace_args implements org.apache.thrift.TBase<deleteNamespace_args, deleteNamespace_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteNamespace_args> {
+ 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 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 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<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
@@ -46864,8 +48697,8 @@ public class THBaseService {
@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;
}
@@ -46910,78 +48743,78 @@ public class THBaseService {
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(createNamespace_args.class, metaDataMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteNamespace_args.class, metaDataMap);
}
- public createNamespace_args() {
+ public deleteNamespace_args() {
}
- public createNamespace_args(
- TNamespaceDescriptor namespaceDesc)
+ public deleteNamespace_args(
+ java.lang.String name)
{
this();
- this.namespaceDesc = namespaceDesc;
+ this.name = name;
}
/**
* Performs a deep copy on <i>other</i>.
*/
- public createNamespace_args(createNamespace_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 createNamespace_args deepCopy() {
- return new createNamespace_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 createNamespace_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;
@@ -46991,8 +48824,8 @@ public class THBaseService {
@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();
@@ -47005,8 +48838,8 @@ public class THBaseService {
}
switch (field) {
- case NAMESPACE_DESC:
- return isSetNamespaceDesc();
+ case NAME:
+ return isSetName();
}
throw new java.lang.IllegalStateException();
}
@@ -47015,23 +48848,23 @@ public class THBaseService {
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 deleteNamespace_args)
+ return this.equals((deleteNamespace_args)that);
return false;
}
- public boolean equals(createNamespace_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;
}
@@ -47042,27 +48875,27 @@ public class THBaseService {
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(createNamespace_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;
}
@@ -47085,14 +48918,14 @@ public class THBaseService {
@Override
public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("createNamespace_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(")");
@@ -47101,13 +48934,10 @@ public class THBaseService {
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();
... 7511 lines suppressed ...