private class DbSink.RowKeyAdapter<R,C> extends DbSink.ColumnAdapter<R,C>
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.Class<?> |
rowKeyClass |
|
private com.d3x.morpheus.util.functions.Function1<R,?> |
rowKeyMapper |
|
private com.d3x.morpheus.util.sql.SQLType |
rowKeyType |
colName, colType| Constructor | Description |
|---|---|
RowKeyAdapter(java.lang.String colName,
com.d3x.morpheus.util.sql.SQLType colType,
DbSinkOptions<R,C> options) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
(package private) void |
apply(java.sql.PreparedStatement stmt,
int stmtIndex,
com.d3x.morpheus.frame.DataFrameRow<R,C> row) |
Applies a parameter value to the SQL PreparedStatement
|
toStringprivate com.d3x.morpheus.util.sql.SQLType rowKeyType
private java.lang.Class<?> rowKeyClass
private com.d3x.morpheus.util.functions.Function1<R,?> rowKeyMapper
RowKeyAdapter(java.lang.String colName,
com.d3x.morpheus.util.sql.SQLType colType,
DbSinkOptions<R,C> options)
colName - the column namecolType - the column typeoptions - the sink optionsvoid apply(java.sql.PreparedStatement stmt,
int stmtIndex,
com.d3x.morpheus.frame.DataFrameRow<R,C> row)
DbSink.ColumnAdapterapply in class DbSink.ColumnAdapter<R,C>stmt - the PreparedStatement to apply parameter tostmtIndex - the statement index for parameterrow - the row to extract a value fromCopyright 2014-2018, D3X Systems