Class ArrowFlightJdbcBitVectorAccessor
java.lang.Object
org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
org.apache.arrow.driver.jdbc.accessor.impl.numeric.ArrowFlightJdbcBitVectorAccessor
- All Implemented Interfaces:
org.apache.calcite.avatica.util.Cursor.Accessor
Accessor for the arrow
BitVector
.-
Field Summary
Fields inherited from class org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
wasNull, wasNullConsumer
-
Constructor Summary
ConstructorDescriptionArrowFlightJdbcBitVectorAccessor
(BitVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Constructor for the BitVectorAccessor. -
Method Summary
Methods inherited from class org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor
getArray, getAsciiStream, getBigDecimal, getBinaryStream, getBlob, getBytes, getCharacterStream, getClob, getCurrentRow, getDate, getNCharacterStream, getNClob, getNString, getObject, getObject, getRef, getSQLXML, getStruct, getTime, getTimestamp, getUnicodeStream, getURL, wasNull
-
Constructor Details
-
ArrowFlightJdbcBitVectorAccessor
public ArrowFlightJdbcBitVectorAccessor(BitVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull) Constructor for the BitVectorAccessor.- Parameters:
vector
- an instance of aBitVector
.currentRowSupplier
- a supplier to check which row is being accessed.setCursorWasNull
- the consumer to set if value was null.
-
-
Method Details
-
getObjectClass
- Specified by:
getObjectClass
in classArrowFlightJdbcAccessor
-
getString
- Specified by:
getString
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getString
in classArrowFlightJdbcAccessor
-
getBoolean
public boolean getBoolean()- Specified by:
getBoolean
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getBoolean
in classArrowFlightJdbcAccessor
-
getByte
public byte getByte()- Specified by:
getByte
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getByte
in classArrowFlightJdbcAccessor
-
getShort
public short getShort()- Specified by:
getShort
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getShort
in classArrowFlightJdbcAccessor
-
getInt
public int getInt()- Specified by:
getInt
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getInt
in classArrowFlightJdbcAccessor
-
getLong
public long getLong()- Specified by:
getLong
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getLong
in classArrowFlightJdbcAccessor
-
getFloat
public float getFloat()- Specified by:
getFloat
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getFloat
in classArrowFlightJdbcAccessor
-
getDouble
public double getDouble()- Specified by:
getDouble
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getDouble
in classArrowFlightJdbcAccessor
-
getBigDecimal
- Specified by:
getBigDecimal
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getBigDecimal
in classArrowFlightJdbcAccessor
-
getObject
- Specified by:
getObject
in interfaceorg.apache.calcite.avatica.util.Cursor.Accessor
- Overrides:
getObject
in classArrowFlightJdbcAccessor
-