Class WrappedRecordReader<K extends WritableComparable<?>,U extends Writable>

All Implemented Interfaces:
Closeable, AutoCloseable, Comparable<ComposableRecordReader<K,?>>

@Public @Stable public class WrappedRecordReader<K extends WritableComparable<?>,U extends Writable> extends ComposableRecordReader<K,U>
Proxy class for a RecordReader participating in the join framework. This class keeps track of the "head" key-value pair for the provided RecordReader and keeps a store of values matching a key when this source is participating in a join.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected boolean
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(org.apache.hadoop.mapreduce.lib.join.CompositeRecordReader.JoinCollector i, K key)
    Add an iterator to the collector at the position occupied by this RecordReader over the values in this stream paired with the key provided (ie register a stream of values from this source matching K with a collector).
    void
    Forward close request to proxied RR.
    int
    Implement Comparable contract (compare key at head of proxied RR with that of another).
    Request new key from proxied RR.
     
    boolean
    equals(Object other)
    Return true iff compareTo(other) retn true.
    Get current key
    Get current value
    float
    Request progress from proxied RR.
    int
     
    boolean
    Return true if the RR- including the k,v pair stored in this object- is exhausted.
    int
    id()
    void
    Called once at initialization.
    key()
    Return the key at the head of this RR.
    void
    key(K qkey)
    Clone the key at the head of this RR into the object supplied.
    boolean
    Read the next k,v pair into the head of this object; return true iff the RR and this are exhausted.
    void
    skip(K key)
    Skip key-value pairs with keys less than or equal to the key provided.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait