@InterfaceAudience.Public @InterfaceStability.Stable public abstract class JoinRecordReader<K extends org.apache.hadoop.io.WritableComparable<?>> extends CompositeRecordReader<K,org.apache.hadoop.io.Writable,TupleWritable>
Modifier and Type | Class and Description |
---|---|
protected class |
JoinRecordReader.JoinDelegationIterator
Since the JoinCollector is effecting our operation, we need only
provide an iterator proxy wrapping its operation.
|
CompositeRecordReader.JoinCollector
Constructor and Description |
---|
JoinRecordReader(int id,
org.apache.hadoop.conf.Configuration conf,
int capacity,
Class<? extends org.apache.hadoop.io.WritableComparator> cmpcl) |
Modifier and Type | Method and Description |
---|---|
TupleWritable |
createValue()
Create instance of value.
|
protected ResetableIterator<TupleWritable> |
getDelegate()
Return an iterator wrapping the JoinCollector.
|
boolean |
nextKeyValue()
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, createKey, createTupleWritable, fillJoinCollector, getComparator, getConf, getCurrentKey, getCurrentValue, getProgress, getRecordReaderQueue, hasNext, id, initialize, key, key, setConf, skip
public JoinRecordReader(int id, org.apache.hadoop.conf.Configuration conf, int capacity, Class<? extends org.apache.hadoop.io.WritableComparator> cmpcl) throws IOException
IOException
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
in class RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,TupleWritable>
IOException
InterruptedException
public TupleWritable createValue()
ComposableRecordReader
protected ResetableIterator<TupleWritable> getDelegate()
getDelegate
in class CompositeRecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,org.apache.hadoop.io.Writable,TupleWritable>
Copyright © 2017 Apache Software Foundation. All Rights Reserved.