/** 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 SCALE: return isSetScale(); case PRECISION: return isSetPrecision(); } 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 java.lang.IllegalArgumentException(); } switch (field) { case SCALE: return isSetScale(); case PRECISION: return isSetPrecision(); } throw new java.lang.IllegalStateException(); }
@Override public int compareTo(DecimalType other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetScale()).compareTo(other.isSetScale()); if (lastComparison != 0) { return lastComparison; } if (isSetScale()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scale, other.scale); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPrecision()).compareTo(other.isSetPrecision()); if (lastComparison != 0) { return lastComparison; } if (isSetPrecision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.precision, other.precision); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(DecimalType other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetScale()).compareTo(other.isSetScale()); if (lastComparison != 0) { return lastComparison; } if (isSetScale()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scale, other.scale); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(isSetPrecision()).compareTo(other.isSetPrecision()); if (lastComparison != 0) { return lastComparison; } if (isSetPrecision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.precision, other.precision); if (lastComparison != 0) { return lastComparison; } } return 0; }
if (!struct.isSetScale()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'scale' was not found in serialized data! Struct: " + toString());
if (!struct.isSetScale()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'scale' was not found in serialized data! Struct: " + toString());