Package io.deephaven.importers.jdbc
Interface JdbcImportOptions.Builder
- Enclosing class:
- JdbcImportOptions
public static interface JdbcImportOptions.Builder
Builder for creating instances of
JdbcImportOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Generates theJdbcImportOptionsbased on the inputs to thisJdbcImportOptions.Builderinstance.Set the catalog.destinationDirectory(File destinationDirectory) For programmatic imports, set the destination directory.destinationPartitions(String destinationPartitions) For programmatic imports, set the destination partitions, e.g.Set the driver.importSource(@NotNull String importSource) Set the importSource.intradayPartitionColumn(@NotNull String intradayPartitionColumn) Set the intradayPartitionColumn.Set the namespace to import into.outputMode(ImportOutputMode outputMode) Set theImportOutputMode.partitionFormula(@NotNull String partitionFormula) Set the partitionFormula.partitionSubstitution(String partitionSubstitution) Set the partition substitution.Set the password.Set the SQL query.schemaService(SchemaService schemaService) For programmatic imports, set the schema service.strict(boolean strict) Set the strict value.Set the tableName to import into.Set the connection URI.Set the user.
-
Method Details
-
namespace
Set the namespace to import into.- Parameters:
namespace- the namespace- Returns:
- this
JdbcImportOptions.Builder
-
tableName
Set the tableName to import into.- Parameters:
tableName- the table name- Returns:
- this
JdbcImportOptions.Builder
-
intradayPartitionColumn
Set the intradayPartitionColumn.- Parameters:
intradayPartitionColumn- the intraday partition column.- Returns:
- this
JdbcImportOptions.Builder
-
partitionFormula
Set the partitionFormula.- Parameters:
partitionFormula- the partition formula- Returns:
- this
JdbcImportOptions.Builder
-
importSource
Set the importSource.- Parameters:
importSource- the import source- Returns:
- this
JdbcImportOptions.Builder
-
outputMode
Set theImportOutputMode.- Parameters:
outputMode- the output mode- Returns:
- this
JdbcImportOptions.Builder
-
strict
Set the strict value.- Parameters:
strict- the strict value- Returns:
- this
JdbcImportOptions.Builder
-
partitionSubstitution
Set the partition substitution.- Parameters:
partitionSubstitution- the partition substitution- Returns:
- this
JdbcImportOptions.Builder
-
driver
Set the driver.- Parameters:
driver- the driver- Returns:
- this
JdbcImportOptions.Builder
-
uri
Set the connection URI.- Parameters:
uri- the URI- Returns:
- this
JdbcImportOptions.Builder
-
user
Set the user. If not provided, then theJdbcImportOptions.uri()must contain everything needed to connect.- Parameters:
user- the user- Returns:
- this
JdbcImportOptions.Builder
-
password
Set the password. If not provided, then theJdbcImportOptions.uri()must contain everything needed to connect.- Parameters:
password- the password- Returns:
- this
JdbcImportOptions.Builder
-
catalog
Set the catalog.- Parameters:
catalog- the catalog- Returns:
- this
JdbcImportOptions.Builder
-
query
Set the SQL query.- Parameters:
query- the query- Returns:
- this
JdbcImportOptions.Builder
-
destinationPartitions
For programmatic imports, set the destination partitions, e.g. `localhost/2018-04-01`.- Parameters:
destinationPartitions- the destination partitions- Returns:
- this
JdbcImportOptions.Builder
-
destinationDirectory
For programmatic imports, set the destination directory.- Parameters:
destinationDirectory- the destination directory- Returns:
- this
JdbcImportOptions.Builder
-
schemaService
For programmatic imports, set the schema service.- Parameters:
schemaService- the schema service- Returns:
- this
JdbcImportOptions.Builder
-
build
JdbcImportOptions build()Generates theJdbcImportOptionsbased on the inputs to thisJdbcImportOptions.Builderinstance.- Returns:
- an immutable instance of
JdbcImportOptions
-