Class AdvancedSQLFederationExecutor
java.lang.Object
org.apache.shardingsphere.sqlfederation.advanced.AdvancedSQLFederationExecutor
- All Implemented Interfaces:
AutoCloseable,org.apache.shardingsphere.infra.util.spi.type.required.RequiredSPI,org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI,SQLFederationExecutor
Advanced sql federation executor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()executeQuery(DriverExecutionPrepareEngine<JDBCExecutionUnit, Connection> prepareEngine, JDBCExecutorCallback<? extends ExecuteResult> callback, SQLFederationExecutorContext federationContext) getType()voidinit(String databaseName, String schemaName, org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData metaData, org.apache.shardingsphere.infra.metadata.data.ShardingSphereData data, JDBCExecutor jdbcExecutor, org.apache.shardingsphere.infra.util.eventbus.EventBusContext eventBusContext) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
getTypeAliases
-
Constructor Details
-
AdvancedSQLFederationExecutor
public AdvancedSQLFederationExecutor()
-
-
Method Details
-
init
public void init(String databaseName, String schemaName, org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData metaData, org.apache.shardingsphere.infra.metadata.data.ShardingSphereData data, JDBCExecutor jdbcExecutor, org.apache.shardingsphere.infra.util.eventbus.EventBusContext eventBusContext) - Specified by:
initin interfaceSQLFederationExecutor
-
executeQuery
public ResultSet executeQuery(DriverExecutionPrepareEngine<JDBCExecutionUnit, Connection> prepareEngine, JDBCExecutorCallback<? extends ExecuteResult> callback, SQLFederationExecutorContext federationContext) - Specified by:
executeQueryin interfaceSQLFederationExecutor
-
getResultSet
- Specified by:
getResultSetin interfaceSQLFederationExecutor
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSQLFederationExecutor- Throws:
SQLException
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceorg.apache.shardingsphere.infra.util.spi.type.required.RequiredSPI
-
getType
- Specified by:
getTypein interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-