public static class JdbcTableSource.Builder extends Object
JdbcTableSource
.Modifier and Type | Field and Description |
---|---|
protected TableSchema |
schema |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JdbcTableSource |
build()
Finalizes the configuration and checks validity.
|
JdbcTableSource.Builder |
setLookupOptions(JdbcLookupOptions lookupOptions)
optional, lookup related options.
|
JdbcTableSource.Builder |
setOptions(JdbcConnectorOptions options)
required, jdbc options.
|
JdbcTableSource.Builder |
setReadOptions(JdbcReadOptions readOptions)
optional, scan related options.
|
JdbcTableSource.Builder |
setSchema(TableSchema schema)
required, table schema of this table source.
|
protected TableSchema schema
public JdbcTableSource.Builder setOptions(JdbcConnectorOptions options)
public JdbcTableSource.Builder setReadOptions(JdbcReadOptions readOptions)
JdbcReadOptions
will be only used for StreamTableSource
.public JdbcTableSource.Builder setLookupOptions(JdbcLookupOptions lookupOptions)
JdbcLookupOptions
only be used for LookupableTableSource
.public JdbcTableSource.Builder setSchema(TableSchema schema)
public JdbcTableSource build()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.