public class CompositeRecordReader.JoinCollector extends Object
| Constructor and Description |
|---|
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 JoinCollector(int card)
public void add(int id,
ResetableIterator<X> i)
throws IOException
IOExceptionpublic K key()
public void reset(K key)
public void clear()
public boolean hasNext()
protected boolean next(TupleWritable val) throws IOException
IOExceptionpublic boolean replay(TupleWritable val) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic boolean flush(TupleWritable value) throws IOException
IOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.