public class IntToScaledFixedConverter extends IntToFixedConverter
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractArrowVectorConverter.TimestampOperationNotAvailableException
Thrown when a Snowflake timestamp cannot be manipulated in Java due to
size limitations.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
columnIndex |
protected DataConversionContext |
context |
static String |
FIELD_NAME_EPOCH
Field names of the struct vectors used by timestamp
|
static String |
FIELD_NAME_FRACTION |
static String |
FIELD_NAME_TIME_ZONE_INDEX |
protected String |
logicalTypeStr
snowflake logical type of the target arrow vector
|
byteBuf, intVector, sfScale| Constructor and Description |
|---|
IntToScaledFixedConverter(org.apache.arrow.vector.ValueVector fieldVector,
int columnIndex,
DataConversionContext context,
int sfScale) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNull(int index)
Determine whether source value in arrow vector is null value or not
|
boolean |
toBoolean(int index)
Convert value in arrow vector to boolean data
|
Date |
toDate(int index)
Convert value in arrow vector to Date
|
double |
toDouble(int index)
Convert value in arrow vector to double data
|
float |
toFloat(int index)
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
|
getInt, toBigDecimal, toByte, toBytesprotected String logicalTypeStr
protected DataConversionContext context
protected int columnIndex
public static final String FIELD_NAME_EPOCH
public static final String FIELD_NAME_TIME_ZONE_INDEX
public static final String FIELD_NAME_FRACTION
public IntToScaledFixedConverter(org.apache.arrow.vector.ValueVector fieldVector,
int columnIndex,
DataConversionContext context,
int sfScale)
public float toFloat(int index)
throws SFException
ArrowVectorConvertertoFloat in interface ArrowVectorConvertertoFloat in class IntToFixedConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic double toDouble(int index)
throws SFException
ArrowVectorConvertertoDouble in interface ArrowVectorConvertertoDouble in class IntToFixedConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic short toShort(int index)
throws SFException
ArrowVectorConvertertoShort in interface ArrowVectorConvertertoShort in class IntToFixedConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic int toInt(int index)
throws SFException
ArrowVectorConvertertoInt in interface ArrowVectorConvertertoInt in class IntToFixedConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic long toLong(int index)
throws SFException
ArrowVectorConvertertoLong in interface ArrowVectorConvertertoLong in class IntToFixedConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic Object toObject(int index) throws SFException
ArrowVectorConvertertoObject in interface ArrowVectorConvertertoObject in class IntToFixedConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic String toString(int index) throws SFException
ArrowVectorConvertertoString in interface ArrowVectorConvertertoString in class IntToFixedConverterindex - index of the value to be converted in the vectorSFException - invalid data conversionpublic boolean toBoolean(int index)
throws SFException
ArrowVectorConvertertoBoolean in interface ArrowVectorConvertertoBoolean in class IntToFixedConverterindex - 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.