public class GeoJsonInputFormat
extends <any>
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 |
|---|---|
<any> |
createRecordReader(InputSplit split, TaskAttemptContext context) |
Configuration |
getConf() |
static GeoJsonParseType |
getGeoJsonTypesToParse(Configuration conf)
Returns the GeoJSON parsing type
|
void |
setConf(Configuration conf) |
static void |
setGeoJsonTypesToParse(Configuration conf, GeoJsonParseType parseType)
Sets GeoJSON parsing type.
|
public <any> createRecordReader(InputSplit split,
TaskAttemptContext context)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic Configuration getConf()
public static GeoJsonParseType getGeoJsonTypesToParse(Configuration conf)
conf - the job configurationpublic void setConf(Configuration conf)
public static void setGeoJsonTypesToParse(Configuration conf,
GeoJsonParseType parseType)
conf - the job configurationparseType - the GeoJSON parsing typeCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.