public class GeoJsonRecordReader
extends java.lang.Object
org.apache.hadoop.mapred.RecordReader
for GeoJSON text files. Multi-line JSON is supported. Keys are the position in the file, and values are the GeoJSON text. The GeoJSON text is not validated during the parsing.Constructor and Description |
---|
GeoJsonRecordReader(JobConf conf, FileSplit split, GeoJsonParseType parseType)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
LongWritable |
createKey() |
Text |
createValue() |
long |
getPos() |
float |
getProgress() |
boolean |
next(LongWritable key, Text value) |
public GeoJsonRecordReader(JobConf conf, FileSplit split, GeoJsonParseType parseType) throws java.io.IOException
conf
- the job configurationsplit
- the file splitparseType
- the GeoJSON parsing typejava.io.IOException
- thrown if an IOException occurspublic void close() throws java.io.IOException
java.io.IOException
public LongWritable createKey()
public Text createValue()
public long getPos() throws java.io.IOException
java.io.IOException
public float getProgress() throws java.io.IOException
java.io.IOException
public boolean next(LongWritable key, Text value) throws java.io.IOException
java.io.IOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.