Class FlightSqlStatement
- All Implemented Interfaces:
AutoCloseable,AdbcOptions,AdbcStatement
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.arrow.adbc.core.AdbcStatement
AdbcStatement.PartitionResult, AdbcStatement.QueryResult, AdbcStatement.UpdateResult -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(VectorSchemaRoot root) Bind this statement to a VectorSchemaRoot to provide parameter values/bulk data ingestion.voidclose()Execute a result set-generating query and get a list of partitions of the result set.Execute a result set-generating query and get the result.Get the schema of the result set without executing the query.Execute a query.Get the schema for bound parameters.voidprepare()Turn this statement into a prepared statement.voidsetSqlQuery(String query) Set a SQL query to be executed on this statement.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.arrow.adbc.core.AdbcOptions
getOption, setOptionMethods inherited from interface org.apache.arrow.adbc.core.AdbcStatement
cancel, getMaxProgress, getProgress, pollPartitioned, setOption, setSubstraitPlan
-
Method Details
-
setSqlQuery
Description copied from interface:AdbcStatementSet a SQL query to be executed on this statement.- Specified by:
setSqlQueryin interfaceAdbcStatement- Parameters:
query- The SQL query.- Throws:
AdbcException
-
bind
Description copied from interface:AdbcStatementBind this statement to a VectorSchemaRoot to provide parameter values/bulk data ingestion.- Specified by:
bindin interfaceAdbcStatement
-
executePartitioned
Description copied from interface:AdbcStatementExecute a result set-generating query and get a list of partitions of the result set.These can be serialized and deserialized for parallel and/or distributed fetching.
This may invalidate any prior result sets.
- Specified by:
executePartitionedin interfaceAdbcStatement- Throws:
AdbcException
-
executeQuery
Description copied from interface:AdbcStatementExecute a result set-generating query and get the result.This may invalidate any prior result sets.
- Specified by:
executeQueryin interfaceAdbcStatement- Throws:
AdbcException
-
executeSchema
Description copied from interface:AdbcStatementGet the schema of the result set without executing the query.- Specified by:
executeSchemain interfaceAdbcStatement- Throws:
AdbcException
-
executeUpdate
Description copied from interface:AdbcStatementExecute a query.This may invalidate any prior result sets.
- Specified by:
executeUpdatein interfaceAdbcStatement- Throws:
AdbcException
-
getParameterSchema
Description copied from interface:AdbcStatementGet the schema for bound parameters.This retrieves an Arrow schema describing the number, names, and types of the parameters in a parameterized statement. The fields of the schema should be in order of the ordinal position of the parameters; named parameters should appear only once.
If the parameter does not have a name, or the name cannot be determined, the name of the corresponding field in the schema will be an empty string. If the type cannot be determined, the type of the corresponding field will be NA (NullType).
This should be called after AdbcStatementPrepare.
- Specified by:
getParameterSchemain interfaceAdbcStatement- Throws:
AdbcException- withAdbcStatusCode.NOT_IMPLEMENTEDif the parameters cannot be determined at all.
-
prepare
Description copied from interface:AdbcStatementTurn this statement into a prepared statement.Call
AdbcStatement.executeQuery(),AdbcStatement.executeUpdate(), orAdbcStatement.executePartitioned()to execute the query.- Specified by:
preparein interfaceAdbcStatement- Throws:
AdbcException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-