/** 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 COLUMN_NAME: return isSetColumnName(); case CELL: return isSetCell(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetColumnName()) ? 131071 : 524287); if (isSetColumnName()) hashCode = hashCode * 8191 + columnName.hashCode(); hashCode = hashCode * 8191 + ((isSetCell()) ? 131071 : 524287); if (isSetCell()) hashCode = hashCode * 8191 + cell.hashCode(); return hashCode; }
@Override public int compareTo(TColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(isSetCell()).compareTo(other.isSetCell()); if (lastComparison != 0) { return lastComparison; } if (isSetCell()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cell, other.cell); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(TColumn that) { if (that == null) return false; if (this == that) return true; boolean this_present_columnName = true && this.isSetColumnName(); boolean that_present_columnName = true && that.isSetColumnName(); if (this_present_columnName || that_present_columnName) { if (!(this_present_columnName && that_present_columnName)) return false; if (!this.columnName.equals(that.columnName)) return false; } boolean this_present_cell = true && this.isSetCell(); boolean that_present_cell = true && that.isSetCell(); if (this_present_cell || that_present_cell) { if (!(this_present_cell && that_present_cell)) return false; if (!this.cell.equals(that.cell)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumn 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.isSetColumnName()) { optionals.set(0); } if (struct.isSetCell()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetColumnName()) { oprot.writeBinary(struct.columnName); } if (struct.isSetCell()) { struct.cell.write(oprot); } }
/** * Performs a deep copy on <i>other</i>. */ public TColumn(TColumn other) { if (other.isSetColumnName()) { this.columnName = org.apache.thrift.TBaseHelper.copyBinary(other.columnName); } if (other.isSetCell()) { this.cell = new TCell(other.cell); } }
/** 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 COLUMN_NAME: return isSetColumnName(); case CELL: return isSetCell(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_columnName = true && (isSetColumnName()); list.add(present_columnName); if (present_columnName) list.add(columnName); boolean present_cell = true && (isSetCell()); list.add(present_cell); if (present_cell) list.add(cell); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_columnName = true && (isSetColumnName()); list.add(present_columnName); if (present_columnName) list.add(columnName); boolean present_cell = true && (isSetCell()); list.add(present_cell); if (present_cell) list.add(cell); return list.hashCode(); }
/** 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 COLUMN_NAME: return isSetColumnName(); case CELL: return isSetCell(); } throw new IllegalStateException(); }
@Override public int compareTo(TColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCell()).compareTo(other.isSetCell()); if (lastComparison != 0) { return lastComparison; } if (isSetCell()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cell, other.cell); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(TColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCell()).compareTo(other.isSetCell()); if (lastComparison != 0) { return lastComparison; } if (isSetCell()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cell, other.cell); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public TColumn(TColumn other) { if (other.isSetColumnName()) { this.columnName = other.columnName; } if (other.isSetCell()) { this.cell = new TCell(other.cell); } }
public boolean equals(TColumn that) { if (that == null) return false; boolean this_present_columnName = true && this.isSetColumnName(); boolean that_present_columnName = true && that.isSetColumnName(); if (this_present_columnName || that_present_columnName) { if (!(this_present_columnName && that_present_columnName)) return false; if (!this.columnName.equals(that.columnName)) return false; } boolean this_present_cell = true && this.isSetCell(); boolean that_present_cell = true && that.isSetCell(); if (this_present_cell || that_present_cell) { if (!(this_present_cell && that_present_cell)) return false; if (!this.cell.equals(that.cell)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public TColumn(TColumn other) { if (other.isSetColumnName()) { this.columnName = other.columnName; } if (other.isSetCell()) { this.cell = new TCell(other.cell); } }
public boolean equals(TColumn that) { if (that == null) return false; boolean this_present_columnName = true && this.isSetColumnName(); boolean that_present_columnName = true && that.isSetColumnName(); if (this_present_columnName || that_present_columnName) { if (!(this_present_columnName && that_present_columnName)) return false; if (!this.columnName.equals(that.columnName)) return false; } boolean this_present_cell = true && this.isSetCell(); boolean that_present_cell = true && that.isSetCell(); if (this_present_cell || that_present_cell) { if (!(this_present_cell && that_present_cell)) return false; if (!this.cell.equals(that.cell)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetColumnName()) { optionals.set(0); } if (struct.isSetCell()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetColumnName()) { oprot.writeBinary(struct.columnName); } if (struct.isSetCell()) { struct.cell.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetColumnName()) { optionals.set(0); } if (struct.isSetCell()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetColumnName()) { oprot.writeBinary(struct.columnName); } if (struct.isSetCell()) { struct.cell.write(oprot); } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_columnName = true && (isSetColumnName()); list.add(present_columnName); if (present_columnName) list.add(columnName); boolean present_cell = true && (isSetCell()); list.add(present_cell); if (present_cell) list.add(cell); return list.hashCode(); }
/** 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 COLUMN_NAME: return isSetColumnName(); case CELL: return isSetCell(); } throw new IllegalStateException(); }