public class WikiRevisionLoader
extends org.apache.pig.LoadFunc
implements org.apache.pig.LoadMetadata
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.pig.data.BagFactory |
bags |
protected org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,FullRevision> |
reader |
protected org.apache.pig.ResourceSchema |
schema |
protected org.apache.pig.data.TupleFactory |
tuples |
| Constructor and Description |
|---|
WikiRevisionLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
defineSchema() |
org.apache.hadoop.mapreduce.InputFormat |
getInputFormat() |
org.apache.pig.data.Tuple |
getNext() |
String[] |
getPartitionKeys(String loc,
org.apache.hadoop.mapreduce.Job job) |
org.apache.pig.ResourceSchema |
getSchema(String arg0,
org.apache.hadoop.mapreduce.Job arg1) |
org.apache.pig.ResourceStatistics |
getStatistics(String arg0,
org.apache.hadoop.mapreduce.Job arg1) |
void |
prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader,
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit split) |
void |
setLocation(String loc,
org.apache.hadoop.mapreduce.Job job) |
void |
setPartitionFilter(org.apache.pig.Expression arg0) |
protected org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,FullRevision> reader
protected volatile org.apache.pig.ResourceSchema schema
protected org.apache.pig.data.TupleFactory tuples
protected org.apache.pig.data.BagFactory bags
public org.apache.hadoop.mapreduce.InputFormat getInputFormat()
throws IOException
getInputFormat in class org.apache.pig.LoadFuncIOExceptionpublic void prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader,
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit split)
throws IOException
prepareToRead in class org.apache.pig.LoadFuncIOExceptionpublic org.apache.pig.data.Tuple getNext()
throws IOException
getNext in class org.apache.pig.LoadFuncIOExceptionpublic void setLocation(String loc, org.apache.hadoop.mapreduce.Job job) throws IOException
setLocation in class org.apache.pig.LoadFuncIOExceptionpublic String[] getPartitionKeys(String loc, org.apache.hadoop.mapreduce.Job job) throws IOException
getPartitionKeys in interface org.apache.pig.LoadMetadataIOExceptionpublic org.apache.pig.ResourceSchema getSchema(String arg0, org.apache.hadoop.mapreduce.Job arg1) throws IOException
getSchema in interface org.apache.pig.LoadMetadataIOExceptionpublic org.apache.pig.ResourceStatistics getStatistics(String arg0, org.apache.hadoop.mapreduce.Job arg1) throws IOException
getStatistics in interface org.apache.pig.LoadMetadataIOExceptionpublic void setPartitionFilter(org.apache.pig.Expression arg0)
throws IOException
setPartitionFilter in interface org.apache.pig.LoadMetadataIOExceptionprotected void defineSchema()
throws org.apache.pig.impl.logicalLayer.FrontendException
org.apache.pig.impl.logicalLayer.FrontendExceptionCopyright © 2014. All rights reserved.