com.twitter.elephantbird.pig.store
Class RCFileProtobufPigStorage

java.lang.Object
  extended by org.apache.pig.StoreFunc
      extended by com.twitter.elephantbird.pig.store.BaseStoreFunc
          extended by com.twitter.elephantbird.pig.store.RCFileProtobufPigStorage
All Implemented Interfaces:
org.apache.pig.StoreFuncInterface

public class RCFileProtobufPigStorage
extends BaseStoreFunc

StoreFunc for storing Protobuf messages in RCFiles.

See Also:
RCFileProtobufOutputFormat}

Field Summary
 
Fields inherited from class com.twitter.elephantbird.pig.store.BaseStoreFunc
contextSignature, writer
 
Constructor Summary
RCFileProtobufPigStorage(String protoClassName)
           
 
Method Summary
 org.apache.hadoop.mapreduce.OutputFormat getOutputFormat()
           
 void putNext(org.apache.pig.data.Tuple t)
           
 
Methods inherited from class com.twitter.elephantbird.pig.store.BaseStoreFunc
getUDFProperties, incrCounter, incrCounter, incrCounter, prepareToWrite, setStoreFuncUDFContextSignature, setStoreLocation, writeRecord
 
Methods inherited from class org.apache.pig.StoreFunc
checkSchema, cleanupOnFailure, cleanupOnFailureImpl, cleanupOnSuccess, relToAbsPathForStoreLocation, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCFileProtobufPigStorage

public RCFileProtobufPigStorage(String protoClassName)
Method Detail

getOutputFormat

public org.apache.hadoop.mapreduce.OutputFormat getOutputFormat()
                                                         throws IOException
Specified by:
getOutputFormat in interface org.apache.pig.StoreFuncInterface
Specified by:
getOutputFormat in class org.apache.pig.StoreFunc
Throws:
IOException

putNext

public void putNext(org.apache.pig.data.Tuple t)
             throws IOException
Specified by:
putNext in interface org.apache.pig.StoreFuncInterface
Specified by:
putNext in class org.apache.pig.StoreFunc
Throws:
IOException


Copyright © 2015 Twitter. All Rights Reserved.