org.apache.hcatalog.pig
Class HCatEximLoader

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

public class HCatEximLoader
extends HCatBaseLoader

Pig LoadFunc to read data/metadata from hcatalog exported location


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
HCatEximLoader()
           
 
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)
           
 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, relativeToAbsolutePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HCatEximLoader

public HCatEximLoader()
Method Detail

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

getPartitionKeys

public java.lang.String[] getPartitionKeys(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

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

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