Class AbstractJMapDataSource
java.lang.Object
com.kheops.jmap.server.datasources.SpatialDataSource
com.kheops.jmap.server.datasources.VectorDataSource
com.kheops.jmap.server.datasources.SQLDataSource
com.kheops.jmap.server.datasources.SQLSpatialDataSource
com.kheops.jmap.server.datasources.AbstractJMapDataSource
- Direct Known Subclasses:
AbstractJMapTableDataSource
,JMapSQLDataSource
-
Field Summary
Modifier and TypeFieldDescriptionprotected DatabaseConfig
static final short
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.kheops.jmap.server.datasources.SQLSpatialDataSource
integerFields, mbrX1Field, mbrX2Field, mbrY1Field, mbrY2Field
Fields inherited from class com.kheops.jmap.server.datasources.SQLDataSource
connPool, MAX_EXTRACT_ELEMENTS_COUNT
Fields inherited from class com.kheops.jmap.server.datasources.VectorDataSource
EMPTY_ATTRIBUTE_ARRAY, EMPTY_ELEMENT_ARRAY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculateStats
(QueryFilter[] queryFilters, Attribute[] attributes) Calculates statistics for the specified attributes using the specified filters.protected void
deleteMetadataTableEntry
(Connection conn, String tableName) extractAttributes
(QueryFilter[] queryFilters, Attribute[] attributes, Map<String, ?> extraParameters) extractElements
(QueryFilter[] queryFilters, Attribute[] attributes) extractElements
(QueryFilter[] queryFilters, Attribute[] attributes, int pageSize, int offset) static String
formatGeometryTableName
(int dsId, int tableIndex) static String
formatIndexTableName
(int dsId, int tableIndex) protected Rectangle
void
init
(SpatialDataSourceInfo dataSourceInfo) protected String
prepareSpatialIndexWhereClause
(SpatialIndex spatialIndex, QueryFilter[] queryFilters) protected void
updateMetadataTable
(Connection conn, String oldTableName) void
validateAttributeNames
(Attribute[] attributes) void
validateAttributeNames
(Attribute[] attributes, String[] reservedWords) validateFieldName
(String name) static String
validateFieldName
(String name, String[] reservedWords) Methods inherited from class com.kheops.jmap.server.datasources.SQLSpatialDataSource
appendSpatialFilter, createIndex, createIndex, deleteIndex, getExtent, getSimpleExtent, indexExists, setDefaultIsolationLevel, setIsolationLevel, setMinIsolationLevel
Methods inherited from class com.kheops.jmap.server.datasources.SQLDataSource
appendGeometryTypesFilter, appendSqlFilter, insertSqlRestrictions, setupQueryFilters
Methods inherited from class com.kheops.jmap.server.datasources.VectorDataSource
appendAttributeFilter, applyQueryFilters, getCount
Methods inherited from class com.kheops.jmap.server.datasources.SpatialDataSource
close, delete, getAttributeMetaData, getDataSourceInfo, getExtent, getName, isCancelled, update, validateProjection
-
Field Details
-
TABLE_BASE
- See Also:
-
LAYER_TABLE_BASE
- See Also:
-
SPATIAL_INDEX_TABLE_BASE
- See Also:
-
LAYERS_INDEX_TABLE
- See Also:
-
METADATA_TABLE
- See Also:
-
METADATA_INDEX_ROWS
- See Also:
-
METADATA_INDEX_COLS
- See Also:
-
METADATA_INDEX_TABLE_NAME
- See Also:
-
METADATA_EXTENT_Y2
- See Also:
-
METADATA_EXTENT_X2
- See Also:
-
METADATA_EXTENT_Y1
- See Also:
-
METADATA_EXTENT_X1
- See Also:
-
METADATA_TABLE_NAME
- See Also:
-
METADATA_SRID
- See Also:
-
JMAP_GEOMETRY_FIELD
- See Also:
-
JMAP_GEOMETRY_TYPE_FIELD
- See Also:
-
JMAP_GEOMETRY_TYPE_FIELD_IX_NAME
- See Also:
-
JMAP_ID_FIELD
- See Also:
-
JMAP_ID_FIELD_IX_NAME
- See Also:
-
JMAP_MBR_X1_FIELD
- See Also:
-
JMAP_MBR_Y1_FIELD
- See Also:
-
JMAP_MBR_X2_FIELD
- See Also:
-
JMAP_MBR_Y2_FIELD
- See Also:
-
JMAP_MBR_FIELDS_IX_NAME
- See Also:
-
JMAP_AREA_FIELD
- See Also:
-
JMAP_LENGTH_FIELD
- See Also:
-
JMAP_CENTROID_X_FIELD
- See Also:
-
JMAP_CENTROID_Y_FIELD
- See Also:
-
METADATA_GEOMETRY_FORMAT
- See Also:
-
DEFAULT_GEOMETRY_FORMAT
public static final short DEFAULT_GEOMETRY_FORMAT- See Also:
-
dbConfig
-
-
Constructor Details
-
AbstractJMapDataSource
public AbstractJMapDataSource()
-
-
Method Details
-
init
- Specified by:
init
in classSpatialDataSource
- Throws:
IllegalArgumentException
-
extractElements
public JMapGeoElement[] extractElements(QueryFilter[] queryFilters, Attribute[] attributes) throws Exception - Specified by:
extractElements
in classVectorDataSource
- Throws:
Exception
-
extractElements
public JMapGeoElement[] extractElements(QueryFilter[] queryFilters, Attribute[] attributes, int pageSize, int offset) throws Exception - Overrides:
extractElements
in classVectorDataSource
- Throws:
Exception
-
extractAttributes
public DataSet extractAttributes(QueryFilter[] queryFilters, Attribute[] attributes, Map<String, ?> extraParameters) throws Exception- Specified by:
extractAttributes
in classSpatialDataSource
- Throws:
Exception
-
prepareSpatialIndexWhereClause
protected String prepareSpatialIndexWhereClause(SpatialIndex spatialIndex, QueryFilter[] queryFilters) -
calculateStats
public AttributeStat[] calculateStats(QueryFilter[] queryFilters, Attribute[] attributes) throws Exception Calculates statistics for the specified attributes using the specified filters.- Specified by:
calculateStats
in classVectorDataSource
- Returns:
- calculated statistics for the specified attributes.
- Throws:
Exception
-
getMetadataExtent
- Throws:
SQLException
-
deleteMetadataTableEntry
- Throws:
SQLException
-
updateMetadataTable
- Throws:
SQLException
-
validateFieldName
-
validateFieldName
-
validateAttributeNames
-
validateAttributeNames
-
formatGeometryTableName
-
formatIndexTableName
-