@Internal public abstract class DecimalWriter<T> extends ArrowFieldWriter<T>
ArrowFieldWriter
for Decimal.Modifier and Type | Class and Description |
---|---|
static class |
DecimalWriter.DecimalWriterForArray
DecimalWriter for ArrayData input. |
static class |
DecimalWriter.DecimalWriterForRow
DecimalWriter for RowData input. |
Modifier and Type | Field and Description |
---|---|
protected int |
precision |
protected int |
scale |
Modifier and Type | Method and Description |
---|---|
void |
doWrite(T in,
int ordinal)
Sets the field value as the field at the specified ordinal of the specified row.
|
static DecimalWriter<ArrayData> |
forArray(org.apache.arrow.vector.DecimalVector decimalVector,
int precision,
int scale) |
static DecimalWriter<RowData> |
forRow(org.apache.arrow.vector.DecimalVector decimalVector,
int precision,
int scale) |
finish, getCount, getValueVector, reset, write
public static DecimalWriter<RowData> forRow(org.apache.arrow.vector.DecimalVector decimalVector, int precision, int scale)
public static DecimalWriter<ArrayData> forArray(org.apache.arrow.vector.DecimalVector decimalVector, int precision, int scale)
public void doWrite(T in, int ordinal)
ArrowFieldWriter
doWrite
in class ArrowFieldWriter<T>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.