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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.rcfile.merge.RCFileBlockMergeRecordReader
All Implemented Interfaces:
org.apache.hadoop.mapred.RecordReader<RCFileKeyBufferWrapper,RCFileValueBufferWrapper>

public class RCFileBlockMergeRecordReader
extends Object
implements org.apache.hadoop.mapred.RecordReader<RCFileKeyBufferWrapper,RCFileValueBufferWrapper>


Field Summary
protected  org.apache.hadoop.conf.Configuration conf
           
 
Constructor Summary
RCFileBlockMergeRecordReader(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapred.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 org.apache.hadoop.conf.Configuration conf
Constructor Detail

RCFileBlockMergeRecordReader

public RCFileBlockMergeRecordReader(org.apache.hadoop.conf.Configuration conf,
                                    org.apache.hadoop.mapred.FileSplit split)
                             throws IOException
Throws:
IOException
Method Detail

getKeyClass

public Class<?> getKeyClass()

getValueClass

public Class<?> getValueClass()

createKey

public RCFileKeyBufferWrapper createKey()
Specified by:
createKey in interface org.apache.hadoop.mapred.RecordReader<RCFileKeyBufferWrapper,RCFileValueBufferWrapper>

createValue

public RCFileValueBufferWrapper createValue()
Specified by:
createValue in interface org.apache.hadoop.mapred.RecordReader<RCFileKeyBufferWrapper,RCFileValueBufferWrapper>

next

public boolean next(RCFileKeyBufferWrapper key,
                    RCFileValueBufferWrapper value)
             throws IOException
Specified by:
next in interface org.apache.hadoop.mapred.RecordReader<RCFileKeyBufferWrapper,RCFileValueBufferWrapper>
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.

Specified by:
getProgress in interface org.apache.hadoop.mapred.RecordReader<RCFileKeyBufferWrapper,RCFileValueBufferWrapper>
Returns:
0.0 to 1.0 of the input byte range
Throws:
IOException

getPos

public long getPos()
            throws IOException
Specified by:
getPos in interface org.apache.hadoop.mapred.RecordReader<RCFileKeyBufferWrapper,RCFileValueBufferWrapper>
Throws:
IOException

seek

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

getStart

public long getStart()

close

public void close()
           throws IOException
Specified by:
close in interface org.apache.hadoop.mapred.RecordReader<RCFileKeyBufferWrapper,RCFileValueBufferWrapper>
Throws:
IOException


Copyright © 2011 The Apache Software Foundation