public class FileNameLoader
extends org.apache.pig.LoadFunc
implements org.apache.pig.LoadMetadata
Modifier and Type | Field and Description |
---|---|
protected FileNullInputFormat.FileNullRecordReader |
reader |
protected org.apache.pig.ResourceSchema |
schema |
protected org.apache.pig.data.TupleFactory |
tuples |
Constructor and Description |
---|
FileNameLoader() |
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 loc,
org.apache.hadoop.mapreduce.Job job) |
org.apache.pig.ResourceStatistics |
getStatistics(String loc,
org.apache.hadoop.mapreduce.Job job) |
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 e) |
protected volatile org.apache.pig.ResourceSchema schema
protected org.apache.pig.data.TupleFactory tuples
protected FileNullInputFormat.FileNullRecordReader reader
public org.apache.hadoop.mapreduce.InputFormat getInputFormat() throws IOException
getInputFormat
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 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 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 loc, org.apache.hadoop.mapreduce.Job job) throws IOException
getSchema
in interface org.apache.pig.LoadMetadata
IOException
public org.apache.pig.ResourceStatistics getStatistics(String loc, org.apache.hadoop.mapreduce.Job job) throws IOException
getStatistics
in interface org.apache.pig.LoadMetadata
IOException
public void setPartitionFilter(org.apache.pig.Expression e) 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.