sb.append(this.precision); first = false; if (isSetScale()) { if (!first) sb.append(", "); sb.append("scale:");
list.add(precision); boolean present_scale = true && (isSetScale()); list.add(present_scale); if (present_scale)
/** * {@inheritDoc} */ @Override public int getScale(int param) throws SQLException { ColumnDescriptor desc = getDescriptor(param); if (desc.isSetScale()) { return desc.getScale(); } else { switch (desc.getType()) { case BOOLEAN: case TINYINT: case SMALLINT: case INTEGER: case BIGINT: case DOUBLE: case FLOAT: case DATE: case TIME: return 0; case TIMESTAMP: return 6; default: return snappydataConstants.COLUMN_SCALE_UNKNOWN; } } }
/** * {@inheritDoc} */ @Override public int getScale(int column) throws SQLException { ColumnDescriptor desc = getDescriptor(column); if (desc.isSetScale()) { return desc.getScale(); } else { switch (desc.getType()) { case BOOLEAN: case TINYINT: case SMALLINT: case INTEGER: case BIGINT: case DOUBLE: case FLOAT: case DATE: case TIME: return 0; case TIMESTAMP: return 6; default: return snappydataConstants.COLUMN_SCALE_UNKNOWN; } } }
oprot.writeI16(struct.precision); oprot.writeFieldEnd(); if (struct.isSetScale()) { oprot.writeFieldBegin(SCALE_FIELD_DESC); oprot.writeI16(struct.scale);
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) {
oprot.writeI16(struct.precision); BitSet optionals = new BitSet(); if (struct.isSetScale()) { optionals.set(0); if (struct.isSetScale()) { oprot.writeI16(struct.scale);
return isSetPrecision(); case SCALE: return isSetScale(); case NAME: return isSetName();
boolean this_present_scale = true && this.isSetScale(); boolean that_present_scale = true && that.isSetScale(); if (this_present_scale || that_present_scale) { if (!(this_present_scale && that_present_scale))