Class JDBCPipesIterator

All Implemented Interfaces:
Iterable<FetchEmitTuple>, Callable<Integer>, Initializable

public class JDBCPipesIterator extends PipesIterator implements Initializable
Iterates through a the results from a sql call via jdbc. This adds all columns (except for the 'fetchKeyColumn' and 'emitKeyColumn', if specified) to the metadata object.

  • If a 'fetchKeyColumn' is specified, this will use that column's value as the fetchKey.
  • If no 'fetchKeyColumn' is specified, this will send the metadata from the other columns.
  • The 'fetchKeyColumn' value is not added to the metadata.

  • An 'emitKeyColumn' must be specified
  • The 'emitKeyColumn' value is not added to the metadata.