Class RepositoryDataStoreCatalog
Object
GranuleCatalog
RepositoryDataStoreCatalog
A catalog fetching the backing GeoTools data store from a
Repository on demand- Author:
- Andrea Aime - GeoSolutions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Propertiesprotected final Stringprotected static final BooleanWhen true, the stack trace that created a store that wasn't closed is recorded and then printed out when warning the user about this.Fields inherited from class GranuleCatalog
configurations, hints, multiScaleROIProvider -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryDataStoreCatalog(Properties params, CatalogConfigurationBeans configurations, boolean create, Repository repository, String dataStoreName, DataStoreFactorySpi spi, Hints hints) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) voidcomputeAggregateFunction(Query query, FeatureCalc function) voidcreateType(String identification, String typeSpec) voidcreateType(String namespace, String typeName, String typeSpec) voidcreateType(SimpleFeatureType featureType) voiddispose()protected voidAllows subclasses to dispose the tile index storevoiddrop()Drop the underlying catalog, all the individual granule indexes.protected voidfinalize()getBounds(String typeName, Transaction t) protected CatalogConfigurationBeansvoidgetGranuleDescriptors(Query query, GranuleCatalogVisitor visitor) getGranules(Query q) getGranules(Query q, Transaction t) intprotected StringgetQueryCapabilities(String typeName) protected DataStoreReturns the tile index storeString[]Returns the set of valid type names (this is going to be a live collection, the code is allowed to modify it)protected voidCalled in case the initialization of the class failed, allows subclasses to clean upprotected voidinitializeTypeNames(Properties params) protected voidinitTileIndexStore(Properties params, boolean create, DataStoreFactorySpi spi) Allows initialization of the tile index store before scanning type names.intremoveGranules(Query query) intremoveGranules(Query query, Transaction transaction) voidremoveType(String typeName) Methods inherited from class GranuleCatalog
addGranule, getFootprintFiles, getGranuleFootprint, getHints, mergeHints, setMultiScaleROIProvider
-
Field Details
-
TRACE_ENABLED
When true, the stack trace that created a store that wasn't closed is recorded and then printed out when warning the user about this. -
parentLocation
-
params
-
-
Constructor Details
-
RepositoryDataStoreCatalog
public RepositoryDataStoreCatalog(Properties params, CatalogConfigurationBeans configurations, boolean create, Repository repository, String dataStoreName, DataStoreFactorySpi spi, Hints hints)
-
-
Method Details
-
handleInitializationException
Called in case the initialization of the class failed, allows subclasses to clean up -
initTileIndexStore
protected void initTileIndexStore(Properties params, boolean create, DataStoreFactorySpi spi) throws IOException, MalformedURLException Allows initialization of the tile index store before scanning type names.- Throws:
IOExceptionMalformedURLException
-
disposeTileIndexStore
protected void disposeTileIndexStore()Allows subclasses to dispose the tile index store -
getTileIndexStore
Returns the tile index store -
getValidTypeNames
Returns the set of valid type names (this is going to be a live collection, the code is allowed to modify it) -
initializeTypeNames
- Throws:
IOException
-
dispose
public void dispose()- Specified by:
disposein classGranuleCatalog
-
removeGranules
- Specified by:
removeGranulesin classGranuleCatalog
-
removeGranules
- Overrides:
removeGranulesin classGranuleCatalog
-
addGranules
public void addGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) throws IOException - Specified by:
addGranulesin classGranuleCatalog- Throws:
IOException
-
getGranuleDescriptors
- Specified by:
getGranuleDescriptorsin classGranuleCatalog- Throws:
IOException
-
getGranules
- Specified by:
getGranulesin classGranuleCatalog- Throws:
IOException
-
getGranules
- Overrides:
getGranulesin classGranuleCatalog- Throws:
IOException
-
getBounds
- Specified by:
getBoundsin classGranuleCatalog
-
getBounds
- Overrides:
getBoundsin classGranuleCatalog
-
createType
public void createType(String namespace, String typeName, String typeSpec) throws IOException, SchemaException - Specified by:
createTypein classGranuleCatalog- Throws:
IOExceptionSchemaException
-
getTypeNames
- Specified by:
getTypeNamesin classGranuleCatalog
-
createType
- Specified by:
createTypein classGranuleCatalog- Throws:
IOException
-
removeType
- Specified by:
removeTypein classGranuleCatalog- Throws:
IOException
-
createType
- Specified by:
createTypein classGranuleCatalog- Throws:
SchemaExceptionIOException
-
getType
- Specified by:
getTypein classGranuleCatalog- Throws:
IOException
-
computeAggregateFunction
- Specified by:
computeAggregateFunctionin classGranuleCatalog- Throws:
IOException
-
getQueryCapabilities
- Specified by:
getQueryCapabilitiesin classGranuleCatalog
-
finalize
-
getGranulesCount
- Specified by:
getGranulesCountin 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
-
getConfigurations
- Overrides:
getConfigurationsin classGranuleCatalog
-
getParentLocation
- Specified by:
getParentLocationin classGranuleCatalog
-