public static class FlightSqlClient.PreparedStatement extends Object implements AutoCloseable
Modifier and Type | Method and Description |
---|---|
protected void |
checkOpen()
Checks whether this client is open.
|
void |
clearParameters()
Closes the
parameterBindingRoot , which contains the parameter binding from
a FlightSqlClient.PreparedStatement operation, releasing its resources. |
void |
close() |
void |
close(CallOption... options)
Closes the client.
|
FlightInfo |
execute(CallOption... options)
Executes the prepared statement query on the server.
|
long |
executeUpdate(CallOption... options)
Executes the prepared statement update on the server.
|
SchemaResult |
fetchSchema(CallOption... options)
Get the schema of the result set (should be identical to
getResultSetSchema() ). |
Schema |
getParameterSchema()
Returns the Schema of the parameters.
|
Schema |
getResultSetSchema()
Returns the Schema of the resultset.
|
boolean |
isClosed()
Returns if the prepared statement is already closed.
|
void |
setParameters(VectorSchemaRoot parameterBindingRoot)
Set the
parameterBindingRoot containing the parameter binding from a FlightSqlClient.PreparedStatement
operation. |
public void setParameters(VectorSchemaRoot parameterBindingRoot)
parameterBindingRoot
containing the parameter binding from a FlightSqlClient.PreparedStatement
operation.parameterBindingRoot
- a VectorSchemaRoot
object containing the values to be used in the
PreparedStatement
setters.public void clearParameters()
parameterBindingRoot
, which contains the parameter binding from
a FlightSqlClient.PreparedStatement
operation, releasing its resources.public Schema getResultSetSchema()
public Schema getParameterSchema()
public SchemaResult fetchSchema(CallOption... options)
getResultSetSchema()
).public FlightInfo execute(CallOption... options)
options
- RPC-layer hints for this call.protected final void checkOpen()
IllegalStateException
- if client is closed.public long executeUpdate(CallOption... options)
options
- RPC-layer hints for this call.public void close(CallOption... options)
options
- RPC-layer hints for this call.public void close()
close
in interface AutoCloseable
public boolean isClosed()
Copyright © 2024 The Apache Software Foundation. All rights reserved.