public TMutation deepCopy() { return new TMutation(this); }
public static TMutation put(TPut value) { TMutation x = new TMutation(); x.setPut(value); return x; }
public static TMutation deleteSingle(TDelete value) { TMutation x = new TMutation(); x.setDeleteSingle(value); return x; }
/** * Performs a deep copy on <i>other</i>. */ public TRowMutations(TRowMutations other) { if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetMutations()) { java.util.List<TMutation> __this__mutations = new java.util.ArrayList<TMutation>(other.mutations.size()); for (TMutation other_element : other.mutations) { __this__mutations.add(new TMutation(other_element)); } this.mutations = __this__mutations; } }
for (int _i136 = 0; _i136 < _list134.size; ++_i136) _elem135 = new TMutation(); _elem135.read(iprot); struct.mutations.add(_elem135);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TRowMutations struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); { org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.mutations = new java.util.ArrayList<TMutation>(_list139.size); @org.apache.thrift.annotation.Nullable TMutation _elem140; for (int _i141 = 0; _i141 < _list139.size; ++_i141) { _elem140 = new TMutation(); _elem140.read(iprot); struct.mutations.add(_elem140); } } struct.setMutationsIsSet(true); } }
public static TRowMutations rowMutationsFromHBase(RowMutations in) { TRowMutations tRowMutations = new TRowMutations(); tRowMutations.setRow(in.getRow()); for (Mutation mutation : in.getMutations()) { TMutation tMutation = new TMutation(); if (mutation instanceof Put) { tMutation.setPut(ThriftUtilities.putFromHBase((Put)mutation)); } else if (mutation instanceof Delete) { tMutation.setDeleteSingle(ThriftUtilities.deleteFromHBase((Delete)mutation)); } else { throw new IllegalArgumentException( "Only Put and Delete is supported in mutateRow, but muation=" + mutation); } tRowMutations.addToMutations(tMutation); } return tRowMutations; }
public TMutation deepCopy() { return new TMutation(this); }
public TMutation deepCopy() { return new TMutation(this); }
public static TMutation put(TPut value) { TMutation x = new TMutation(); x.setPut(value); return x; }
public static TMutation put(TPut value) { TMutation x = new TMutation(); x.setPut(value); return x; }
public static TMutation deleteSingle(TDelete value) { TMutation x = new TMutation(); x.setDeleteSingle(value); return x; }
public static TMutation deleteSingle(TDelete value) { TMutation x = new TMutation(); x.setDeleteSingle(value); return x; }
/** * Performs a deep copy on <i>other</i>. */ public TRowMutations(TRowMutations other) { if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetMutations()) { List<TMutation> __this__mutations = new ArrayList<TMutation>(other.mutations.size()); for (TMutation other_element : other.mutations) { __this__mutations.add(new TMutation(other_element)); } this.mutations = __this__mutations; } }
/** * Performs a deep copy on <i>other</i>. */ public TRowMutations(TRowMutations other) { if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetMutations()) { List<TMutation> __this__mutations = new ArrayList<TMutation>(other.mutations.size()); for (TMutation other_element : other.mutations) { __this__mutations.add(new TMutation(other_element)); } this.mutations = __this__mutations; } }
for (int _i126 = 0; _i126 < _list124.size; ++_i126) _elem125 = new TMutation(); _elem125.read(iprot); struct.mutations.add(_elem125);
for (int _i126 = 0; _i126 < _list124.size; ++_i126) _elem125 = new TMutation(); _elem125.read(iprot); struct.mutations.add(_elem125);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TRowMutations struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); { org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.mutations = new ArrayList<TMutation>(_list129.size); TMutation _elem130; for (int _i131 = 0; _i131 < _list129.size; ++_i131) { _elem130 = new TMutation(); _elem130.read(iprot); struct.mutations.add(_elem130); } } struct.setMutationsIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TRowMutations struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); { org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.mutations = new ArrayList<TMutation>(_list129.size); TMutation _elem130; for (int _i131 = 0; _i131 < _list129.size; ++_i131) { _elem130 = new TMutation(); _elem130.read(iprot); struct.mutations.add(_elem130); } } struct.setMutationsIsSet(true); } }
public static TMutation deleteSingle(TDelete value) { TMutation x = new TMutation(); x.setDeleteSingle(value); return x; }