Package com.exasol
Interface ExaExportSpecification
-
public interface ExaExportSpecification
This class holds all information about a user-defined EXPORT, which can be started using theEXPORT INTO SCRIPT ...
statement.To support a user-defined
EXPORT
you 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 ExaConnectionInformation
getConnectionInformation()
Get the details of the connection information.String
getConnectionName()
Get the name of the connection.String
getCreatedBy()
Get the definition for the target table creation.Map<String,String>
getParameters()
Get the export parametersList<String>
getSourceColumnNames()
Get the names of all source columnsboolean
hasConnectionInformation()
Check if the connection information was provided.boolean
hasConnectionName()
Indicates whether the name of a connection was specified.boolean
hasCreatedBy()
This returns true if CREATED BY was specified in the EXPORT statement.boolean
hasReplace()
Check if the replacement option is set.boolean
hasTruncate()
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
null
otherwise
-
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
EXPORT
statement.
-
hasTruncate
boolean hasTruncate()
Check if the truncation option is set.- Returns:
true
, ifTRUNCATE
was specified
-
hasReplace
boolean hasReplace()
Check if the replacement option is set.- Returns:
true
, ifREPLACE
was 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 BY
defines a creation string which is used to create the table on the target system before the export is started. TheCREATED BY
string contains a single SQL statement; multiple statements are not supported.- Returns:
CREATED BY
statement, if one was specified or otherwisenull
-
-