| Modifier and Type | Method | Description |
|---|---|---|
DbSourceOptions<R> |
DbSourceOptions.withAutoCommit(boolean autoCommit) |
Sets the connection auto commit state
|
DbSourceOptions<R> |
DbSourceOptions.withConnection(java.lang.String url,
java.lang.String username,
java.lang.String password) |
Sets the JDBC connection URL and optional credentials
This method should ideally only be used for testing, a connection pool is preferable for production
|
DbSourceOptions<R> |
DbSourceOptions.withConnection(java.sql.Connection connection) |
Sets the JDBC connection for this request
|
DbSourceOptions<R> |
DbSourceOptions.withConnection(javax.sql.DataSource dataSource) |
Sets the JDBC connection for this request
|
DbSourceOptions<R> |
DbSourceOptions.withExcludeColumns(java.lang.String... columns) |
Sets the names of columns not to include in the resulting DataFrame
|
DbSourceOptions<R> |
DbSourceOptions.withExtractor(java.lang.String colName,
com.d3x.morpheus.util.sql.SQLExtractor extractor) |
Sets the extractor to use for the column name
|
DbSourceOptions<R> |
DbSourceOptions.withFetchSize(int fetchSize) |
Sets the fetch size for the statement when executing queries
|
DbSourceOptions<R> |
DbSourceOptions.withParameters(java.lang.Object... parameters) |
Sets the parameters for the SQL expression
|
DbSourceOptions<R> |
DbSourceOptions.withReadOnly(boolean readOnly) |
Sets the connection read only setting
|
DbSourceOptions<R> |
DbSourceOptions.withRowCapacity(int rowCapacity) |
Sets the initial row capacity to size the DataFrame
|
DbSourceOptions<R> |
DbSourceOptions.withRowKeyFunction(java.util.function.Function<java.sql.ResultSet,R> rowKeyFunction) |
Sets the row key function for this request
|
DbSourceOptions<R> |
DbSourceOptions.withSql(java.lang.String sql) |
Sets the SQL query for this request
|
| Modifier and Type | Method | Description |
|---|---|---|
private <R> java.util.List<DbSource.ColumnInfo> |
DbSource.getColumnInfo(java.sql.ResultSetMetaData metaData,
com.d3x.morpheus.util.sql.SQLPlatform platform,
DbSourceOptions<R> request) |
Returns the array of column information from the result-set meta-data
|
private <R> com.d3x.morpheus.frame.DataFrame<R,java.lang.String> |
DbSource.read(java.sql.ResultSet resultSet,
DbSourceOptions<R> request) |
Reads all data from the sql ResultSet into a Morpheus DataFrame
|
| Modifier and Type | Method | Description |
|---|---|---|
<R> com.d3x.morpheus.frame.DataFrame<R,java.lang.String> |
DbSource.read(java.util.function.Consumer<DbSourceOptions<R>> configurator) |
Copyright 2014-2018, D3X Systems