/** * Performs a deep copy on <i>other</i>. */ public TCellVisibility(TCellVisibility other) { if (other.isSetExpression()) { this.expression = other.expression; } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetExpression()) ? 131071 : 524287); if (isSetExpression()) hashCode = hashCode * 8191 + expression.hashCode(); return hashCode; }
public boolean equals(TCellVisibility that) { if (that == null) return false; if (this == that) return true; boolean this_present_expression = true && this.isSetExpression(); boolean that_present_expression = true && that.isSetExpression(); if (this_present_expression || that_present_expression) { if (!(this_present_expression && that_present_expression)) return false; if (!this.expression.equals(that.expression)) return false; } return true; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case EXPRESSION: return isSetExpression(); } throw new java.lang.IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TCellVisibility struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetExpression()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetExpression()) { oprot.writeString(struct.expression); } }
@Override public int compareTo(TCellVisibility other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetExpression()).compareTo(other.isSetExpression()); if (lastComparison != 0) { return lastComparison; } if (isSetExpression()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expression, other.expression); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("TCellVisibility("); boolean first = true; if (isSetExpression()) { sb.append("expression:"); if (this.expression == null) { sb.append("null"); } else { sb.append(this.expression); } first = false; } sb.append(")"); return sb.toString(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TCellVisibility struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.expression != null) { if (struct.isSetExpression()) { oprot.writeFieldBegin(EXPRESSION_FIELD_DESC); oprot.writeString(struct.expression); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** * Performs a deep copy on <i>other</i>. */ public TCellVisibility(TCellVisibility other) { if (other.isSetExpression()) { this.expression = other.expression; } }
/** * Performs a deep copy on <i>other</i>. */ public TCellVisibility(TCellVisibility other) { if (other.isSetExpression()) { this.expression = other.expression; } }
public boolean equals(TCellVisibility that) { if (that == null) return false; boolean this_present_expression = true && this.isSetExpression(); boolean that_present_expression = true && that.isSetExpression(); if (this_present_expression || that_present_expression) { if (!(this_present_expression && that_present_expression)) return false; if (!this.expression.equals(that.expression)) return false; } return true; }
public boolean equals(TCellVisibility that) { if (that == null) return false; boolean this_present_expression = true && this.isSetExpression(); boolean that_present_expression = true && that.isSetExpression(); if (this_present_expression || that_present_expression) { if (!(this_present_expression && that_present_expression)) return false; if (!this.expression.equals(that.expression)) return false; } return true; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EXPRESSION: return isSetExpression(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EXPRESSION: return isSetExpression(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_expression = true && (isSetExpression()); list.add(present_expression); if (present_expression) list.add(expression); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_expression = true && (isSetExpression()); list.add(present_expression); if (present_expression) list.add(expression); return list.hashCode(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TCellVisibility struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetExpression()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetExpression()) { oprot.writeString(struct.expression); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TCellVisibility struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetExpression()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetExpression()) { oprot.writeString(struct.expression); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TCellVisibility struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.expression != null) { if (struct.isSetExpression()) { oprot.writeFieldBegin(EXPRESSION_FIELD_DESC); oprot.writeString(struct.expression); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TCellVisibility struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.expression != null) { if (struct.isSetExpression()) { oprot.writeFieldBegin(EXPRESSION_FIELD_DESC); oprot.writeString(struct.expression); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }