public abstract class SpatialDbContentResolver extends FileContentResolver
Modifier and Type | Field and Description |
---|---|
protected DataSourceFeatureDataStore |
_database |
protected MapView |
_mapView |
_handlers, _validExts
Modifier | Constructor and Description |
---|---|
protected |
SpatialDbContentResolver(MapView mv,
DataSourceFeatureDataStore db,
java.util.Set<java.lang.String> validExts) |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(java.io.File f)
Add or update a content handler
|
protected abstract SpatialDbContentHandler |
createHandler(java.io.File f,
java.util.List<java.lang.Long> featureSetIds,
Envelope bounds)
Create a new content handler
|
java.util.List<URIContentHandler> |
query(URIQueryParameters params)
Query a list of content using specific parameters
|
void |
scan(SpatialDbContentSource source)
Perform a scan for existing files in the database and create handlers
Only to be called during initialization
|
addHandler, addHandler, dispose, getHandler, getHandler, getHandlers, onVisibilityConditions, removeHandler
protected final MapView _mapView
protected final DataSourceFeatureDataStore _database
protected SpatialDbContentResolver(MapView mv, DataSourceFeatureDataStore db, java.util.Set<java.lang.String> validExts)
public void scan(SpatialDbContentSource source)
source
- Content source used for checking if a file matchespublic void addHandler(java.io.File f)
f
- Content fileprotected abstract SpatialDbContentHandler createHandler(java.io.File f, java.util.List<java.lang.Long> featureSetIds, Envelope bounds)
f
- Content filefeatureSetIds
- List of associated feature set IDsbounds
- Complete bounds (null if N/A)public java.util.List<URIContentHandler> query(URIQueryParameters params)
URIQueryInterface
query
in interface URIQueryInterface
query
in class FileContentResolver
params
- Query parameters