} else if (t instanceof DecimalType) { DecimalType dt = (DecimalType) t; Decimal d = Decimal.apply((BigDecimal) o, dt.precision(), dt.scale()); if (dt.precision() <= Decimal.MAX_INT_DIGITS()) { dst.appendInt((int) d.toUnscaledLong());
@Override public void update(int ordinal, Object value) { if (value == null) { setNullAt(ordinal); } else { DataType dt = columns[ordinal].dataType(); if (dt instanceof BooleanType) { setBoolean(ordinal, (boolean) value); } else if (dt instanceof IntegerType) { setInt(ordinal, (int) value); } else if (dt instanceof ShortType) { setShort(ordinal, (short) value); } else if (dt instanceof LongType) { setLong(ordinal, (long) value); } else if (dt instanceof FloatType) { setFloat(ordinal, (float) value); } else if (dt instanceof DoubleType) { setDouble(ordinal, (double) value); } else if (dt instanceof DecimalType) { DecimalType t = (DecimalType) dt; setDecimal(ordinal, Decimal.apply((BigDecimal) value, t.precision(), t.scale()), t.precision()); } else { throw new UnsupportedOperationException("Datatype not supported " + dt); } } }
@Override public void update(int ordinal, Object value) { if (value == null) { setNullAt(ordinal); } else { DataType dt = columns[ordinal].dataType(); if (dt instanceof BooleanType) { setBoolean(ordinal, (boolean) value); } else if (dt instanceof IntegerType) { setInt(ordinal, (int) value); } else if (dt instanceof ShortType) { setShort(ordinal, (short) value); } else if (dt instanceof LongType) { setLong(ordinal, (long) value); } else if (dt instanceof FloatType) { setFloat(ordinal, (float) value); } else if (dt instanceof DoubleType) { setDouble(ordinal, (double) value); } else if (dt instanceof DecimalType) { DecimalType t = (DecimalType) dt; Decimal d = Decimal.apply((BigDecimal) value, t.precision(), t.scale()); setDecimal(ordinal, d, t.precision()); } else { throw new UnsupportedOperationException("Datatype not supported " + dt); } } }
@Override public void update(int ordinal, Object value) { if (value == null) { setNullAt(ordinal); } else { DataType dt = columns[ordinal].dataType(); if (dt instanceof BooleanType) { setBoolean(ordinal, (boolean) value); } else if (dt instanceof IntegerType) { setInt(ordinal, (int) value); } else if (dt instanceof ShortType) { setShort(ordinal, (short) value); } else if (dt instanceof LongType) { setLong(ordinal, (long) value); } else if (dt instanceof FloatType) { setFloat(ordinal, (float) value); } else if (dt instanceof DoubleType) { setDouble(ordinal, (double) value); } else if (dt instanceof DecimalType) { DecimalType t = (DecimalType) dt; Decimal d = Decimal.apply((BigDecimal) value, t.precision(), t.scale()); setDecimal(ordinal, d, t.precision()); } else { throw new UnsupportedOperationException("Datatype not supported " + dt); } } }
} else if (dataType instanceof DecimalType) { DecimalType t = (DecimalType) dataType; return getDecimal(ordinal, t.precision(), t.scale()); } else if (dataType instanceof DateType) { return getInt(ordinal);
} else if (t instanceof DecimalType) { DecimalType dt = (DecimalType) t; Decimal d = Decimal.apply((BigDecimal) o, dt.precision(), dt.scale()); if (dt.precision() <= Decimal.MAX_INT_DIGITS()) { dst.appendInt((int) d.toUnscaledLong());
} else if (dataType instanceof DecimalType) { DecimalType t = (DecimalType) dataType; return getDecimal(ordinal, t.precision(), t.scale()); } else if (dataType instanceof DateType) { return getInt(ordinal);
} else if (t instanceof DecimalType) { DecimalType dt = (DecimalType) t; Decimal d = Decimal.apply((BigDecimal) o, dt.precision(), dt.scale()); if (dt.precision() <= Decimal.MAX_INT_DIGITS()) { dst.appendInt((int) d.toUnscaledLong());
} else if (dataType instanceof DecimalType) { DecimalType t = (DecimalType) dataType; return getDecimal(ordinal, t.precision(), t.scale()); } else if (dataType instanceof DateType) { return getInt(ordinal);
} else if (dataType instanceof DecimalType) { DecimalType t = (DecimalType) dataType; return getDecimal(ordinal, t.precision(), t.scale()); } else if (dataType instanceof DateType) { return getInt(ordinal);
} else if (dataType instanceof DecimalType) { DecimalType t = (DecimalType) dataType; return getDecimal(ordinal, t.precision(), t.scale()); } else if (dataType instanceof DateType) { return getInt(ordinal);
} else if (dataType instanceof DecimalType) { DecimalType t = (DecimalType) dataType; return getDecimal(ordinal, t.precision(), t.scale()); } else if (dataType instanceof DateType) { return getInt(ordinal);
batchSize, decimalType.precision(), decimalType.scale(), ((DecimalColumnVector)fromColumn).vector[0]); } else {
batchSize, decimalType.precision(), decimalType.scale(), ((DecimalColumnVector)fromColumn).vector[0]); } else {
} else if (dt instanceof DecimalType) { DecimalType t = (DecimalType)dt; row.setDecimal(i, getDecimal(i, t.precision(), t.scale()), t.precision()); } else if (dt instanceof DateType) { row.setInt(i, getInt(i));
} else if (dt instanceof DecimalType) { DecimalType t = (DecimalType)dt; row.setDecimal(i, getDecimal(i, t.precision(), t.scale()), t.precision()); } else if (dt instanceof DateType) { row.setInt(i, getInt(i));
} else if (dt instanceof DecimalType) { DecimalType t = (DecimalType)dt; row.setDecimal(i, getDecimal(i, t.precision(), t.scale()), t.precision()); } else if (dt instanceof DateType) { row.setInt(i, getInt(i));
} else if (dt instanceof DecimalType) { DecimalType t = (DecimalType)dt; row.setDecimal(i, getDecimal(i, t.precision(), t.scale()), t.precision()); } else if (dt instanceof DateType) { row.setInt(i, getInt(i));
} else if (dt instanceof DecimalType) { DecimalType t = (DecimalType)dt; row.setDecimal(i, getDecimal(i, t.precision(), t.scale()), t.precision()); } else if (dt instanceof DateType) { row.setInt(i, getInt(i));
Decimal d = row.getDecimal(fieldIdx, dt.precision(), dt.scale()); if (dt.precision() <= Decimal.MAX_INT_DIGITS()) { col.putInts(0, capacity, (int)d.toUnscaledLong());