cascading.tap.hadoop
Class TapOutputCollector
java.lang.Object
cascading.tap.hadoop.TapOutputCollector
- All Implemented Interfaces:
- java.io.Closeable, OutputCollector
public class TapOutputCollector
- extends java.lang.Object
- implements OutputCollector, java.io.Closeable
Method Summary |
void |
close()
|
void |
collect(java.lang.Object writableComparable,
java.lang.Object writable)
Method collect writes the given values to the Tap this instance encapsulates. |
protected void |
initialize()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TapOutputCollector
public TapOutputCollector(FlowProcess<JobConf> flowProcess,
Tap<JobConf,RecordReader,OutputCollector> tap,
java.lang.String prefix)
throws java.io.IOException
- Throws:
java.io.IOException
initialize
protected void initialize()
throws java.io.IOException
- Throws:
java.io.IOException
collect
public void collect(java.lang.Object writableComparable,
java.lang.Object writable)
throws java.io.IOException
- Method collect writes the given values to the
Tap
this instance encapsulates.
- Specified by:
collect
in interface OutputCollector
- Parameters:
writableComparable
- of type WritableComparablewritable
- of type Writable
- Throws:
java.io.IOException
- when
close
public void close()
- Specified by:
close
in interface java.io.Closeable
Copyright © 2007-2011 Concurrent, Inc. All Rights Reserved.