@InterfaceAudience.Public @InterfaceStability.Stable public abstract class MultiFilterRecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> extends CompositeRecordReader<K,V,V>
Modifier and Type | Class and Description |
---|---|
protected class |
MultiFilterRecordReader.MultiFilterDelegationIterator
Proxy the JoinCollector, but include callback to emit.
|
CompositeRecordReader.JoinCollector
Constructor and Description |
---|
MultiFilterRecordReader(int id,
org.apache.hadoop.conf.Configuration conf,
int capacity,
Class<? extends org.apache.hadoop.io.WritableComparator> cmpcl) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
combine(Object[] srcs,
TupleWritable dst)
Default implementation offers
emit(org.apache.hadoop.mapreduce.lib.join.TupleWritable) every Tuple from the
collector (the outer join of child RRs). |
protected abstract V |
emit(TupleWritable dst)
For each tuple emitted, return a value (typically one of the values
in the tuple).
|
protected ResetableIterator<V> |
getDelegate()
Return an iterator returning a single value from the tuple.
|
void |
initialize(InputSplit split,
TaskAttemptContext context)
Called once at initialization.
|
boolean |
nextKeyValue()
Read the next key, value pair.
|
accept, add, close, compareTo, createKey, createTupleWritable, fillJoinCollector, getComparator, getConf, getCurrentKey, getCurrentValue, getProgress, getRecordReaderQueue, hasNext, id, key, key, setConf, skip
public MultiFilterRecordReader(int id, org.apache.hadoop.conf.Configuration conf, int capacity, Class<? extends org.apache.hadoop.io.WritableComparator> cmpcl) throws IOException
IOException
protected abstract V emit(TupleWritable dst) throws IOException
IOException
protected boolean combine(Object[] srcs, TupleWritable dst)
emit(org.apache.hadoop.mapreduce.lib.join.TupleWritable)
every Tuple from the
collector (the outer join of child RRs).combine
in class CompositeRecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
in class RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReader
initialize
in class CompositeRecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>
split
- the split that defines the range of records to readcontext
- the information about the taskIOException
InterruptedException
protected ResetableIterator<V> getDelegate()
getDelegate
in class CompositeRecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>
MultiFilterRecordReader.MultiFilterDelegationIterator
Copyright © 2013 Apache Software Foundation. All Rights Reserved.