public class ArrowFlightJdbcDateVectorAccessor extends ArrowFlightJdbcAccessor
DateDayVector
and DateMilliVector
.wasNull, wasNullConsumer
Constructor and Description |
---|
ArrowFlightJdbcDateVectorAccessor(DateDayVector vector,
IntSupplier currentRowSupplier,
ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull)
Instantiate an accessor for a
DateDayVector . |
ArrowFlightJdbcDateVectorAccessor(DateMilliVector vector,
IntSupplier currentRowSupplier,
ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull)
Instantiate an accessor for a
DateMilliVector . |
Modifier and Type | Method and Description |
---|---|
Date |
getDate(Calendar calendar) |
Object |
getObject() |
Class<?> |
getObjectClass() |
String |
getString() |
Timestamp |
getTimestamp(Calendar calendar) |
protected static TimeUnit |
getTimeUnitForVector(ValueVector vector) |
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
public ArrowFlightJdbcDateVectorAccessor(DateDayVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull)
DateDayVector
.vector
- an instance of a DateDayVector.currentRowSupplier
- the supplier to track the lines.setCursorWasNull
- the consumer to set if value was null.public ArrowFlightJdbcDateVectorAccessor(DateMilliVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull)
DateMilliVector
.vector
- an instance of a DateMilliVector.currentRowSupplier
- the supplier to track the lines.public Class<?> getObjectClass()
getObjectClass
in class ArrowFlightJdbcAccessor
public Object getObject()
getObject
in interface org.apache.calcite.avatica.util.Cursor.Accessor
getObject
in class ArrowFlightJdbcAccessor
public Date getDate(Calendar calendar)
getDate
in interface org.apache.calcite.avatica.util.Cursor.Accessor
getDate
in class ArrowFlightJdbcAccessor
public Timestamp getTimestamp(Calendar calendar)
getTimestamp
in interface org.apache.calcite.avatica.util.Cursor.Accessor
getTimestamp
in class ArrowFlightJdbcAccessor
public String getString()
getString
in interface org.apache.calcite.avatica.util.Cursor.Accessor
getString
in class ArrowFlightJdbcAccessor
protected static TimeUnit getTimeUnitForVector(ValueVector vector)
Copyright © 2023 The Apache Software Foundation. All rights reserved.