Class ArrowFlightJdbcDateVectorAccessor
java.lang.Object
org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
org.apache.arrow.driver.jdbc.accessor.impl.calendar.ArrowFlightJdbcDateVectorAccessor
- All Implemented Interfaces:
org.apache.calcite.avatica.util.Cursor.Accessor
Accessor for the Arrow types:
DateDayVector
and DateMilliVector
.-
Field Summary
Fields inherited from class org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
wasNull, wasNullConsumer
-
Constructor Summary
ConstructorDescriptionArrowFlightJdbcDateVectorAccessor
(DateDayVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aDateDayVector
.ArrowFlightJdbcDateVectorAccessor
(DateMilliVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aDateMilliVector
. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getTimestamp
(Calendar calendar) protected static TimeUnit
getTimeUnitForVector
(ValueVector vector) Methods inherited from class org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getCurrentRow, getDouble, getFloat, getInt, getLong, getNCharacterStream, getNClob, getNString, getObject, getObject, getRef, getShort, getSQLXML, getStruct, getTime, getUnicodeStream, getURL, wasNull
-
Constructor Details
-
ArrowFlightJdbcDateVectorAccessor
public ArrowFlightJdbcDateVectorAccessor(DateDayVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aDateDayVector
.- Parameters:
vector
- an instance of a DateDayVector.currentRowSupplier
- the supplier to track the lines.setCursorWasNull
- the consumer to set if value was null.
-
ArrowFlightJdbcDateVectorAccessor
public ArrowFlightJdbcDateVectorAccessor(DateMilliVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aDateMilliVector
.- Parameters:
vector
- an instance of a DateMilliVector.currentRowSupplier
- the supplier to track the lines.
-
-
Method Details
-
getObjectClass
- Specified by:
getObjectClass
in classArrowFlightJdbcAccessor
-
getObject
- Specified by:
getObject
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getObject
in classArrowFlightJdbcAccessor
-
getDate
- Specified by:
getDate
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getDate
in classArrowFlightJdbcAccessor
-
getTimestamp
- Specified by:
getTimestamp
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getTimestamp
in classArrowFlightJdbcAccessor
-
getString
- Specified by:
getString
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getString
in classArrowFlightJdbcAccessor
-
getTimeUnitForVector
-