Class LockingGranuleCatalog
Object
GranuleCatalog
LockingGranuleCatalog
Applies read/write locks around all operations to protect the underlying store, which might not be able to handle
this scenario correctly
-
Field Summary
Fields inherited from class GranuleCatalog
configurations, hints, multiScaleROIProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGranule
(String typeName, SimpleFeature granule, Transaction transaction) void
addGranules
(String typeName, Collection<SimpleFeature> granules, Transaction transaction) void
computeAggregateFunction
(Query q, FeatureCalc function) void
createType
(String identification, String typeSpec) void
createType
(String namespace, String typeName, String typeSpec) void
createType
(SimpleFeatureType featureType) void
dispose()
void
drop()
Drop the underlying catalog, all the individual granule indexes.getBounds
(String typeName, Transaction t) Returns the list of footprint files for the given granulevoid
getGranuleDescriptors
(Query q, GranuleCatalogVisitor visitor) Returns the footprint for the given granule.getGranules
(Query q) getGranules
(Query q, Transaction t) int
protected String
getQueryCapabilities
(String typeName) String[]
mergeHints
(Query q) Merges the wrapper hints with the query ones, making sure not to overwrite the query onesint
removeGranules
(Query query) int
removeGranules
(Query query, Transaction transaction) void
removeType
(String typeName) void
setMultiScaleROIProvider
(MultiLevelROIProvider footprintProvider) Methods inherited from class GranuleCatalog
getConfigurations, getHints
-
Constructor Details
-
LockingGranuleCatalog
-
-
Method Details
-
addGranule
public void addGranule(String typeName, SimpleFeature granule, Transaction transaction) throws IOException - Overrides:
addGranule
in classGranuleCatalog
- Throws:
IOException
-
addGranules
public void addGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) throws IOException - Specified by:
addGranules
in classGranuleCatalog
- Throws:
IOException
-
computeAggregateFunction
- Specified by:
computeAggregateFunction
in classGranuleCatalog
- Throws:
IOException
-
createType
public void createType(String namespace, String typeName, String typeSpec) throws IOException, SchemaException - Specified by:
createType
in classGranuleCatalog
- Throws:
IOException
SchemaException
-
createType
- Specified by:
createType
in classGranuleCatalog
- Throws:
IOException
-
createType
- Specified by:
createType
in classGranuleCatalog
- Throws:
SchemaException
IOException
-
dispose
public void dispose()- Specified by:
dispose
in classGranuleCatalog
-
getBounds
- Specified by:
getBounds
in classGranuleCatalog
-
getBounds
- Overrides:
getBounds
in classGranuleCatalog
-
getGranules
- Specified by:
getGranules
in classGranuleCatalog
- Throws:
IOException
-
getGranules
- Overrides:
getGranules
in classGranuleCatalog
- Throws:
IOException
-
getGranulesCount
- Specified by:
getGranulesCount
in classGranuleCatalog
- Throws:
IOException
-
getGranuleDescriptors
- Specified by:
getGranuleDescriptors
in classGranuleCatalog
- Throws:
IOException
-
getQueryCapabilities
- Specified by:
getQueryCapabilities
in classGranuleCatalog
-
getType
- Specified by:
getType
in classGranuleCatalog
- Throws:
IOException
-
removeType
- Specified by:
removeType
in classGranuleCatalog
- Throws:
IOException
-
removeGranules
- Specified by:
removeGranules
in classGranuleCatalog
-
removeGranules
- Overrides:
removeGranules
in classGranuleCatalog
-
getTypeNames
- Specified by:
getTypeNames
in classGranuleCatalog
-
mergeHints
Description copied from class:GranuleCatalog
Merges the wrapper hints with the query ones, making sure not to overwrite the query ones- Overrides:
mergeHints
in classGranuleCatalog
-
setMultiScaleROIProvider
- Overrides:
setMultiScaleROIProvider
in classGranuleCatalog
-
getGranuleFootprint
Description copied from class:GranuleCatalog
Returns the footprint for the given granule. Mind, when applying insets we might have the case of the geometry being empty (negative buffer eroded it fully), in that case the granule must not be loaded- Overrides:
getGranuleFootprint
in classGranuleCatalog
-
getFootprintFiles
Description copied from class:GranuleCatalog
Returns the list of footprint files for the given granule- Overrides:
getFootprintFiles
in classGranuleCatalog
- Throws:
IOException
-
drop
Description copied from class:GranuleCatalog
Drop the underlying catalog, all the individual granule indexes.This is usuallu done when deleting an ImageMosaic storre.
- Specified by:
drop
in classGranuleCatalog
- Throws:
IOException
- in case something bad happens
-
getParentLocation
- Specified by:
getParentLocation
in classGranuleCatalog
-
getAdaptee
-