Example #1
0
 @Override
 public void sourceCleanup(
     FlowProcess<? extends Properties> flowProcess,
     SourceCall<LineNumberReader, InputStream> sourceCall)
     throws IOException {
   sourceCall.setContext(null);
 }
Example #2
0
  /**
   * @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();
  }
Example #3
0
  @Override
  public void sourcePrepare(
      FlowProcess<? extends Properties> flowProcess,
      SourceCall<LineNumberReader, InputStream> sourceCall)
      throws IOException {
    sourceCall.setContext(createInput(sourceCall.getInput()));

    sourceCall.getIncomingEntry().setTuple(TupleViews.createObjectArray());
  }