org.apache.hcatalog.pig
Class HCatEximLoader
java.lang.Object
org.apache.pig.LoadFunc
org.apache.hcatalog.pig.HCatBaseLoader
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 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 |
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.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 |
HCatEximLoader
public HCatEximLoader()
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