Class FixedSizeBinaryBinder

java.lang.Object
org.apache.arrow.adapter.jdbc.binder.BaseColumnBinder<FixedSizeBinaryVector>
org.apache.arrow.adapter.jdbc.binder.FixedSizeBinaryBinder
All Implemented Interfaces:
ColumnBinder

public class FixedSizeBinaryBinder extends BaseColumnBinder<FixedSizeBinaryVector>
A binder for fixed-width binary types.
  • Constructor Details

    • FixedSizeBinaryBinder

      public FixedSizeBinaryBinder(FixedSizeBinaryVector vector, int jdbcType)
      Create a binder for the given vector using the given JDBC type for null values.
      Parameters:
      vector - The vector to draw values from.
      jdbcType - The JDBC type code.
  • 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.
      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