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

public class ArrowFlightJdbcBitVectorAccessor extends ArrowFlightJdbcAccessor
Accessor for the arrow BitVector.
  • Constructor Details

    • ArrowFlightJdbcBitVectorAccessor

      public ArrowFlightJdbcBitVectorAccessor(BitVector vector, IntSupplier currentRowSupplier, ArrowFlightJdbcAccessorFactory.WasNullConsumer setCursorWasNull)
      Constructor for the BitVectorAccessor.
      Parameters:
      vector - an instance of a BitVector.
      currentRowSupplier - a supplier to check which row is being accessed.
      setCursorWasNull - the consumer to set if value was null.
  • Method Details

    • getObjectClass

      public Class<?> getObjectClass()
      Specified by:
      getObjectClass in class ArrowFlightJdbcAccessor
    • getString

      public String getString()
      Specified by:
      getString in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getString in class ArrowFlightJdbcAccessor
    • getBoolean

      public boolean getBoolean()
      Specified by:
      getBoolean in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getBoolean in class ArrowFlightJdbcAccessor
    • getByte

      public byte getByte()
      Specified by:
      getByte in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getByte in class ArrowFlightJdbcAccessor
    • getShort

      public short getShort()
      Specified by:
      getShort in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getShort in class ArrowFlightJdbcAccessor
    • getInt

      public int getInt()
      Specified by:
      getInt in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getInt in class ArrowFlightJdbcAccessor
    • getLong

      public long getLong()
      Specified by:
      getLong in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getLong in class ArrowFlightJdbcAccessor
    • getFloat

      public float getFloat()
      Specified by:
      getFloat in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getFloat in class ArrowFlightJdbcAccessor
    • getDouble

      public double getDouble()
      Specified by:
      getDouble in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getDouble in class ArrowFlightJdbcAccessor
    • getBigDecimal

      public BigDecimal getBigDecimal()
      Specified by:
      getBigDecimal in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getBigDecimal in class ArrowFlightJdbcAccessor
    • getObject

      public Object getObject()
      Specified by:
      getObject in interface org.apache.calcite.avatica.util.Cursor.Accessor
      Overrides:
      getObject in class ArrowFlightJdbcAccessor