public abstract class DecimalConsumer extends BaseConsumer<DecimalVector>
ResultSet
.
Write the data to DecimalVector
.columnIndexInResultSet, currentIndex, vector
Constructor and Description |
---|
DecimalConsumer(DecimalVector vector,
int index)
Constructs a new consumer.
|
DecimalConsumer(DecimalVector vector,
int index,
RoundingMode bigDecimalRoundingMode)
Constructs a new consumer, with optional coercibility.
|
Modifier and Type | Method and Description |
---|---|
static JdbcConsumer<DecimalVector> |
createConsumer(DecimalVector vector,
int index,
boolean nullable,
RoundingMode bigDecimalRoundingMode)
Creates a consumer for
DecimalVector . |
protected void |
set(BigDecimal value) |
close, resetValueVector
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consume
public DecimalConsumer(DecimalVector vector, int index)
vector
- the underlying vector for the consumer.index
- the column id for the consumer.public DecimalConsumer(DecimalVector vector, int index, RoundingMode bigDecimalRoundingMode)
vector
- the underlying vector for the consumer.index
- the column index for the consumer.bigDecimalRoundingMode
- java.math.RoundingMode to be applied if the BigDecimal scale does not match that
of the target vector. Set to null to retain strict matching behavior (scale of
source and target vector must match exactly).public static JdbcConsumer<DecimalVector> createConsumer(DecimalVector vector, int index, boolean nullable, RoundingMode bigDecimalRoundingMode)
DecimalVector
.protected void set(BigDecimal value)
Copyright © 2023 The Apache Software Foundation. All rights reserved.