public interface JdbcLookupMapper extends JdbcMapper
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer)
declare what are the fields that this code will output.
|
List<Values> |
toTuple(ITuple input,
List<Column> columns)
Converts a DB row to a list of storm values that can be emitted.
|
getColumns
List<Values> toTuple(ITuple input, List<Column> columns)
Converts a DB row to a list of storm values that can be emitted. This is done to allow a single storm input tuple and a single DB row to result in multiple output values.
input
- the input tuple.columns
- list of columns that represents a rowvoid declareOutputFields(OutputFieldsDeclarer declarer)
declare what are the fields that this code will output.
Copyright © 2020 The Apache Software Foundation. All rights reserved.