@HiveDecimalWritableVersionV2 public boolean mutateEnforcePrecisionScale(int precision, int scale) { if (!isSet) { return false; } isSet = fastEnforcePrecisionScale(precision, scale); if (!isSet) { fastReset(); } return isSet; }
/** * Set the writable's current value to a HiveDecimal's value with a specified precision / scale * enforced. * <p> * Afterwards, the isSet() method will return true, unless value is null or value didn't fit within * maxPrecision / maxScale. * */ @HiveDecimalWritableVersionV1 public void set(HiveDecimal value, int maxPrecision, int maxScale) { set(value); if (isSet) { isSet = fastEnforcePrecisionScale(maxPrecision, maxScale); if (!isSet) { fastReset(); } } }
/** * Set the writable's current value to a writable's value with a specified precision / scale * enforced. * <p> * The isSet() method will return true, unless value is null or value didn't fit within * maxPrecision / maxScale. * */ @HiveDecimalWritableVersionV2 public void set(HiveDecimalWritable writable, int maxPrecision, int maxScale) { set(writable); if (isSet) { isSet = fastEnforcePrecisionScale(maxPrecision, maxScale); if (!isSet) { fastReset(); } } }
@HiveDecimalWritableVersionV2 public boolean mutateEnforcePrecisionScale(int precision, int scale) { if (!isSet) { return false; } isSet = fastEnforcePrecisionScale(precision, scale); if (!isSet) { fastReset(); } return isSet; }
/** * Set the writable's current value to a HiveDecimal's value with a specified precision / scale * enforced. * <p> * Afterwards, the isSet() method will return true, unless value is null or value didn't fit within * maxPrecision / maxScale. * */ @HiveDecimalWritableVersionV1 public void set(HiveDecimal value, int maxPrecision, int maxScale) { set(value); if (isSet) { isSet = fastEnforcePrecisionScale(maxPrecision, maxScale); if (!isSet) { fastReset(); } } }
/** * Set the writable's current value to a writable's value with a specified precision / scale * enforced. * <p> * The isSet() method will return true, unless value is null or value didn't fit within * maxPrecision / maxScale. * */ @HiveDecimalWritableVersionV2 public void set(HiveDecimalWritable writable, int maxPrecision, int maxScale) { set(writable); if (isSet) { isSet = fastEnforcePrecisionScale(maxPrecision, maxScale); if (!isSet) { fastReset(); } } }