org.apache.hadoop.hive.ql.io
Class RCFileRecordReader<K extends org.apache.hadoop.io.LongWritable,V extends BytesRefArrayWritable>

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.RCFileRecordReader<K,V>
All Implemented Interfaces:
org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,BytesRefArrayWritable>

public class RCFileRecordReader<K extends org.apache.hadoop.io.LongWritable,V extends BytesRefArrayWritable>
extends Object
implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,BytesRefArrayWritable>


Field Summary
protected  org.apache.hadoop.conf.Configuration conf
           
 
Constructor Summary
RCFileRecordReader(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapred.FileSplit split)
           
 
Method Summary
 void close()
           
 org.apache.hadoop.io.LongWritable createKey()
           
 BytesRefArrayWritable createValue()
           
 Class<?> getKeyClass()
           
 long getPos()
           
 float getProgress()
          Return the progress within the input split
 Class<?> getValueClass()
           
protected  boolean next(org.apache.hadoop.io.LongWritable key)
           
 boolean next(org.apache.hadoop.io.LongWritable key, BytesRefArrayWritable value)
           
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

RCFileRecordReader

public RCFileRecordReader(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 org.apache.hadoop.io.LongWritable createKey()
Specified by:
createKey in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,BytesRefArrayWritable>

createValue

public BytesRefArrayWritable createValue()
Specified by:
createValue in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,BytesRefArrayWritable>

next

public boolean next(org.apache.hadoop.io.LongWritable key,
                    BytesRefArrayWritable value)
             throws IOException
Specified by:
next in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,BytesRefArrayWritable>
Throws:
IOException

next

protected boolean next(org.apache.hadoop.io.LongWritable key)
                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<org.apache.hadoop.io.LongWritable,BytesRefArrayWritable>
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<org.apache.hadoop.io.LongWritable,BytesRefArrayWritable>
Throws:
IOException

seek

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

close

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


Copyright © 2009 The Apache Software Foundation