Class GTDataStoreGranuleCatalog
Object
GranuleCatalog
GTDataStoreGranuleCatalog
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Properties
protected final String
protected static final Boolean
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.Fields inherited from class GranuleCatalog
configurations, hints, multiScaleROIProvider
-
Constructor Summary
ConstructorsConstructorDescriptionGTDataStoreGranuleCatalog
(Properties params, CatalogConfigurationBeans configurations, boolean create, DataStoreFactorySpi spi, Hints hints) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGranules
(String typeName, Collection<SimpleFeature> granules, Transaction transaction) void
computeAggregateFunction
(Query query, FeatureCalc function) void
createType
(String identification, String typeSpec) void
createType
(String namespace, String typeName, String typeSpec) void
createType
(SimpleFeatureType featureType) void
dispose()
protected void
Allows subclasses to dispose the tile index storevoid
drop()
Drop the underlying catalog, all the individual granule indexes.protected void
finalize()
getBounds
(String typeName, Transaction t) protected CatalogConfigurationBeans
void
getGranuleDescriptors
(Query query, GranuleCatalogVisitor visitor) getGranules
(Query q) getGranules
(Query q, Transaction t) int
protected String
getQueryCapabilities
(String typeName) protected DataStore
Returns 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 void
Called in case the initialization of the class failed, allows subclasses to clean upprotected void
initializeTypeNames
(Properties params) protected void
initTileIndexStore
(Properties params, boolean create, DataStoreFactorySpi spi) Allows initialization of the tile index store before scanning type names.int
removeGranules
(Query query) int
removeGranules
(Query query, Transaction transaction) void
removeType
(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
-
GTDataStoreGranuleCatalog
public GTDataStoreGranuleCatalog(Properties params, CatalogConfigurationBeans configurations, boolean create, DataStoreFactorySpi spi, Hints hints)
-
-
Method Details
-
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:
IOException
MalformedURLException
-
handleInitializationException
Called in case the initialization of the class failed, allows subclasses to clean up -
getTileIndexStore
Returns the tile index store -
disposeTileIndexStore
protected void disposeTileIndexStore()Allows subclasses to dispose 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:
dispose
in classGranuleCatalog
-
removeGranules
- Specified by:
removeGranules
in classGranuleCatalog
-
removeGranules
- Overrides:
removeGranules
in classGranuleCatalog
-
addGranules
public void addGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) throws IOException - Specified by:
addGranules
in classGranuleCatalog
- Throws:
IOException
-
getGranuleDescriptors
- Specified by:
getGranuleDescriptors
in classGranuleCatalog
- Throws:
IOException
-
getGranules
- Specified by:
getGranules
in classGranuleCatalog
- Throws:
IOException
-
getGranules
- Overrides:
getGranules
in classGranuleCatalog
- Throws:
IOException
-
getBounds
- Specified by:
getBounds
in classGranuleCatalog
-
getBounds
- Overrides:
getBounds
in classGranuleCatalog
-
createType
public void createType(String namespace, String typeName, String typeSpec) throws IOException, SchemaException - Specified by:
createType
in classGranuleCatalog
- Throws:
IOException
SchemaException
-
getTypeNames
- Specified by:
getTypeNames
in classGranuleCatalog
-
createType
- Specified by:
createType
in classGranuleCatalog
- Throws:
IOException
-
removeType
- Specified by:
removeType
in classGranuleCatalog
- Throws:
IOException
-
createType
- Specified by:
createType
in classGranuleCatalog
- Throws:
SchemaException
IOException
-
getType
- Specified by:
getType
in classGranuleCatalog
- Throws:
IOException
-
computeAggregateFunction
- Specified by:
computeAggregateFunction
in classGranuleCatalog
- Throws:
IOException
-
getQueryCapabilities
- Specified by:
getQueryCapabilities
in classGranuleCatalog
-
finalize
-
getGranulesCount
- Specified by:
getGranulesCount
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
-
getConfigurations
- Overrides:
getConfigurations
in classGranuleCatalog
-
getParentLocation
- Specified by:
getParentLocation
in classGranuleCatalog
-