Class NullableColumnBinder

java.lang.Object
org.apache.arrow.adapter.jdbc.binder.NullableColumnBinder
All Implemented Interfaces:
ColumnBinder

public class NullableColumnBinder extends Object implements ColumnBinder
A ColumnBinder that checks for nullability before deferring to a type-specific binder.
  • Constructor Details

    • NullableColumnBinder

      public NullableColumnBinder(ColumnBinder wrapped)
  • Method Details

    • bind

      public void bind(PreparedStatement statement, int parameterIndex, int rowIndex) throws SQLException
      Description copied from interface: ColumnBinder
      Bind the given row to the given parameter.
      Specified by:
      bind in interface ColumnBinder
      Parameters:
      statement - The statement to bind to.
      parameterIndex - The parameter to bind to (1-indexed)
      rowIndex - The row to bind values from (0-indexed)
      Throws:
      SQLException - if an error occurs
    • getJdbcType

      public int getJdbcType()
      Description copied from interface: ColumnBinder
      Get the JDBC type code used by this binder.
      Specified by:
      getJdbcType in interface ColumnBinder
      Returns:
      A type code from Types.
    • getVector

      public FieldVector getVector()
      Description copied from interface: ColumnBinder
      Get the vector used by this binder.
      Specified by:
      getVector in interface ColumnBinder