Class NullableColumnBinder
java.lang.Object
org.apache.arrow.adapter.jdbc.binder.NullableColumnBinder
- All Implemented Interfaces:
ColumnBinder
A ColumnBinder that checks for nullability before deferring to a type-specific binder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(PreparedStatement statement, int parameterIndex, int rowIndex) Bind the given row to the given parameter.int
Get the JDBC type code used by this binder.Get the vector used by this binder.
-
Constructor Details
-
NullableColumnBinder
-
-
Method Details
-
bind
Description copied from interface:ColumnBinder
Bind the given row to the given parameter.- Specified by:
bind
in interfaceColumnBinder
- 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 interfaceColumnBinder
- Returns:
- A type code from
Types
.
-
getVector
Description copied from interface:ColumnBinder
Get the vector used by this binder.- Specified by:
getVector
in interfaceColumnBinder
-