Package com.exasol
Interface ExaExportSpecification
-
public interface ExaExportSpecificationThis class holds all information about a user-defined EXPORT, which can be started using theEXPORT INTO SCRIPT ...statement.To support a user-defined
EXPORTyou can implement the callback methodgenerateSqlForExportSpec(ExaExportSpecification exportSpec). Please refer to the Exasol online guide for more details.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExaConnectionInformationgetConnectionInformation()Get the details of the connection information.StringgetConnectionName()Get the name of the connection.StringgetCreatedBy()Get the definition for the target table creation.Map<String,String>getParameters()Get the export parametersList<String>getSourceColumnNames()Get the names of all source columnsbooleanhasConnectionInformation()Check if the connection information was provided.booleanhasConnectionName()Indicates whether the name of a connection was specified.booleanhasCreatedBy()This returns true if CREATED BY was specified in the EXPORT statement.booleanhasReplace()Check if the replacement option is set.booleanhasTruncate()Check if the truncation option is set.
-
-
-
Method Detail
-
hasConnectionName
boolean hasConnectionName()
Indicates whether the name of a connection was specified.The script can then obtain the connection information via
ExaMetadata.getConnection(String).- Returns:
true, if the name of a connection was specified
-
getConnectionName
String getConnectionName()
Get the name of the connection.Use
hasConnectionName()to check whether the name is set before calling this method.- Returns:
- name of the connection, if one was specified or
nullotherwise
-
hasConnectionInformation
boolean hasConnectionInformation()
Check if the connection information was provided.The script can then obtain the connection information via
ExaMetadata.getConnection(String).- Returns:
true, if connection information was provided
-
getConnectionInformation
ExaConnectionInformation getConnectionInformation()
Get the details of the connection information.- Returns:
- connection information
-
getParameters
Map<String,String> getParameters()
Get the export parameters- Returns:
- parameters specified in the
EXPORTstatement.
-
hasTruncate
boolean hasTruncate()
Check if the truncation option is set.- Returns:
true, ifTRUNCATEwas specified
-
hasReplace
boolean hasReplace()
Check if the replacement option is set.- Returns:
true, ifREPLACEwas specified
-
hasCreatedBy
boolean hasCreatedBy()
This returns true if CREATED BY was specified in the EXPORT statement.- Returns:
true, if CREATED BY was specified
-
getCreatedBy
String getCreatedBy()
Get the definition for the target table creation.CREATED BYdefines a creation string which is used to create the table on the target system before the export is started. TheCREATED BYstring contains a single SQL statement; multiple statements are not supported.- Returns:
CREATED BYstatement, if one was specified or otherwisenull
-
-