/** 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 COL: return isSetCol(); case ORDER: return isSetOrder(); } throw new IllegalStateException(); }
@Override public int compareTo(Order other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCol()).compareTo(other.isSetCol()); if (lastComparison != 0) { return lastComparison; } if (isSetCol()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, other.col); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOrder()).compareTo(other.isSetOrder()); if (lastComparison != 0) { return lastComparison; } if (isSetOrder()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, other.order); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Order struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCol()) { optionals.set(0); } if (struct.isSetOrder()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetCol()) { oprot.writeString(struct.col); } if (struct.isSetOrder()) { oprot.writeI32(struct.order); } }
/** 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 COL: return isSetCol(); case ORDER: return isSetOrder(); } 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 COL: return isSetCol(); case ORDER: return isSetOrder(); } 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 COL: return isSetCol(); case ORDER: return isSetOrder(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case COL: return isSetCol(); case ORDER: return isSetOrder(); } throw new IllegalStateException(); }
public int compareTo(Order other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; Order typedOther = (Order)other; lastComparison = Boolean.valueOf(isSetCol()).compareTo(typedOther.isSetCol()); if (lastComparison != 0) { return lastComparison; } if (isSetCol()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, typedOther.col); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder()); if (lastComparison != 0) { return lastComparison; } if (isSetOrder()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(Order other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; Order typedOther = (Order)other; lastComparison = Boolean.valueOf(isSetCol()).compareTo(typedOther.isSetCol()); if (lastComparison != 0) { return lastComparison; } if (isSetCol()) { lastComparison = TBaseHelper.compareTo(this.col, typedOther.col); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder()); if (lastComparison != 0) { return lastComparison; } if (isSetOrder()) { lastComparison = TBaseHelper.compareTo(this.order, typedOther.order); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(Order other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; Order typedOther = (Order)other; lastComparison = Boolean.valueOf(isSetCol()).compareTo(typedOther.isSetCol()); if (lastComparison != 0) { return lastComparison; } if (isSetCol()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, typedOther.col); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder()); if (lastComparison != 0) { return lastComparison; } if (isSetOrder()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(Order other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCol()).compareTo(other.isSetCol()); if (lastComparison != 0) { return lastComparison; } if (isSetCol()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, other.col); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOrder()).compareTo(other.isSetOrder()); if (lastComparison != 0) { return lastComparison; } if (isSetOrder()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, other.order); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Order struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCol()) { optionals.set(0); } if (struct.isSetOrder()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetCol()) { oprot.writeString(struct.col); } if (struct.isSetOrder()) { oprot.writeI32(struct.order); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Order struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCol()) { optionals.set(0); } if (struct.isSetOrder()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetCol()) { oprot.writeString(struct.col); } if (struct.isSetOrder()) { oprot.writeI32(struct.order); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Order struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCol()) { optionals.set(0); } if (struct.isSetOrder()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetCol()) { oprot.writeString(struct.col); } if (struct.isSetOrder()) { oprot.writeI32(struct.order); } }