public class GeoJsonInputFormat
extends <any>
org.apache.hadoop.mapred.FileInputFormat for GeoJSON text files. Multi-line JSON is supported. By default the input format will search for feature objects , this can be changed by providing a different parsing type. 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 |
|---|
GeoJsonInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConf() |
static GeoJsonParseType |
getGeoJsonTypesToParse(JobConf conf)
Returns the GeoJSON parsing type
|
<any> |
getRecordReader(InputSplit split, JobConf conf, Reporter reporter) |
void |
setConf(Configuration conf) |
static void |
setGeoJsonTypesToParse(JobConf conf, GeoJsonParseType parseType)
Sets GeoJSON parsing type.
|
public Configuration getConf()
public static GeoJsonParseType getGeoJsonTypesToParse(JobConf conf)
conf - the job configuration
public <any> getRecordReader(InputSplit split,
JobConf conf,
Reporter reporter)
throws java.io.IOException
java.io.IOExceptionpublic void setConf(Configuration conf)
public static void setGeoJsonTypesToParse(JobConf conf,
GeoJsonParseType parseType)
conf - the job configurationparseType - the GeoJSON parsing typeCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.