You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by vi...@apache.org on 2012/10/29 16:22:31 UTC
svn commit: r1403360 [4/7] - in /accumulo/branches/ACCUMULO-259: ./
assemble/ assemble/platform/debian/ assemble/platform/debian/init.d/ bin/
conf/ conf/examples/1GB/native-standalone/ conf/examples/1GB/standalone/
conf/examples/2GB/native-standalone/ ...
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterClientService.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterClientService.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterClientService.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterClientService.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,6 +12,9 @@ import org.apache.thrift.scheme.Standard
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -1241,16 +1244,20 @@ import org.slf4j.LoggerFactory;
return processMap;
}
- private static class initiateFlush<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initiateFlush_args> {
+ public static class initiateFlush<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initiateFlush_args> {
public initiateFlush() {
super("initiateFlush");
}
- protected initiateFlush_args getEmptyArgsInstance() {
+ public initiateFlush_args getEmptyArgsInstance() {
return new initiateFlush_args();
}
- protected initiateFlush_result getResult(I iface, initiateFlush_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public initiateFlush_result getResult(I iface, initiateFlush_args args) throws org.apache.thrift.TException {
initiateFlush_result result = new initiateFlush_result();
try {
result.success = iface.initiateFlush(args.tinfo, args.credentials, args.tableName);
@@ -1264,16 +1271,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class waitForFlush<I extends Iface> extends org.apache.thrift.ProcessFunction<I, waitForFlush_args> {
+ public static class waitForFlush<I extends Iface> extends org.apache.thrift.ProcessFunction<I, waitForFlush_args> {
public waitForFlush() {
super("waitForFlush");
}
- protected waitForFlush_args getEmptyArgsInstance() {
+ public waitForFlush_args getEmptyArgsInstance() {
return new waitForFlush_args();
}
- protected waitForFlush_result getResult(I iface, waitForFlush_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public waitForFlush_result getResult(I iface, waitForFlush_args args) throws org.apache.thrift.TException {
waitForFlush_result result = new waitForFlush_result();
try {
iface.waitForFlush(args.tinfo, args.credentials, args.tableName, args.startRow, args.endRow, args.flushID, args.maxLoops);
@@ -1286,16 +1297,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class setTableProperty<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setTableProperty_args> {
+ public static class setTableProperty<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setTableProperty_args> {
public setTableProperty() {
super("setTableProperty");
}
- protected setTableProperty_args getEmptyArgsInstance() {
+ public setTableProperty_args getEmptyArgsInstance() {
return new setTableProperty_args();
}
- protected setTableProperty_result getResult(I iface, setTableProperty_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public setTableProperty_result getResult(I iface, setTableProperty_args args) throws org.apache.thrift.TException {
setTableProperty_result result = new setTableProperty_result();
try {
iface.setTableProperty(args.tinfo, args.credentials, args.tableName, args.property, args.value);
@@ -1308,16 +1323,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class removeTableProperty<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeTableProperty_args> {
+ public static class removeTableProperty<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeTableProperty_args> {
public removeTableProperty() {
super("removeTableProperty");
}
- protected removeTableProperty_args getEmptyArgsInstance() {
+ public removeTableProperty_args getEmptyArgsInstance() {
return new removeTableProperty_args();
}
- protected removeTableProperty_result getResult(I iface, removeTableProperty_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public removeTableProperty_result getResult(I iface, removeTableProperty_args args) throws org.apache.thrift.TException {
removeTableProperty_result result = new removeTableProperty_result();
try {
iface.removeTableProperty(args.tinfo, args.credentials, args.tableName, args.property);
@@ -1330,16 +1349,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class setMasterGoalState<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setMasterGoalState_args> {
+ public static class setMasterGoalState<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setMasterGoalState_args> {
public setMasterGoalState() {
super("setMasterGoalState");
}
- protected setMasterGoalState_args getEmptyArgsInstance() {
+ public setMasterGoalState_args getEmptyArgsInstance() {
return new setMasterGoalState_args();
}
- protected setMasterGoalState_result getResult(I iface, setMasterGoalState_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public setMasterGoalState_result getResult(I iface, setMasterGoalState_args args) throws org.apache.thrift.TException {
setMasterGoalState_result result = new setMasterGoalState_result();
try {
iface.setMasterGoalState(args.tinfo, args.credentials, args.state);
@@ -1350,16 +1373,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class shutdown<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shutdown_args> {
+ public static class shutdown<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shutdown_args> {
public shutdown() {
super("shutdown");
}
- protected shutdown_args getEmptyArgsInstance() {
+ public shutdown_args getEmptyArgsInstance() {
return new shutdown_args();
}
- protected shutdown_result getResult(I iface, shutdown_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public shutdown_result getResult(I iface, shutdown_args args) throws org.apache.thrift.TException {
shutdown_result result = new shutdown_result();
try {
iface.shutdown(args.tinfo, args.credentials, args.stopTabletServers);
@@ -1370,16 +1397,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class shutdownTabletServer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shutdownTabletServer_args> {
+ public static class shutdownTabletServer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shutdownTabletServer_args> {
public shutdownTabletServer() {
super("shutdownTabletServer");
}
- protected shutdownTabletServer_args getEmptyArgsInstance() {
+ public shutdownTabletServer_args getEmptyArgsInstance() {
return new shutdownTabletServer_args();
}
- protected shutdownTabletServer_result getResult(I iface, shutdownTabletServer_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public shutdownTabletServer_result getResult(I iface, shutdownTabletServer_args args) throws org.apache.thrift.TException {
shutdownTabletServer_result result = new shutdownTabletServer_result();
try {
iface.shutdownTabletServer(args.tinfo, args.credentials, args.tabletServer, args.force);
@@ -1390,16 +1421,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class setSystemProperty<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setSystemProperty_args> {
+ public static class setSystemProperty<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setSystemProperty_args> {
public setSystemProperty() {
super("setSystemProperty");
}
- protected setSystemProperty_args getEmptyArgsInstance() {
+ public setSystemProperty_args getEmptyArgsInstance() {
return new setSystemProperty_args();
}
- protected setSystemProperty_result getResult(I iface, setSystemProperty_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public setSystemProperty_result getResult(I iface, setSystemProperty_args args) throws org.apache.thrift.TException {
setSystemProperty_result result = new setSystemProperty_result();
try {
iface.setSystemProperty(args.tinfo, args.credentials, args.property, args.value);
@@ -1410,16 +1445,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class removeSystemProperty<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeSystemProperty_args> {
+ public static class removeSystemProperty<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeSystemProperty_args> {
public removeSystemProperty() {
super("removeSystemProperty");
}
- protected removeSystemProperty_args getEmptyArgsInstance() {
+ public removeSystemProperty_args getEmptyArgsInstance() {
return new removeSystemProperty_args();
}
- protected removeSystemProperty_result getResult(I iface, removeSystemProperty_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public removeSystemProperty_result getResult(I iface, removeSystemProperty_args args) throws org.apache.thrift.TException {
removeSystemProperty_result result = new removeSystemProperty_result();
try {
iface.removeSystemProperty(args.tinfo, args.credentials, args.property);
@@ -1430,16 +1469,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class getMasterStats<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMasterStats_args> {
+ public static class getMasterStats<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMasterStats_args> {
public getMasterStats() {
super("getMasterStats");
}
- protected getMasterStats_args getEmptyArgsInstance() {
+ public getMasterStats_args getEmptyArgsInstance() {
return new getMasterStats_args();
}
- protected getMasterStats_result getResult(I iface, getMasterStats_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getMasterStats_result getResult(I iface, getMasterStats_args args) throws org.apache.thrift.TException {
getMasterStats_result result = new getMasterStats_result();
try {
result.success = iface.getMasterStats(args.tinfo, args.credentials);
@@ -1450,46 +1493,58 @@ import org.slf4j.LoggerFactory;
}
}
- private static class reportSplitExtent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reportSplitExtent_args> {
+ public static class reportSplitExtent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reportSplitExtent_args> {
public reportSplitExtent() {
super("reportSplitExtent");
}
- protected reportSplitExtent_args getEmptyArgsInstance() {
+ public reportSplitExtent_args getEmptyArgsInstance() {
return new reportSplitExtent_args();
}
- protected org.apache.thrift.TBase getResult(I iface, reportSplitExtent_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return true;
+ }
+
+ public org.apache.thrift.TBase getResult(I iface, reportSplitExtent_args args) throws org.apache.thrift.TException {
iface.reportSplitExtent(args.tinfo, args.credentials, args.serverName, args.split);
return null;
}
}
- private static class reportTabletStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reportTabletStatus_args> {
+ public static class reportTabletStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reportTabletStatus_args> {
public reportTabletStatus() {
super("reportTabletStatus");
}
- protected reportTabletStatus_args getEmptyArgsInstance() {
+ public reportTabletStatus_args getEmptyArgsInstance() {
return new reportTabletStatus_args();
}
- protected org.apache.thrift.TBase getResult(I iface, reportTabletStatus_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return true;
+ }
+
+ public org.apache.thrift.TBase getResult(I iface, reportTabletStatus_args args) throws org.apache.thrift.TException {
iface.reportTabletStatus(args.tinfo, args.credentials, args.serverName, args.status, args.tablet);
return null;
}
}
- private static class beginTableOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, beginTableOperation_args> {
+ public static class beginTableOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, beginTableOperation_args> {
public beginTableOperation() {
super("beginTableOperation");
}
- protected beginTableOperation_args getEmptyArgsInstance() {
+ public beginTableOperation_args getEmptyArgsInstance() {
return new beginTableOperation_args();
}
- protected beginTableOperation_result getResult(I iface, beginTableOperation_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public beginTableOperation_result getResult(I iface, beginTableOperation_args args) throws org.apache.thrift.TException {
beginTableOperation_result result = new beginTableOperation_result();
try {
result.success = iface.beginTableOperation(args.tinfo, args.credentials);
@@ -1501,16 +1556,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class executeTableOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, executeTableOperation_args> {
+ public static class executeTableOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, executeTableOperation_args> {
public executeTableOperation() {
super("executeTableOperation");
}
- protected executeTableOperation_args getEmptyArgsInstance() {
+ public executeTableOperation_args getEmptyArgsInstance() {
return new executeTableOperation_args();
}
- protected executeTableOperation_result getResult(I iface, executeTableOperation_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public executeTableOperation_result getResult(I iface, executeTableOperation_args args) throws org.apache.thrift.TException {
executeTableOperation_result result = new executeTableOperation_result();
try {
iface.executeTableOperation(args.tinfo, args.credentials, args.opid, args.op, args.arguments, args.options, args.autoClean);
@@ -1523,16 +1582,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class waitForTableOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, waitForTableOperation_args> {
+ public static class waitForTableOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, waitForTableOperation_args> {
public waitForTableOperation() {
super("waitForTableOperation");
}
- protected waitForTableOperation_args getEmptyArgsInstance() {
+ public waitForTableOperation_args getEmptyArgsInstance() {
return new waitForTableOperation_args();
}
- protected waitForTableOperation_result getResult(I iface, waitForTableOperation_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public waitForTableOperation_result getResult(I iface, waitForTableOperation_args args) throws org.apache.thrift.TException {
waitForTableOperation_result result = new waitForTableOperation_result();
try {
result.success = iface.waitForTableOperation(args.tinfo, args.credentials, args.opid);
@@ -1545,16 +1608,20 @@ import org.slf4j.LoggerFactory;
}
}
- private static class finishTableOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, finishTableOperation_args> {
+ public static class finishTableOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, finishTableOperation_args> {
public finishTableOperation() {
super("finishTableOperation");
}
- protected finishTableOperation_args getEmptyArgsInstance() {
+ public finishTableOperation_args getEmptyArgsInstance() {
return new finishTableOperation_args();
}
- protected finishTableOperation_result getResult(I iface, finishTableOperation_args args) throws org.apache.thrift.TException {
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public finishTableOperation_result getResult(I iface, finishTableOperation_args args) throws org.apache.thrift.TException {
finishTableOperation_result result = new finishTableOperation_result();
try {
iface.finishTableOperation(args.tinfo, args.credentials, args.opid);
@@ -1970,6 +2037,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -2207,7 +2281,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
- private BitSet __isset_bit_vector = new BitSet(1);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -2240,8 +2314,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public initiateFlush_result(initiateFlush_result other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetSec()) {
this.sec = new org.apache.accumulo.core.security.thrift.ThriftSecurityException(other.sec);
@@ -2274,16 +2347,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetSuccess() {
- __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
- return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
- __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public org.apache.accumulo.core.security.thrift.ThriftSecurityException getSec() {
@@ -2526,6 +2599,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -2538,6 +2612,8 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
+ // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
@@ -2603,9 +2679,11 @@ import org.slf4j.LoggerFactory;
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
- oprot.writeI64(struct.success);
- oprot.writeFieldEnd();
+ if (struct.isSetSuccess()) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ oprot.writeI64(struct.success);
+ oprot.writeFieldEnd();
+ }
if (struct.sec != null) {
oprot.writeFieldBegin(SEC_FIELD_DESC);
struct.sec.write(oprot);
@@ -2782,7 +2860,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __FLUSHID_ISSET_ID = 0;
private static final int __MAXLOOPS_ISSET_ID = 1;
- private BitSet __isset_bit_vector = new BitSet(2);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -2832,8 +2910,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public waitForFlush_args(waitForFlush_args other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetTinfo()) {
this.tinfo = new org.apache.accumulo.cloudtrace.thrift.TInfo(other.tinfo);
}
@@ -3023,16 +3100,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetFlushID() {
- __isset_bit_vector.clear(__FLUSHID_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FLUSHID_ISSET_ID);
}
/** Returns true if field flushID is set (has been assigned a value) and false otherwise */
public boolean isSetFlushID() {
- return __isset_bit_vector.get(__FLUSHID_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __FLUSHID_ISSET_ID);
}
public void setFlushIDIsSet(boolean value) {
- __isset_bit_vector.set(__FLUSHID_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FLUSHID_ISSET_ID, value);
}
public long getMaxLoops() {
@@ -3046,16 +3123,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetMaxLoops() {
- __isset_bit_vector.clear(__MAXLOOPS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXLOOPS_ISSET_ID);
}
/** Returns true if field maxLoops is set (has been assigned a value) and false otherwise */
public boolean isSetMaxLoops() {
- return __isset_bit_vector.get(__MAXLOOPS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __MAXLOOPS_ISSET_ID);
}
public void setMaxLoopsIsSet(boolean value) {
- __isset_bit_vector.set(__MAXLOOPS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXLOOPS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
@@ -3406,6 +3483,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -3419,7 +3503,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
@@ -3976,6 +4060,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -4664,6 +4749,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -5190,6 +5282,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -5801,6 +5894,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -6304,6 +6404,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -6854,6 +6955,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -7257,6 +7365,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -7446,7 +7555,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __STOPTABLETSERVERS_ISSET_ID = 0;
- private BitSet __isset_bit_vector = new BitSet(1);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -7479,8 +7588,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public shutdown_args(shutdown_args other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetTinfo()) {
this.tinfo = new org.apache.accumulo.cloudtrace.thrift.TInfo(other.tinfo);
}
@@ -7561,16 +7669,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetStopTabletServers() {
- __isset_bit_vector.clear(__STOPTABLETSERVERS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STOPTABLETSERVERS_ISSET_ID);
}
/** Returns true if field stopTabletServers is set (has been assigned a value) and false otherwise */
public boolean isSetStopTabletServers() {
- return __isset_bit_vector.get(__STOPTABLETSERVERS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __STOPTABLETSERVERS_ISSET_ID);
}
public void setStopTabletServersIsSet(boolean value) {
- __isset_bit_vector.set(__STOPTABLETSERVERS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STOPTABLETSERVERS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
@@ -7765,6 +7873,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -7778,7 +7893,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
@@ -8168,6 +8283,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -8362,7 +8478,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __FORCE_ISSET_ID = 0;
- private BitSet __isset_bit_vector = new BitSet(1);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -8399,8 +8515,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public shutdownTabletServer_args(shutdownTabletServer_args other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetTinfo()) {
this.tinfo = new org.apache.accumulo.cloudtrace.thrift.TInfo(other.tinfo);
}
@@ -8509,16 +8624,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetForce() {
- __isset_bit_vector.clear(__FORCE_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FORCE_ISSET_ID);
}
/** Returns true if field force is set (has been assigned a value) and false otherwise */
public boolean isSetForce() {
- return __isset_bit_vector.get(__FORCE_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __FORCE_ISSET_ID);
}
public void setForceIsSet(boolean value) {
- __isset_bit_vector.set(__FORCE_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FORCE_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
@@ -8753,6 +8868,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -8766,7 +8888,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
@@ -9179,6 +9301,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -9765,6 +9888,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -10191,6 +10321,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -10700,6 +10831,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -11103,6 +11241,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -11535,6 +11674,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -11992,6 +12138,10 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (success != null) {
+ success.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -12603,6 +12753,16 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
+ if (split != null) {
+ split.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -13355,6 +13515,16 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
+ if (tablet != null) {
+ tablet.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -13883,6 +14053,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -14092,7 +14269,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
- private BitSet __isset_bit_vector = new BitSet(1);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -14121,8 +14298,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public beginTableOperation_result(beginTableOperation_result other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
this.success = other.success;
if (other.isSetSec()) {
this.sec = new org.apache.accumulo.core.security.thrift.ThriftSecurityException(other.sec);
@@ -14151,16 +14327,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetSuccess() {
- __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
- return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
- __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public org.apache.accumulo.core.security.thrift.ThriftSecurityException getSec() {
@@ -14339,6 +14515,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -14351,6 +14528,8 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
+ // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
@@ -14407,9 +14586,11 @@ import org.slf4j.LoggerFactory;
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
- oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
- oprot.writeI64(struct.success);
- oprot.writeFieldEnd();
+ if (struct.isSetSuccess()) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ oprot.writeI64(struct.success);
+ oprot.writeFieldEnd();
+ }
if (struct.sec != null) {
oprot.writeFieldBegin(SEC_FIELD_DESC);
struct.sec.write(oprot);
@@ -14578,7 +14759,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __OPID_ISSET_ID = 0;
private static final int __AUTOCLEAN_ISSET_ID = 1;
- private BitSet __isset_bit_vector = new BitSet(2);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -14631,8 +14812,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public executeTableOperation_args(executeTableOperation_args other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetTinfo()) {
this.tinfo = new org.apache.accumulo.cloudtrace.thrift.TInfo(other.tinfo);
}
@@ -14746,16 +14926,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetOpid() {
- __isset_bit_vector.clear(__OPID_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPID_ISSET_ID);
}
/** Returns true if field opid is set (has been assigned a value) and false otherwise */
public boolean isSetOpid() {
- return __isset_bit_vector.get(__OPID_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __OPID_ISSET_ID);
}
public void setOpidIsSet(boolean value) {
- __isset_bit_vector.set(__OPID_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPID_ISSET_ID, value);
}
/**
@@ -14875,16 +15055,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetAutoClean() {
- __isset_bit_vector.clear(__AUTOCLEAN_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __AUTOCLEAN_ISSET_ID);
}
/** Returns true if field autoClean is set (has been assigned a value) and false otherwise */
public boolean isSetAutoClean() {
- return __isset_bit_vector.get(__AUTOCLEAN_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __AUTOCLEAN_ISSET_ID);
}
public void setAutoCleanIsSet(boolean value) {
- __isset_bit_vector.set(__AUTOCLEAN_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __AUTOCLEAN_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
@@ -15235,6 +15415,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -15248,7 +15435,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
@@ -15875,6 +16062,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -16089,7 +16277,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __OPID_ISSET_ID = 0;
- private BitSet __isset_bit_vector = new BitSet(1);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -16122,8 +16310,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public waitForTableOperation_args(waitForTableOperation_args other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetTinfo()) {
this.tinfo = new org.apache.accumulo.cloudtrace.thrift.TInfo(other.tinfo);
}
@@ -16204,16 +16391,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetOpid() {
- __isset_bit_vector.clear(__OPID_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPID_ISSET_ID);
}
/** Returns true if field opid is set (has been assigned a value) and false otherwise */
public boolean isSetOpid() {
- return __isset_bit_vector.get(__OPID_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __OPID_ISSET_ID);
}
public void setOpidIsSet(boolean value) {
- __isset_bit_vector.set(__OPID_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
@@ -16408,6 +16595,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -16421,7 +16615,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
@@ -16965,6 +17159,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -17202,7 +17397,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __OPID_ISSET_ID = 0;
- private BitSet __isset_bit_vector = new BitSet(1);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -17235,8 +17430,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public finishTableOperation_args(finishTableOperation_args other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetTinfo()) {
this.tinfo = new org.apache.accumulo.cloudtrace.thrift.TInfo(other.tinfo);
}
@@ -17317,16 +17511,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetOpid() {
- __isset_bit_vector.clear(__OPID_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPID_ISSET_ID);
}
/** Returns true if field opid is set (has been assigned a value) and false otherwise */
public boolean isSetOpid() {
- return __isset_bit_vector.get(__OPID_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __OPID_ISSET_ID);
}
public void setOpidIsSet(boolean value) {
- __isset_bit_vector.set(__OPID_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPID_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
@@ -17521,6 +17715,13 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (tinfo != null) {
+ tinfo.validate();
+ }
+ if (credentials != null) {
+ credentials.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -17534,7 +17735,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
@@ -17924,6 +18125,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterGoalState.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterGoalState.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterGoalState.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterGoalState.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterMonitorInfo.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterMonitorInfo.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterMonitorInfo.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterMonitorInfo.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,6 +12,9 @@ import org.apache.thrift.scheme.Standard
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -151,7 +154,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __UNASSIGNEDTABLETS_ISSET_ID = 0;
- private BitSet __isset_bit_vector = new BitSet(1);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -211,8 +214,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public MasterMonitorInfo(MasterMonitorInfo other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetTableMap()) {
Map<String,TableInfo> __this__tableMap = new HashMap<String,TableInfo>();
for (Map.Entry<String, TableInfo> other_element : other.tableMap.entrySet()) {
@@ -474,16 +476,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetUnassignedTablets() {
- __isset_bit_vector.clear(__UNASSIGNEDTABLETS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __UNASSIGNEDTABLETS_ISSET_ID);
}
/** Returns true if field unassignedTablets is set (has been assigned a value) and false otherwise */
public boolean isSetUnassignedTablets() {
- return __isset_bit_vector.get(__UNASSIGNEDTABLETS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __UNASSIGNEDTABLETS_ISSET_ID);
}
public void setUnassignedTabletsIsSet(boolean value) {
- __isset_bit_vector.set(__UNASSIGNEDTABLETS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __UNASSIGNEDTABLETS_ISSET_ID, value);
}
public int getServersShuttingDownSize() {
@@ -956,6 +958,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -969,7 +972,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterState.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterState.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterState.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/MasterState.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/RecoveryException.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/RecoveryException.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/RecoveryException.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/RecoveryException.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,6 +12,9 @@ import org.apache.thrift.scheme.Standard
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -27,7 +30,7 @@ import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-@SuppressWarnings("all") public class RecoveryException extends Exception implements org.apache.thrift.TBase<RecoveryException, RecoveryException._Fields>, java.io.Serializable, Cloneable {
+@SuppressWarnings("all") public class RecoveryException extends TException implements org.apache.thrift.TBase<RecoveryException, RecoveryException._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RecoveryException");
private static final org.apache.thrift.protocol.TField WHY_FIELD_DESC = new org.apache.thrift.protocol.TField("why", org.apache.thrift.protocol.TType.STRING, (short)1);
@@ -276,6 +279,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/RecoveryStatus.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/RecoveryStatus.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/RecoveryStatus.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/RecoveryStatus.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,6 +12,9 @@ import org.apache.thrift.scheme.Standard
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -111,7 +114,7 @@ import org.slf4j.LoggerFactory;
// isset id assignments
private static final int __RUNTIME_ISSET_ID = 0;
private static final int __PROGRESS_ISSET_ID = 1;
- private BitSet __isset_bit_vector = new BitSet(2);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -145,8 +148,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public RecoveryStatus(RecoveryStatus other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetName()) {
this.name = other.name;
}
@@ -202,16 +204,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetRuntime() {
- __isset_bit_vector.clear(__RUNTIME_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RUNTIME_ISSET_ID);
}
/** Returns true if field runtime is set (has been assigned a value) and false otherwise */
public boolean isSetRuntime() {
- return __isset_bit_vector.get(__RUNTIME_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __RUNTIME_ISSET_ID);
}
public void setRuntimeIsSet(boolean value) {
- __isset_bit_vector.set(__RUNTIME_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RUNTIME_ISSET_ID, value);
}
public double getProgress() {
@@ -225,16 +227,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetProgress() {
- __isset_bit_vector.clear(__PROGRESS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PROGRESS_ISSET_ID);
}
/** Returns true if field progress is set (has been assigned a value) and false otherwise */
public boolean isSetProgress() {
- return __isset_bit_vector.get(__PROGRESS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __PROGRESS_ISSET_ID);
}
public void setProgressIsSet(boolean value) {
- __isset_bit_vector.set(__PROGRESS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PROGRESS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
@@ -425,6 +427,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -438,7 +441,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TableInfo.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TableInfo.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TableInfo.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TableInfo.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,6 +12,9 @@ import org.apache.thrift.scheme.Standard
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -163,7 +166,7 @@ import org.slf4j.LoggerFactory;
private static final int __QUERYRATE_ISSET_ID = 6;
private static final int __QUERYBYTERATE_ISSET_ID = 7;
private static final int __SCANRATE_ISSET_ID = 8;
- private BitSet __isset_bit_vector = new BitSet(9);
+ private short __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -240,8 +243,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public TableInfo(TableInfo other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
this.recs = other.recs;
this.recsInMemory = other.recsInMemory;
this.tablets = other.tablets;
@@ -302,16 +304,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetRecs() {
- __isset_bit_vector.clear(__RECS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECS_ISSET_ID);
}
/** Returns true if field recs is set (has been assigned a value) and false otherwise */
public boolean isSetRecs() {
- return __isset_bit_vector.get(__RECS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __RECS_ISSET_ID);
}
public void setRecsIsSet(boolean value) {
- __isset_bit_vector.set(__RECS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECS_ISSET_ID, value);
}
public long getRecsInMemory() {
@@ -325,16 +327,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetRecsInMemory() {
- __isset_bit_vector.clear(__RECSINMEMORY_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECSINMEMORY_ISSET_ID);
}
/** Returns true if field recsInMemory is set (has been assigned a value) and false otherwise */
public boolean isSetRecsInMemory() {
- return __isset_bit_vector.get(__RECSINMEMORY_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __RECSINMEMORY_ISSET_ID);
}
public void setRecsInMemoryIsSet(boolean value) {
- __isset_bit_vector.set(__RECSINMEMORY_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECSINMEMORY_ISSET_ID, value);
}
public int getTablets() {
@@ -348,16 +350,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetTablets() {
- __isset_bit_vector.clear(__TABLETS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TABLETS_ISSET_ID);
}
/** Returns true if field tablets is set (has been assigned a value) and false otherwise */
public boolean isSetTablets() {
- return __isset_bit_vector.get(__TABLETS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __TABLETS_ISSET_ID);
}
public void setTabletsIsSet(boolean value) {
- __isset_bit_vector.set(__TABLETS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TABLETS_ISSET_ID, value);
}
public int getOnlineTablets() {
@@ -371,16 +373,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetOnlineTablets() {
- __isset_bit_vector.clear(__ONLINETABLETS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ONLINETABLETS_ISSET_ID);
}
/** Returns true if field onlineTablets is set (has been assigned a value) and false otherwise */
public boolean isSetOnlineTablets() {
- return __isset_bit_vector.get(__ONLINETABLETS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __ONLINETABLETS_ISSET_ID);
}
public void setOnlineTabletsIsSet(boolean value) {
- __isset_bit_vector.set(__ONLINETABLETS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ONLINETABLETS_ISSET_ID, value);
}
public double getIngestRate() {
@@ -394,16 +396,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetIngestRate() {
- __isset_bit_vector.clear(__INGESTRATE_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INGESTRATE_ISSET_ID);
}
/** Returns true if field ingestRate is set (has been assigned a value) and false otherwise */
public boolean isSetIngestRate() {
- return __isset_bit_vector.get(__INGESTRATE_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __INGESTRATE_ISSET_ID);
}
public void setIngestRateIsSet(boolean value) {
- __isset_bit_vector.set(__INGESTRATE_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INGESTRATE_ISSET_ID, value);
}
public double getIngestByteRate() {
@@ -417,16 +419,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetIngestByteRate() {
- __isset_bit_vector.clear(__INGESTBYTERATE_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INGESTBYTERATE_ISSET_ID);
}
/** Returns true if field ingestByteRate is set (has been assigned a value) and false otherwise */
public boolean isSetIngestByteRate() {
- return __isset_bit_vector.get(__INGESTBYTERATE_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __INGESTBYTERATE_ISSET_ID);
}
public void setIngestByteRateIsSet(boolean value) {
- __isset_bit_vector.set(__INGESTBYTERATE_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INGESTBYTERATE_ISSET_ID, value);
}
public double getQueryRate() {
@@ -440,16 +442,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetQueryRate() {
- __isset_bit_vector.clear(__QUERYRATE_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __QUERYRATE_ISSET_ID);
}
/** Returns true if field queryRate is set (has been assigned a value) and false otherwise */
public boolean isSetQueryRate() {
- return __isset_bit_vector.get(__QUERYRATE_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __QUERYRATE_ISSET_ID);
}
public void setQueryRateIsSet(boolean value) {
- __isset_bit_vector.set(__QUERYRATE_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __QUERYRATE_ISSET_ID, value);
}
public double getQueryByteRate() {
@@ -463,16 +465,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetQueryByteRate() {
- __isset_bit_vector.clear(__QUERYBYTERATE_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __QUERYBYTERATE_ISSET_ID);
}
/** Returns true if field queryByteRate is set (has been assigned a value) and false otherwise */
public boolean isSetQueryByteRate() {
- return __isset_bit_vector.get(__QUERYBYTERATE_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __QUERYBYTERATE_ISSET_ID);
}
public void setQueryByteRateIsSet(boolean value) {
- __isset_bit_vector.set(__QUERYBYTERATE_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __QUERYBYTERATE_ISSET_ID, value);
}
public Compacting getMinor() {
@@ -558,16 +560,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetScanRate() {
- __isset_bit_vector.clear(__SCANRATE_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SCANRATE_ISSET_ID);
}
/** Returns true if field scanRate is set (has been assigned a value) and false otherwise */
public boolean isSetScanRate() {
- return __isset_bit_vector.get(__SCANRATE_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __SCANRATE_ISSET_ID);
}
public void setScanRateIsSet(boolean value) {
- __isset_bit_vector.set(__SCANRATE_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SCANRATE_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
@@ -1090,6 +1092,16 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (minor != null) {
+ minor.validate();
+ }
+ if (major != null) {
+ major.validate();
+ }
+ if (scans != null) {
+ scans.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -1103,7 +1115,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TableOperation.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TableOperation.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TableOperation.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TableOperation.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletLoadState.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletLoadState.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletLoadState.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletLoadState.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletServerStatus.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletServerStatus.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletServerStatus.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletServerStatus.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,6 +12,9 @@ import org.apache.thrift.scheme.Standard
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -157,7 +160,7 @@ import org.slf4j.LoggerFactory;
private static final int __INDEXCACHEREQUEST_ISSET_ID = 5;
private static final int __DATACACHEHITS_ISSET_ID = 6;
private static final int __DATACACHEREQUEST_ISSET_ID = 7;
- private BitSet __isset_bit_vector = new BitSet(8);
+ private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
@@ -232,8 +235,7 @@ import org.slf4j.LoggerFactory;
* Performs a deep copy on <i>other</i>.
*/
public TabletServerStatus(TabletServerStatus other) {
- __isset_bit_vector.clear();
- __isset_bit_vector.or(other.__isset_bit_vector);
+ __isset_bitfield = other.__isset_bitfield;
if (other.isSetTableMap()) {
Map<String,TableInfo> __this__tableMap = new HashMap<String,TableInfo>();
for (Map.Entry<String, TableInfo> other_element : other.tableMap.entrySet()) {
@@ -342,16 +344,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetLastContact() {
- __isset_bit_vector.clear(__LASTCONTACT_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LASTCONTACT_ISSET_ID);
}
/** Returns true if field lastContact is set (has been assigned a value) and false otherwise */
public boolean isSetLastContact() {
- return __isset_bit_vector.get(__LASTCONTACT_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __LASTCONTACT_ISSET_ID);
}
public void setLastContactIsSet(boolean value) {
- __isset_bit_vector.set(__LASTCONTACT_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LASTCONTACT_ISSET_ID, value);
}
public String getName() {
@@ -389,16 +391,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetOsLoad() {
- __isset_bit_vector.clear(__OSLOAD_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OSLOAD_ISSET_ID);
}
/** Returns true if field osLoad is set (has been assigned a value) and false otherwise */
public boolean isSetOsLoad() {
- return __isset_bit_vector.get(__OSLOAD_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __OSLOAD_ISSET_ID);
}
public void setOsLoadIsSet(boolean value) {
- __isset_bit_vector.set(__OSLOAD_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OSLOAD_ISSET_ID, value);
}
public long getHoldTime() {
@@ -412,16 +414,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetHoldTime() {
- __isset_bit_vector.clear(__HOLDTIME_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
}
/** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
public boolean isSetHoldTime() {
- return __isset_bit_vector.get(__HOLDTIME_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
}
public void setHoldTimeIsSet(boolean value) {
- __isset_bit_vector.set(__HOLDTIME_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
}
public long getLookups() {
@@ -435,16 +437,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetLookups() {
- __isset_bit_vector.clear(__LOOKUPS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LOOKUPS_ISSET_ID);
}
/** Returns true if field lookups is set (has been assigned a value) and false otherwise */
public boolean isSetLookups() {
- return __isset_bit_vector.get(__LOOKUPS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __LOOKUPS_ISSET_ID);
}
public void setLookupsIsSet(boolean value) {
- __isset_bit_vector.set(__LOOKUPS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LOOKUPS_ISSET_ID, value);
}
public long getIndexCacheHits() {
@@ -458,16 +460,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetIndexCacheHits() {
- __isset_bit_vector.clear(__INDEXCACHEHITS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INDEXCACHEHITS_ISSET_ID);
}
/** Returns true if field indexCacheHits is set (has been assigned a value) and false otherwise */
public boolean isSetIndexCacheHits() {
- return __isset_bit_vector.get(__INDEXCACHEHITS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __INDEXCACHEHITS_ISSET_ID);
}
public void setIndexCacheHitsIsSet(boolean value) {
- __isset_bit_vector.set(__INDEXCACHEHITS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INDEXCACHEHITS_ISSET_ID, value);
}
public long getIndexCacheRequest() {
@@ -481,16 +483,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetIndexCacheRequest() {
- __isset_bit_vector.clear(__INDEXCACHEREQUEST_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INDEXCACHEREQUEST_ISSET_ID);
}
/** Returns true if field indexCacheRequest is set (has been assigned a value) and false otherwise */
public boolean isSetIndexCacheRequest() {
- return __isset_bit_vector.get(__INDEXCACHEREQUEST_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __INDEXCACHEREQUEST_ISSET_ID);
}
public void setIndexCacheRequestIsSet(boolean value) {
- __isset_bit_vector.set(__INDEXCACHEREQUEST_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INDEXCACHEREQUEST_ISSET_ID, value);
}
public long getDataCacheHits() {
@@ -504,16 +506,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetDataCacheHits() {
- __isset_bit_vector.clear(__DATACACHEHITS_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DATACACHEHITS_ISSET_ID);
}
/** Returns true if field dataCacheHits is set (has been assigned a value) and false otherwise */
public boolean isSetDataCacheHits() {
- return __isset_bit_vector.get(__DATACACHEHITS_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __DATACACHEHITS_ISSET_ID);
}
public void setDataCacheHitsIsSet(boolean value) {
- __isset_bit_vector.set(__DATACACHEHITS_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DATACACHEHITS_ISSET_ID, value);
}
public long getDataCacheRequest() {
@@ -527,16 +529,16 @@ import org.slf4j.LoggerFactory;
}
public void unsetDataCacheRequest() {
- __isset_bit_vector.clear(__DATACACHEREQUEST_ISSET_ID);
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DATACACHEREQUEST_ISSET_ID);
}
/** Returns true if field dataCacheRequest is set (has been assigned a value) and false otherwise */
public boolean isSetDataCacheRequest() {
- return __isset_bit_vector.get(__DATACACHEREQUEST_ISSET_ID);
+ return EncodingUtils.testBit(__isset_bitfield, __DATACACHEREQUEST_ISSET_ID);
}
public void setDataCacheRequestIsSet(boolean value) {
- __isset_bit_vector.set(__DATACACHEREQUEST_ISSET_ID, value);
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DATACACHEREQUEST_ISSET_ID, value);
}
public int getLogSortsSize() {
@@ -1062,6 +1064,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@@ -1075,7 +1078,7 @@ import org.slf4j.LoggerFactory;
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bit_vector = new BitSet(1);
+ __isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletSplit.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletSplit.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletSplit.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/master/thrift/TabletSplit.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,6 +12,9 @@ import org.apache.thrift.scheme.Standard
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -373,6 +376,10 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
+ if (oldTablet != null) {
+ oldTablet.validate();
+ }
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/security/thrift/AuthInfo.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/security/thrift/AuthInfo.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/security/thrift/AuthInfo.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/security/thrift/AuthInfo.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -12,6 +12,9 @@ import org.apache.thrift.scheme.Standard
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
@@ -441,6 +444,7 @@ import org.slf4j.LoggerFactory;
public void validate() throws org.apache.thrift.TException {
// check for required fields
+ // check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
Modified: accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/security/thrift/SecurityErrorCode.java
URL: http://svn.apache.org/viewvc/accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/security/thrift/SecurityErrorCode.java?rev=1403360&r1=1403359&r2=1403360&view=diff
==============================================================================
--- accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/security/thrift/SecurityErrorCode.java (original)
+++ accumulo/branches/ACCUMULO-259/core/src/main/java/org/apache/accumulo/core/security/thrift/SecurityErrorCode.java Mon Oct 29 15:22:24 2012
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated