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 TypeMethodDescriptionvoidaddGranule(String typeName, SimpleFeature granule, Transaction transaction) voidaddGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) voidcomputeAggregateFunction(Query q, FeatureCalc function) voidcreateType(String identification, String typeSpec) voidcreateType(String namespace, String typeName, String typeSpec) voidcreateType(SimpleFeatureType featureType) voiddispose()voiddrop()Drop the underlying catalog, all the individual granule indexes.getBounds(String typeName, Transaction t) Returns the list of footprint files for the given granulevoidgetGranuleDescriptors(Query q, GranuleCatalogVisitor visitor) Returns the footprint for the given granule.getGranules(Query q) getGranules(Query q, Transaction t) intprotected StringgetQueryCapabilities(String typeName) String[]mergeHints(Query q) Merges the wrapper hints with the query ones, making sure not to overwrite the query onesintremoveGranules(Query query) intremoveGranules(Query query, Transaction transaction) voidremoveType(String typeName) voidsetMultiScaleROIProvider(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:
addGranulein classGranuleCatalog- Throws:
IOException
-
addGranules
public void addGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) throws IOException - Specified by:
addGranulesin classGranuleCatalog- Throws:
IOException
-
computeAggregateFunction
- Specified by:
computeAggregateFunctionin classGranuleCatalog- Throws:
IOException
-
createType
public void createType(String namespace, String typeName, String typeSpec) throws IOException, SchemaException - Specified by:
createTypein classGranuleCatalog- Throws:
IOExceptionSchemaException
-
createType
- Specified by:
createTypein classGranuleCatalog- Throws:
IOException
-
createType
- Specified by:
createTypein classGranuleCatalog- Throws:
SchemaExceptionIOException
-
dispose
public void dispose()- Specified by:
disposein classGranuleCatalog
-
getBounds
- Specified by:
getBoundsin classGranuleCatalog
-
getBounds
- Overrides:
getBoundsin classGranuleCatalog
-
getGranules
- Specified by:
getGranulesin classGranuleCatalog- Throws:
IOException
-
getGranules
- Overrides:
getGranulesin classGranuleCatalog- Throws:
IOException
-
getGranulesCount
- Specified by:
getGranulesCountin classGranuleCatalog- Throws:
IOException
-
getGranuleDescriptors
- Specified by:
getGranuleDescriptorsin classGranuleCatalog- Throws:
IOException
-
getQueryCapabilities
- Specified by:
getQueryCapabilitiesin classGranuleCatalog
-
getType
- Specified by:
getTypein classGranuleCatalog- Throws:
IOException
-
removeType
- Specified by:
removeTypein classGranuleCatalog- Throws:
IOException
-
removeGranules
- Specified by:
removeGranulesin classGranuleCatalog
-
removeGranules
- Overrides:
removeGranulesin classGranuleCatalog
-
getTypeNames
- Specified by:
getTypeNamesin classGranuleCatalog
-
mergeHints
Description copied from class:GranuleCatalogMerges the wrapper hints with the query ones, making sure not to overwrite the query ones- Overrides:
mergeHintsin classGranuleCatalog
-
setMultiScaleROIProvider
- Overrides:
setMultiScaleROIProviderin classGranuleCatalog
-
getGranuleFootprint
Description copied from class:GranuleCatalogReturns 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:
getGranuleFootprintin classGranuleCatalog
-
getFootprintFiles
Description copied from class:GranuleCatalogReturns the list of footprint files for the given granule- Overrides:
getFootprintFilesin classGranuleCatalog- Throws:
IOException
-
drop
Description copied from class:GranuleCatalogDrop the underlying catalog, all the individual granule indexes.This is usuallu done when deleting an ImageMosaic storre.
- Specified by:
dropin classGranuleCatalog- Throws:
IOException- in case something bad happens
-
getParentLocation
- Specified by:
getParentLocationin classGranuleCatalog
-
getAdaptee
-