Package com.yahoo.vespa.hadoop.pig
Class VespaSimpleJsonLoader
java.lang.Object
org.apache.pig.LoadFunc
com.yahoo.vespa.hadoop.pig.VespaSimpleJsonLoader
public class VespaSimpleJsonLoader
extends org.apache.pig.LoadFunc
Simple JSON loader which loads either one JSON object per line or a
multiline JSON consisting of objects in an array.
Returns only the textual representation of the JSON object.
- Author:
- lesters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.mapreduce.InputFormat
org.apache.pig.data.Tuple
getNext()
void
prepareToRead
(org.apache.hadoop.mapreduce.RecordReader reader, org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit split) void
setLocation
(String location, org.apache.hadoop.mapreduce.Job job) Methods inherited from class org.apache.pig.LoadFunc
getAbsolutePath, getCacheFiles, getLoadCaster, getPathStrings, getShipFiles, join, relativeToAbsolutePath, setUDFContextSignature, warn
-
Constructor Details
-
VespaSimpleJsonLoader
public VespaSimpleJsonLoader()
-
-
Method Details
-
setLocation
- Specified by:
setLocation
in classorg.apache.pig.LoadFunc
- Throws:
IOException
-
getInputFormat
- Specified by:
getInputFormat
in classorg.apache.pig.LoadFunc
- Throws:
IOException
-
prepareToRead
public void prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader, org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit split) throws IOException - Specified by:
prepareToRead
in classorg.apache.pig.LoadFunc
- Throws:
IOException
-
getNext
- Specified by:
getNext
in classorg.apache.pig.LoadFunc
- Throws:
IOException
-