public class MongoDBDataSource extends VectorDataSource
EMPTY_ATTRIBUTE_ARRAY, EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
MongoDBDataSource() |
Modifier and Type | Method and Description |
---|---|
AttributeStat[] |
calculateStats(QueryFilter[] queryFilters,
Attribute[] attributes) |
void |
close() |
void |
delete()
The
delete() method is called when a spatial data source is being deleted
in order to free and delete all resources used. |
DataSet |
extractAttributes(QueryFilter[] queryFilters,
Attribute[] attributes,
java.util.Map<java.lang.String,?> extraParameters) |
JMapGeoElement[] |
extractElements(QueryFilter[] queryFilters,
Attribute[] attributes) |
Attribute[] |
getAttributeMetaData() |
int |
getCount(QueryFilter[] queryFilters) |
SpatialDataSourceInfo |
getDataSourceInfo()
Returns the spatial data source info that was used to initialize this spatial data source.
|
Rectangle |
getExtent() |
Rectangle |
getExtent(QueryFilter[] queryFilters) |
java.lang.String |
getName()
Returns the name of the current spatial data source.
|
void |
init(SpatialDataSourceInfo dataSourceInfo) |
void |
update() |
appendAttributeFilter, applyQueryFilters, extractElements
isCancelled, validateProjection
public java.lang.String getName()
SpatialDataSource
getName
in class SpatialDataSource
public void init(SpatialDataSourceInfo dataSourceInfo) throws java.lang.Exception
init
in class SpatialDataSource
java.lang.Exception
public void update() throws java.lang.Exception
update
in class SpatialDataSource
java.lang.Exception
public JMapGeoElement[] extractElements(QueryFilter[] queryFilters, Attribute[] attributes) throws java.lang.Exception
extractElements
in class VectorDataSource
java.lang.Exception
public int getCount(QueryFilter[] queryFilters) throws java.lang.Exception
getCount
in class VectorDataSource
java.lang.Exception
public AttributeStat[] calculateStats(QueryFilter[] queryFilters, Attribute[] attributes) throws java.lang.Exception
calculateStats
in class VectorDataSource
java.lang.Exception
public Rectangle getExtent(QueryFilter[] queryFilters) throws java.lang.Exception
getExtent
in class VectorDataSource
java.lang.Exception
public Rectangle getExtent() throws java.lang.Exception
getExtent
in class SpatialDataSource
java.lang.Exception
public SpatialDataSourceInfo getDataSourceInfo()
SpatialDataSource
getDataSourceInfo
in class SpatialDataSource
public Attribute[] getAttributeMetaData() throws java.lang.Exception
getAttributeMetaData
in class SpatialDataSource
java.lang.Exception
public void close() throws java.lang.Exception
close
in class SpatialDataSource
java.lang.Exception
public void delete() throws java.lang.Exception
SpatialDataSource
delete()
method is called when a spatial data source is being deleted
in order to free and delete all resources used.delete
in class SpatialDataSource
java.lang.Exception
public DataSet extractAttributes(QueryFilter[] queryFilters, Attribute[] attributes, java.util.Map<java.lang.String,?> extraParameters) throws java.lang.Exception
extractAttributes
in class SpatialDataSource
java.lang.Exception