public class MVSRepository
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static GeoAreaInfo |
EMPTY_RESULT |
| Constructor and Description |
|---|
MVSRepository(boolean keepTemplates, boolean includeFeaturesGeometries, boolean useFeatureCentroids)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTemplates()
Tells whether the templates JSON contents are contained
|
GeoAreaInfo |
getFeatureInfo(java.lang.String layer, java.lang.String featureId)
Gets the information of the feature identified by the layer name and feature id.
|
java.lang.String[] |
getLayers()
Gets the names of all the contained layers
|
java.lang.String |
getTemplate(java.lang.String layer)
Gets the template JSON content of the specified layer.
|
void |
loadTemplate(java.lang.String layer, org.apache.hadoop.fs.Path templatePath, org.apache.hadoop.conf.Configuration conf)
Loads the template file of the given layer from the path specified
|
void |
loadTemplate(java.lang.String layer, java.lang.String jsonTemplate)
Parses the template JSON for the given layer
|
void |
loadTemplates(java.lang.String[] layers, org.apache.hadoop.fs.Path templatesPath, org.apache.hadoop.conf.Configuration conf)
Loads and parses the template files of the given layers from the path specified.
|
public static final GeoAreaInfo EMPTY_RESULT
public MVSRepository(boolean keepTemplates,
boolean includeFeaturesGeometries,
boolean useFeatureCentroids)
keepTemplates - whether the templates JSON contents should be kept in memoryincludeFeaturesGeometries - whether the templates features geometries should be includeduseFeatureCentroids - whether the templates feature geometries should be converted to centroids. This parameter is ignored if includeFeaturesGeometries is set to falsepublic java.lang.String[] getLayers()
public boolean containsTemplates()
public java.lang.String getTemplate(java.lang.String layer)
layer - the name of a layer contained in the repositorypublic GeoAreaInfo getFeatureInfo(java.lang.String layer, java.lang.String featureId)
layer - a layer namefeatureId - a feature id
public void loadTemplates(java.lang.String[] layers,
org.apache.hadoop.fs.Path templatesPath,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
layers - an array of layer namestemplatesPath - the path where the template files are locatedconf - the job configurationjava.io.IOException
public void loadTemplate(java.lang.String layer,
org.apache.hadoop.fs.Path templatePath,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
layer - a layer nametemplatePath - the path where the template is locatedconf - the job configurationjava.io.IOException
public void loadTemplate(java.lang.String layer,
java.lang.String jsonTemplate)
throws java.io.IOException
layer - a layer namejsonTemplate - the template`s JSON contentjava.io.IOException