public class GeoSpatialDatatypeConfiguration extends Object implements Serializable
Constructor and Description |
---|
GeoSpatialDatatypeConfiguration(String uriString,
IGeoSpatialLiteralSerializer literalSerializer,
List<GeoSpatialDatatypeFieldConfiguration> fields)
Alternative constructor (to ease writing test cases)
|
GeoSpatialDatatypeConfiguration(String uriStr,
String literalSerializerClass,
org.codehaus.jettison.json.JSONArray fieldsJson)
Constructor, setting up a
GeoSpatialDatatypeConfiguration given a uri and a
JSON array defining the fields as input. |
Modifier and Type | Method and Description |
---|---|
Integer |
getCustomFieldIdx(String customField) |
Map<String,Integer> |
getCustomFieldsIdxs() |
List<GeoSpatialDatatypeFieldConfiguration> |
getFields() |
IGeoSpatialLiteralSerializer |
getLiteralSerializer() |
int |
getNumDimensions() |
org.openrdf.model.URI |
getUri() |
GeoSpatialDatatypeFieldConfiguration.ValueType |
getValueTypeOfCustomField(String customField) |
boolean |
hasCoordSystem() |
boolean |
hasCustomField(String field) |
boolean |
hasCustomFields() |
boolean |
hasLat() |
boolean |
hasLon() |
boolean |
hasTime() |
int |
idxOfField(GeoSpatialDatatypeFieldConfiguration.ServiceMapping mapping)
Computes the index of a field with a given (predefined) service mapping.
|
int[] |
idxsOfCustomFields(Set<String> customFields) |
public GeoSpatialDatatypeConfiguration(String uriStr, String literalSerializerClass, org.codehaus.jettison.json.JSONArray fieldsJson)
GeoSpatialDatatypeConfiguration
given a uri and a
JSON array defining the fields as input. Throws an InvalidGeoSpatialDatatypeConfigurationError
if the uri is null or empty or in case the JSON array does not describe a set of
valid fields.public GeoSpatialDatatypeConfiguration(String uriString, IGeoSpatialLiteralSerializer literalSerializer, List<GeoSpatialDatatypeFieldConfiguration> fields)
uri
- fields
- public org.openrdf.model.URI getUri()
public IGeoSpatialLiteralSerializer getLiteralSerializer()
public List<GeoSpatialDatatypeFieldConfiguration> getFields()
public int idxOfField(GeoSpatialDatatypeFieldConfiguration.ServiceMapping mapping)
mapping
- public int getNumDimensions()
public boolean hasLat()
public boolean hasLon()
public boolean hasTime()
public boolean hasCoordSystem()
public boolean hasCustomFields()
public boolean hasCustomField(String field)
public GeoSpatialDatatypeFieldConfiguration.ValueType getValueTypeOfCustomField(String customField)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.