diff --git a/CHANGES.txt b/CHANGES.txt
index 46268e9f697..1e67c3e7620 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -3,6 +3,9 @@ Hbase Change Log
Release 0.3.0 - Unreleased
INCOMPATIBLE CHANGES
+ HBASE-697 Thrift idl needs update/edit to match new 0.2 API (and to fix bugs)
+ (Tim Sell via Stack)
+
BUG FIXES
HBASE-805 Remove unnecessary getRow overloads in HRS (Jonathan Gray via
Jim Kellerman) (Fix whitespace diffs in HRegionServer)
diff --git a/lib/libthrift-r746.jar b/lib/libthrift-20080411p1.jar
similarity index 51%
rename from lib/libthrift-r746.jar
rename to lib/libthrift-20080411p1.jar
index 49d07c5a50c..7e4602abed6 100644
Binary files a/lib/libthrift-r746.jar and b/lib/libthrift-20080411p1.jar differ
diff --git a/src/java/org/apache/hadoop/hbase/thrift/Hbase.thrift b/src/java/org/apache/hadoop/hbase/thrift/Hbase.thrift
index f2c1d008333..e05316b7a16 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/Hbase.thrift
+++ b/src/java/org/apache/hadoop/hbase/thrift/Hbase.thrift
@@ -31,9 +31,10 @@
// used to generate the *.java files checked into the Hbase project.
// ----------------------------------------------------------------
-java_package org.apache.hadoop.hbase.thrift.generated
-cpp_namespace apache.hadoop.hbase.thrift
-ruby_namespace Apache.Hadoop.Hbase.Thrift
+namespace java org.apache.hadoop.hbase.thrift.generated
+namespace cpp apache.hadoop.hbase.thrift
+namespace rb Apache.Hadoop.Hbase.Thrift
+
// note: other language namespaces tbd...
//
@@ -50,6 +51,16 @@ typedef binary Text
typedef binary Bytes
typedef i32 ScannerID
+/**
+ * TCell - Used to transport a cell value (byte[]) and the timestamp it was
+ * stored with together as a result for get and getRow methods. This promotes
+ * the timestamp of a cell to a first-class value, making it easy to take
+ * note of temporal data. Cell is used all the way from HStore up to HTable.
+ */
+struct TCell{
+ 1:Bytes value,
+ 2:i64 timestamp
+}
/**
* An HColumnDescriptor contains information about a column family
@@ -70,11 +81,14 @@ struct ColumnDescriptor {
}
/**
- * A RegionDescriptor contains informationa about an HTable region.
- * Currently, this is just the startKey of the region.
+ * A TRegionInfo contains information about an HTable region.
*/
-struct RegionDescriptor {
+struct TRegionInfo {
1:Text startKey,
+ 2:Text endKey,
+ 3:i64 id,
+ 4:Text name,
+ 5:byte version
}
/**
@@ -97,12 +111,11 @@ struct BatchMutation {
/**
- * A ScanEntry contains the row, column, and value information for a scanner's
- * current location.
+ * Holds row name and then a map of columns to cells.
*/
-struct ScanEntry {
+struct TRowResult {
1:Text row,
- 2:map columns
+ 2:map columns
}
//
@@ -146,7 +159,28 @@ exception AlreadyExists {
//
service Hbase {
+ /**
+ * Brings a table on-line (enables it)
+ * @param tableName name of the table
+ */
+ void enableTable(1:Bytes tableName)
+ throws (1:IOError io)
+
+ /**
+ * Disables a table (takes it off-line) If it is being served, the master
+ * will tell the servers to stop serving it.
+ * @param tableName name of the table
+ */
+ void disableTable(1:Bytes tableName)
+ throws (1:IOError io)
+ /**
+ * @param tableName name of table to check
+ * @return true if table is on-line
+ */
+ bool isTableEnabled(1:Bytes tableName)
+ throws (1:IOError io)
+
/**
* List all the userspace tables.
* @return - returns a list of names
@@ -167,7 +201,7 @@ service Hbase {
* @param tableName table name
* @return list of region descriptors
*/
- list getTableRegions(1:Text tableName)
+ list getTableRegions(1:Text tableName)
throws (1:IOError io)
/**
@@ -194,7 +228,7 @@ service Hbase {
throws (1:IOError io, 2:NotFound nf)
/**
- * Get a single value for the specified table, row, and column at the
+ * Get a single TCell for the specified table, row, and column at the
* latest timestamp.
*
* @param tableName name of table
@@ -202,7 +236,7 @@ service Hbase {
* @param column column name
* @return value for specified row/column
*/
- Bytes get(1:Text tableName, 2:Text row, 3:Text column)
+ TCell get(1:Text tableName, 2:Text row, 3:Text column)
throws (1:IOError io, 2:NotFound nf)
/**
@@ -213,9 +247,9 @@ service Hbase {
* @param row row key
* @param column column name
* @param numVersions number of versions to retrieve
- * @return list of values for specified row/column
+ * @return list of cells for specified row/column
*/
- list getVer(1:Text tableName, 2:Text row, 3:Text column, 4:i32 numVersions)
+ list getVer(1:Text tableName, 2:Text row, 3:Text column, 4:i32 numVersions)
throws (1:IOError io, 2:NotFound nf)
/**
@@ -228,9 +262,9 @@ service Hbase {
* @param column column name
* @param timestamp timestamp
* @param numVersions number of versions to retrieve
- * @return list of values for specified row/column
+ * @return list of cells for specified row/column
*/
- list getVerTs(1:Text tableName, 2:Text row, 3:Text column, 4:i64 timestamp, 5:i32 numVersions)
+ list getVerTs(1:Text tableName, 2:Text row, 3:Text column, 4:i64 timestamp, 5:i32 numVersions)
throws (1:IOError io, 2:NotFound nf)
/**
@@ -239,9 +273,9 @@ service Hbase {
*
* @param tableName name of table
* @param row row key
- * @return Map of columns to values. Map is empty if row does not exist.
+ * @return TRowResult containing the row and map of columns to TCells. Map is empty if row does not exist.
*/
- map getRow(1:Text tableName, 2:Text row)
+ TRowResult getRow(1:Text tableName, 2:Text row)
throws (1:IOError io)
/**
@@ -251,24 +285,11 @@ service Hbase {
* @param tableName of table
* @param row row key
* @param timestamp timestamp
- * @return Map of columns to values. Map is empty if row does not exist.
+ * @return TRowResult containing the row and map of columns to TCells. Map is empty if row does not exist.
*/
- map getRowTs(1:Text tableName, 2:Text row, 3:i64 timestamp)
+ TRowResult getRowTs(1:Text tableName, 2:Text row, 3:i64 timestamp)
throws (1:IOError io)
- /**
- * Put a single value at the specified table, row, and column.
- * To put muliple values in a single transaction, or to specify
- * a non-default timestamp, use {@link #mutateRow} and/or
- * {@link #mutateRowTs}
- *
- * @param tableName name of table
- * @param row row key
- * @param column column name
- */
- void put(1:Text tableName, 2:Text row, 3:Text column, 4:Bytes value)
- throws (1:IOError io, 2:IllegalArgument ia)
-
/**
* Apply a series of mutations (updates/deletes) to a row in a
* single transaction. If an exception is thrown, then the
@@ -456,11 +477,11 @@ service Hbase {
* a NotFound exception is returned.
*
* @param id id of a scanner returned by scannerOpen
- * @return a ScanEntry object representing the current row's values
+ * @return a TRowResult containing the current row and a map of the columns to TCells.
* @throws IllegalArgument if ScannerID is invalid
* @throws NotFound when the scanner reaches the end
*/
- ScanEntry scannerGet(1:ScannerID id)
+ TRowResult scannerGet(1:ScannerID id)
throws (1:IOError io, 2:IllegalArgument ia, 3:NotFound nf)
/**
diff --git a/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java b/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
index a8ca10db0e2..7610495b514 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
@@ -20,18 +20,19 @@ package org.apache.hadoop.hbase.thrift;
import java.io.IOException;
import java.nio.charset.MalformedInputException;
-import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
import java.util.TreeMap;
-import java.util.Map.Entry;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HConstants;
+import org.apache.hadoop.hbase.HRegionInfo;
+import org.apache.hadoop.hbase.HServerAddress;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.MasterNotRunningException;
import org.apache.hadoop.hbase.client.HBaseAdmin;
@@ -48,8 +49,9 @@ import org.apache.hadoop.hbase.thrift.generated.IOError;
import org.apache.hadoop.hbase.thrift.generated.IllegalArgument;
import org.apache.hadoop.hbase.thrift.generated.Mutation;
import org.apache.hadoop.hbase.thrift.generated.NotFound;
-import org.apache.hadoop.hbase.thrift.generated.RegionDescriptor;
-import org.apache.hadoop.hbase.thrift.generated.ScanEntry;
+import org.apache.hadoop.hbase.thrift.generated.TRegionInfo;
+import org.apache.hadoop.hbase.thrift.generated.TCell;
+import org.apache.hadoop.hbase.thrift.generated.TRowResult;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.io.Text;
@@ -164,7 +166,34 @@ public class ThriftServer {
// used to generate the interface.
//
- public ArrayList getTableNames() throws IOError {
+ public void enableTable(final byte[] tableName) throws IOError {
+ LOG.debug("enableTable");
+ try{
+ admin.enableTable(tableName);
+ } catch (IOException e) {
+ throw new IOError(e.getMessage());
+ }
+ }
+
+ public void disableTable(final byte[] tableName) throws IOError{
+ LOG.debug("disableTable");
+ try{
+ admin.disableTable(tableName);
+ } catch (IOException e) {
+ throw new IOError(e.getMessage());
+ }
+ }
+
+ public boolean isTableEnabled(final byte[] tableName) throws IOError {
+ LOG.debug("isTableEnabled");
+ try {
+ return HTable.isTableEnabled(tableName);
+ } catch (IOException e) {
+ throw new IOError(e.getMessage());
+ }
+ }
+
+ public List getTableNames() throws IOError {
LOG.debug("getTableNames");
try {
HTableDescriptor[] tables = this.admin.listTables();
@@ -178,25 +207,31 @@ public class ThriftServer {
}
}
- public ArrayList getTableRegions(byte[] tableName)
- throws IOError {
- LOG.debug("getTableRegions: " + new String(tableName));
- try {
+ public List getTableRegions(byte[] tableName)
+ throws IOError {
+ try{
+ LOG.debug("getTableRegions: " + new String(tableName));
+
HTable table = getTable(tableName);
- byte [][] startKeys = table.getStartKeys();
- ArrayList regions = new ArrayList();
- for (int i = 0; i < startKeys.length; i++) {
- RegionDescriptor region = new RegionDescriptor();
- region.startKey = startKeys[i];
+ Map regionsInfo = table.getRegionsInfo();
+ List regions = new ArrayList();
+
+ for (HRegionInfo regionInfo : regionsInfo.keySet()){
+ TRegionInfo region = new TRegionInfo();
+ region.startKey = regionInfo.getStartKey();
+ region.endKey = regionInfo.getEndKey();
+ region.id = regionInfo.getRegionId();
+ region.name = regionInfo.getRegionName();
+ region.version = regionInfo.getVersion();
regions.add(region);
}
return regions;
- } catch (IOException e) {
+ } catch (IOException e){
throw new IOError(e.getMessage());
}
}
- public byte[] get(byte[] tableName, byte[] row, byte[] column)
+ public TCell get(byte[] tableName, byte[] row, byte[] column)
throws NotFound, IOError {
if (LOG.isDebugEnabled()) {
LOG.debug("get: table=" + new String(tableName) + ", row="
@@ -204,17 +239,17 @@ public class ThriftServer {
}
try {
HTable table = getTable(tableName);
- Cell value = table.get(getText(row), getText(column));
- if (value == null) {
+ Cell cell = table.get(getText(row), getText(column));
+ if (cell == null) {
throw new NotFound();
}
- return value.getValue();
+ return ThriftUtilities.cellFromHBase(cell);
} catch (IOException e) {
throw new IOError(e.getMessage());
}
}
- public ArrayList getVer(byte[] tableName, byte[] row,
+ public List getVer(byte[] tableName, byte[] row,
byte[] column, int numVersions) throws IOError, NotFound {
if (LOG.isDebugEnabled()) {
LOG.debug("getVer: table=" + new String(tableName) + ", row="
@@ -223,14 +258,14 @@ public class ThriftServer {
}
try {
HTable table = getTable(tableName);
- Cell[] values =
+ Cell[] cells =
table.get(getText(row), getText(column), numVersions);
- if (values == null) {
+ if (cells == null) {
throw new NotFound();
}
- ArrayList list = new ArrayList();
- for (int i = 0; i < values.length; i++) {
- list.add(values[i].getValue());
+ List list = new ArrayList();
+ for (int i = 0; i < cells.length; i++) {
+ list.add(ThriftUtilities.cellFromHBase(cells[i]));
}
return list;
} catch (IOException e) {
@@ -238,7 +273,7 @@ public class ThriftServer {
}
}
- public ArrayList getVerTs(byte[] tableName, byte[] row,
+ public List getVerTs(byte[] tableName, byte[] row,
byte[] column, long timestamp, int numVersions) throws IOError,
NotFound {
if (LOG.isDebugEnabled()) {
@@ -248,14 +283,14 @@ public class ThriftServer {
}
try {
HTable table = getTable(tableName);
- Cell[] values = table.get(getText(row),
+ Cell[] cells = table.get(getText(row),
getText(column), timestamp, numVersions);
- if (values == null) {
+ if (cells == null) {
throw new NotFound();
}
- ArrayList list = new ArrayList();
- for (int i = 0; i < values.length; i++) {
- list.add(values[i].getValue());
+ List list = new ArrayList();
+ for (int i = 0; i < cells.length; i++) {
+ list.add(ThriftUtilities.cellFromHBase(cells[i]));
}
return list;
} catch (IOException e) {
@@ -263,12 +298,12 @@ public class ThriftServer {
}
}
- public AbstractMap getRow(byte[] tableName, byte[] row)
+ public TRowResult getRow(byte[] tableName, byte[] row)
throws IOError {
return getRowTs(tableName, row, HConstants.LATEST_TIMESTAMP);
}
- public AbstractMap getRowTs(byte[] tableName, byte[] row,
+ public TRowResult getRowTs(byte[] tableName, byte[] row,
long timestamp) throws IOError {
if (LOG.isDebugEnabled()) {
LOG.debug("getRowTs: table=" + new String(tableName) + ", row="
@@ -276,39 +311,12 @@ public class ThriftServer {
}
try {
HTable table = getTable(tableName);
- Map values =
- table.getRow(getText(row), timestamp);
- // copy the map from type to
- TreeMap returnValues =
- new TreeMap(Bytes.BYTES_COMPARATOR);
- for (Entry e : values.entrySet()) {
- returnValues.put(e.getKey(), e.getValue().getValue());
- }
- return returnValues;
+ return ThriftUtilities.rowResultFromHBase(table.getRow(getText(row), timestamp));
} catch (IOException e) {
throw new IOError(e.getMessage());
}
}
- public void put(byte[] tableName, byte[] row, byte[] column, byte[] value)
- throws IOError, IllegalArgument {
- if (LOG.isDebugEnabled()) {
- LOG.debug("put: table=" + new String(tableName) + ", row="
- + new String(row) + ", col=" + new String(column)
- + ", value.length=" + value.length);
- }
- try {
- HTable table = getTable(tableName);
- BatchUpdate batchUpdate = new BatchUpdate(getText(row));
- batchUpdate.put(getText(column), value);
- table.commit(batchUpdate);
- } catch (IOException e) {
- throw new IOError(e.getMessage());
- } catch (IllegalArgumentException e) {
- throw new IllegalArgument(e.getMessage());
- }
- }
-
public void deleteAll(byte[] tableName, byte[] row, byte[] column)
throws IOError {
deleteAllTs(tableName, row, column, HConstants.LATEST_TIMESTAMP);
@@ -348,7 +356,7 @@ public class ThriftServer {
}
public void createTable(byte[] tableName,
- ArrayList columnFamilies) throws IOError,
+ List columnFamilies) throws IOError,
IllegalArgument, AlreadyExists {
if (LOG.isDebugEnabled()) {
LOG.debug("createTable: table=" + new String(tableName));
@@ -363,7 +371,7 @@ public class ThriftServer {
HColumnDescriptor colDesc = ThriftUtilities.colDescFromThrift(col);
desc.addFamily(colDesc);
if (LOG.isDebugEnabled()) {
- LOG.debug("createTable: col=" + colDesc.getName());
+ LOG.debug("createTable: col=" + new String(colDesc.getName()));
}
}
admin.createTable(desc);
@@ -390,29 +398,27 @@ public class ThriftServer {
}
public void mutateRow(byte[] tableName, byte[] row,
- ArrayList mutations) throws IOError, IllegalArgument {
+ List mutations) throws IOError, IllegalArgument {
mutateRowTs(tableName, row, mutations, HConstants.LATEST_TIMESTAMP);
}
public void mutateRowTs(byte[] tableName, byte[] row,
- ArrayList mutations, long timestamp) throws IOError, IllegalArgument {
+ List mutations, long timestamp) throws IOError, IllegalArgument {
if (LOG.isDebugEnabled()) {
LOG.debug("mutateRowTs: table=" + new String(tableName) + ", row="
+ new String(row) + ", ts=" + timestamp + " mutations="
+ mutations.size());
for (Mutation m : mutations) {
if (m.isDelete) {
- LOG.debug("mutateRowTs: : delete - " + getText(m.column));
+ LOG.debug("mutateRowTs: : delete - " + new String(getText(m.column)));
} else {
- LOG.debug("mutateRowTs: : put - " + getText(m.column) + " => "
- + m.value);
+ LOG.debug("mutateRowTs: : put - " + new String(getText(m.column)) + " => "
+ + new String(m.value));
}
}
}
- Long lockid = null;
HTable table = null;
-
try {
table = getTable(tableName);
BatchUpdate batchUpdate = new BatchUpdate(getText(row), timestamp);
@@ -431,29 +437,30 @@ public class ThriftServer {
}
}
-
- public void mutateRows(byte[] tableName, ArrayList rowBatches)
+ public void mutateRows(byte[] tableName, List rowBatches)
throws IOError, IllegalArgument, TException {
mutateRowsTs(tableName, rowBatches, HConstants.LATEST_TIMESTAMP);
}
- public void mutateRowsTs(byte[] tableName, ArrayList rowBatches, long timestamp)
+ public void mutateRowsTs(byte[] tableName, List rowBatches, long timestamp)
throws IOError, IllegalArgument, TException {
- ArrayList batchUpdates = new ArrayList();
+ List batchUpdates = new ArrayList();
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("mutateRowsTs: table=" + new String(tableName) + ", rows="
+ + rowBatches.size() + ", ts=" + timestamp);
+ }
for (BatchMutation batch : rowBatches) {
byte[] row = batch.row;
- ArrayList mutations = batch.mutations;
+ List mutations = batch.mutations;
if (LOG.isDebugEnabled()) {
- LOG.debug("mutateRowTs: table=" + new String(tableName) + ", row="
- + new String(row) + ", ts=" + timestamp + " mutations="
- + mutations.size());
+ LOG.debug("mutateRowsTs: : row=" + new String(row) + " mutations=" + mutations.size());
for (Mutation m : mutations) {
if (m.isDelete) {
- LOG.debug("mutateRowTs: : delete - " + getText(m.column));
+ LOG.debug("mutateRowsTs: : delete - " + new String(getText(m.column)));
} else {
- LOG.debug("mutateRowTs: : put - " + getText(m.column) + " => "
- + m.value);
+ LOG.debug("mutateRowsTs: : put - " + new String(getText(m.column)) + " => "
+ + new String(m.value));
}
}
}
@@ -489,7 +496,7 @@ public class ThriftServer {
removeScanner(id);
}
- public ScanEntry scannerGet(int id) throws IllegalArgument, NotFound,
+ public TRowResult scannerGet(int id) throws IllegalArgument, NotFound,
IOError {
LOG.debug("scannerGet: id=" + id);
Scanner scanner = getScanner(id);
@@ -507,22 +514,14 @@ public class ThriftServer {
} catch (IOException e) {
throw new IOError(e.getMessage());
}
-
- ScanEntry retval = new ScanEntry();
- retval.row = results.getRow();
- retval.columns = new TreeMap(Bytes.BYTES_COMPARATOR);
-
- for (Map.Entry e : results.entrySet()) {
- retval.columns.put(e.getKey(), e.getValue().getValue());
- }
- return retval;
+ return ThriftUtilities.rowResultFromHBase(results);
}
public int scannerOpen(byte[] tableName, byte[] startRow,
- ArrayList columns) throws IOError {
+ List columns) throws IOError {
if (LOG.isDebugEnabled()) {
- LOG.debug("scannerOpen: table=" + getText(tableName) + ", start="
- + getText(startRow) + ", columns=" + columns.toString());
+ LOG.debug("scannerOpen: table=" + new String(getText(tableName)) + ", start="
+ + new String(getText(startRow)) + ", columns=" + columns.toString());
}
try {
HTable table = getTable(tableName);
@@ -539,10 +538,10 @@ public class ThriftServer {
}
public int scannerOpenWithStop(byte[] tableName, byte[] startRow,
- byte[] stopRow, ArrayList columns) throws IOError, TException {
+ byte[] stopRow, List columns) throws IOError, TException {
if (LOG.isDebugEnabled()) {
- LOG.debug("scannerOpen: table=" + getText(tableName) + ", start="
- + getText(startRow) + ", stop=" + getText(stopRow) + ", columns="
+ LOG.debug("scannerOpen: table=" + new String(getText(tableName)) + ", start="
+ + new String(getText(startRow)) + ", stop=" + new String(getText(stopRow)) + ", columns="
+ columns.toString());
}
try {
@@ -560,10 +559,10 @@ public class ThriftServer {
}
public int scannerOpenTs(byte[] tableName, byte[] startRow,
- ArrayList columns, long timestamp) throws IOError, TException {
+ List columns, long timestamp) throws IOError, TException {
if (LOG.isDebugEnabled()) {
- LOG.debug("scannerOpen: table=" + getText(tableName) + ", start="
- + getText(startRow) + ", columns=" + columns.toString()
+ LOG.debug("scannerOpen: table=" + new String(getText(tableName)) + ", start="
+ + new String(getText(startRow)) + ", columns=" + columns.toString()
+ ", timestamp=" + timestamp);
}
try {
@@ -581,11 +580,11 @@ public class ThriftServer {
}
public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow,
- byte[] stopRow, ArrayList columns, long timestamp)
+ byte[] stopRow, List columns, long timestamp)
throws IOError, TException {
if (LOG.isDebugEnabled()) {
- LOG.debug("scannerOpen: table=" + getText(tableName) + ", start="
- + getText(startRow) + ", stop=" + getText(stopRow) + ", columns="
+ LOG.debug("scannerOpen: table=" + new String(getText(tableName)) + ", start="
+ + new String(getText(startRow)) + ", stop=" + new String(getText(stopRow)) + ", columns="
+ columns.toString() + ", timestamp=" + timestamp);
}
try {
@@ -602,7 +601,7 @@ public class ThriftServer {
}
}
- public AbstractMap getColumnDescriptors(
+ public Map getColumnDescriptors(
byte[] tableName) throws IOError, TException {
if (LOG.isDebugEnabled()) {
LOG.debug("getColumnDescriptors: table=" + new String(tableName));
@@ -612,7 +611,7 @@ public class ThriftServer {
new TreeMap(Bytes.BYTES_COMPARATOR);
HTable table = getTable(tableName);
- HTableDescriptor desc = table.getMetadata();
+ HTableDescriptor desc = table.getTableDescriptor();
for (HColumnDescriptor e : desc.getFamilies()) {
ColumnDescriptor col = ThriftUtilities.colDescFromHbase(e);
diff --git a/src/java/org/apache/hadoop/hbase/thrift/ThriftUtilities.java b/src/java/org/apache/hadoop/hbase/thrift/ThriftUtilities.java
index ae261235ea8..dbe1d286c4f 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/ThriftUtilities.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/ThriftUtilities.java
@@ -18,10 +18,21 @@
package org.apache.hadoop.hbase.thrift;
+import java.io.IOException;
+import java.util.Map;
+import java.util.TreeMap;
+
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HColumnDescriptor.CompressionType;
+import org.apache.hadoop.hbase.io.Cell;
+import org.apache.hadoop.hbase.io.RowResult;
import org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor;
+import org.apache.hadoop.hbase.thrift.generated.IOError;
import org.apache.hadoop.hbase.thrift.generated.IllegalArgument;
+import org.apache.hadoop.hbase.thrift.generated.NotFound;
+import org.apache.hadoop.hbase.thrift.generated.TCell;
+import org.apache.hadoop.hbase.thrift.generated.TRowResult;
+import org.apache.hadoop.hbase.util.Bytes;
public class ThriftUtilities {
@@ -71,4 +82,34 @@ public class ThriftUtilities {
return col;
}
-}
\ No newline at end of file
+ /**
+ * This utility method creates a new Thrift TCell "struct" based on
+ * an Hbase Cell object.
+ *
+ * @param in
+ * Hbase Cell object
+ * @return Thrift TCell
+ */
+ static public TCell cellFromHBase(Cell in) {
+ return new TCell(in.getValue(), in.getTimestamp());
+ }
+
+ /**
+ * This utility method creates a new Thrift TRowResult "struct" based on
+ * an Hbase RowResult object.
+ *
+ * @param in
+ * Hbase RowResult object
+ * @return Thrift TRowResult
+ */
+ static public TRowResult rowResultFromHBase(RowResult in) {
+ TRowResult result = new TRowResult();
+ result.row = in.getRow();
+ result.columns = new TreeMap(Bytes.BYTES_COMPARATOR);
+ for (Map.Entry entry : in.entrySet()){
+ result.columns.put(entry.getKey(), ThriftUtilities.cellFromHBase(entry.getValue()));
+ }
+ return result;
+ }
+}
+
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java b/src/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java
index c1be39f4c9f..314269d556c 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/AlreadyExists.java
@@ -23,9 +23,11 @@
*/
package org.apache.hadoop.hbase.thrift.generated;
+import java.util.List;
import java.util.ArrayList;
-import java.util.AbstractMap;
+import java.util.Map;
import java.util.HashMap;
+import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;
@@ -40,7 +42,7 @@ public class AlreadyExists extends Exception implements TBase, java.io.Serializa
public String message;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean message = false;
}
@@ -55,6 +57,34 @@ public class AlreadyExists extends Exception implements TBase, java.io.Serializa
this.__isset.message = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof AlreadyExists)
+ return this.equals((AlreadyExists)that);
+ return false;
+ }
+
+ public boolean equals(AlreadyExists that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_message = true && (this.message != null);
+ boolean that_present_message = true && (that.message != null);
+ if (this_present_message || that_present_message) {
+ if (!(this_present_message && that_present_message))
+ return false;
+ if (!this.message.equals(that.message))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java b/src/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java
index 5d506bfdf74..c2a1b77bdd2 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/BatchMutation.java
@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
/**
* Autogenerated by Thrift
*
@@ -23,9 +23,11 @@
*/
package org.apache.hadoop.hbase.thrift.generated;
+import java.util.List;
import java.util.ArrayList;
-import java.util.AbstractMap;
+import java.util.Map;
import java.util.HashMap;
+import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;
@@ -37,10 +39,10 @@ import com.facebook.thrift.transport.*;
*/
public class BatchMutation implements TBase, java.io.Serializable {
public byte[] row;
- public ArrayList mutations;
+ public List mutations;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean row = false;
public boolean mutations = false;
}
@@ -50,7 +52,7 @@ public class BatchMutation implements TBase, java.io.Serializable {
public BatchMutation(
byte[] row,
- ArrayList mutations)
+ List mutations)
{
this();
this.row = row;
@@ -59,6 +61,43 @@ public class BatchMutation implements TBase, java.io.Serializable {
this.__isset.mutations = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof BatchMutation)
+ return this.equals((BatchMutation)that);
+ return false;
+ }
+
+ public boolean equals(BatchMutation that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_mutations = true && (this.mutations != null);
+ boolean that_present_mutations = true && (that.mutations != null);
+ if (this_present_mutations || that_present_mutations) {
+ if (!(this_present_mutations && that_present_mutations))
+ return false;
+ if (!this.mutations.equals(that.mutations))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java b/src/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java
index b05740e3695..3f538bd6163 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/ColumnDescriptor.java
@@ -23,9 +23,11 @@
*/
package org.apache.hadoop.hbase.thrift.generated;
+import java.util.List;
import java.util.ArrayList;
-import java.util.AbstractMap;
+import java.util.Map;
import java.util.HashMap;
+import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;
@@ -50,7 +52,7 @@ public class ColumnDescriptor implements TBase, java.io.Serializable {
public int timeToLive;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean name = false;
public boolean maxVersions = false;
public boolean compression = false;
@@ -119,6 +121,115 @@ public class ColumnDescriptor implements TBase, java.io.Serializable {
this.__isset.timeToLive = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof ColumnDescriptor)
+ return this.equals((ColumnDescriptor)that);
+ return false;
+ }
+
+ public boolean equals(ColumnDescriptor that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_name = true && (this.name != null);
+ boolean that_present_name = true && (that.name != null);
+ if (this_present_name || that_present_name) {
+ if (!(this_present_name && that_present_name))
+ return false;
+ if (!java.util.Arrays.equals(this.name, that.name))
+ return false;
+ }
+
+ boolean this_present_maxVersions = true;
+ boolean that_present_maxVersions = true;
+ if (this_present_maxVersions || that_present_maxVersions) {
+ if (!(this_present_maxVersions && that_present_maxVersions))
+ return false;
+ if (this.maxVersions != that.maxVersions)
+ return false;
+ }
+
+ boolean this_present_compression = true && (this.compression != null);
+ boolean that_present_compression = true && (that.compression != null);
+ if (this_present_compression || that_present_compression) {
+ if (!(this_present_compression && that_present_compression))
+ return false;
+ if (!this.compression.equals(that.compression))
+ return false;
+ }
+
+ boolean this_present_inMemory = true;
+ boolean that_present_inMemory = true;
+ if (this_present_inMemory || that_present_inMemory) {
+ if (!(this_present_inMemory && that_present_inMemory))
+ return false;
+ if (this.inMemory != that.inMemory)
+ return false;
+ }
+
+ boolean this_present_maxValueLength = true;
+ boolean that_present_maxValueLength = true;
+ if (this_present_maxValueLength || that_present_maxValueLength) {
+ if (!(this_present_maxValueLength && that_present_maxValueLength))
+ return false;
+ if (this.maxValueLength != that.maxValueLength)
+ return false;
+ }
+
+ boolean this_present_bloomFilterType = true && (this.bloomFilterType != null);
+ boolean that_present_bloomFilterType = true && (that.bloomFilterType != null);
+ if (this_present_bloomFilterType || that_present_bloomFilterType) {
+ if (!(this_present_bloomFilterType && that_present_bloomFilterType))
+ return false;
+ if (!this.bloomFilterType.equals(that.bloomFilterType))
+ return false;
+ }
+
+ boolean this_present_bloomFilterVectorSize = true;
+ boolean that_present_bloomFilterVectorSize = true;
+ if (this_present_bloomFilterVectorSize || that_present_bloomFilterVectorSize) {
+ if (!(this_present_bloomFilterVectorSize && that_present_bloomFilterVectorSize))
+ return false;
+ if (this.bloomFilterVectorSize != that.bloomFilterVectorSize)
+ return false;
+ }
+
+ boolean this_present_bloomFilterNbHashes = true;
+ boolean that_present_bloomFilterNbHashes = true;
+ if (this_present_bloomFilterNbHashes || that_present_bloomFilterNbHashes) {
+ if (!(this_present_bloomFilterNbHashes && that_present_bloomFilterNbHashes))
+ return false;
+ if (this.bloomFilterNbHashes != that.bloomFilterNbHashes)
+ return false;
+ }
+
+ boolean this_present_blockCacheEnabled = true;
+ boolean that_present_blockCacheEnabled = true;
+ if (this_present_blockCacheEnabled || that_present_blockCacheEnabled) {
+ if (!(this_present_blockCacheEnabled && that_present_blockCacheEnabled))
+ return false;
+ if (this.blockCacheEnabled != that.blockCacheEnabled)
+ return false;
+ }
+
+ boolean this_present_timeToLive = true;
+ boolean that_present_timeToLive = true;
+ if (this_present_timeToLive || that_present_timeToLive) {
+ if (!(this_present_timeToLive && that_present_timeToLive))
+ return false;
+ if (this.timeToLive != that.timeToLive)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -203,13 +314,13 @@ public class ColumnDescriptor implements TBase, java.io.Serializable {
}
break;
case 10:
- if (field.type == TType.I32) {
- this.timeToLive = iprot.readI32();
- this.__isset.timeToLive = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
+ if (field.type == TType.I32) {
+ this.timeToLive = iprot.readI32();
+ this.__isset.timeToLive = true;
+ } else {
+ TProtocolUtil.skip(iprot, field.type);
+ }
+ break;
default:
TProtocolUtil.skip(iprot, field.type);
break;
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/Constants.java b/src/java/org/apache/hadoop/hbase/thrift/generated/Constants.java
index bee2177e556..1f73410c7ef 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/Constants.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/Constants.java
@@ -23,9 +23,11 @@
*/
package org.apache.hadoop.hbase.thrift.generated;
+import java.util.List;
import java.util.ArrayList;
-import java.util.AbstractMap;
+import java.util.Map;
import java.util.HashMap;
+import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java b/src/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java
index f7d881cd74c..b5382e2364e 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/Hbase.java
@@ -23,9 +23,11 @@
*/
package org.apache.hadoop.hbase.thrift.generated;
+import java.util.List;
import java.util.ArrayList;
-import java.util.AbstractMap;
+import java.util.Map;
import java.util.HashMap;
+import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;
@@ -36,25 +38,44 @@ public class Hbase {
public interface Iface {
+ /**
+ * Brings a table on-line (enables it)
+ * @param tableName name of the table
+ */
+ public void enableTable(byte[] tableName) throws IOError, TException;
+
+ /**
+ * Disables a table (takes it off-line) If it is being served, the master
+ * will tell the servers to stop serving it.
+ * @param tableName name of the table
+ */
+ public void disableTable(byte[] tableName) throws IOError, TException;
+
+ /**
+ * @param tableName name of table to check
+ * @return true if table is on-line
+ */
+ public boolean isTableEnabled(byte[] tableName) throws IOError, TException;
+
/**
* List all the userspace tables.
* @return - returns a list of names
*/
- public ArrayList getTableNames() throws IOError, TException;
+ public List getTableNames() throws IOError, TException;
/**
* List all the column families assoicated with a table.
* @param tableName table name
* @return list of column family descriptors
*/
- public AbstractMap getColumnDescriptors(byte[] tableName) throws IOError, TException;
+ public Map getColumnDescriptors(byte[] tableName) throws IOError, TException;
/**
* List the regions associated with a table.
* @param tableName table name
* @return list of region descriptors
*/
- public ArrayList getTableRegions(byte[] tableName) throws IOError, TException;
+ public List getTableRegions(byte[] tableName) throws IOError, TException;
/**
* Create a table with the specified column families. The name
@@ -68,7 +89,7 @@ public class Hbase {
* @throws IllegalArgument if an input parameter is invalid
* @throws AlreadyExists if the table name already exists
*/
- public void createTable(byte[] tableName, ArrayList columnFamilies) throws IOError, IllegalArgument, AlreadyExists, TException;
+ public void createTable(byte[] tableName, List columnFamilies) throws IOError, IllegalArgument, AlreadyExists, TException;
/**
* Deletes a table
@@ -78,7 +99,7 @@ public class Hbase {
public void deleteTable(byte[] tableName) throws IOError, NotFound, TException;
/**
- * Get a single value for the specified table, row, and column at the
+ * Get a single TCell for the specified table, row, and column at the
* latest timestamp.
*
* @param tableName name of table
@@ -86,7 +107,7 @@ public class Hbase {
* @param column column name
* @return value for specified row/column
*/
- public byte[] get(byte[] tableName, byte[] row, byte[] column) throws IOError, NotFound, TException;
+ public TCell get(byte[] tableName, byte[] row, byte[] column) throws IOError, NotFound, TException;
/**
* Get the specified number of versions for the specified table,
@@ -96,9 +117,9 @@ public class Hbase {
* @param row row key
* @param column column name
* @param numVersions number of versions to retrieve
- * @return list of values for specified row/column
+ * @return list of cells for specified row/column
*/
- public ArrayList getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException;
+ public List getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException;
/**
* Get the specified number of versions for the specified table,
@@ -110,9 +131,9 @@ public class Hbase {
* @param column column name
* @param timestamp timestamp
* @param numVersions number of versions to retrieve
- * @return list of values for specified row/column
+ * @return list of cells for specified row/column
*/
- public ArrayList getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException;
+ public List getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException;
/**
* Get all the data for the specified table and row at the latest
@@ -120,9 +141,9 @@ public class Hbase {
*
* @param tableName name of table
* @param row row key
- * @return Map of columns to values. Map is empty if row does not exist.
+ * @return TRowResult containing the row and map of columns to TCells. Map is empty if row does not exist.
*/
- public AbstractMap getRow(byte[] tableName, byte[] row) throws IOError, TException;
+ public TRowResult getRow(byte[] tableName, byte[] row) throws IOError, TException;
/**
* Get all the data for the specified table and row at the specified
@@ -131,21 +152,9 @@ public class Hbase {
* @param tableName of table
* @param row row key
* @param timestamp timestamp
- * @return Map of columns to values. Map is empty if row does not exist.
+ * @return TRowResult containing the row and map of columns to TCells. Map is empty if row does not exist.
*/
- public AbstractMap getRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, TException;
-
- /**
- * Put a single value at the specified table, row, and column.
- * To put muliple values in a single transaction, or to specify
- * a non-default timestamp, use {@link #mutateRow} and/or
- * {@link #mutateRowTs}
- *
- * @param tableName name of table
- * @param row row key
- * @param column column name
- */
- public void put(byte[] tableName, byte[] row, byte[] column, byte[] value) throws IOError, IllegalArgument, TException;
+ public TRowResult getRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, TException;
/**
* Apply a series of mutations (updates/deletes) to a row in a
@@ -157,7 +166,7 @@ public class Hbase {
* @param row row key
* @param mutations list of mutation commands
*/
- public void mutateRow(byte[] tableName, byte[] row, ArrayList mutations) throws IOError, IllegalArgument, TException;
+ public void mutateRow(byte[] tableName, byte[] row, List mutations) throws IOError, IllegalArgument, TException;
/**
* Apply a series of mutations (updates/deletes) to a row in a
@@ -170,7 +179,7 @@ public class Hbase {
* @param mutations list of mutation commands
* @param timestamp timestamp
*/
- public void mutateRowTs(byte[] tableName, byte[] row, ArrayList mutations, long timestamp) throws IOError, IllegalArgument, TException;
+ public void mutateRowTs(byte[] tableName, byte[] row, List mutations, long timestamp) throws IOError, IllegalArgument, TException;
/**
* Apply a series of batches (each a series of mutations on a single row)
@@ -181,7 +190,7 @@ public class Hbase {
* @param tableName name of table
* @param rowBatches list of row batches
*/
- public void mutateRows(byte[] tableName, ArrayList rowBatches) throws IOError, IllegalArgument, TException;
+ public void mutateRows(byte[] tableName, List rowBatches) throws IOError, IllegalArgument, TException;
/**
* Apply a series of batches (each a series of mutations on a single row)
@@ -193,7 +202,7 @@ public class Hbase {
* @param rowBatches list of row batches
* @param timestamp timestamp
*/
- public void mutateRowsTs(byte[] tableName, ArrayList rowBatches, long timestamp) throws IOError, IllegalArgument, TException;
+ public void mutateRowsTs(byte[] tableName, List rowBatches, long timestamp) throws IOError, IllegalArgument, TException;
/**
* Delete all cells that match the passed row and column.
@@ -246,7 +255,7 @@ public class Hbase {
*
* @return scanner id to be used with other scanner procedures
*/
- public int scannerOpen(byte[] tableName, byte[] startRow, ArrayList columns) throws IOError, TException;
+ public int scannerOpen(byte[] tableName, byte[] startRow, List columns) throws IOError, TException;
/**
* Get a scanner on the current table starting and stopping at the
@@ -264,7 +273,7 @@ public class Hbase {
*
* @return scanner id to be used with other scanner procedures
*/
- public int scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns) throws IOError, TException;
+ public int scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, List columns) throws IOError, TException;
/**
* Get a scanner on the current table starting at the specified row and
@@ -281,7 +290,7 @@ public class Hbase {
*
* @return scanner id to be used with other scanner procedures
*/
- public int scannerOpenTs(byte[] tableName, byte[] startRow, ArrayList columns, long timestamp) throws IOError, TException;
+ public int scannerOpenTs(byte[] tableName, byte[] startRow, List columns, long timestamp) throws IOError, TException;
/**
* Get a scanner on the current table starting and stopping at the
@@ -301,7 +310,7 @@ public class Hbase {
*
* @return scanner id to be used with other scanner procedures
*/
- public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns, long timestamp) throws IOError, TException;
+ public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, List columns, long timestamp) throws IOError, TException;
/**
* Returns the scanner's current row value and advances to the next
@@ -310,11 +319,11 @@ public class Hbase {
* a NotFound exception is returned.
*
* @param id id of a scanner returned by scannerOpen
- * @return a ScanEntry object representing the current row's values
+ * @return a TRowResult containing the current row and a map of the columns to TCells.
* @throws IllegalArgument if ScannerID is invalid
* @throws NotFound when the scanner reaches the end
*/
- public ScanEntry scannerGet(int id) throws IOError, IllegalArgument, NotFound, TException;
+ public TRowResult scannerGet(int id) throws IOError, IllegalArgument, NotFound, TException;
/**
* Closes the server-state associated with an open scanner.
@@ -343,7 +352,119 @@ public class Hbase {
protected int seqid_;
- public ArrayList getTableNames() throws IOError, TException
+ public TProtocol getInputProtocol()
+ {
+ return this.iprot_;
+ }
+
+ public TProtocol getOutputProtocol()
+ {
+ return this.oprot_;
+ }
+
+ public void enableTable(byte[] tableName) throws IOError, TException
+ {
+ send_enableTable(tableName);
+ recv_enableTable();
+ }
+
+ public void send_enableTable(byte[] tableName) throws TException
+ {
+ oprot_.writeMessageBegin(new TMessage("enableTable", TMessageType.CALL, seqid_));
+ enableTable_args args = new enableTable_args();
+ args.tableName = tableName;
+ args.write(oprot_);
+ oprot_.writeMessageEnd();
+ oprot_.getTransport().flush();
+ }
+
+ public void recv_enableTable() throws IOError, TException
+ {
+ TMessage msg = iprot_.readMessageBegin();
+ if (msg.type == TMessageType.EXCEPTION) {
+ TApplicationException x = TApplicationException.read(iprot_);
+ iprot_.readMessageEnd();
+ throw x;
+ }
+ enableTable_result result = new enableTable_result();
+ result.read(iprot_);
+ iprot_.readMessageEnd();
+ if (result.__isset.io) {
+ throw result.io;
+ }
+ return;
+ }
+
+ public void disableTable(byte[] tableName) throws IOError, TException
+ {
+ send_disableTable(tableName);
+ recv_disableTable();
+ }
+
+ public void send_disableTable(byte[] tableName) throws TException
+ {
+ oprot_.writeMessageBegin(new TMessage("disableTable", TMessageType.CALL, seqid_));
+ disableTable_args args = new disableTable_args();
+ args.tableName = tableName;
+ args.write(oprot_);
+ oprot_.writeMessageEnd();
+ oprot_.getTransport().flush();
+ }
+
+ public void recv_disableTable() throws IOError, TException
+ {
+ TMessage msg = iprot_.readMessageBegin();
+ if (msg.type == TMessageType.EXCEPTION) {
+ TApplicationException x = TApplicationException.read(iprot_);
+ iprot_.readMessageEnd();
+ throw x;
+ }
+ disableTable_result result = new disableTable_result();
+ result.read(iprot_);
+ iprot_.readMessageEnd();
+ if (result.__isset.io) {
+ throw result.io;
+ }
+ return;
+ }
+
+ public boolean isTableEnabled(byte[] tableName) throws IOError, TException
+ {
+ send_isTableEnabled(tableName);
+ return recv_isTableEnabled();
+ }
+
+ public void send_isTableEnabled(byte[] tableName) throws TException
+ {
+ oprot_.writeMessageBegin(new TMessage("isTableEnabled", TMessageType.CALL, seqid_));
+ isTableEnabled_args args = new isTableEnabled_args();
+ args.tableName = tableName;
+ args.write(oprot_);
+ oprot_.writeMessageEnd();
+ oprot_.getTransport().flush();
+ }
+
+ public boolean recv_isTableEnabled() throws IOError, TException
+ {
+ TMessage msg = iprot_.readMessageBegin();
+ if (msg.type == TMessageType.EXCEPTION) {
+ TApplicationException x = TApplicationException.read(iprot_);
+ iprot_.readMessageEnd();
+ throw x;
+ }
+ isTableEnabled_result result = new isTableEnabled_result();
+ result.read(iprot_);
+ iprot_.readMessageEnd();
+ if (result.__isset.success) {
+ return result.success;
+ }
+ if (result.__isset.io) {
+ throw result.io;
+ }
+ throw new TApplicationException(TApplicationException.MISSING_RESULT, "isTableEnabled failed: unknown result");
+ }
+
+ public List getTableNames() throws IOError, TException
{
send_getTableNames();
return recv_getTableNames();
@@ -358,7 +479,7 @@ public class Hbase {
oprot_.getTransport().flush();
}
- public ArrayList recv_getTableNames() throws IOError, TException
+ public List recv_getTableNames() throws IOError, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -378,7 +499,7 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTableNames failed: unknown result");
}
- public AbstractMap getColumnDescriptors(byte[] tableName) throws IOError, TException
+ public Map getColumnDescriptors(byte[] tableName) throws IOError, TException
{
send_getColumnDescriptors(tableName);
return recv_getColumnDescriptors();
@@ -394,7 +515,7 @@ public class Hbase {
oprot_.getTransport().flush();
}
- public AbstractMap recv_getColumnDescriptors() throws IOError, TException
+ public Map recv_getColumnDescriptors() throws IOError, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -414,7 +535,7 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getColumnDescriptors failed: unknown result");
}
- public ArrayList getTableRegions(byte[] tableName) throws IOError, TException
+ public List getTableRegions(byte[] tableName) throws IOError, TException
{
send_getTableRegions(tableName);
return recv_getTableRegions();
@@ -430,7 +551,7 @@ public class Hbase {
oprot_.getTransport().flush();
}
- public ArrayList recv_getTableRegions() throws IOError, TException
+ public List recv_getTableRegions() throws IOError, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -450,13 +571,13 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTableRegions failed: unknown result");
}
- public void createTable(byte[] tableName, ArrayList columnFamilies) throws IOError, IllegalArgument, AlreadyExists, TException
+ public void createTable(byte[] tableName, List columnFamilies) throws IOError, IllegalArgument, AlreadyExists, TException
{
send_createTable(tableName, columnFamilies);
recv_createTable();
}
- public void send_createTable(byte[] tableName, ArrayList columnFamilies) throws TException
+ public void send_createTable(byte[] tableName, List columnFamilies) throws TException
{
oprot_.writeMessageBegin(new TMessage("createTable", TMessageType.CALL, seqid_));
createTable_args args = new createTable_args();
@@ -526,7 +647,7 @@ public class Hbase {
return;
}
- public byte[] get(byte[] tableName, byte[] row, byte[] column) throws IOError, NotFound, TException
+ public TCell get(byte[] tableName, byte[] row, byte[] column) throws IOError, NotFound, TException
{
send_get(tableName, row, column);
return recv_get();
@@ -544,7 +665,7 @@ public class Hbase {
oprot_.getTransport().flush();
}
- public byte[] recv_get() throws IOError, NotFound, TException
+ public TCell recv_get() throws IOError, NotFound, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -567,7 +688,7 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result");
}
- public ArrayList getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException
+ public List getVer(byte[] tableName, byte[] row, byte[] column, int numVersions) throws IOError, NotFound, TException
{
send_getVer(tableName, row, column, numVersions);
return recv_getVer();
@@ -586,7 +707,7 @@ public class Hbase {
oprot_.getTransport().flush();
}
- public ArrayList recv_getVer() throws IOError, NotFound, TException
+ public List recv_getVer() throws IOError, NotFound, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -609,7 +730,7 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getVer failed: unknown result");
}
- public ArrayList getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException
+ public List getVerTs(byte[] tableName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOError, NotFound, TException
{
send_getVerTs(tableName, row, column, timestamp, numVersions);
return recv_getVerTs();
@@ -629,7 +750,7 @@ public class Hbase {
oprot_.getTransport().flush();
}
- public ArrayList recv_getVerTs() throws IOError, NotFound, TException
+ public List recv_getVerTs() throws IOError, NotFound, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -652,7 +773,7 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getVerTs failed: unknown result");
}
- public AbstractMap getRow(byte[] tableName, byte[] row) throws IOError, TException
+ public TRowResult getRow(byte[] tableName, byte[] row) throws IOError, TException
{
send_getRow(tableName, row);
return recv_getRow();
@@ -669,7 +790,7 @@ public class Hbase {
oprot_.getTransport().flush();
}
- public AbstractMap recv_getRow() throws IOError, TException
+ public TRowResult recv_getRow() throws IOError, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -689,7 +810,7 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getRow failed: unknown result");
}
- public AbstractMap getRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, TException
+ public TRowResult getRowTs(byte[] tableName, byte[] row, long timestamp) throws IOError, TException
{
send_getRowTs(tableName, row, timestamp);
return recv_getRowTs();
@@ -707,7 +828,7 @@ public class Hbase {
oprot_.getTransport().flush();
}
- public AbstractMap recv_getRowTs() throws IOError, TException
+ public TRowResult recv_getRowTs() throws IOError, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -727,52 +848,13 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getRowTs failed: unknown result");
}
- public void put(byte[] tableName, byte[] row, byte[] column, byte[] value) throws IOError, IllegalArgument, TException
- {
- send_put(tableName, row, column, value);
- recv_put();
- }
-
- public void send_put(byte[] tableName, byte[] row, byte[] column, byte[] value) throws TException
- {
- oprot_.writeMessageBegin(new TMessage("put", TMessageType.CALL, seqid_));
- put_args args = new put_args();
- args.tableName = tableName;
- args.row = row;
- args.column = column;
- args.value = value;
- args.write(oprot_);
- oprot_.writeMessageEnd();
- oprot_.getTransport().flush();
- }
-
- public void recv_put() throws IOError, IllegalArgument, TException
- {
- TMessage msg = iprot_.readMessageBegin();
- if (msg.type == TMessageType.EXCEPTION) {
- TApplicationException x = TApplicationException.read(iprot_);
- iprot_.readMessageEnd();
- throw x;
- }
- put_result result = new put_result();
- result.read(iprot_);
- iprot_.readMessageEnd();
- if (result.__isset.io) {
- throw result.io;
- }
- if (result.__isset.ia) {
- throw result.ia;
- }
- return;
- }
-
- public void mutateRow(byte[] tableName, byte[] row, ArrayList mutations) throws IOError, IllegalArgument, TException
+ public void mutateRow(byte[] tableName, byte[] row, List mutations) throws IOError, IllegalArgument, TException
{
send_mutateRow(tableName, row, mutations);
recv_mutateRow();
}
- public void send_mutateRow(byte[] tableName, byte[] row, ArrayList mutations) throws TException
+ public void send_mutateRow(byte[] tableName, byte[] row, List mutations) throws TException
{
oprot_.writeMessageBegin(new TMessage("mutateRow", TMessageType.CALL, seqid_));
mutateRow_args args = new mutateRow_args();
@@ -804,13 +886,13 @@ public class Hbase {
return;
}
- public void mutateRowTs(byte[] tableName, byte[] row, ArrayList mutations, long timestamp) throws IOError, IllegalArgument, TException
+ public void mutateRowTs(byte[] tableName, byte[] row, List mutations, long timestamp) throws IOError, IllegalArgument, TException
{
send_mutateRowTs(tableName, row, mutations, timestamp);
recv_mutateRowTs();
}
- public void send_mutateRowTs(byte[] tableName, byte[] row, ArrayList mutations, long timestamp) throws TException
+ public void send_mutateRowTs(byte[] tableName, byte[] row, List mutations, long timestamp) throws TException
{
oprot_.writeMessageBegin(new TMessage("mutateRowTs", TMessageType.CALL, seqid_));
mutateRowTs_args args = new mutateRowTs_args();
@@ -843,13 +925,13 @@ public class Hbase {
return;
}
- public void mutateRows(byte[] tableName, ArrayList rowBatches) throws IOError, IllegalArgument, TException
+ public void mutateRows(byte[] tableName, List rowBatches) throws IOError, IllegalArgument, TException
{
send_mutateRows(tableName, rowBatches);
recv_mutateRows();
}
- public void send_mutateRows(byte[] tableName, ArrayList rowBatches) throws TException
+ public void send_mutateRows(byte[] tableName, List rowBatches) throws TException
{
oprot_.writeMessageBegin(new TMessage("mutateRows", TMessageType.CALL, seqid_));
mutateRows_args args = new mutateRows_args();
@@ -880,13 +962,13 @@ public class Hbase {
return;
}
- public void mutateRowsTs(byte[] tableName, ArrayList rowBatches, long timestamp) throws IOError, IllegalArgument, TException
+ public void mutateRowsTs(byte[] tableName, List rowBatches, long timestamp) throws IOError, IllegalArgument, TException
{
send_mutateRowsTs(tableName, rowBatches, timestamp);
recv_mutateRowsTs();
}
- public void send_mutateRowsTs(byte[] tableName, ArrayList rowBatches, long timestamp) throws TException
+ public void send_mutateRowsTs(byte[] tableName, List rowBatches, long timestamp) throws TException
{
oprot_.writeMessageBegin(new TMessage("mutateRowsTs", TMessageType.CALL, seqid_));
mutateRowsTs_args args = new mutateRowsTs_args();
@@ -1058,13 +1140,13 @@ public class Hbase {
return;
}
- public int scannerOpen(byte[] tableName, byte[] startRow, ArrayList columns) throws IOError, TException
+ public int scannerOpen(byte[] tableName, byte[] startRow, List columns) throws IOError, TException
{
send_scannerOpen(tableName, startRow, columns);
return recv_scannerOpen();
}
- public void send_scannerOpen(byte[] tableName, byte[] startRow, ArrayList columns) throws TException
+ public void send_scannerOpen(byte[] tableName, byte[] startRow, List columns) throws TException
{
oprot_.writeMessageBegin(new TMessage("scannerOpen", TMessageType.CALL, seqid_));
scannerOpen_args args = new scannerOpen_args();
@@ -1096,13 +1178,13 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpen failed: unknown result");
}
- public int scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns) throws IOError, TException
+ public int scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, List columns) throws IOError, TException
{
send_scannerOpenWithStop(tableName, startRow, stopRow, columns);
return recv_scannerOpenWithStop();
}
- public void send_scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns) throws TException
+ public void send_scannerOpenWithStop(byte[] tableName, byte[] startRow, byte[] stopRow, List columns) throws TException
{
oprot_.writeMessageBegin(new TMessage("scannerOpenWithStop", TMessageType.CALL, seqid_));
scannerOpenWithStop_args args = new scannerOpenWithStop_args();
@@ -1135,13 +1217,13 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithStop failed: unknown result");
}
- public int scannerOpenTs(byte[] tableName, byte[] startRow, ArrayList columns, long timestamp) throws IOError, TException
+ public int scannerOpenTs(byte[] tableName, byte[] startRow, List columns, long timestamp) throws IOError, TException
{
send_scannerOpenTs(tableName, startRow, columns, timestamp);
return recv_scannerOpenTs();
}
- public void send_scannerOpenTs(byte[] tableName, byte[] startRow, ArrayList columns, long timestamp) throws TException
+ public void send_scannerOpenTs(byte[] tableName, byte[] startRow, List columns, long timestamp) throws TException
{
oprot_.writeMessageBegin(new TMessage("scannerOpenTs", TMessageType.CALL, seqid_));
scannerOpenTs_args args = new scannerOpenTs_args();
@@ -1174,13 +1256,13 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenTs failed: unknown result");
}
- public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns, long timestamp) throws IOError, TException
+ public int scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, List columns, long timestamp) throws IOError, TException
{
send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp);
return recv_scannerOpenWithStopTs();
}
- public void send_scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, ArrayList columns, long timestamp) throws TException
+ public void send_scannerOpenWithStopTs(byte[] tableName, byte[] startRow, byte[] stopRow, List columns, long timestamp) throws TException
{
oprot_.writeMessageBegin(new TMessage("scannerOpenWithStopTs", TMessageType.CALL, seqid_));
scannerOpenWithStopTs_args args = new scannerOpenWithStopTs_args();
@@ -1214,7 +1296,7 @@ public class Hbase {
throw new TApplicationException(TApplicationException.MISSING_RESULT, "scannerOpenWithStopTs failed: unknown result");
}
- public ScanEntry scannerGet(int id) throws IOError, IllegalArgument, NotFound, TException
+ public TRowResult scannerGet(int id) throws IOError, IllegalArgument, NotFound, TException
{
send_scannerGet(id);
return recv_scannerGet();
@@ -1230,7 +1312,7 @@ public class Hbase {
oprot_.getTransport().flush();
}
- public ScanEntry recv_scannerGet() throws IOError, IllegalArgument, NotFound, TException
+ public TRowResult recv_scannerGet() throws IOError, IllegalArgument, NotFound, TException
{
TMessage msg = iprot_.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
@@ -1297,6 +1379,9 @@ public class Hbase {
public Processor(Iface iface)
{
iface_ = iface;
+ processMap_.put("enableTable", new enableTable());
+ processMap_.put("disableTable", new disableTable());
+ processMap_.put("isTableEnabled", new isTableEnabled());
processMap_.put("getTableNames", new getTableNames());
processMap_.put("getColumnDescriptors", new getColumnDescriptors());
processMap_.put("getTableRegions", new getTableRegions());
@@ -1307,7 +1392,6 @@ public class Hbase {
processMap_.put("getVerTs", new getVerTs());
processMap_.put("getRow", new getRow());
processMap_.put("getRowTs", new getRowTs());
- processMap_.put("put", new put());
processMap_.put("mutateRow", new mutateRow());
processMap_.put("mutateRowTs", new mutateRowTs());
processMap_.put("mutateRows", new mutateRows());
@@ -1349,6 +1433,70 @@ public class Hbase {
return true;
}
+ private class enableTable implements ProcessFunction {
+ public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
+ {
+ enableTable_args args = new enableTable_args();
+ args.read(iprot);
+ iprot.readMessageEnd();
+ enableTable_result result = new enableTable_result();
+ try {
+ iface_.enableTable(args.tableName);
+ } catch (IOError io) {
+ result.io = io;
+ result.__isset.io = true;
+ }
+ oprot.writeMessageBegin(new TMessage("enableTable", TMessageType.REPLY, seqid));
+ result.write(oprot);
+ oprot.writeMessageEnd();
+ oprot.getTransport().flush();
+ }
+
+ }
+
+ private class disableTable implements ProcessFunction {
+ public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
+ {
+ disableTable_args args = new disableTable_args();
+ args.read(iprot);
+ iprot.readMessageEnd();
+ disableTable_result result = new disableTable_result();
+ try {
+ iface_.disableTable(args.tableName);
+ } catch (IOError io) {
+ result.io = io;
+ result.__isset.io = true;
+ }
+ oprot.writeMessageBegin(new TMessage("disableTable", TMessageType.REPLY, seqid));
+ result.write(oprot);
+ oprot.writeMessageEnd();
+ oprot.getTransport().flush();
+ }
+
+ }
+
+ private class isTableEnabled implements ProcessFunction {
+ public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
+ {
+ isTableEnabled_args args = new isTableEnabled_args();
+ args.read(iprot);
+ iprot.readMessageEnd();
+ isTableEnabled_result result = new isTableEnabled_result();
+ try {
+ result.success = iface_.isTableEnabled(args.tableName);
+ result.__isset.success = true;
+ } catch (IOError io) {
+ result.io = io;
+ result.__isset.io = true;
+ }
+ oprot.writeMessageBegin(new TMessage("isTableEnabled", TMessageType.REPLY, seqid));
+ result.write(oprot);
+ oprot.writeMessageEnd();
+ oprot.getTransport().flush();
+ }
+
+ }
+
private class getTableNames implements ProcessFunction {
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
{
@@ -1585,30 +1733,6 @@ public class Hbase {
}
- private class put implements ProcessFunction {
- public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
- {
- put_args args = new put_args();
- args.read(iprot);
- iprot.readMessageEnd();
- put_result result = new put_result();
- try {
- iface_.put(args.tableName, args.row, args.column, args.value);
- } catch (IOError io) {
- result.io = io;
- result.__isset.io = true;
- } catch (IllegalArgument ia) {
- result.ia = ia;
- result.__isset.ia = true;
- }
- oprot.writeMessageBegin(new TMessage("put", TMessageType.REPLY, seqid));
- result.write(oprot);
- oprot.writeMessageEnd();
- oprot.getTransport().flush();
- }
-
- }
-
private class mutateRow implements ProcessFunction {
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
{
@@ -1931,10 +2055,678 @@ public class Hbase {
}
+ public static class enableTable_args implements TBase, java.io.Serializable {
+ public byte[] tableName;
+
+ public final Isset __isset = new Isset();
+ public static final class Isset implements java.io.Serializable {
+ public boolean tableName = false;
+ }
+
+ public enableTable_args() {
+ }
+
+ public enableTable_args(
+ byte[] tableName)
+ {
+ this();
+ this.tableName = tableName;
+ this.__isset.tableName = true;
+ }
+
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof enableTable_args)
+ return this.equals((enableTable_args)that);
+ return false;
+ }
+
+ public boolean equals(enableTable_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
+ public void read(TProtocol iprot) throws TException {
+ TField field;
+ iprot.readStructBegin();
+ while (true)
+ {
+ field = iprot.readFieldBegin();
+ if (field.type == TType.STOP) {
+ break;
+ }
+ switch (field.id)
+ {
+ case 1:
+ if (field.type == TType.STRING) {
+ this.tableName = iprot.readBinary();
+ this.__isset.tableName = true;
+ } else {
+ TProtocolUtil.skip(iprot, field.type);
+ }
+ break;
+ default:
+ TProtocolUtil.skip(iprot, field.type);
+ break;
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ }
+
+ public void write(TProtocol oprot) throws TException {
+ TStruct struct = new TStruct("enableTable_args");
+ oprot.writeStructBegin(struct);
+ TField field = new TField();
+ if (this.tableName != null) {
+ field.name = "tableName";
+ field.type = TType.STRING;
+ field.id = 1;
+ oprot.writeFieldBegin(field);
+ oprot.writeBinary(this.tableName);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ public String toString() {
+ StringBuilder sb = new StringBuilder("enableTable_args(");
+ sb.append("tableName:");
+ sb.append(this.tableName);
+ sb.append(")");
+ return sb.toString();
+ }
+
+ }
+
+ public static class enableTable_result implements TBase, java.io.Serializable {
+ public IOError io;
+
+ public final Isset __isset = new Isset();
+ public static final class Isset implements java.io.Serializable {
+ public boolean io = false;
+ }
+
+ public enableTable_result() {
+ }
+
+ public enableTable_result(
+ IOError io)
+ {
+ this();
+ this.io = io;
+ this.__isset.io = true;
+ }
+
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof enableTable_result)
+ return this.equals((enableTable_result)that);
+ return false;
+ }
+
+ public boolean equals(enableTable_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
+ public void read(TProtocol iprot) throws TException {
+ TField field;
+ iprot.readStructBegin();
+ while (true)
+ {
+ field = iprot.readFieldBegin();
+ if (field.type == TType.STOP) {
+ break;
+ }
+ switch (field.id)
+ {
+ case 1:
+ if (field.type == TType.STRUCT) {
+ this.io = new IOError();
+ this.io.read(iprot);
+ this.__isset.io = true;
+ } else {
+ TProtocolUtil.skip(iprot, field.type);
+ }
+ break;
+ default:
+ TProtocolUtil.skip(iprot, field.type);
+ break;
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ }
+
+ public void write(TProtocol oprot) throws TException {
+ TStruct struct = new TStruct("enableTable_result");
+ oprot.writeStructBegin(struct);
+ TField field = new TField();
+
+ if (this.__isset.io) {
+ if (this.io != null) {
+ field.name = "io";
+ field.type = TType.STRUCT;
+ field.id = 1;
+ oprot.writeFieldBegin(field);
+ this.io.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ public String toString() {
+ StringBuilder sb = new StringBuilder("enableTable_result(");
+ sb.append("io:");
+ sb.append(this.io.toString());
+ sb.append(")");
+ return sb.toString();
+ }
+
+ }
+
+ public static class disableTable_args implements TBase, java.io.Serializable {
+ public byte[] tableName;
+
+ public final Isset __isset = new Isset();
+ public static final class Isset implements java.io.Serializable {
+ public boolean tableName = false;
+ }
+
+ public disableTable_args() {
+ }
+
+ public disableTable_args(
+ byte[] tableName)
+ {
+ this();
+ this.tableName = tableName;
+ this.__isset.tableName = true;
+ }
+
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof disableTable_args)
+ return this.equals((disableTable_args)that);
+ return false;
+ }
+
+ public boolean equals(disableTable_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
+ public void read(TProtocol iprot) throws TException {
+ TField field;
+ iprot.readStructBegin();
+ while (true)
+ {
+ field = iprot.readFieldBegin();
+ if (field.type == TType.STOP) {
+ break;
+ }
+ switch (field.id)
+ {
+ case 1:
+ if (field.type == TType.STRING) {
+ this.tableName = iprot.readBinary();
+ this.__isset.tableName = true;
+ } else {
+ TProtocolUtil.skip(iprot, field.type);
+ }
+ break;
+ default:
+ TProtocolUtil.skip(iprot, field.type);
+ break;
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ }
+
+ public void write(TProtocol oprot) throws TException {
+ TStruct struct = new TStruct("disableTable_args");
+ oprot.writeStructBegin(struct);
+ TField field = new TField();
+ if (this.tableName != null) {
+ field.name = "tableName";
+ field.type = TType.STRING;
+ field.id = 1;
+ oprot.writeFieldBegin(field);
+ oprot.writeBinary(this.tableName);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ public String toString() {
+ StringBuilder sb = new StringBuilder("disableTable_args(");
+ sb.append("tableName:");
+ sb.append(this.tableName);
+ sb.append(")");
+ return sb.toString();
+ }
+
+ }
+
+ public static class disableTable_result implements TBase, java.io.Serializable {
+ public IOError io;
+
+ public final Isset __isset = new Isset();
+ public static final class Isset implements java.io.Serializable {
+ public boolean io = false;
+ }
+
+ public disableTable_result() {
+ }
+
+ public disableTable_result(
+ IOError io)
+ {
+ this();
+ this.io = io;
+ this.__isset.io = true;
+ }
+
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof disableTable_result)
+ return this.equals((disableTable_result)that);
+ return false;
+ }
+
+ public boolean equals(disableTable_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
+ public void read(TProtocol iprot) throws TException {
+ TField field;
+ iprot.readStructBegin();
+ while (true)
+ {
+ field = iprot.readFieldBegin();
+ if (field.type == TType.STOP) {
+ break;
+ }
+ switch (field.id)
+ {
+ case 1:
+ if (field.type == TType.STRUCT) {
+ this.io = new IOError();
+ this.io.read(iprot);
+ this.__isset.io = true;
+ } else {
+ TProtocolUtil.skip(iprot, field.type);
+ }
+ break;
+ default:
+ TProtocolUtil.skip(iprot, field.type);
+ break;
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ }
+
+ public void write(TProtocol oprot) throws TException {
+ TStruct struct = new TStruct("disableTable_result");
+ oprot.writeStructBegin(struct);
+ TField field = new TField();
+
+ if (this.__isset.io) {
+ if (this.io != null) {
+ field.name = "io";
+ field.type = TType.STRUCT;
+ field.id = 1;
+ oprot.writeFieldBegin(field);
+ this.io.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ public String toString() {
+ StringBuilder sb = new StringBuilder("disableTable_result(");
+ sb.append("io:");
+ sb.append(this.io.toString());
+ sb.append(")");
+ return sb.toString();
+ }
+
+ }
+
+ public static class isTableEnabled_args implements TBase, java.io.Serializable {
+ public byte[] tableName;
+
+ public final Isset __isset = new Isset();
+ public static final class Isset implements java.io.Serializable {
+ public boolean tableName = false;
+ }
+
+ public isTableEnabled_args() {
+ }
+
+ public isTableEnabled_args(
+ byte[] tableName)
+ {
+ this();
+ this.tableName = tableName;
+ this.__isset.tableName = true;
+ }
+
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof isTableEnabled_args)
+ return this.equals((isTableEnabled_args)that);
+ return false;
+ }
+
+ public boolean equals(isTableEnabled_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
+ public void read(TProtocol iprot) throws TException {
+ TField field;
+ iprot.readStructBegin();
+ while (true)
+ {
+ field = iprot.readFieldBegin();
+ if (field.type == TType.STOP) {
+ break;
+ }
+ switch (field.id)
+ {
+ case 1:
+ if (field.type == TType.STRING) {
+ this.tableName = iprot.readBinary();
+ this.__isset.tableName = true;
+ } else {
+ TProtocolUtil.skip(iprot, field.type);
+ }
+ break;
+ default:
+ TProtocolUtil.skip(iprot, field.type);
+ break;
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ }
+
+ public void write(TProtocol oprot) throws TException {
+ TStruct struct = new TStruct("isTableEnabled_args");
+ oprot.writeStructBegin(struct);
+ TField field = new TField();
+ if (this.tableName != null) {
+ field.name = "tableName";
+ field.type = TType.STRING;
+ field.id = 1;
+ oprot.writeFieldBegin(field);
+ oprot.writeBinary(this.tableName);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ public String toString() {
+ StringBuilder sb = new StringBuilder("isTableEnabled_args(");
+ sb.append("tableName:");
+ sb.append(this.tableName);
+ sb.append(")");
+ return sb.toString();
+ }
+
+ }
+
+ public static class isTableEnabled_result implements TBase, java.io.Serializable {
+ public boolean success;
+ public IOError io;
+
+ public final Isset __isset = new Isset();
+ public static final class Isset implements java.io.Serializable {
+ public boolean success = false;
+ public boolean io = false;
+ }
+
+ public isTableEnabled_result() {
+ }
+
+ public isTableEnabled_result(
+ boolean success,
+ IOError io)
+ {
+ this();
+ this.success = success;
+ this.__isset.success = true;
+ this.io = io;
+ this.__isset.io = true;
+ }
+
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof isTableEnabled_result)
+ return this.equals((isTableEnabled_result)that);
+ return false;
+ }
+
+ public boolean equals(isTableEnabled_result that) {
+ if (that == null)
+ return false;
+
+ 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.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
+ public void read(TProtocol iprot) throws TException {
+ TField field;
+ iprot.readStructBegin();
+ while (true)
+ {
+ field = iprot.readFieldBegin();
+ if (field.type == TType.STOP) {
+ break;
+ }
+ switch (field.id)
+ {
+ case 0:
+ if (field.type == TType.BOOL) {
+ this.success = iprot.readBool();
+ this.__isset.success = true;
+ } else {
+ TProtocolUtil.skip(iprot, field.type);
+ }
+ break;
+ case 1:
+ if (field.type == TType.STRUCT) {
+ this.io = new IOError();
+ this.io.read(iprot);
+ this.__isset.io = true;
+ } else {
+ TProtocolUtil.skip(iprot, field.type);
+ }
+ break;
+ default:
+ TProtocolUtil.skip(iprot, field.type);
+ break;
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ }
+
+ public void write(TProtocol oprot) throws TException {
+ TStruct struct = new TStruct("isTableEnabled_result");
+ oprot.writeStructBegin(struct);
+ TField field = new TField();
+
+ if (this.__isset.success) {
+ field.name = "success";
+ field.type = TType.BOOL;
+ field.id = 0;
+ oprot.writeFieldBegin(field);
+ oprot.writeBool(this.success);
+ oprot.writeFieldEnd();
+ } else if (this.__isset.io) {
+ if (this.io != null) {
+ field.name = "io";
+ field.type = TType.STRUCT;
+ field.id = 1;
+ oprot.writeFieldBegin(field);
+ this.io.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ public String toString() {
+ StringBuilder sb = new StringBuilder("isTableEnabled_result(");
+ sb.append("success:");
+ sb.append(this.success);
+ sb.append(",io:");
+ sb.append(this.io.toString());
+ sb.append(")");
+ return sb.toString();
+ }
+
+ }
+
public static class getTableNames_args implements TBase, java.io.Serializable {
public getTableNames_args() {
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getTableNames_args)
+ return this.equals((getTableNames_args)that);
+ return false;
+ }
+
+ public boolean equals(getTableNames_args that) {
+ if (that == null)
+ return false;
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -1971,11 +2763,11 @@ public class Hbase {
}
public static class getTableNames_result implements TBase, java.io.Serializable {
- public ArrayList success;
+ public List success;
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
}
@@ -1984,7 +2776,7 @@ public class Hbase {
}
public getTableNames_result(
- ArrayList success,
+ List success,
IOError io)
{
this();
@@ -1994,6 +2786,43 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getTableNames_result)
+ return this.equals((getTableNames_result)that);
+ return false;
+ }
+
+ public boolean equals(getTableNames_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && (this.success != null);
+ boolean that_present_success = true && (that.success != null);
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -2091,7 +2920,7 @@ public class Hbase {
public byte[] tableName;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
}
@@ -2106,6 +2935,34 @@ public class Hbase {
this.__isset.tableName = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getColumnDescriptors_args)
+ return this.equals((getColumnDescriptors_args)that);
+ return false;
+ }
+
+ public boolean equals(getColumnDescriptors_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -2161,11 +3018,11 @@ public class Hbase {
}
public static class getColumnDescriptors_result implements TBase, java.io.Serializable {
- public AbstractMap success;
+ public Map success;
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
}
@@ -2174,7 +3031,7 @@ public class Hbase {
}
public getColumnDescriptors_result(
- AbstractMap success,
+ Map success,
IOError io)
{
this();
@@ -2184,6 +3041,43 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getColumnDescriptors_result)
+ return this.equals((getColumnDescriptors_result)that);
+ return false;
+ }
+
+ public boolean equals(getColumnDescriptors_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && (this.success != null);
+ boolean that_present_success = true && (that.success != null);
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -2285,7 +3179,7 @@ public class Hbase {
public byte[] tableName;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
}
@@ -2300,6 +3194,34 @@ public class Hbase {
this.__isset.tableName = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getTableRegions_args)
+ return this.equals((getTableRegions_args)that);
+ return false;
+ }
+
+ public boolean equals(getTableRegions_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -2355,11 +3277,11 @@ public class Hbase {
}
public static class getTableRegions_result implements TBase, java.io.Serializable {
- public ArrayList success;
+ public List success;
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
}
@@ -2368,7 +3290,7 @@ public class Hbase {
}
public getTableRegions_result(
- ArrayList success,
+ List success,
IOError io)
{
this();
@@ -2378,6 +3300,43 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getTableRegions_result)
+ return this.equals((getTableRegions_result)that);
+ return false;
+ }
+
+ public boolean equals(getTableRegions_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && (this.success != null);
+ boolean that_present_success = true && (that.success != null);
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -2393,11 +3352,11 @@ public class Hbase {
if (field.type == TType.LIST) {
{
TList _list18 = iprot.readListBegin();
- this.success = new ArrayList(_list18.size);
+ this.success = new ArrayList(_list18.size);
for (int _i19 = 0; _i19 < _list18.size; ++_i19)
{
- RegionDescriptor _elem20 = new RegionDescriptor();
- _elem20 = new RegionDescriptor();
+ TRegionInfo _elem20 = new TRegionInfo();
+ _elem20 = new TRegionInfo();
_elem20.read(iprot);
this.success.add(_elem20);
}
@@ -2439,7 +3398,7 @@ public class Hbase {
oprot.writeFieldBegin(field);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
- for (RegionDescriptor _iter21 : this.success) {
+ for (TRegionInfo _iter21 : this.success) {
_iter21.write(oprot);
}
oprot.writeListEnd();
@@ -2474,10 +3433,10 @@ public class Hbase {
public static class createTable_args implements TBase, java.io.Serializable {
public byte[] tableName;
- public ArrayList columnFamilies;
+ public List columnFamilies;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean columnFamilies = false;
}
@@ -2487,7 +3446,7 @@ public class Hbase {
public createTable_args(
byte[] tableName,
- ArrayList columnFamilies)
+ List columnFamilies)
{
this();
this.tableName = tableName;
@@ -2496,6 +3455,43 @@ public class Hbase {
this.__isset.columnFamilies = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof createTable_args)
+ return this.equals((createTable_args)that);
+ return false;
+ }
+
+ public boolean equals(createTable_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_columnFamilies = true && (this.columnFamilies != null);
+ boolean that_present_columnFamilies = true && (that.columnFamilies != null);
+ if (this_present_columnFamilies || that_present_columnFamilies) {
+ if (!(this_present_columnFamilies && that_present_columnFamilies))
+ return false;
+ if (!this.columnFamilies.equals(that.columnFamilies))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -2591,7 +3587,7 @@ public class Hbase {
public AlreadyExists exist;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
public boolean ia = false;
public boolean exist = false;
@@ -2614,6 +3610,52 @@ public class Hbase {
this.__isset.exist = true;
}
+ public boolean equals(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;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_ia = true && (this.ia != null);
+ boolean that_present_ia = true && (that.ia != null);
+ if (this_present_ia || that_present_ia) {
+ if (!(this_present_ia && that_present_ia))
+ return false;
+ if (!this.ia.equals(that.ia))
+ return false;
+ }
+
+ boolean this_present_exist = true && (this.exist != null);
+ boolean that_present_exist = true && (that.exist != null);
+ if (this_present_exist || that_present_exist) {
+ if (!(this_present_exist && that_present_exist))
+ return false;
+ if (!this.exist.equals(that.exist))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -2716,7 +3758,7 @@ public class Hbase {
public byte[] tableName;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
}
@@ -2731,6 +3773,34 @@ public class Hbase {
this.__isset.tableName = true;
}
+ public boolean equals(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;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -2790,7 +3860,7 @@ public class Hbase {
public NotFound nf;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
public boolean nf = false;
}
@@ -2809,6 +3879,43 @@ public class Hbase {
this.__isset.nf = true;
}
+ public boolean equals(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;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_nf = true && (this.nf != null);
+ boolean that_present_nf = true && (that.nf != null);
+ if (this_present_nf || that_present_nf) {
+ if (!(this_present_nf && that_present_nf))
+ return false;
+ if (!this.nf.equals(that.nf))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -2893,7 +4000,7 @@ public class Hbase {
public byte[] column;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
public boolean column = false;
@@ -2916,6 +4023,52 @@ public class Hbase {
this.__isset.column = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof get_args)
+ return this.equals((get_args)that);
+ return false;
+ }
+
+ public boolean equals(get_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_column = true && (this.column != null);
+ boolean that_present_column = true && (that.column != null);
+ if (this_present_column || that_present_column) {
+ if (!(this_present_column && that_present_column))
+ return false;
+ if (!java.util.Arrays.equals(this.column, that.column))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -3007,12 +4160,12 @@ public class Hbase {
}
public static class get_result implements TBase, java.io.Serializable {
- public byte[] success;
+ public TCell success;
public IOError io;
public NotFound nf;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
public boolean nf = false;
@@ -3022,7 +4175,7 @@ public class Hbase {
}
public get_result(
- byte[] success,
+ TCell success,
IOError io,
NotFound nf)
{
@@ -3035,6 +4188,52 @@ public class Hbase {
this.__isset.nf = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof get_result)
+ return this.equals((get_result)that);
+ return false;
+ }
+
+ public boolean equals(get_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && (this.success != null);
+ boolean that_present_success = true && (that.success != null);
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_nf = true && (this.nf != null);
+ boolean that_present_nf = true && (that.nf != null);
+ if (this_present_nf || that_present_nf) {
+ if (!(this_present_nf && that_present_nf))
+ return false;
+ if (!this.nf.equals(that.nf))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -3047,8 +4246,9 @@ public class Hbase {
switch (field.id)
{
case 0:
- if (field.type == TType.STRING) {
- this.success = iprot.readBinary();
+ if (field.type == TType.STRUCT) {
+ this.success = new TCell();
+ this.success.read(iprot);
this.__isset.success = true;
} else {
TProtocolUtil.skip(iprot, field.type);
@@ -3089,10 +4289,10 @@ public class Hbase {
if (this.__isset.success) {
if (this.success != null) {
field.name = "success";
- field.type = TType.STRING;
+ field.type = TType.STRUCT;
field.id = 0;
oprot.writeFieldBegin(field);
- oprot.writeBinary(this.success);
+ this.success.write(oprot);
oprot.writeFieldEnd();
}
} else if (this.__isset.io) {
@@ -3121,7 +4321,7 @@ public class Hbase {
public String toString() {
StringBuilder sb = new StringBuilder("get_result(");
sb.append("success:");
- sb.append(this.success);
+ sb.append(this.success.toString());
sb.append(",io:");
sb.append(this.io.toString());
sb.append(",nf:");
@@ -3139,7 +4339,7 @@ public class Hbase {
public int numVersions;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
public boolean column = false;
@@ -3166,6 +4366,61 @@ public class Hbase {
this.__isset.numVersions = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getVer_args)
+ return this.equals((getVer_args)that);
+ return false;
+ }
+
+ public boolean equals(getVer_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_column = true && (this.column != null);
+ boolean that_present_column = true && (that.column != null);
+ if (this_present_column || that_present_column) {
+ if (!(this_present_column && that_present_column))
+ return false;
+ if (!java.util.Arrays.equals(this.column, that.column))
+ return false;
+ }
+
+ boolean this_present_numVersions = true;
+ boolean that_present_numVersions = true;
+ if (this_present_numVersions || that_present_numVersions) {
+ if (!(this_present_numVersions && that_present_numVersions))
+ return false;
+ if (this.numVersions != that.numVersions)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -3273,12 +4528,12 @@ public class Hbase {
}
public static class getVer_result implements TBase, java.io.Serializable {
- public ArrayList success;
+ public List success;
public IOError io;
public NotFound nf;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
public boolean nf = false;
@@ -3288,7 +4543,7 @@ public class Hbase {
}
public getVer_result(
- ArrayList success,
+ List success,
IOError io,
NotFound nf)
{
@@ -3301,6 +4556,52 @@ public class Hbase {
this.__isset.nf = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getVer_result)
+ return this.equals((getVer_result)that);
+ return false;
+ }
+
+ public boolean equals(getVer_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && (this.success != null);
+ boolean that_present_success = true && (that.success != null);
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_nf = true && (this.nf != null);
+ boolean that_present_nf = true && (that.nf != null);
+ if (this_present_nf || that_present_nf) {
+ if (!(this_present_nf && that_present_nf))
+ return false;
+ if (!this.nf.equals(that.nf))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -3316,11 +4617,12 @@ public class Hbase {
if (field.type == TType.LIST) {
{
TList _list26 = iprot.readListBegin();
- this.success = new ArrayList(_list26.size);
+ this.success = new ArrayList(_list26.size);
for (int _i27 = 0; _i27 < _list26.size; ++_i27)
{
- byte[] _elem28 = null;
- _elem28 = iprot.readBinary();
+ TCell _elem28 = new TCell();
+ _elem28 = new TCell();
+ _elem28.read(iprot);
this.success.add(_elem28);
}
iprot.readListEnd();
@@ -3369,9 +4671,9 @@ public class Hbase {
field.id = 0;
oprot.writeFieldBegin(field);
{
- oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
- for (byte[] _iter29 : this.success) {
- oprot.writeBinary(_iter29);
+ oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
+ for (TCell _iter29 : this.success) {
+ _iter29.write(oprot);
}
oprot.writeListEnd();
}
@@ -3422,7 +4724,7 @@ public class Hbase {
public int numVersions;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
public boolean column = false;
@@ -3453,6 +4755,70 @@ public class Hbase {
this.__isset.numVersions = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getVerTs_args)
+ return this.equals((getVerTs_args)that);
+ return false;
+ }
+
+ public boolean equals(getVerTs_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_column = true && (this.column != null);
+ boolean that_present_column = true && (that.column != null);
+ if (this_present_column || that_present_column) {
+ if (!(this_present_column && that_present_column))
+ return false;
+ if (!java.util.Arrays.equals(this.column, that.column))
+ return false;
+ }
+
+ boolean this_present_timestamp = true;
+ boolean that_present_timestamp = true;
+ if (this_present_timestamp || that_present_timestamp) {
+ if (!(this_present_timestamp && that_present_timestamp))
+ return false;
+ if (this.timestamp != that.timestamp)
+ return false;
+ }
+
+ boolean this_present_numVersions = true;
+ boolean that_present_numVersions = true;
+ if (this_present_numVersions || that_present_numVersions) {
+ if (!(this_present_numVersions && that_present_numVersions))
+ return false;
+ if (this.numVersions != that.numVersions)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -3576,12 +4942,12 @@ public class Hbase {
}
public static class getVerTs_result implements TBase, java.io.Serializable {
- public ArrayList success;
+ public List success;
public IOError io;
public NotFound nf;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
public boolean nf = false;
@@ -3591,7 +4957,7 @@ public class Hbase {
}
public getVerTs_result(
- ArrayList success,
+ List success,
IOError io,
NotFound nf)
{
@@ -3604,6 +4970,52 @@ public class Hbase {
this.__isset.nf = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getVerTs_result)
+ return this.equals((getVerTs_result)that);
+ return false;
+ }
+
+ public boolean equals(getVerTs_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && (this.success != null);
+ boolean that_present_success = true && (that.success != null);
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_nf = true && (this.nf != null);
+ boolean that_present_nf = true && (that.nf != null);
+ if (this_present_nf || that_present_nf) {
+ if (!(this_present_nf && that_present_nf))
+ return false;
+ if (!this.nf.equals(that.nf))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -3619,11 +5031,12 @@ public class Hbase {
if (field.type == TType.LIST) {
{
TList _list30 = iprot.readListBegin();
- this.success = new ArrayList(_list30.size);
+ this.success = new ArrayList(_list30.size);
for (int _i31 = 0; _i31 < _list30.size; ++_i31)
{
- byte[] _elem32 = null;
- _elem32 = iprot.readBinary();
+ TCell _elem32 = new TCell();
+ _elem32 = new TCell();
+ _elem32.read(iprot);
this.success.add(_elem32);
}
iprot.readListEnd();
@@ -3672,9 +5085,9 @@ public class Hbase {
field.id = 0;
oprot.writeFieldBegin(field);
{
- oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
- for (byte[] _iter33 : this.success) {
- oprot.writeBinary(_iter33);
+ oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
+ for (TCell _iter33 : this.success) {
+ _iter33.write(oprot);
}
oprot.writeListEnd();
}
@@ -3722,7 +5135,7 @@ public class Hbase {
public byte[] row;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
}
@@ -3741,6 +5154,43 @@ public class Hbase {
this.__isset.row = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getRow_args)
+ return this.equals((getRow_args)that);
+ return false;
+ }
+
+ public boolean equals(getRow_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -3814,11 +5264,11 @@ public class Hbase {
}
public static class getRow_result implements TBase, java.io.Serializable {
- public AbstractMap success;
+ public TRowResult success;
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
}
@@ -3827,7 +5277,7 @@ public class Hbase {
}
public getRow_result(
- AbstractMap success,
+ TRowResult success,
IOError io)
{
this();
@@ -3837,6 +5287,43 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getRow_result)
+ return this.equals((getRow_result)that);
+ return false;
+ }
+
+ public boolean equals(getRow_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && (this.success != null);
+ boolean that_present_success = true && (that.success != null);
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -3849,20 +5336,9 @@ public class Hbase {
switch (field.id)
{
case 0:
- if (field.type == TType.MAP) {
- {
- TMap _map34 = iprot.readMapBegin();
- this.success = new HashMap(2*_map34.size);
- for (int _i35 = 0; _i35 < _map34.size; ++_i35)
- {
- byte[] _key36;
- byte[] _val37;
- _key36 = iprot.readBinary();
- _val37 = iprot.readBinary();
- this.success.put(_key36, _val37);
- }
- iprot.readMapEnd();
- }
+ if (field.type == TType.STRUCT) {
+ this.success = new TRowResult();
+ this.success.read(iprot);
this.__isset.success = true;
} else {
TProtocolUtil.skip(iprot, field.type);
@@ -3894,17 +5370,10 @@ public class Hbase {
if (this.__isset.success) {
if (this.success != null) {
field.name = "success";
- field.type = TType.MAP;
+ field.type = TType.STRUCT;
field.id = 0;
oprot.writeFieldBegin(field);
- {
- oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size()));
- for (byte[] _iter38 : this.success.keySet()) {
- oprot.writeBinary(_iter38);
- oprot.writeBinary(this.success.get(_iter38));
- }
- oprot.writeMapEnd();
- }
+ this.success.write(oprot);
oprot.writeFieldEnd();
}
} else if (this.__isset.io) {
@@ -3924,7 +5393,7 @@ public class Hbase {
public String toString() {
StringBuilder sb = new StringBuilder("getRow_result(");
sb.append("success:");
- sb.append(this.success);
+ sb.append(this.success.toString());
sb.append(",io:");
sb.append(this.io.toString());
sb.append(")");
@@ -3939,7 +5408,7 @@ public class Hbase {
public long timestamp;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
public boolean timestamp = false;
@@ -3962,6 +5431,52 @@ public class Hbase {
this.__isset.timestamp = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getRowTs_args)
+ return this.equals((getRowTs_args)that);
+ return false;
+ }
+
+ public boolean equals(getRowTs_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_timestamp = true;
+ boolean that_present_timestamp = true;
+ if (this_present_timestamp || that_present_timestamp) {
+ if (!(this_present_timestamp && that_present_timestamp))
+ return false;
+ if (this.timestamp != that.timestamp)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4051,11 +5566,11 @@ public class Hbase {
}
public static class getRowTs_result implements TBase, java.io.Serializable {
- public AbstractMap success;
+ public TRowResult success;
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
}
@@ -4064,7 +5579,7 @@ public class Hbase {
}
public getRowTs_result(
- AbstractMap success,
+ TRowResult success,
IOError io)
{
this();
@@ -4074,6 +5589,43 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getRowTs_result)
+ return this.equals((getRowTs_result)that);
+ return false;
+ }
+
+ public boolean equals(getRowTs_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && (this.success != null);
+ boolean that_present_success = true && (that.success != null);
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4086,20 +5638,9 @@ public class Hbase {
switch (field.id)
{
case 0:
- if (field.type == TType.MAP) {
- {
- TMap _map39 = iprot.readMapBegin();
- this.success = new HashMap(2*_map39.size);
- for (int _i40 = 0; _i40 < _map39.size; ++_i40)
- {
- byte[] _key41;
- byte[] _val42;
- _key41 = iprot.readBinary();
- _val42 = iprot.readBinary();
- this.success.put(_key41, _val42);
- }
- iprot.readMapEnd();
- }
+ if (field.type == TType.STRUCT) {
+ this.success = new TRowResult();
+ this.success.read(iprot);
this.__isset.success = true;
} else {
TProtocolUtil.skip(iprot, field.type);
@@ -4131,17 +5672,10 @@ public class Hbase {
if (this.__isset.success) {
if (this.success != null) {
field.name = "success";
- field.type = TType.MAP;
+ field.type = TType.STRUCT;
field.id = 0;
oprot.writeFieldBegin(field);
- {
- oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size()));
- for (byte[] _iter43 : this.success.keySet()) {
- oprot.writeBinary(_iter43);
- oprot.writeBinary(this.success.get(_iter43));
- }
- oprot.writeMapEnd();
- }
+ this.success.write(oprot);
oprot.writeFieldEnd();
}
} else if (this.__isset.io) {
@@ -4161,7 +5695,7 @@ public class Hbase {
public String toString() {
StringBuilder sb = new StringBuilder("getRowTs_result(");
sb.append("success:");
- sb.append(this.success);
+ sb.append(this.success.toString());
sb.append(",io:");
sb.append(this.io.toString());
sb.append(")");
@@ -4170,257 +5704,13 @@ public class Hbase {
}
- public static class put_args implements TBase, java.io.Serializable {
- public byte[] tableName;
- public byte[] row;
- public byte[] column;
- public byte[] value;
-
- public final Isset __isset = new Isset();
- public static final class Isset {
- public boolean tableName = false;
- public boolean row = false;
- public boolean column = false;
- public boolean value = false;
- }
-
- public put_args() {
- }
-
- public put_args(
- byte[] tableName,
- byte[] row,
- byte[] column,
- byte[] value)
- {
- this();
- this.tableName = tableName;
- this.__isset.tableName = true;
- this.row = row;
- this.__isset.row = true;
- this.column = column;
- this.__isset.column = true;
- this.value = value;
- this.__isset.value = true;
- }
-
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRING) {
- this.tableName = iprot.readBinary();
- this.__isset.tableName = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 2:
- if (field.type == TType.STRING) {
- this.row = iprot.readBinary();
- this.__isset.row = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 3:
- if (field.type == TType.STRING) {
- this.column = iprot.readBinary();
- this.__isset.column = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 4:
- if (field.type == TType.STRING) {
- this.value = iprot.readBinary();
- this.__isset.value = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
-
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("put_args");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.tableName != null) {
- field.name = "tableName";
- field.type = TType.STRING;
- field.id = 1;
- oprot.writeFieldBegin(field);
- oprot.writeBinary(this.tableName);
- oprot.writeFieldEnd();
- }
- if (this.row != null) {
- field.name = "row";
- field.type = TType.STRING;
- field.id = 2;
- oprot.writeFieldBegin(field);
- oprot.writeBinary(this.row);
- oprot.writeFieldEnd();
- }
- if (this.column != null) {
- field.name = "column";
- field.type = TType.STRING;
- field.id = 3;
- oprot.writeFieldBegin(field);
- oprot.writeBinary(this.column);
- oprot.writeFieldEnd();
- }
- if (this.value != null) {
- field.name = "value";
- field.type = TType.STRING;
- field.id = 4;
- oprot.writeFieldBegin(field);
- oprot.writeBinary(this.value);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- public String toString() {
- StringBuilder sb = new StringBuilder("put_args(");
- sb.append("tableName:");
- sb.append(this.tableName);
- sb.append(",row:");
- sb.append(this.row);
- sb.append(",column:");
- sb.append(this.column);
- sb.append(",value:");
- sb.append(this.value);
- sb.append(")");
- return sb.toString();
- }
-
- }
-
- public static class put_result implements TBase, java.io.Serializable {
- public IOError io;
- public IllegalArgument ia;
-
- public final Isset __isset = new Isset();
- public static final class Isset {
- public boolean io = false;
- public boolean ia = false;
- }
-
- public put_result() {
- }
-
- public put_result(
- IOError io,
- IllegalArgument ia)
- {
- this();
- this.io = io;
- this.__isset.io = true;
- this.ia = ia;
- this.__isset.ia = true;
- }
-
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRUCT) {
- this.io = new IOError();
- this.io.read(iprot);
- this.__isset.io = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 2:
- if (field.type == TType.STRUCT) {
- this.ia = new IllegalArgument();
- this.ia.read(iprot);
- this.__isset.ia = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
-
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("put_result");
- oprot.writeStructBegin(struct);
- TField field = new TField();
-
- if (this.__isset.io) {
- if (this.io != null) {
- field.name = "io";
- field.type = TType.STRUCT;
- field.id = 1;
- oprot.writeFieldBegin(field);
- this.io.write(oprot);
- oprot.writeFieldEnd();
- }
- } else if (this.__isset.ia) {
- if (this.ia != null) {
- field.name = "ia";
- field.type = TType.STRUCT;
- field.id = 2;
- oprot.writeFieldBegin(field);
- this.ia.write(oprot);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- public String toString() {
- StringBuilder sb = new StringBuilder("put_result(");
- sb.append("io:");
- sb.append(this.io.toString());
- sb.append(",ia:");
- sb.append(this.ia.toString());
- sb.append(")");
- return sb.toString();
- }
-
- }
-
public static class mutateRow_args implements TBase, java.io.Serializable {
public byte[] tableName;
public byte[] row;
- public ArrayList mutations;
+ public List mutations;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
public boolean mutations = false;
@@ -4432,7 +5722,7 @@ public class Hbase {
public mutateRow_args(
byte[] tableName,
byte[] row,
- ArrayList mutations)
+ List mutations)
{
this();
this.tableName = tableName;
@@ -4443,6 +5733,52 @@ public class Hbase {
this.__isset.mutations = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof mutateRow_args)
+ return this.equals((mutateRow_args)that);
+ return false;
+ }
+
+ public boolean equals(mutateRow_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_mutations = true && (this.mutations != null);
+ boolean that_present_mutations = true && (that.mutations != null);
+ if (this_present_mutations || that_present_mutations) {
+ if (!(this_present_mutations && that_present_mutations))
+ return false;
+ if (!this.mutations.equals(that.mutations))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4473,14 +5809,14 @@ public class Hbase {
case 3:
if (field.type == TType.LIST) {
{
- TList _list44 = iprot.readListBegin();
- this.mutations = new ArrayList(_list44.size);
- for (int _i45 = 0; _i45 < _list44.size; ++_i45)
+ TList _list34 = iprot.readListBegin();
+ this.mutations = new ArrayList(_list34.size);
+ for (int _i35 = 0; _i35 < _list34.size; ++_i35)
{
- Mutation _elem46 = new Mutation();
- _elem46 = new Mutation();
- _elem46.read(iprot);
- this.mutations.add(_elem46);
+ Mutation _elem36 = new Mutation();
+ _elem36 = new Mutation();
+ _elem36.read(iprot);
+ this.mutations.add(_elem36);
}
iprot.readListEnd();
}
@@ -4525,8 +5861,8 @@ public class Hbase {
oprot.writeFieldBegin(field);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.mutations.size()));
- for (Mutation _iter47 : this.mutations) {
- _iter47.write(oprot);
+ for (Mutation _iter37 : this.mutations) {
+ _iter37.write(oprot);
}
oprot.writeListEnd();
}
@@ -4555,7 +5891,7 @@ public class Hbase {
public IllegalArgument ia;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
public boolean ia = false;
}
@@ -4574,6 +5910,43 @@ public class Hbase {
this.__isset.ia = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof mutateRow_result)
+ return this.equals((mutateRow_result)that);
+ return false;
+ }
+
+ public boolean equals(mutateRow_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_ia = true && (this.ia != null);
+ boolean that_present_ia = true && (that.ia != null);
+ if (this_present_ia || that_present_ia) {
+ if (!(this_present_ia && that_present_ia))
+ return false;
+ if (!this.ia.equals(that.ia))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4655,11 +6028,11 @@ public class Hbase {
public static class mutateRowTs_args implements TBase, java.io.Serializable {
public byte[] tableName;
public byte[] row;
- public ArrayList mutations;
+ public List mutations;
public long timestamp;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
public boolean mutations = false;
@@ -4672,7 +6045,7 @@ public class Hbase {
public mutateRowTs_args(
byte[] tableName,
byte[] row,
- ArrayList mutations,
+ List mutations,
long timestamp)
{
this();
@@ -4686,6 +6059,61 @@ public class Hbase {
this.__isset.timestamp = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof mutateRowTs_args)
+ return this.equals((mutateRowTs_args)that);
+ return false;
+ }
+
+ public boolean equals(mutateRowTs_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_mutations = true && (this.mutations != null);
+ boolean that_present_mutations = true && (that.mutations != null);
+ if (this_present_mutations || that_present_mutations) {
+ if (!(this_present_mutations && that_present_mutations))
+ return false;
+ if (!this.mutations.equals(that.mutations))
+ return false;
+ }
+
+ boolean this_present_timestamp = true;
+ boolean that_present_timestamp = true;
+ if (this_present_timestamp || that_present_timestamp) {
+ if (!(this_present_timestamp && that_present_timestamp))
+ return false;
+ if (this.timestamp != that.timestamp)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4716,14 +6144,14 @@ public class Hbase {
case 3:
if (field.type == TType.LIST) {
{
- TList _list48 = iprot.readListBegin();
- this.mutations = new ArrayList(_list48.size);
- for (int _i49 = 0; _i49 < _list48.size; ++_i49)
+ TList _list38 = iprot.readListBegin();
+ this.mutations = new ArrayList(_list38.size);
+ for (int _i39 = 0; _i39 < _list38.size; ++_i39)
{
- Mutation _elem50 = new Mutation();
- _elem50 = new Mutation();
- _elem50.read(iprot);
- this.mutations.add(_elem50);
+ Mutation _elem40 = new Mutation();
+ _elem40 = new Mutation();
+ _elem40.read(iprot);
+ this.mutations.add(_elem40);
}
iprot.readListEnd();
}
@@ -4776,8 +6204,8 @@ public class Hbase {
oprot.writeFieldBegin(field);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.mutations.size()));
- for (Mutation _iter51 : this.mutations) {
- _iter51.write(oprot);
+ for (Mutation _iter41 : this.mutations) {
+ _iter41.write(oprot);
}
oprot.writeListEnd();
}
@@ -4814,7 +6242,7 @@ public class Hbase {
public IllegalArgument ia;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
public boolean ia = false;
}
@@ -4833,6 +6261,43 @@ public class Hbase {
this.__isset.ia = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof mutateRowTs_result)
+ return this.equals((mutateRowTs_result)that);
+ return false;
+ }
+
+ public boolean equals(mutateRowTs_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_ia = true && (this.ia != null);
+ boolean that_present_ia = true && (that.ia != null);
+ if (this_present_ia || that_present_ia) {
+ if (!(this_present_ia && that_present_ia))
+ return false;
+ if (!this.ia.equals(that.ia))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4913,10 +6378,10 @@ public class Hbase {
public static class mutateRows_args implements TBase, java.io.Serializable {
public byte[] tableName;
- public ArrayList rowBatches;
+ public List rowBatches;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean rowBatches = false;
}
@@ -4926,7 +6391,7 @@ public class Hbase {
public mutateRows_args(
byte[] tableName,
- ArrayList rowBatches)
+ List rowBatches)
{
this();
this.tableName = tableName;
@@ -4935,6 +6400,43 @@ public class Hbase {
this.__isset.rowBatches = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof mutateRows_args)
+ return this.equals((mutateRows_args)that);
+ return false;
+ }
+
+ public boolean equals(mutateRows_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_rowBatches = true && (this.rowBatches != null);
+ boolean that_present_rowBatches = true && (that.rowBatches != null);
+ if (this_present_rowBatches || that_present_rowBatches) {
+ if (!(this_present_rowBatches && that_present_rowBatches))
+ return false;
+ if (!this.rowBatches.equals(that.rowBatches))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -4957,14 +6459,14 @@ public class Hbase {
case 2:
if (field.type == TType.LIST) {
{
- TList _list52 = iprot.readListBegin();
- this.rowBatches = new ArrayList(_list52.size);
- for (int _i53 = 0; _i53 < _list52.size; ++_i53)
+ TList _list42 = iprot.readListBegin();
+ this.rowBatches = new ArrayList(_list42.size);
+ for (int _i43 = 0; _i43 < _list42.size; ++_i43)
{
- BatchMutation _elem54 = new BatchMutation();
- _elem54 = new BatchMutation();
- _elem54.read(iprot);
- this.rowBatches.add(_elem54);
+ BatchMutation _elem44 = new BatchMutation();
+ _elem44 = new BatchMutation();
+ _elem44.read(iprot);
+ this.rowBatches.add(_elem44);
}
iprot.readListEnd();
}
@@ -5001,8 +6503,8 @@ public class Hbase {
oprot.writeFieldBegin(field);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.rowBatches.size()));
- for (BatchMutation _iter55 : this.rowBatches) {
- _iter55.write(oprot);
+ for (BatchMutation _iter45 : this.rowBatches) {
+ _iter45.write(oprot);
}
oprot.writeListEnd();
}
@@ -5029,7 +6531,7 @@ public class Hbase {
public IllegalArgument ia;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
public boolean ia = false;
}
@@ -5048,6 +6550,43 @@ public class Hbase {
this.__isset.ia = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof mutateRows_result)
+ return this.equals((mutateRows_result)that);
+ return false;
+ }
+
+ public boolean equals(mutateRows_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_ia = true && (this.ia != null);
+ boolean that_present_ia = true && (that.ia != null);
+ if (this_present_ia || that_present_ia) {
+ if (!(this_present_ia && that_present_ia))
+ return false;
+ if (!this.ia.equals(that.ia))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5128,11 +6667,11 @@ public class Hbase {
public static class mutateRowsTs_args implements TBase, java.io.Serializable {
public byte[] tableName;
- public ArrayList rowBatches;
+ public List rowBatches;
public long timestamp;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean rowBatches = false;
public boolean timestamp = false;
@@ -5143,7 +6682,7 @@ public class Hbase {
public mutateRowsTs_args(
byte[] tableName,
- ArrayList rowBatches,
+ List rowBatches,
long timestamp)
{
this();
@@ -5155,6 +6694,52 @@ public class Hbase {
this.__isset.timestamp = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof mutateRowsTs_args)
+ return this.equals((mutateRowsTs_args)that);
+ return false;
+ }
+
+ public boolean equals(mutateRowsTs_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_rowBatches = true && (this.rowBatches != null);
+ boolean that_present_rowBatches = true && (that.rowBatches != null);
+ if (this_present_rowBatches || that_present_rowBatches) {
+ if (!(this_present_rowBatches && that_present_rowBatches))
+ return false;
+ if (!this.rowBatches.equals(that.rowBatches))
+ return false;
+ }
+
+ boolean this_present_timestamp = true;
+ boolean that_present_timestamp = true;
+ if (this_present_timestamp || that_present_timestamp) {
+ if (!(this_present_timestamp && that_present_timestamp))
+ return false;
+ if (this.timestamp != that.timestamp)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5177,14 +6762,14 @@ public class Hbase {
case 2:
if (field.type == TType.LIST) {
{
- TList _list56 = iprot.readListBegin();
- this.rowBatches = new ArrayList(_list56.size);
- for (int _i57 = 0; _i57 < _list56.size; ++_i57)
+ TList _list46 = iprot.readListBegin();
+ this.rowBatches = new ArrayList(_list46.size);
+ for (int _i47 = 0; _i47 < _list46.size; ++_i47)
{
- BatchMutation _elem58 = new BatchMutation();
- _elem58 = new BatchMutation();
- _elem58.read(iprot);
- this.rowBatches.add(_elem58);
+ BatchMutation _elem48 = new BatchMutation();
+ _elem48 = new BatchMutation();
+ _elem48.read(iprot);
+ this.rowBatches.add(_elem48);
}
iprot.readListEnd();
}
@@ -5229,8 +6814,8 @@ public class Hbase {
oprot.writeFieldBegin(field);
{
oprot.writeListBegin(new TList(TType.STRUCT, this.rowBatches.size()));
- for (BatchMutation _iter59 : this.rowBatches) {
- _iter59.write(oprot);
+ for (BatchMutation _iter49 : this.rowBatches) {
+ _iter49.write(oprot);
}
oprot.writeListEnd();
}
@@ -5265,7 +6850,7 @@ public class Hbase {
public IllegalArgument ia;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
public boolean ia = false;
}
@@ -5284,6 +6869,43 @@ public class Hbase {
this.__isset.ia = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof mutateRowsTs_result)
+ return this.equals((mutateRowsTs_result)that);
+ return false;
+ }
+
+ public boolean equals(mutateRowsTs_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_ia = true && (this.ia != null);
+ boolean that_present_ia = true && (that.ia != null);
+ if (this_present_ia || that_present_ia) {
+ if (!(this_present_ia && that_present_ia))
+ return false;
+ if (!this.ia.equals(that.ia))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5368,7 +6990,7 @@ public class Hbase {
public byte[] column;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
public boolean column = false;
@@ -5391,6 +7013,52 @@ public class Hbase {
this.__isset.column = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof deleteAll_args)
+ return this.equals((deleteAll_args)that);
+ return false;
+ }
+
+ public boolean equals(deleteAll_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_column = true && (this.column != null);
+ boolean that_present_column = true && (that.column != null);
+ if (this_present_column || that_present_column) {
+ if (!(this_present_column && that_present_column))
+ return false;
+ if (!java.util.Arrays.equals(this.column, that.column))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5485,7 +7153,7 @@ public class Hbase {
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
}
@@ -5500,6 +7168,34 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof deleteAll_result)
+ return this.equals((deleteAll_result)that);
+ return false;
+ }
+
+ public boolean equals(deleteAll_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5565,7 +7261,7 @@ public class Hbase {
public long timestamp;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
public boolean column = false;
@@ -5592,6 +7288,61 @@ public class Hbase {
this.__isset.timestamp = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof deleteAllTs_args)
+ return this.equals((deleteAllTs_args)that);
+ return false;
+ }
+
+ public boolean equals(deleteAllTs_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_column = true && (this.column != null);
+ boolean that_present_column = true && (that.column != null);
+ if (this_present_column || that_present_column) {
+ if (!(this_present_column && that_present_column))
+ return false;
+ if (!java.util.Arrays.equals(this.column, that.column))
+ return false;
+ }
+
+ boolean this_present_timestamp = true;
+ boolean that_present_timestamp = true;
+ if (this_present_timestamp || that_present_timestamp) {
+ if (!(this_present_timestamp && that_present_timestamp))
+ return false;
+ if (this.timestamp != that.timestamp)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5702,7 +7453,7 @@ public class Hbase {
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
}
@@ -5717,6 +7468,34 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof deleteAllTs_result)
+ return this.equals((deleteAllTs_result)that);
+ return false;
+ }
+
+ public boolean equals(deleteAllTs_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5780,7 +7559,7 @@ public class Hbase {
public byte[] row;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
}
@@ -5799,6 +7578,43 @@ public class Hbase {
this.__isset.row = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof deleteAllRow_args)
+ return this.equals((deleteAllRow_args)that);
+ return false;
+ }
+
+ public boolean equals(deleteAllRow_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5875,7 +7691,7 @@ public class Hbase {
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
}
@@ -5890,6 +7706,34 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof deleteAllRow_result)
+ return this.equals((deleteAllRow_result)that);
+ return false;
+ }
+
+ public boolean equals(deleteAllRow_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -5954,7 +7798,7 @@ public class Hbase {
public long timestamp;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean row = false;
public boolean timestamp = false;
@@ -5977,6 +7821,52 @@ public class Hbase {
this.__isset.timestamp = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof deleteAllRowTs_args)
+ return this.equals((deleteAllRowTs_args)that);
+ return false;
+ }
+
+ public boolean equals(deleteAllRowTs_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_row = true && (this.row != null);
+ boolean that_present_row = true && (that.row != null);
+ if (this_present_row || that_present_row) {
+ if (!(this_present_row && that_present_row))
+ return false;
+ if (!java.util.Arrays.equals(this.row, that.row))
+ return false;
+ }
+
+ boolean this_present_timestamp = true;
+ boolean that_present_timestamp = true;
+ if (this_present_timestamp || that_present_timestamp) {
+ if (!(this_present_timestamp && that_present_timestamp))
+ return false;
+ if (this.timestamp != that.timestamp)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6069,7 +7959,7 @@ public class Hbase {
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
}
@@ -6084,6 +7974,34 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof deleteAllRowTs_result)
+ return this.equals((deleteAllRowTs_result)that);
+ return false;
+ }
+
+ public boolean equals(deleteAllRowTs_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6145,10 +8063,10 @@ public class Hbase {
public static class scannerOpen_args implements TBase, java.io.Serializable {
public byte[] tableName;
public byte[] startRow;
- public ArrayList columns;
+ public List columns;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean startRow = false;
public boolean columns = false;
@@ -6160,7 +8078,7 @@ public class Hbase {
public scannerOpen_args(
byte[] tableName,
byte[] startRow,
- ArrayList columns)
+ List columns)
{
this();
this.tableName = tableName;
@@ -6171,6 +8089,52 @@ public class Hbase {
this.__isset.columns = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerOpen_args)
+ return this.equals((scannerOpen_args)that);
+ return false;
+ }
+
+ public boolean equals(scannerOpen_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_startRow = true && (this.startRow != null);
+ boolean that_present_startRow = true && (that.startRow != null);
+ if (this_present_startRow || that_present_startRow) {
+ if (!(this_present_startRow && that_present_startRow))
+ return false;
+ if (!java.util.Arrays.equals(this.startRow, that.startRow))
+ return false;
+ }
+
+ boolean this_present_columns = true && (this.columns != null);
+ boolean that_present_columns = true && (that.columns != null);
+ if (this_present_columns || that_present_columns) {
+ if (!(this_present_columns && that_present_columns))
+ return false;
+ if (!this.columns.equals(that.columns))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6201,13 +8165,13 @@ public class Hbase {
case 3:
if (field.type == TType.LIST) {
{
- TList _list60 = iprot.readListBegin();
- this.columns = new ArrayList(_list60.size);
- for (int _i61 = 0; _i61 < _list60.size; ++_i61)
+ TList _list50 = iprot.readListBegin();
+ this.columns = new ArrayList(_list50.size);
+ for (int _i51 = 0; _i51 < _list50.size; ++_i51)
{
- byte[] _elem62 = null;
- _elem62 = iprot.readBinary();
- this.columns.add(_elem62);
+ byte[] _elem52 = null;
+ _elem52 = iprot.readBinary();
+ this.columns.add(_elem52);
}
iprot.readListEnd();
}
@@ -6252,8 +8216,8 @@ public class Hbase {
oprot.writeFieldBegin(field);
{
oprot.writeListBegin(new TList(TType.STRING, this.columns.size()));
- for (byte[] _iter63 : this.columns) {
- oprot.writeBinary(_iter63);
+ for (byte[] _iter53 : this.columns) {
+ oprot.writeBinary(_iter53);
}
oprot.writeListEnd();
}
@@ -6282,7 +8246,7 @@ public class Hbase {
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
}
@@ -6301,6 +8265,43 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerOpen_result)
+ return this.equals((scannerOpen_result)that);
+ return false;
+ }
+
+ public boolean equals(scannerOpen_result that) {
+ if (that == null)
+ return false;
+
+ 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.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6380,10 +8381,10 @@ public class Hbase {
public byte[] tableName;
public byte[] startRow;
public byte[] stopRow;
- public ArrayList columns;
+ public List columns;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean startRow = false;
public boolean stopRow = false;
@@ -6397,7 +8398,7 @@ public class Hbase {
byte[] tableName,
byte[] startRow,
byte[] stopRow,
- ArrayList columns)
+ List columns)
{
this();
this.tableName = tableName;
@@ -6410,6 +8411,61 @@ public class Hbase {
this.__isset.columns = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerOpenWithStop_args)
+ return this.equals((scannerOpenWithStop_args)that);
+ return false;
+ }
+
+ public boolean equals(scannerOpenWithStop_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_startRow = true && (this.startRow != null);
+ boolean that_present_startRow = true && (that.startRow != null);
+ if (this_present_startRow || that_present_startRow) {
+ if (!(this_present_startRow && that_present_startRow))
+ return false;
+ if (!java.util.Arrays.equals(this.startRow, that.startRow))
+ return false;
+ }
+
+ boolean this_present_stopRow = true && (this.stopRow != null);
+ boolean that_present_stopRow = true && (that.stopRow != null);
+ if (this_present_stopRow || that_present_stopRow) {
+ if (!(this_present_stopRow && that_present_stopRow))
+ return false;
+ if (!java.util.Arrays.equals(this.stopRow, that.stopRow))
+ return false;
+ }
+
+ boolean this_present_columns = true && (this.columns != null);
+ boolean that_present_columns = true && (that.columns != null);
+ if (this_present_columns || that_present_columns) {
+ if (!(this_present_columns && that_present_columns))
+ return false;
+ if (!this.columns.equals(that.columns))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6448,13 +8504,13 @@ public class Hbase {
case 4:
if (field.type == TType.LIST) {
{
- TList _list64 = iprot.readListBegin();
- this.columns = new ArrayList(_list64.size);
- for (int _i65 = 0; _i65 < _list64.size; ++_i65)
+ TList _list54 = iprot.readListBegin();
+ this.columns = new ArrayList(_list54.size);
+ for (int _i55 = 0; _i55 < _list54.size; ++_i55)
{
- byte[] _elem66 = null;
- _elem66 = iprot.readBinary();
- this.columns.add(_elem66);
+ byte[] _elem56 = null;
+ _elem56 = iprot.readBinary();
+ this.columns.add(_elem56);
}
iprot.readListEnd();
}
@@ -6507,8 +8563,8 @@ public class Hbase {
oprot.writeFieldBegin(field);
{
oprot.writeListBegin(new TList(TType.STRING, this.columns.size()));
- for (byte[] _iter67 : this.columns) {
- oprot.writeBinary(_iter67);
+ for (byte[] _iter57 : this.columns) {
+ oprot.writeBinary(_iter57);
}
oprot.writeListEnd();
}
@@ -6539,7 +8595,7 @@ public class Hbase {
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
}
@@ -6558,6 +8614,43 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerOpenWithStop_result)
+ return this.equals((scannerOpenWithStop_result)that);
+ return false;
+ }
+
+ public boolean equals(scannerOpenWithStop_result that) {
+ if (that == null)
+ return false;
+
+ 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.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6636,11 +8729,11 @@ public class Hbase {
public static class scannerOpenTs_args implements TBase, java.io.Serializable {
public byte[] tableName;
public byte[] startRow;
- public ArrayList columns;
+ public List columns;
public long timestamp;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean startRow = false;
public boolean columns = false;
@@ -6653,7 +8746,7 @@ public class Hbase {
public scannerOpenTs_args(
byte[] tableName,
byte[] startRow,
- ArrayList columns,
+ List columns,
long timestamp)
{
this();
@@ -6667,6 +8760,61 @@ public class Hbase {
this.__isset.timestamp = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerOpenTs_args)
+ return this.equals((scannerOpenTs_args)that);
+ return false;
+ }
+
+ public boolean equals(scannerOpenTs_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_startRow = true && (this.startRow != null);
+ boolean that_present_startRow = true && (that.startRow != null);
+ if (this_present_startRow || that_present_startRow) {
+ if (!(this_present_startRow && that_present_startRow))
+ return false;
+ if (!java.util.Arrays.equals(this.startRow, that.startRow))
+ return false;
+ }
+
+ boolean this_present_columns = true && (this.columns != null);
+ boolean that_present_columns = true && (that.columns != null);
+ if (this_present_columns || that_present_columns) {
+ if (!(this_present_columns && that_present_columns))
+ return false;
+ if (!this.columns.equals(that.columns))
+ return false;
+ }
+
+ boolean this_present_timestamp = true;
+ boolean that_present_timestamp = true;
+ if (this_present_timestamp || that_present_timestamp) {
+ if (!(this_present_timestamp && that_present_timestamp))
+ return false;
+ if (this.timestamp != that.timestamp)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6697,13 +8845,13 @@ public class Hbase {
case 3:
if (field.type == TType.LIST) {
{
- TList _list68 = iprot.readListBegin();
- this.columns = new ArrayList(_list68.size);
- for (int _i69 = 0; _i69 < _list68.size; ++_i69)
+ TList _list58 = iprot.readListBegin();
+ this.columns = new ArrayList(_list58.size);
+ for (int _i59 = 0; _i59 < _list58.size; ++_i59)
{
- byte[] _elem70 = null;
- _elem70 = iprot.readBinary();
- this.columns.add(_elem70);
+ byte[] _elem60 = null;
+ _elem60 = iprot.readBinary();
+ this.columns.add(_elem60);
}
iprot.readListEnd();
}
@@ -6756,8 +8904,8 @@ public class Hbase {
oprot.writeFieldBegin(field);
{
oprot.writeListBegin(new TList(TType.STRING, this.columns.size()));
- for (byte[] _iter71 : this.columns) {
- oprot.writeBinary(_iter71);
+ for (byte[] _iter61 : this.columns) {
+ oprot.writeBinary(_iter61);
}
oprot.writeListEnd();
}
@@ -6794,7 +8942,7 @@ public class Hbase {
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
}
@@ -6813,6 +8961,43 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerOpenTs_result)
+ return this.equals((scannerOpenTs_result)that);
+ return false;
+ }
+
+ public boolean equals(scannerOpenTs_result that) {
+ if (that == null)
+ return false;
+
+ 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.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6892,11 +9077,11 @@ public class Hbase {
public byte[] tableName;
public byte[] startRow;
public byte[] stopRow;
- public ArrayList columns;
+ public List columns;
public long timestamp;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean tableName = false;
public boolean startRow = false;
public boolean stopRow = false;
@@ -6911,7 +9096,7 @@ public class Hbase {
byte[] tableName,
byte[] startRow,
byte[] stopRow,
- ArrayList columns,
+ List columns,
long timestamp)
{
this();
@@ -6927,6 +9112,70 @@ public class Hbase {
this.__isset.timestamp = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerOpenWithStopTs_args)
+ return this.equals((scannerOpenWithStopTs_args)that);
+ return false;
+ }
+
+ public boolean equals(scannerOpenWithStopTs_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_tableName = true && (this.tableName != null);
+ boolean that_present_tableName = true && (that.tableName != null);
+ if (this_present_tableName || that_present_tableName) {
+ if (!(this_present_tableName && that_present_tableName))
+ return false;
+ if (!java.util.Arrays.equals(this.tableName, that.tableName))
+ return false;
+ }
+
+ boolean this_present_startRow = true && (this.startRow != null);
+ boolean that_present_startRow = true && (that.startRow != null);
+ if (this_present_startRow || that_present_startRow) {
+ if (!(this_present_startRow && that_present_startRow))
+ return false;
+ if (!java.util.Arrays.equals(this.startRow, that.startRow))
+ return false;
+ }
+
+ boolean this_present_stopRow = true && (this.stopRow != null);
+ boolean that_present_stopRow = true && (that.stopRow != null);
+ if (this_present_stopRow || that_present_stopRow) {
+ if (!(this_present_stopRow && that_present_stopRow))
+ return false;
+ if (!java.util.Arrays.equals(this.stopRow, that.stopRow))
+ return false;
+ }
+
+ boolean this_present_columns = true && (this.columns != null);
+ boolean that_present_columns = true && (that.columns != null);
+ if (this_present_columns || that_present_columns) {
+ if (!(this_present_columns && that_present_columns))
+ return false;
+ if (!this.columns.equals(that.columns))
+ return false;
+ }
+
+ boolean this_present_timestamp = true;
+ boolean that_present_timestamp = true;
+ if (this_present_timestamp || that_present_timestamp) {
+ if (!(this_present_timestamp && that_present_timestamp))
+ return false;
+ if (this.timestamp != that.timestamp)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -6965,13 +9214,13 @@ public class Hbase {
case 4:
if (field.type == TType.LIST) {
{
- TList _list72 = iprot.readListBegin();
- this.columns = new ArrayList(_list72.size);
- for (int _i73 = 0; _i73 < _list72.size; ++_i73)
+ TList _list62 = iprot.readListBegin();
+ this.columns = new ArrayList(_list62.size);
+ for (int _i63 = 0; _i63 < _list62.size; ++_i63)
{
- byte[] _elem74 = null;
- _elem74 = iprot.readBinary();
- this.columns.add(_elem74);
+ byte[] _elem64 = null;
+ _elem64 = iprot.readBinary();
+ this.columns.add(_elem64);
}
iprot.readListEnd();
}
@@ -7032,8 +9281,8 @@ public class Hbase {
oprot.writeFieldBegin(field);
{
oprot.writeListBegin(new TList(TType.STRING, this.columns.size()));
- for (byte[] _iter75 : this.columns) {
- oprot.writeBinary(_iter75);
+ for (byte[] _iter65 : this.columns) {
+ oprot.writeBinary(_iter65);
}
oprot.writeListEnd();
}
@@ -7072,7 +9321,7 @@ public class Hbase {
public IOError io;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
}
@@ -7091,6 +9340,43 @@ public class Hbase {
this.__isset.io = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerOpenWithStopTs_result)
+ return this.equals((scannerOpenWithStopTs_result)that);
+ return false;
+ }
+
+ public boolean equals(scannerOpenWithStopTs_result that) {
+ if (that == null)
+ return false;
+
+ 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.io != null);
+ boolean that_present_io = true && (that.io != null);
+ 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;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -7170,7 +9456,7 @@ public class Hbase {
public int id;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean id = false;
}
@@ -7185,6 +9471,34 @@ public class Hbase {
this.__isset.id = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerGet_args)
+ return this.equals((scannerGet_args)that);
+ return false;
+ }
+
+ public boolean equals(scannerGet_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_id = true;
+ boolean that_present_id = true;
+ if (this_present_id || that_present_id) {
+ if (!(this_present_id && that_present_id))
+ return false;
+ if (this.id != that.id)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -7238,13 +9552,13 @@ public class Hbase {
}
public static class scannerGet_result implements TBase, java.io.Serializable {
- public ScanEntry success;
+ public TRowResult success;
public IOError io;
public IllegalArgument ia;
public NotFound nf;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean success = false;
public boolean io = false;
public boolean ia = false;
@@ -7255,7 +9569,7 @@ public class Hbase {
}
public scannerGet_result(
- ScanEntry success,
+ TRowResult success,
IOError io,
IllegalArgument ia,
NotFound nf)
@@ -7271,6 +9585,61 @@ public class Hbase {
this.__isset.nf = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerGet_result)
+ return this.equals((scannerGet_result)that);
+ return false;
+ }
+
+ public boolean equals(scannerGet_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && (this.success != null);
+ boolean that_present_success = true && (that.success != null);
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_ia = true && (this.ia != null);
+ boolean that_present_ia = true && (that.ia != null);
+ if (this_present_ia || that_present_ia) {
+ if (!(this_present_ia && that_present_ia))
+ return false;
+ if (!this.ia.equals(that.ia))
+ return false;
+ }
+
+ boolean this_present_nf = true && (this.nf != null);
+ boolean that_present_nf = true && (that.nf != null);
+ if (this_present_nf || that_present_nf) {
+ if (!(this_present_nf && that_present_nf))
+ return false;
+ if (!this.nf.equals(that.nf))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -7284,7 +9653,7 @@ public class Hbase {
{
case 0:
if (field.type == TType.STRUCT) {
- this.success = new ScanEntry();
+ this.success = new TRowResult();
this.success.read(iprot);
this.__isset.success = true;
} else {
@@ -7393,7 +9762,7 @@ public class Hbase {
public int id;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean id = false;
}
@@ -7408,6 +9777,34 @@ public class Hbase {
this.__isset.id = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerClose_args)
+ return this.equals((scannerClose_args)that);
+ return false;
+ }
+
+ public boolean equals(scannerClose_args that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_id = true;
+ boolean that_present_id = true;
+ if (this_present_id || that_present_id) {
+ if (!(this_present_id && that_present_id))
+ return false;
+ if (this.id != that.id)
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
@@ -7465,7 +9862,7 @@ public class Hbase {
public IllegalArgument ia;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean io = false;
public boolean ia = false;
}
@@ -7484,6 +9881,43 @@ public class Hbase {
this.__isset.ia = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof scannerClose_result)
+ return this.equals((scannerClose_result)that);
+ return false;
+ }
+
+ public boolean equals(scannerClose_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_io = true && (this.io != null);
+ boolean that_present_io = true && (that.io != null);
+ if (this_present_io || that_present_io) {
+ if (!(this_present_io && that_present_io))
+ return false;
+ if (!this.io.equals(that.io))
+ return false;
+ }
+
+ boolean this_present_ia = true && (this.ia != null);
+ boolean that_present_ia = true && (that.ia != null);
+ if (this_present_ia || that_present_ia) {
+ if (!(this_present_ia && that_present_ia))
+ return false;
+ if (!this.ia.equals(that.ia))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/IOError.java b/src/java/org/apache/hadoop/hbase/thrift/generated/IOError.java
index d1c97b5c100..e08bb3861b5 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/IOError.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/IOError.java
@@ -23,9 +23,11 @@
*/
package org.apache.hadoop.hbase.thrift.generated;
+import java.util.List;
import java.util.ArrayList;
-import java.util.AbstractMap;
+import java.util.Map;
import java.util.HashMap;
+import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;
@@ -41,7 +43,7 @@ public class IOError extends Exception implements TBase, java.io.Serializable {
public String message;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean message = false;
}
@@ -56,6 +58,34 @@ public class IOError extends Exception implements TBase, java.io.Serializable {
this.__isset.message = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof IOError)
+ return this.equals((IOError)that);
+ return false;
+ }
+
+ public boolean equals(IOError that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_message = true && (this.message != null);
+ boolean that_present_message = true && (that.message != null);
+ if (this_present_message || that_present_message) {
+ if (!(this_present_message && that_present_message))
+ return false;
+ if (!this.message.equals(that.message))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java b/src/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java
index d3e23c8d97a..cce3ec9fec9 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/IllegalArgument.java
@@ -23,9 +23,11 @@
*/
package org.apache.hadoop.hbase.thrift.generated;
+import java.util.List;
import java.util.ArrayList;
-import java.util.AbstractMap;
+import java.util.Map;
import java.util.HashMap;
+import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;
@@ -40,7 +42,7 @@ public class IllegalArgument extends Exception implements TBase, java.io.Seriali
public String message;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean message = false;
}
@@ -55,6 +57,34 @@ public class IllegalArgument extends Exception implements TBase, java.io.Seriali
this.__isset.message = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof IllegalArgument)
+ return this.equals((IllegalArgument)that);
+ return false;
+ }
+
+ public boolean equals(IllegalArgument that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_message = true && (this.message != null);
+ boolean that_present_message = true && (that.message != null);
+ if (this_present_message || that_present_message) {
+ if (!(this_present_message && that_present_message))
+ return false;
+ if (!this.message.equals(that.message))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java b/src/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java
index 2ac03b323dc..b02890486f8 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/Mutation.java
@@ -23,9 +23,11 @@
*/
package org.apache.hadoop.hbase.thrift.generated;
+import java.util.List;
import java.util.ArrayList;
-import java.util.AbstractMap;
+import java.util.Map;
import java.util.HashMap;
+import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;
@@ -41,7 +43,7 @@ public class Mutation implements TBase, java.io.Serializable {
public byte[] value;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean isDelete = false;
public boolean column = false;
public boolean value = false;
@@ -66,6 +68,52 @@ public class Mutation implements TBase, java.io.Serializable {
this.__isset.value = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof Mutation)
+ return this.equals((Mutation)that);
+ return false;
+ }
+
+ public boolean equals(Mutation that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_isDelete = true;
+ boolean that_present_isDelete = true;
+ if (this_present_isDelete || that_present_isDelete) {
+ if (!(this_present_isDelete && that_present_isDelete))
+ return false;
+ if (this.isDelete != that.isDelete)
+ return false;
+ }
+
+ boolean this_present_column = true && (this.column != null);
+ boolean that_present_column = true && (that.column != null);
+ if (this_present_column || that_present_column) {
+ if (!(this_present_column && that_present_column))
+ return false;
+ if (!java.util.Arrays.equals(this.column, that.column))
+ return false;
+ }
+
+ boolean this_present_value = true && (this.value != null);
+ boolean that_present_value = true && (that.value != null);
+ if (this_present_value || that_present_value) {
+ if (!(this_present_value && that_present_value))
+ return false;
+ if (!java.util.Arrays.equals(this.value, that.value))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/NotFound.java b/src/java/org/apache/hadoop/hbase/thrift/generated/NotFound.java
index cc03bb5abf4..a8561a24126 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/NotFound.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/NotFound.java
@@ -23,9 +23,11 @@
*/
package org.apache.hadoop.hbase.thrift.generated;
+import java.util.List;
import java.util.ArrayList;
-import java.util.AbstractMap;
+import java.util.Map;
import java.util.HashMap;
+import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;
@@ -40,7 +42,7 @@ public class NotFound extends Exception implements TBase, java.io.Serializable {
public String message;
public final Isset __isset = new Isset();
- public static final class Isset {
+ public static final class Isset implements java.io.Serializable {
public boolean message = false;
}
@@ -55,6 +57,34 @@ public class NotFound extends Exception implements TBase, java.io.Serializable {
this.__isset.message = true;
}
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof NotFound)
+ return this.equals((NotFound)that);
+ return false;
+ }
+
+ public boolean equals(NotFound that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_message = true && (this.message != null);
+ boolean that_present_message = true && (that.message != null);
+ if (this_present_message || that_present_message) {
+ if (!(this_present_message && that_present_message))
+ return false;
+ if (!this.message.equals(that.message))
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+
public void read(TProtocol iprot) throws TException {
TField field;
iprot.readStructBegin();
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/RegionDescriptor.java b/src/java/org/apache/hadoop/hbase/thrift/generated/RegionDescriptor.java
index 1e5831dafd0..e69de29bb2d 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/RegionDescriptor.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/RegionDescriptor.java
@@ -1,111 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Autogenerated by Thrift
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- */
-package org.apache.hadoop.hbase.thrift.generated;
-
-import java.util.ArrayList;
-import java.util.AbstractMap;
-import java.util.HashMap;
-import java.util.HashSet;
-import com.facebook.thrift.*;
-
-import com.facebook.thrift.protocol.*;
-import com.facebook.thrift.transport.*;
-
-/**
- * A RegionDescriptor contains informationa about an HTable region.
- * Currently, this is just the startKey of the region.
- */
-public class RegionDescriptor implements TBase, java.io.Serializable {
- public byte[] startKey;
-
- public final Isset __isset = new Isset();
- public static final class Isset {
- public boolean startKey = false;
- }
-
- public RegionDescriptor() {
- }
-
- public RegionDescriptor(
- byte[] startKey)
- {
- this();
- this.startKey = startKey;
- this.__isset.startKey = true;
- }
-
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRING) {
- this.startKey = iprot.readBinary();
- this.__isset.startKey = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
-
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("RegionDescriptor");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.startKey != null) {
- field.name = "startKey";
- field.type = TType.STRING;
- field.id = 1;
- oprot.writeFieldBegin(field);
- oprot.writeBinary(this.startKey);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- public String toString() {
- StringBuilder sb = new StringBuilder("RegionDescriptor(");
- sb.append("startKey:");
- sb.append(this.startKey);
- sb.append(")");
- return sb.toString();
- }
-
-}
-
diff --git a/src/java/org/apache/hadoop/hbase/thrift/generated/ScanEntry.java b/src/java/org/apache/hadoop/hbase/thrift/generated/ScanEntry.java
index 78ed0a3e9ad..e69de29bb2d 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/generated/ScanEntry.java
+++ b/src/java/org/apache/hadoop/hbase/thrift/generated/ScanEntry.java
@@ -1,153 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Autogenerated by Thrift
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- */
-package org.apache.hadoop.hbase.thrift.generated;
-
-import java.util.ArrayList;
-import java.util.AbstractMap;
-import java.util.HashMap;
-import java.util.HashSet;
-import com.facebook.thrift.*;
-
-import com.facebook.thrift.protocol.*;
-import com.facebook.thrift.transport.*;
-
-/**
- * A ScanEntry contains the row, column, and value information for a scanner's
- * current location.
- */
-public class ScanEntry implements TBase, java.io.Serializable {
- public byte[] row;
- public AbstractMap columns;
-
- public final Isset __isset = new Isset();
- public static final class Isset {
- public boolean row = false;
- public boolean columns = false;
- }
-
- public ScanEntry() {
- }
-
- public ScanEntry(
- byte[] row,
- AbstractMap columns)
- {
- this();
- this.row = row;
- this.__isset.row = true;
- this.columns = columns;
- this.__isset.columns = true;
- }
-
- public void read(TProtocol iprot) throws TException {
- TField field;
- iprot.readStructBegin();
- while (true)
- {
- field = iprot.readFieldBegin();
- if (field.type == TType.STOP) {
- break;
- }
- switch (field.id)
- {
- case 1:
- if (field.type == TType.STRING) {
- this.row = iprot.readBinary();
- this.__isset.row = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- case 2:
- if (field.type == TType.MAP) {
- {
- TMap _map0 = iprot.readMapBegin();
- this.columns = new HashMap(2*_map0.size);
- for (int _i1 = 0; _i1 < _map0.size; ++_i1)
- {
- byte[] _key2;
- byte[] _val3;
- _key2 = iprot.readBinary();
- _val3 = iprot.readBinary();
- this.columns.put(_key2, _val3);
- }
- iprot.readMapEnd();
- }
- this.__isset.columns = true;
- } else {
- TProtocolUtil.skip(iprot, field.type);
- }
- break;
- default:
- TProtocolUtil.skip(iprot, field.type);
- break;
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
- }
-
- public void write(TProtocol oprot) throws TException {
- TStruct struct = new TStruct("ScanEntry");
- oprot.writeStructBegin(struct);
- TField field = new TField();
- if (this.row != null) {
- field.name = "row";
- field.type = TType.STRING;
- field.id = 1;
- oprot.writeFieldBegin(field);
- oprot.writeBinary(this.row);
- oprot.writeFieldEnd();
- }
- if (this.columns != null) {
- field.name = "columns";
- field.type = TType.MAP;
- field.id = 2;
- oprot.writeFieldBegin(field);
- {
- oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.columns.size()));
- for (byte[] _iter4 : this.columns.keySet()) {
- oprot.writeBinary(_iter4);
- oprot.writeBinary(this.columns.get(_iter4));
- }
- oprot.writeMapEnd();
- }
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- public String toString() {
- StringBuilder sb = new StringBuilder("ScanEntry(");
- sb.append("row:");
- sb.append(this.row);
- sb.append(",columns:");
- sb.append(this.columns);
- sb.append(")");
- return sb.toString();
- }
-
-}
-
diff --git a/src/java/org/apache/hadoop/hbase/thrift/package.html b/src/java/org/apache/hadoop/hbase/thrift/package.html
index 60be6b5edd0..ddf173b1a30 100644
--- a/src/java/org/apache/hadoop/hbase/thrift/package.html
+++ b/src/java/org/apache/hadoop/hbase/thrift/package.html
@@ -49,7 +49,7 @@ org.apache.hadoop.hbase.thrift.generated} directory.
The files were generated by running the commands:
- thrift -strict -java Hbase.thrift
+ thrift -strict --gen java Hbase.thrift
mv gen-java/org/apache/hadoop/hbase/thrift/generated .
rm -rf gen-java
@@ -62,8 +62,8 @@ part of the Thrift package. A version of the Java runtime is checked into SVN
under the hbase/lib directory.
-The version of Thrift used to generate the Java files is revision 746 from
-the SVN repository.
+The version of Thrift used to generate the Java files is release 20080411p1 from
+the thrift homepage.
The ThriftServer is run like: