コード例 #1
0
ファイル: TextDelimited.java プロジェクト: nahguam/cascading
 @Override
 public void sourceCleanup(
     FlowProcess<? extends Properties> flowProcess,
     SourceCall<LineNumberReader, InputStream> sourceCall)
     throws IOException {
   sourceCall.setContext(null);
 }
コード例 #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();
  }
コード例 #3
0
ファイル: TextDelimited.java プロジェクト: nahguam/cascading
  @Override
  public void sourcePrepare(
      FlowProcess<? extends Properties> flowProcess,
      SourceCall<LineNumberReader, InputStream> sourceCall)
      throws IOException {
    sourceCall.setContext(createInput(sourceCall.getInput()));

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