@Override public void sourceCleanup( FlowProcess<? extends Properties> flowProcess, SourceCall<LineNumberReader, InputStream> sourceCall) throws IOException { sourceCall.setContext(null); }
/** * @param flowProcess * @param sourceCall */ @Override public void sourcePrepare( FlowProcess<JobConf> flowProcess, SourceCall<BSONWritable[], RecordReader> sourceCall) { sourceCall.setContext(new BSONWritable[2]); sourceCall.getContext()[0] = (BSONWritable) sourceCall.getInput().createKey(); sourceCall.getContext()[1] = (BSONWritable) sourceCall.getInput().createValue(); }
@Override public void sourcePrepare( FlowProcess<? extends Properties> flowProcess, SourceCall<LineNumberReader, InputStream> sourceCall) throws IOException { sourceCall.setContext(createInput(sourceCall.getInput())); sourceCall.getIncomingEntry().setTuple(TupleViews.createObjectArray()); }