public class MVSConfig
extends java.lang.Object
MVSService
configuration. An instance of this class can be stored and loaded to/from a job configuration.Modifier and Type | Class and Description |
---|---|
static class |
MVSConfig.ResponseSpatialContent
The type of spatial content returned by MVSuggest
|
static class |
MVSConfig.ServiceInterface
The type of MVSuggest interface
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONF_MATCH_COUNTRY
Job configuration: a country name used as a context for searches
|
static java.lang.String |
CONF_MATCH_LAYERS
Job configuration: a comma separated list of layers used by MVSuggest to perform searches
|
static java.lang.String |
CONF_MAX_QUERY_RECORDS
Job configuration: an integer number defining the maximum number of records sent to MVSuggest by each request.
|
static java.lang.String |
CONF_PROVIDE_TEMPLATES
Job configuration: boolean value that specified whether or not the MVSuggest implementation should keep the templates content in memory.
|
static java.lang.String |
CONF_RESPONCE_SPATIAL_CONTENT
Job configuration: the type of spatial content returned by MVSuggest.
|
static java.lang.String |
CONF_SERVCE_LOCATION
Job configuration: the MVSuggest location.
|
static java.lang.String |
CONF_SERVICE_INTERFACE
Job configuration: the type of MVSuggest interface.
|
Constructor and Description |
---|
MVSConfig() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMatchCountry()
Gets a country name used as context when performing a search
|
java.lang.String[] |
getMatchLayers()
Gets the layer names used to narrow MVS searches
|
int |
getMaxQueryRecords()
Gets the maximum number of records contained in a request to MVSuggest.
|
MVSConfig.ResponseSpatialContent |
getResponseSpatialContentType()
Gets the type of spatial content returned by MVSuggest when a match is found.
|
MVSConfig.ServiceInterface |
getServiceInterfaceType()
Gets the MVSuggest interface type
|
java.lang.String |
getServiceLocation()
Gets the MVS service location.
|
boolean |
isProvideTemplates()
Tells whether the templates should be kept in memory so they can be retrieved by calling
MVSService.getTemplate(String) |
void |
load(Configuration conf)
Loads the MVSuggest configuration from the job configuration
|
void |
setMatchCountry(java.lang.String matchCountry)
Sets a country name used as context when performing a search
|
void |
setMatchLayers(java.lang.String[] matchLayers)
Sets the layer names used to narrow MVS searches.
|
void |
setMaxQueryRecords(int maxQueryRecords)
Sets maximum number of records contained in a request to MVSuggest
|
void |
setProvideTemplates(boolean provideTemplates)
Sets whether the templates should be kept in memory so they can be retrieved by calling
MVSService.getTemplate(String) |
void |
setResponseSpatialContentType(MVSConfig.ResponseSpatialContent responseSpatialContentType)
Sets the type of spatial content returned by MVSuggest when a match is found.
|
void |
setServiceInterfaceType(MVSConfig.ServiceInterface serviceInterfaceType)
Sets the MVSuggest interface type
|
void |
setServiceLocation(java.lang.String serviceLocation)
Sets the MVS service location
|
void |
store(Configuration conf)
Saves the MVSuggest to the job configuration
|
public static final java.lang.String CONF_MATCH_COUNTRY
public static final java.lang.String CONF_MATCH_LAYERS
public static final java.lang.String CONF_MAX_QUERY_RECORDS
public static final java.lang.String CONF_PROVIDE_TEMPLATES
MVSService.getTemplate(String)
will always return null.public static final java.lang.String CONF_RESPONCE_SPATIAL_CONTENT
MVSConfig.ResponseSpatialContent
public static final java.lang.String CONF_SERVCE_LOCATION
public static final java.lang.String CONF_SERVICE_INTERFACE
MVSConfig.ServiceInterface
public java.lang.String getMatchCountry()
public java.lang.String[] getMatchLayers()
public int getMaxQueryRecords()
public MVSConfig.ResponseSpatialContent getResponseSpatialContentType()
public MVSConfig.ServiceInterface getServiceInterfaceType()
public java.lang.String getServiceLocation()
public boolean isProvideTemplates()
MVSService.getTemplate(String)
MVSService
public void load(Configuration conf)
conf
- a job configurationpublic void setMatchCountry(java.lang.String matchCountry)
matchCountry
- a country namepublic void setMatchLayers(java.lang.String[] matchLayers)
matchLayers
- an array of layer namespublic void setMaxQueryRecords(int maxQueryRecords)
maxQueryRecords
- the maximum number of query records per requestpublic void setProvideTemplates(boolean provideTemplates)
MVSService.getTemplate(String)
provideTemplates
- true if templates are provided by MVSService
public void setResponseSpatialContentType(MVSConfig.ResponseSpatialContent responseSpatialContentType)
responseSpatialContentType
- the features spatial content type contained in a responsepublic void setServiceInterfaceType(MVSConfig.ServiceInterface serviceInterfaceType)
serviceInterfaceType
- the MVSuggest interface typepublic void setServiceLocation(java.lang.String serviceLocation)
serviceLocation
- the MVS service location. When MVSuggest interface is local it is a path. When the interface is web it is a URL.public void store(Configuration conf)
conf
- a job configurationCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.