org.apache.hcatalog.pig
Class HCatLoader

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

public class HCatLoader
extends HCatBaseLoader

Pig LoadFunc to read data from HCat


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
 
Fields inherited from class org.apache.hcatalog.pig.HCatBaseLoader
PRUNE_PROJECTION_INFO, signature
 
Constructor Summary
HCatLoader()
           
 
Method Summary
 org.apache.hadoop.mapreduce.InputFormat<?,?> getInputFormat()
           
 java.lang.String[] getPartitionKeys(java.lang.String location, org.apache.hadoop.mapreduce.Job job)
           
 org.apache.pig.ResourceSchema getSchema(java.lang.String location, org.apache.hadoop.mapreduce.Job job)
           
 java.lang.String relativeToAbsolutePath(java.lang.String location, org.apache.hadoop.fs.Path curDir)
           
 void setLocation(java.lang.String location, org.apache.hadoop.mapreduce.Job job)
           
 void setPartitionFilter(org.apache.pig.Expression partitionFilter)
           
 
Methods inherited from class org.apache.hcatalog.pig.HCatBaseLoader
getFeatures, getNext, getStatistics, prepareToRead, pushProjection, setUDFContextSignature, storeInUDFContext
 
Methods inherited from class org.apache.pig.LoadFunc
getAbsolutePath, getLoadCaster, getPathStrings, join
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HCatLoader

public HCatLoader()
Method Detail

getInputFormat

public org.apache.hadoop.mapreduce.InputFormat<?,?> getInputFormat()
                                                            throws java.io.IOException
Specified by:
getInputFormat in class org.apache.pig.LoadFunc
Throws:
java.io.IOException

relativeToAbsolutePath

public java.lang.String relativeToAbsolutePath(java.lang.String location,
                                               org.apache.hadoop.fs.Path curDir)
                                        throws java.io.IOException
Overrides:
relativeToAbsolutePath in class org.apache.pig.LoadFunc
Throws:
java.io.IOException

setLocation

public void setLocation(java.lang.String location,
                        org.apache.hadoop.mapreduce.Job job)
                 throws java.io.IOException
Specified by:
setLocation in class org.apache.pig.LoadFunc
Throws:
java.io.IOException

getPartitionKeys

public java.lang.String[] getPartitionKeys(java.lang.String location,
                                           org.apache.hadoop.mapreduce.Job job)
                                    throws java.io.IOException
Throws:
java.io.IOException

getSchema

public org.apache.pig.ResourceSchema getSchema(java.lang.String location,
                                               org.apache.hadoop.mapreduce.Job job)
                                        throws java.io.IOException
Throws:
java.io.IOException

setPartitionFilter

public void setPartitionFilter(org.apache.pig.Expression partitionFilter)
                        throws java.io.IOException
Throws:
java.io.IOException