cascading.tap.hadoop
Class HadoopTupleEntrySchemeCollector

java.lang.Object
  extended by cascading.tuple.TupleEntryCollector
      extended by cascading.tuple.TupleEntrySchemeCollector<JobConf,OutputCollector>
          extended by cascading.tap.hadoop.HadoopTupleEntrySchemeCollector

public class HadoopTupleEntrySchemeCollector
extends TupleEntrySchemeCollector<JobConf,OutputCollector>

Class TapCollector is a kind of TupleEntryCollector that writes tuples to the resource managed by a particular Tap instance.


Field Summary
 
Fields inherited from class cascading.tuple.TupleEntrySchemeCollector
sinkCall
 
Fields inherited from class cascading.tuple.TupleEntryCollector
tupleEntry
 
Constructor Summary
HadoopTupleEntrySchemeCollector(FlowProcess<JobConf> flowProcess, Tap<JobConf,RecordReader,OutputCollector> tap)
          Constructor TapCollector creates a new TapCollector instance.
HadoopTupleEntrySchemeCollector(FlowProcess<JobConf> flowProcess, Tap<JobConf,RecordReader,OutputCollector> tap, OutputCollector outputCollector)
           
HadoopTupleEntrySchemeCollector(FlowProcess<JobConf> flowProcess, Tap<JobConf,RecordReader,OutputCollector> tap, java.lang.String prefix)
          Constructor TapCollector creates a new TapCollector instance.
 
Method Summary
protected  OutputCollector<?,?> wrapOutput(OutputCollector outputCollector)
           
 
Methods inherited from class cascading.tuple.TupleEntrySchemeCollector
add, add, close, collect, getFlowProcess, getOutput, prepare, setFields, setOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopTupleEntrySchemeCollector

public HadoopTupleEntrySchemeCollector(FlowProcess<JobConf> flowProcess,
                                       Tap<JobConf,RecordReader,OutputCollector> tap)
                                throws java.io.IOException
Constructor TapCollector creates a new TapCollector instance.

Parameters:
flowProcess -
tap - of type Tap @throws IOException when fails to initialize
Throws:
java.io.IOException

HadoopTupleEntrySchemeCollector

public HadoopTupleEntrySchemeCollector(FlowProcess<JobConf> flowProcess,
                                       Tap<JobConf,RecordReader,OutputCollector> tap,
                                       java.lang.String prefix)
                                throws java.io.IOException
Constructor TapCollector creates a new TapCollector instance.

Parameters:
flowProcess -
tap - of type Tap
prefix - of type String
Throws:
java.io.IOException - when fails to initialize

HadoopTupleEntrySchemeCollector

public HadoopTupleEntrySchemeCollector(FlowProcess<JobConf> flowProcess,
                                       Tap<JobConf,RecordReader,OutputCollector> tap,
                                       OutputCollector outputCollector)
Method Detail

wrapOutput

protected OutputCollector<?,?> wrapOutput(OutputCollector outputCollector)
Overrides:
wrapOutput in class TupleEntrySchemeCollector<JobConf,OutputCollector>


Copyright © 2007-2011 Concurrent, Inc. All Rights Reserved.