public abstract class JoinRecordReader<K extends WritableComparable> extends CompositeRecordReader<K,Writable,TupleWritable> implements ComposableRecordReader<K,TupleWritable>
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
JoinRecordReader.JoinDelegationIterator
Since the JoinCollector is effecting our operation, we need only
provide an iterator proxy wrapping its operation.
|
jc, kids| 构造器和说明 |
|---|
JoinRecordReader(int id,
JobConf conf,
int capacity,
Class<? extends WritableComparator> cmpcl) |
| 限定符和类型 | 方法和说明 |
|---|---|
TupleWritable |
createValue()
Create an object of the appropriate type to be used as a value.
|
protected ResetableIterator<TupleWritable> |
getDelegate()
Return an iterator wrapping the JoinCollector.
|
boolean |
next(K key,
TupleWritable value)
Emit the next set of key, value pairs as defined by the child
RecordReaders and operation associated with this composite RR.
|
accept, add, close, combine, compareTo, createInternalValue, createKey, fillJoinCollector, getComparator, getConf, getPos, getProgress, getRecordReaderQueue, hasNext, id, key, key, setConf, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, createKey, getPos, getProgresscompareTopublic JoinRecordReader(int id,
JobConf conf,
int capacity,
Class<? extends WritableComparator> cmpcl)
throws IOException
IOExceptionpublic boolean next(K key, TupleWritable value) throws IOException
next 在接口中 RecordReader<K extends WritableComparable,TupleWritable>key - the key to read data intovalue - the value to read data intoIOExceptionpublic TupleWritable createValue()
createValue 在接口中 RecordReader<K extends WritableComparable,TupleWritable>protected ResetableIterator<TupleWritable> getDelegate()
getDelegate 在类中 CompositeRecordReader<K extends WritableComparable,Writable,TupleWritable>Copyright © 2009 The Apache Software Foundation