public class IntToFixedConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DataConversionContext |
context |
| Constructor and Description |
|---|
IntToFixedConverter(org.apache.arrow.vector.ValueVector fieldVector,
DataConversionContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNull(int index)
Determine whether source value in arrow vector is null value or not
|
BigDecimal |
toBigDecimal(int index)
Convert value in arrow vector to BigDecimal
|
boolean |
toBoolean(int rowIndex)
Convert value in arrow vector to boolean data
|
byte |
toByte(int index)
Convert value in arrow vector to byte data
|
byte[] |
toBytes(int index)
Convert value in arrow vector to byte array
|
Date |
toDate(int index)
Convert value in arrow vector to Date
|
double |
toDouble(int rowIndex)
Convert value in arrow vector to double data
|
float |
toFloat(int rowIndex)
Convert value in arrow vector to float data
|
int |
toInt(int index)
Convert value in arrow vector to int data
|
long |
toLong(int index)
Convert value in arrow vector to long data
|
Object |
toObject(int index)
Convert value in arrow vector to Object
|
short |
toShort(int index)
Convert value in arrow vector to short data
|
String |
toString(int index)
Convert value in arrow vector to string
|
Time |
toTime(int index)
Convert value in arrow vector to Time
|
Timestamp |
toTimestamp(int index,
TimeZone tz)
Convert value in arrow vector to Timestamp
|
protected DataConversionContext context
public IntToFixedConverter(org.apache.arrow.vector.ValueVector fieldVector,
DataConversionContext context)
public byte toByte(int index)
throws SFException
ArrowVectorConvertertoByte in interface ArrowVectorConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic short toShort(int index)
throws SFException
ArrowVectorConvertertoShort in interface ArrowVectorConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic int toInt(int index)
throws SFException
ArrowVectorConvertertoInt in interface ArrowVectorConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic long toLong(int index)
throws SFException
ArrowVectorConvertertoLong in interface ArrowVectorConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic BigDecimal toBigDecimal(int index)
ArrowVectorConvertertoBigDecimal in interface ArrowVectorConverterindex - index of the value to be converted in the vectorpublic Object toObject(int index) throws SFException
ArrowVectorConvertertoObject in interface ArrowVectorConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic String toString(int index)
ArrowVectorConvertertoString in interface ArrowVectorConverterindex - index of the value to be converted in the vectorpublic boolean toBoolean(int rowIndex)
throws SFException
ArrowVectorConvertertoBoolean in interface ArrowVectorConverterrowIndex - index of the value to be converted in the vectorSFException - invalid data conversionpublic double toDouble(int rowIndex)
throws SFException
ArrowVectorConvertertoDouble in interface ArrowVectorConverterrowIndex - index of the value to be converted in the vectorSFException - invalid data conversionpublic float toFloat(int rowIndex)
throws SFException
ArrowVectorConvertertoFloat in interface ArrowVectorConverterrowIndex - index of the value to be converted in the vectorSFException - invalid data conversionpublic byte[] toBytes(int index)
throws SFException
ArrowVectorConvertertoBytes in interface ArrowVectorConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic Date toDate(int index) throws SFException
ArrowVectorConvertertoDate in interface ArrowVectorConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic Time toTime(int index) throws SFException
ArrowVectorConvertertoTime in interface ArrowVectorConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic Timestamp toTimestamp(int index, TimeZone tz) throws SFException
ArrowVectorConvertertoTimestamp in interface ArrowVectorConverterindex - index of the value to be converted in the vectortz - time zoneSFException - invalid data conversionpublic boolean isNull(int index)
ArrowVectorConverterisNull in interface ArrowVectorConverterindex - index of value to be checkedCopyright © 2019. All rights reserved.