org.apache.hadoop.hive.ql.io.rcfile.merge
Class RCFileBlockMergeRecordReader

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.rcfile.merge.RCFileBlockMergeRecordReader

public class RCFileBlockMergeRecordReader
extends Object


Field Summary
protected  Configuration conf
           
 
Constructor Summary
RCFileBlockMergeRecordReader(Configuration conf, FileSplit split)
           
 
Method Summary
 void close()
           
 RCFileKeyBufferWrapper createKey()
           
 RCFileValueBufferWrapper createValue()
           
 Class<?> getKeyClass()
           
 long getPos()
           
 float getProgress()
          Return the progress within the input split.
 long getStart()
           
 Class<?> getValueClass()
           
 boolean next(RCFileKeyBufferWrapper key, RCFileValueBufferWrapper value)
           
protected  boolean nextBlock(RCFileKeyBufferWrapper keyWrapper, RCFileValueBufferWrapper valueWrapper)
           
protected  void seek(long pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conf

protected Configuration conf
Constructor Detail

RCFileBlockMergeRecordReader

public RCFileBlockMergeRecordReader(Configuration conf,
                                    FileSplit split)
                             throws IOException
Throws:
IOException
Method Detail

getKeyClass

public Class<?> getKeyClass()

getValueClass

public Class<?> getValueClass()

createKey

public RCFileKeyBufferWrapper createKey()

createValue

public RCFileValueBufferWrapper createValue()

next

public boolean next(RCFileKeyBufferWrapper key,
                    RCFileValueBufferWrapper value)
             throws IOException
Throws:
IOException

nextBlock

protected boolean nextBlock(RCFileKeyBufferWrapper keyWrapper,
                            RCFileValueBufferWrapper valueWrapper)
                     throws IOException
Throws:
IOException

getProgress

public float getProgress()
                  throws IOException
Return the progress within the input split.

Returns:
0.0 to 1.0 of the input byte range
Throws:
IOException

getPos

public long getPos()
            throws IOException
Throws:
IOException

seek

protected void seek(long pos)
             throws IOException
Throws:
IOException

getStart

public long getStart()

close

public void close()
           throws IOException
Throws:
IOException


Copyright © 2012 The Apache Software Foundation