@Override public int compareTo(TMutation other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public boolean equals(TMutation other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }
@Override public int hashCode() { java.util.List<java.lang.Object> list = new java.util.ArrayList<java.lang.Object>(); list.add(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { list.add(setField.getThriftFieldId()); java.lang.Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { list.add(value); } } return list.hashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
public TPut getPut() { if (getSetField() == _Fields.PUT) { return (TPut)getFieldValue(); } else { throw new java.lang.RuntimeException("Cannot get field 'put' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public TDelete getDeleteSingle() { if (getSetField() == _Fields.DELETE_SINGLE) { return (TDelete)getFieldValue(); } else { throw new java.lang.RuntimeException("Cannot get field 'deleteSingle' because union is currently set to " + getFieldDesc(getSetField()).name); } }
@Override public int compareTo(TMutation other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
@Override public int compareTo(TMutation other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public boolean equals(TMutation other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }
public boolean equals(TMutation other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); list.add(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { list.add(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { list.add(value); } } return list.hashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); list.add(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { list.add(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { list.add(value); } } return list.hashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
public TDelete getDeleteSingle() { if (getSetField() == _Fields.DELETE_SINGLE) { return (TDelete)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'deleteSingle' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public TDelete getDeleteSingle() { if (getSetField() == _Fields.DELETE_SINGLE) { return (TDelete)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'deleteSingle' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public TPut getPut() { if (getSetField() == _Fields.PUT) { return (TPut)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'put' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public TPut getPut() { if (getSetField() == _Fields.PUT) { return (TPut)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'put' because union is currently set to " + getFieldDesc(getSetField()).name); } }
@Override public int compareTo(TMutation other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
@Override public int compareTo(TMutation other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public TDelete getDeleteSingle() { if (getSetField() == _Fields.DELETE_SINGLE) { return (TDelete)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'deleteSingle' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public TPut getPut() { if (getSetField() == _Fields.PUT) { return (TPut)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'put' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public TDelete getDeleteSingle() { if (getSetField() == _Fields.DELETE_SINGLE) { return (TDelete)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'deleteSingle' because union is currently set to " + getFieldDesc(getSetField()).name); } }