public Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); case ROW_MUTATIONS: return getRowMutations(); } throw new IllegalStateException(); }
@Override public int compareTo(mutateRow_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRowMutations()).compareTo(other.isSetRowMutations()); if (lastComparison != 0) { return lastComparison; } if (isSetRowMutations()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowMutations, other.rowMutations); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.table = iprot.readBinary(); struct.setTableIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.trowMutations = new TRowMutations(); struct.trowMutations.read(iprot); struct.setTrowMutationsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.table = iprot.readBinary(); struct.setTableIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.trowMutations = new TRowMutations(); struct.trowMutations.read(iprot); struct.setTrowMutationsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public int compareTo(mutateRow_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTrowMutations()).compareTo(other.isSetTrowMutations()); if (lastComparison != 0) { return lastComparison; } if (isSetTrowMutations()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trowMutations, other.trowMutations); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(mutateRow_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTrowMutations()).compareTo(other.isSetTrowMutations()); if (lastComparison != 0) { return lastComparison; } if (isSetTrowMutations()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trowMutations, other.trowMutations); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(mutateRow_args that) { if (that == null) return false; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); if (this_present_table || that_present_table) { if (!(this_present_table && that_present_table)) return false; if (!this.table.equals(that.table)) return false; } boolean this_present_trowMutations = true && this.isSetTrowMutations(); boolean that_present_trowMutations = true && that.isSetTrowMutations(); if (this_present_trowMutations || that_present_trowMutations) { if (!(this_present_trowMutations && that_present_trowMutations)) return false; if (!this.trowMutations.equals(that.trowMutations)) return false; } return true; }
public boolean equals(mutateRow_args that) { if (that == null) return false; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); if (this_present_table || that_present_table) { if (!(this_present_table && that_present_table)) return false; if (!this.table.equals(that.table)) return false; } boolean this_present_trowMutations = true && this.isSetTrowMutations(); boolean that_present_trowMutations = true && that.isSetTrowMutations(); if (this_present_trowMutations || that_present_trowMutations) { if (!(this_present_trowMutations && that_present_trowMutations)) return false; if (!this.trowMutations.equals(that.trowMutations)) return false; } return true; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TROW_MUTATIONS: if (value == null) { unsetTrowMutations(); } else { setTrowMutations((TRowMutations)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TROW_MUTATIONS: if (value == null) { unsetTrowMutations(); } else { setTrowMutations((TRowMutations)value); } break; } }
public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.table != null) { oprot.writeFieldBegin(TABLE_FIELD_DESC); oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } if (struct.trowMutations != null) { oprot.writeFieldBegin(TROW_MUTATIONS_FIELD_DESC); struct.trowMutations.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public mutateRow_args getEmptyArgsInstance() { return new mutateRow_args(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.table != null) { oprot.writeFieldBegin(TABLE_FIELD_DESC); oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } if (struct.trowMutations != null) { oprot.writeFieldBegin(TROW_MUTATIONS_FIELD_DESC); struct.trowMutations.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public mutateRow_args deepCopy() { return new mutateRow_args(this); }
public mutateRow_args getEmptyArgsInstance() { return new mutateRow_args(); }
public mutateRow_args deepCopy() { return new mutateRow_args(this); }
public mutateRow_args getEmptyArgsInstance() { return new mutateRow_args(); }
public mutateRow_args getEmptyArgsInstance() { return new mutateRow_args(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (table == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'table' was not present! Struct: " + toString()); } if (trowMutations == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'trowMutations' was not present! Struct: " + toString()); } // check for sub-struct validity if (trowMutations != null) { trowMutations.validate(); } }