Package com.exasol.adapter
Interface AdapterFactory
-
public interface AdapterFactoryFactory that creates aVirtualSchemaAdapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualSchemaAdaptercreateAdapter(AdapterContext context)Create a newVirtualSchemaAdapterStringgetAdapterName()Get the name of theVirtualSchemaAdapter.StringgetAdapterProjectShortTag()Get a short tag for the adapter project.StringgetAdapterVersion()Get the version of theVirtualSchemaAdapter.
-
-
-
Method Detail
-
createAdapter
VirtualSchemaAdapter createAdapter(AdapterContext context)
Create a newVirtualSchemaAdapter- Parameters:
context- context information for the adapter- Returns:
- new instance
-
getAdapterVersion
String getAdapterVersion()
Get the version of theVirtualSchemaAdapter. This version will be used for logging and telemetry.Adapters can use
VersionCollectorto fetch the version from the metadata in the jar file. For example:new VersionCollector("META-INF/maven/com.exasol/mysql-virtual-schema/pom.properties").getVersionNumber()- Returns:
- Virtual Schema Adapter version
-
getAdapterName
String getAdapterName()
Get the name of theVirtualSchemaAdapter. This name will be used for logging.Example values:
- JDBC based adapters:
MYSQL JDBC Adapter,POSTGRESQL JDBC Adapter,EXASOL JDBC Adapter - Document based adapters:
DYNAMO_DB,S3_DOCUMENT_FILES,AZURE_DATA_LAKE_STORAGE_GEN2_DOCUMENT_FILES
- Returns:
- Virtual Schema Adapter name
- JDBC based adapters:
-
getAdapterProjectShortTag
String getAdapterProjectShortTag()
Get a short tag for the adapter project. This will be used for telemetry to identify products.The short tag is defined in file
error_code_config.ymlof each adapter project.Example values:
VSMYSQL,VSPG(Postgres VS),VSEXA,VSDY(DynamoDB VS),VSS3,VSADLG2- Returns:
- short tag for the adapter project
-
-