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, Path templatePath, 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, Path templatesPath, 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 boolean containsTemplates()
public GeoAreaInfo getFeatureInfo(java.lang.String layer, java.lang.String featureId)
layer - a layer namefeatureId - a feature idpublic java.lang.String[] getLayers()
public java.lang.String getTemplate(java.lang.String layer)
layer - the name of a layer contained in the repository
public void loadTemplate(java.lang.String layer,
                         Path templatePath,
                         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
public void loadTemplates(java.lang.String[] layers,
                          Path templatesPath,
                          Configuration conf)
                   throws java.io.IOException
layers - an array of layer namestemplatesPath - the path where the template files are locatedconf - the job configurationjava.io.IOExceptionCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.