Class ArrowFlightJdbcTimeVectorAccessor
java.lang.Object
org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
org.apache.arrow.driver.jdbc.accessor.impl.calendar.ArrowFlightJdbcTimeVectorAccessor
- All Implemented Interfaces:
org.apache.calcite.avatica.util.Cursor.Accessor
-
Field Summary
Fields inherited from class org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
wasNull, wasNullConsumer
-
Constructor Summary
ConstructorDescriptionArrowFlightJdbcTimeVectorAccessor
(TimeMicroVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aTimeMicroVector
.ArrowFlightJdbcTimeVectorAccessor
(TimeMilliVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aTimeMilliVector
.ArrowFlightJdbcTimeVectorAccessor
(TimeNanoVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aTimeNanoVector
.ArrowFlightJdbcTimeVectorAccessor
(TimeSecVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aTimeSecVector
. -
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, getDate, getDouble, getFloat, getInt, getLong, getNCharacterStream, getNClob, getNString, getObject, getObject, getRef, getShort, getSQLXML, getString, getStruct, getUnicodeStream, getURL, wasNull
-
Constructor Details
-
ArrowFlightJdbcTimeVectorAccessor
public ArrowFlightJdbcTimeVectorAccessor(TimeNanoVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aTimeNanoVector
.- Parameters:
vector
- an instance of a TimeNanoVector.currentRowSupplier
- the supplier to track the lines.setCursorWasNull
- the consumer to set if value was null.
-
ArrowFlightJdbcTimeVectorAccessor
public ArrowFlightJdbcTimeVectorAccessor(TimeMicroVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aTimeMicroVector
.- Parameters:
vector
- an instance of a TimeMicroVector.currentRowSupplier
- the supplier to track the lines.setCursorWasNull
- the consumer to set if value was null.
-
ArrowFlightJdbcTimeVectorAccessor
public ArrowFlightJdbcTimeVectorAccessor(TimeMilliVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aTimeMilliVector
.- Parameters:
vector
- an instance of a TimeMilliVector.currentRowSupplier
- the supplier to track the lines.
-
ArrowFlightJdbcTimeVectorAccessor
public ArrowFlightJdbcTimeVectorAccessor(TimeSecVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Instantiate an accessor for aTimeSecVector
.- Parameters:
vector
- an instance of a TimeSecVector.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
-
getTime
- Specified by:
getTime
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getTime
in classArrowFlightJdbcAccessor
-
getTimestamp
- Specified by:
getTimestamp
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getTimestamp
in classArrowFlightJdbcAccessor
-
getTimeUnitForVector
-