Java Code Examples for cascading.flow.FlowProcess#getConfigCopy()

The following examples show how to use cascading.flow.FlowProcess#getConfigCopy() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JDBCTapCollector.java    From SpyGlass with Apache License 2.0 5 votes vote down vote up
/**
 * Constructor TapCollector creates a new TapCollector instance.
 *
 * @param flowProcess
 * @param tap               of type Tap
 * @throws IOException when fails to initialize
 */
public JDBCTapCollector( FlowProcess<JobConf> flowProcess, Tap<JobConf, RecordReader, OutputCollector> tap ) throws IOException {
    super( flowProcess, tap.getScheme() );
    this.hadoopFlowProcess = flowProcess;

    this.tap = tap;
    this.conf = new JobConf( flowProcess.getConfigCopy() );

    this.setOutput( this );
}
 
Example 2
Source File: ParquetTupleScheme.java    From parquet-mr with Apache License 2.0 4 votes vote down vote up
private List<Footer> getFooters(FlowProcess<JobConf> flowProcess, Hfs hfs) throws IOException {
  JobConf jobConf = flowProcess.getConfigCopy();
  DeprecatedParquetInputFormat format = new DeprecatedParquetInputFormat();
  format.addInputPath(jobConf, hfs.getPath());
  return format.getFooters(jobConf);
}
 
Example 3
Source File: ParquetTupleScheme.java    From parquet-mr with Apache License 2.0 4 votes vote down vote up
private List<Footer> getFooters(FlowProcess<? extends JobConf> flowProcess, Hfs hfs) throws IOException {
  JobConf jobConf = flowProcess.getConfigCopy();
  DeprecatedParquetInputFormat format = new DeprecatedParquetInputFormat();
  format.addInputPath(jobConf, hfs.getPath());
  return format.getFooters(jobConf);
}
 
Example 4
Source File: HBaseTapCollector.java    From SpyGlass with Apache License 2.0 3 votes vote down vote up
/**
 * Constructor TapCollector creates a new TapCollector instance.
 * 
 * @param flowProcess
 * @param tap
 *          of type Tap
 * @throws IOException
 *           when fails to initialize
 */
public HBaseTapCollector(FlowProcess<JobConf> flowProcess, Tap<JobConf, RecordReader, OutputCollector> tap) throws IOException {
  super(flowProcess, tap.getScheme());
  this.hadoopFlowProcess = flowProcess;
  this.tap = tap;
  this.conf = new JobConf(flowProcess.getConfigCopy());
  this.setOutput(this);
}