com.twitter.elephantbird.mapreduce.input
Class RCFileProtobufTupleInputFormat.TupleReader

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordReader<K,V>
      extended by com.twitter.elephantbird.mapreduce.input.FilterRecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Writable>
          extended by com.twitter.elephantbird.mapreduce.input.RCFileProtobufInputFormat.ProtobufReader
              extended by com.twitter.elephantbird.mapreduce.input.RCFileProtobufTupleInputFormat.TupleReader
All Implemented Interfaces:
Closeable
Enclosing class:
RCFileProtobufTupleInputFormat

public class RCFileProtobufTupleInputFormat.TupleReader
extends RCFileProtobufInputFormat.ProtobufReader


Field Summary
 
Fields inherited from class com.twitter.elephantbird.mapreduce.input.RCFileProtobufInputFormat.ProtobufReader
columnsBeingRead, knownRequiredFields, msgBuilder, msgInstance, protoWritable, readUnknownsColumn
 
Fields inherited from class com.twitter.elephantbird.mapreduce.input.FilterRecordReader
reader
 
Constructor Summary
RCFileProtobufTupleInputFormat.TupleReader(org.apache.hadoop.mapreduce.RecordReader reader)
          The reader is expected to be a RecordReader< LongWritable, BytesRefArrayWritable >.
 
Method Summary
 org.apache.pig.data.Tuple getCurrentTupleValue()
          Returns a Tuple consisting of required fields with out creating a Protobuf message at the top level.
 
Methods inherited from class com.twitter.elephantbird.mapreduce.input.RCFileProtobufInputFormat.ProtobufReader
getCurrentBytesRefArrayWritable, getCurrentProtobufValue, getCurrentValue, initialize, isReadingUnknonwsColumn
 
Methods inherited from class com.twitter.elephantbird.mapreduce.input.FilterRecordReader
close, getCurrentKey, getProgress, nextKeyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCFileProtobufTupleInputFormat.TupleReader

public RCFileProtobufTupleInputFormat.TupleReader(org.apache.hadoop.mapreduce.RecordReader reader)
The reader is expected to be a RecordReader< LongWritable, BytesRefArrayWritable >.

Method Detail

getCurrentTupleValue

public org.apache.pig.data.Tuple getCurrentTupleValue()
                                               throws IOException,
                                                      InterruptedException
Returns a Tuple consisting of required fields with out creating a Protobuf message at the top level.

Throws:
IOException
InterruptedException


Copyright © 2015 Twitter. All Rights Reserved.