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.LoadFunc
IOException
public 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.LoadFunc
IOException
public org.apache.pig.data.Tuple getNext() throws IOException
getNext
in class org.apache.pig.LoadFunc
IOException
public void setLocation(String loc, org.apache.hadoop.mapreduce.Job job) throws IOException
setLocation
in class org.apache.pig.LoadFunc
IOException
public String[] getPartitionKeys(String loc, org.apache.hadoop.mapreduce.Job job) throws IOException
getPartitionKeys
in interface org.apache.pig.LoadMetadata
IOException
public org.apache.pig.ResourceSchema getSchema(String arg0, org.apache.hadoop.mapreduce.Job arg1) throws IOException
getSchema
in interface org.apache.pig.LoadMetadata
IOException
public org.apache.pig.ResourceStatistics getStatistics(String arg0, org.apache.hadoop.mapreduce.Job arg1) throws IOException
getStatistics
in interface org.apache.pig.LoadMetadata
IOException
public void setPartitionFilter(org.apache.pig.Expression arg0) throws IOException
setPartitionFilter
in interface org.apache.pig.LoadMetadata
IOException
protected void defineSchema() throws org.apache.pig.impl.logicalLayer.FrontendException
org.apache.pig.impl.logicalLayer.FrontendException
Copyright © 2014. All rights reserved.