public class CompositeRecordReader.JoinCollector extends Object
Constructor and Description |
---|
CompositeRecordReader.JoinCollector(int card)
Construct a collector capable of handling the specified number of
children.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int id,
ResetableIterator<X> i)
Register a given iterator at position id.
|
void |
clear()
Clear all state information.
|
void |
close()
Close all child iterators.
|
boolean |
flush(TupleWritable value)
Write the next value into key, value as accepted by the operation
associated with this set of RecordReaders.
|
boolean |
hasNext()
Returns false if exhausted or if reset(K) has not been called.
|
K |
key()
Return the key associated with this collection.
|
protected boolean |
next(TupleWritable val)
Populate Tuple from iterators.
|
boolean |
replay(TupleWritable val)
Replay the last Tuple emitted.
|
void |
reset(K key)
Codify the contents of the collector to be iterated over.
|
public CompositeRecordReader.JoinCollector(int card)
public void add(int id, ResetableIterator<X> i) throws IOException
IOException
public K key()
public void reset(K key)
public void clear()
public boolean hasNext()
protected boolean next(TupleWritable val) throws IOException
IOException
public boolean replay(TupleWritable val) throws IOException
IOException
public void close() throws IOException
IOException
public boolean flush(TupleWritable value) throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.