@Override public void sinkConfInit( FlowProcess<? extends Config> flowProcess, Tap<Config, Input, Output> tap, Config conf ) { scheme.sinkConfInit( flowProcess, tap, conf ); }
@Override public void sinkConfInit(FlowProcess<Properties> flowProcess, Tap<Properties, RecordReader, OutputCollector> tap, Properties conf) { JobConf jobConf = mergeDefaults("LocalScheme#sinkConfInit", conf, defaults); scheme.sinkConfInit(new HadoopFlowProcess(jobConf), lfs, jobConf); overwriteProperties(conf, jobConf); }
/** * Method sinkConfInit initializes this instance as a sink. * <p> * This method maybe called more than once if this Tap instance is used outside the scope of a {@link cascading.flow.Flow} * instance or if it participates in multiple times in a given Flow or across different Flows in * a {@link cascading.cascade.Cascade}. * <p> * Note this method will be called in context of this Tap being used as a traditional 'sink' and as a 'trap'. * <p> * In the context of a Flow, it will be called after * {@link cascading.flow.FlowListener#onStarting(cascading.flow.Flow)} * <p> * Note that no resources or services should be modified by this method. If this Tap instance returns true for * {@link #isReplace()}, then {@link #deleteResource(Object)} will be called by the parent Flow. * * @param flowProcess of type FlowProcess * @param conf of type Config */ public void sinkConfInit( FlowProcess<? extends Config> flowProcess, Config conf ) { getScheme().sinkConfInit( flowProcess, this, conf ); }