org.apache.hcatalog.pig
Class HCatBaseLoader

java.lang.Object
  extended by org.apache.pig.LoadFunc
      extended by org.apache.hcatalog.pig.HCatBaseLoader
All Implemented Interfaces:
org.apache.pig.LoadMetadata, org.apache.pig.LoadPushDown
Direct Known Subclasses:
HCatEximLoader, HCatLoader

public abstract class HCatBaseLoader
extends org.apache.pig.LoadFunc
implements org.apache.pig.LoadMetadata, org.apache.pig.LoadPushDown

Base class for HCatLoader and HCatEximLoader


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pig.LoadPushDown
org.apache.pig.LoadPushDown.OperatorSet, org.apache.pig.LoadPushDown.RequiredField, org.apache.pig.LoadPushDown.RequiredFieldList, org.apache.pig.LoadPushDown.RequiredFieldResponse
 
Field Summary
protected static java.lang.String PRUNE_PROJECTION_INFO
           
protected  java.lang.String signature
           
 
Constructor Summary
HCatBaseLoader()
           
 
Method Summary
 java.util.List<org.apache.pig.LoadPushDown.OperatorSet> getFeatures()
           
 org.apache.pig.data.Tuple getNext()
           
 org.apache.pig.ResourceStatistics getStatistics(java.lang.String location, org.apache.hadoop.mapreduce.Job job)
           
 void prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader, org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit arg1)
           
 org.apache.pig.LoadPushDown.RequiredFieldResponse pushProjection(org.apache.pig.LoadPushDown.RequiredFieldList requiredFieldsInfo)
           
 void setUDFContextSignature(java.lang.String signature)
           
protected  void storeInUDFContext(java.lang.String signature, java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class org.apache.pig.LoadFunc
getAbsolutePath, getInputFormat, getLoadCaster, getPathStrings, join, relativeToAbsolutePath, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.pig.LoadMetadata
getPartitionKeys, getSchema, setPartitionFilter
 

Field Detail

PRUNE_PROJECTION_INFO

protected static final java.lang.String PRUNE_PROJECTION_INFO
See Also:
Constant Field Values

signature

protected java.lang.String signature
Constructor Detail

HCatBaseLoader

public HCatBaseLoader()
Method Detail

getNext

public org.apache.pig.data.Tuple getNext()
                                  throws java.io.IOException
Specified by:
getNext in class org.apache.pig.LoadFunc
Throws:
java.io.IOException

prepareToRead

public void prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader,
                          org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit arg1)
                   throws java.io.IOException
Specified by:
prepareToRead in class org.apache.pig.LoadFunc
Throws:
java.io.IOException

getStatistics

public org.apache.pig.ResourceStatistics getStatistics(java.lang.String location,
                                                       org.apache.hadoop.mapreduce.Job job)
                                                throws java.io.IOException
Specified by:
getStatistics in interface org.apache.pig.LoadMetadata
Throws:
java.io.IOException

getFeatures

public java.util.List<org.apache.pig.LoadPushDown.OperatorSet> getFeatures()
Specified by:
getFeatures in interface org.apache.pig.LoadPushDown

pushProjection

public org.apache.pig.LoadPushDown.RequiredFieldResponse pushProjection(org.apache.pig.LoadPushDown.RequiredFieldList requiredFieldsInfo)
                                                                 throws org.apache.pig.impl.logicalLayer.FrontendException
Specified by:
pushProjection in interface org.apache.pig.LoadPushDown
Throws:
org.apache.pig.impl.logicalLayer.FrontendException

setUDFContextSignature

public void setUDFContextSignature(java.lang.String signature)
Overrides:
setUDFContextSignature in class org.apache.pig.LoadFunc

storeInUDFContext

protected void storeInUDFContext(java.lang.String signature,
                                 java.lang.String key,
                                 java.lang.Object value)