Class FlightSqlConnection
- java.lang.Object
-
- org.apache.arrow.adbc.driver.flightsql.FlightSqlConnection
-
- All Implemented Interfaces:
AutoCloseable,AdbcConnection,AdbcOptions
public class FlightSqlConnection extends Object implements AdbcConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.arrow.adbc.core.AdbcConnection
AdbcConnection.GetObjectsDepth
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdbcStatementbulkIngest(String targetTableName, BulkIngestMode mode)voidclose()voidcommit()AdbcStatementcreateStatement()booleangetAutoCommit()org.apache.arrow.vector.ipc.ArrowReadergetInfo(int @Nullable [] infoCodes)org.apache.arrow.vector.ipc.ArrowReadergetObjects(AdbcConnection.GetObjectsDepth depth, String catalogPattern, String dbSchemaPattern, String tableNamePattern, String[] tableTypes, String columnNamePattern)org.apache.arrow.vector.ipc.ArrowReaderreadPartition(ByteBuffer descriptor)voidrollback()voidsetAutoCommit(boolean enableAutoCommit)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.arrow.adbc.core.AdbcConnection
cancel, getCurrentCatalog, getCurrentDbSchema, getInfo, getInfo, getIsolationLevel, getReadOnly, getStatisticNames, getStatistics, getTableSchema, getTableTypes, setCurrentCatalog, setCurrentDbSchema, setIsolationLevel, setReadOnly
-
Methods inherited from interface org.apache.arrow.adbc.core.AdbcOptions
getOption, setOption
-
-
-
-
Method Detail
-
commit
public void commit() throws AdbcException- Specified by:
commitin interfaceAdbcConnection- Throws:
AdbcException
-
createStatement
public AdbcStatement createStatement() throws AdbcException
- Specified by:
createStatementin interfaceAdbcConnection- Throws:
AdbcException
-
readPartition
public org.apache.arrow.vector.ipc.ArrowReader readPartition(ByteBuffer descriptor) throws AdbcException
- Specified by:
readPartitionin interfaceAdbcConnection- Throws:
AdbcException
-
bulkIngest
public AdbcStatement bulkIngest(String targetTableName, BulkIngestMode mode) throws AdbcException
- Specified by:
bulkIngestin interfaceAdbcConnection- Throws:
AdbcException
-
getObjects
public org.apache.arrow.vector.ipc.ArrowReader getObjects(AdbcConnection.GetObjectsDepth depth, String catalogPattern, String dbSchemaPattern, String tableNamePattern, String[] tableTypes, String columnNamePattern) throws AdbcException
- Specified by:
getObjectsin interfaceAdbcConnection- Throws:
AdbcException
-
getInfo
public org.apache.arrow.vector.ipc.ArrowReader getInfo(int @Nullable [] infoCodes) throws AdbcException- Specified by:
getInfoin interfaceAdbcConnection- Throws:
AdbcException
-
rollback
public void rollback() throws AdbcException- Specified by:
rollbackin interfaceAdbcConnection- Throws:
AdbcException
-
getAutoCommit
public boolean getAutoCommit() throws AdbcException- Specified by:
getAutoCommitin interfaceAdbcConnection- Throws:
AdbcException
-
setAutoCommit
public void setAutoCommit(boolean enableAutoCommit) throws AdbcException- Specified by:
setAutoCommitin interfaceAdbcConnection- Throws:
AdbcException
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-