public TResult deepCopy() { return new TResult(this); }
public TResult deepCopy() { return new TResult(this); }
public TResult deepCopy() { return new TResult(this); }
TResult out = new TResult(); byte[] row = in.getRow(); if (row != null) {
/** * Performs a deep copy on <i>other</i>. */ public getScannerResults_result(getScannerResults_result other) { if (other.isSetSuccess()) { List<TResult> __this__success = new ArrayList<TResult>(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public getMultiple_result(getMultiple_result other) { if (other.isSetSuccess()) { List<TResult> __this__success = new ArrayList<TResult>(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public getScannerResults_result(getScannerResults_result other) { if (other.isSetSuccess()) { List<TResult> __this__success = new ArrayList<TResult>(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public getMultiple_result(getMultiple_result other) { if (other.isSetSuccess()) { List<TResult> __this__success = new ArrayList<TResult>(other.success.size()); for (TResult other_element : other.success) { __this__success.add(new TResult(other_element)); } this.success = __this__success; } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public increment_result(increment_result other) { if (other.isSetSuccess()) { this.success = new TResult(other.success); } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
@Test public void testConsistency() throws Exception { byte[] rowName = Bytes.toBytes("testConsistency"); TGet tGet = new TGet(wrap(rowName)); tGet.setConsistency(TConsistency.STRONG); Get get = getFromThrift(tGet); assertEquals(Consistency.STRONG, get.getConsistency()); tGet.setConsistency(TConsistency.TIMELINE); tGet.setTargetReplicaId(1); get = getFromThrift(tGet); assertEquals(Consistency.TIMELINE, get.getConsistency()); assertEquals(1, get.getReplicaId()); TScan tScan = new TScan(); tScan.setConsistency(TConsistency.STRONG); Scan scan = scanFromThrift(tScan); assertEquals(Consistency.STRONG, scan.getConsistency()); tScan.setConsistency(TConsistency.TIMELINE); tScan.setTargetReplicaId(1); scan = scanFromThrift(tScan); assertEquals(Consistency.TIMELINE, scan.getConsistency()); assertEquals(1, scan.getReplicaId()); TResult tResult = new TResult(); assertFalse(tResult.isSetStale()); tResult.setStale(true); assertTrue(tResult.isSetStale()); }
/** * Performs a deep copy on <i>other</i>. */ public append_result(append_result other) { if (other.isSetSuccess()) { this.success = new TResult(other.success); } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public get_result(get_result other) { if (other.isSetSuccess()) { this.success = new TResult(other.success); } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public increment_result(increment_result other) { if (other.isSetSuccess()) { this.success = new TResult(other.success); } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public get_result(get_result other) { if (other.isSetSuccess()) { this.success = new TResult(other.success); } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
/** * Performs a deep copy on <i>other</i>. */ public append_result(append_result other) { if (other.isSetSuccess()) { this.success = new TResult(other.success); } if (other.isSetIo()) { this.io = new TIOError(other.io); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.io = new TIOError(); struct.io.read(iprot); struct.setIoIsSet(true); } } }