public class AvaticaParameterBinder extends Object
NOTE: Make sure to close the parameters VectorSchemaRoot once we're done with them.
Modifier and Type | Class and Description |
---|---|
static class |
AvaticaParameterBinder.BinderVisitor
ArrowTypeVisitor that binds Avatica TypedValues to the given FieldVector at the specified index.
|
Constructor and Description |
---|
AvaticaParameterBinder(ArrowFlightSqlClientHandler.PreparedStatement preparedStatement,
BufferAllocator bufferAllocator) |
Modifier and Type | Method and Description |
---|---|
void |
bind(List<org.apache.calcite.avatica.remote.TypedValue> typedValues)
Bind the given Avatica values to the prepared statement.
|
void |
bind(List<org.apache.calcite.avatica.remote.TypedValue> typedValues,
int index)
Bind the given Avatica values to the prepared statement at the given index.
|
public AvaticaParameterBinder(ArrowFlightSqlClientHandler.PreparedStatement preparedStatement, BufferAllocator bufferAllocator)
public void bind(List<org.apache.calcite.avatica.remote.TypedValue> typedValues)
typedValues
- The parameter values.public void bind(List<org.apache.calcite.avatica.remote.TypedValue> typedValues, int index)
typedValues
- The parameter values.index
- index for parameter.Copyright © 2024 The Apache Software Foundation. All rights reserved.