Class GranuleCatalog
Object
GranuleCatalog
- Direct Known Subclasses:
CachingDataStoreGranuleCatalog
,GTDataStoreGranuleCatalog
,LockingGranuleCatalog
,QueryCacheGranuleCatalog
,RepositoryDataStoreCatalog
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CatalogConfigurationBeans
protected final Hints
protected MultiLevelROIProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGranule
(String typeName, SimpleFeature granule, Transaction transaction) abstract void
addGranules
(String typeName, Collection<SimpleFeature> granules, Transaction transaction) abstract void
computeAggregateFunction
(Query q, FeatureCalc function) abstract void
createType
(String identification, String typeSpec) abstract void
createType
(String namespace, String typeName, String typeSpec) abstract void
createType
(SimpleFeatureType featureType) abstract void
dispose()
abstract void
drop()
Drop the underlying catalog, all the individual granule indexes.abstract BoundingBox
getBounds
(String typeName, Transaction t) protected CatalogConfigurationBeans
Returns the list of footprint files for the given granuleabstract void
getGranuleDescriptors
(Query q, GranuleCatalogVisitor visitor) protected MultiLevelROI
Returns the footprint for the given granule.abstract SimpleFeatureCollection
getGranules
(Query q) getGranules
(Query q, Transaction t) abstract int
getHints()
protected abstract String
abstract QueryCapabilities
getQueryCapabilities
(String typeName) abstract SimpleFeatureType
abstract String[]
protected Query
mergeHints
(Query q) Merges the wrapper hints with the query ones, making sure not to overwrite the query onesabstract int
removeGranules
(Query query) Deprecated.int
removeGranules
(Query query, Transaction transaction) abstract void
removeType
(String typeName) void
setMultiScaleROIProvider
(MultiLevelROIProvider footprintProvider)
-
Field Details
-
hints
-
configurations
-
multiScaleROIProvider
-
-
Constructor Details
-
GranuleCatalog
-
-
Method Details
-
addGranule
public void addGranule(String typeName, SimpleFeature granule, Transaction transaction) throws IOException - Throws:
IOException
-
addGranules
public abstract void addGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) throws IOException - Throws:
IOException
-
computeAggregateFunction
- Throws:
IOException
-
createType
public abstract void createType(String namespace, String typeName, String typeSpec) throws IOException, SchemaException - Throws:
IOException
SchemaException
-
createType
- Throws:
IOException
-
createType
public abstract void createType(String identification, String typeSpec) throws SchemaException, IOException - Throws:
SchemaException
IOException
-
dispose
public abstract void dispose() -
getBounds
-
getBounds
-
getGranules
- Throws:
IOException
-
getGranules
- Throws:
IOException
-
getGranulesCount
- Throws:
IOException
-
getGranuleDescriptors
public abstract void getGranuleDescriptors(Query q, GranuleCatalogVisitor visitor) throws IOException - Throws:
IOException
-
getQueryCapabilities
-
getType
- Throws:
IOException
-
removeType
- Throws:
IOException
-
removeGranules
Deprecated.please useremoveGranules(Query, Transaction)
-
removeGranules
-
getTypeNames
-
mergeHints
Merges the wrapper hints with the query ones, making sure not to overwrite the query ones -
setMultiScaleROIProvider
-
getGranuleFootprint
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 -
getFootprintFiles
Returns the list of footprint files for the given granule- Throws:
IOException
-
drop
Drop the underlying catalog, all the individual granule indexes.This is usuallu done when deleting an ImageMosaic storre.
- Throws:
IOException
- in case something bad happens
-
getConfigurations
-
getParentLocation
-
getHints
-
removeGranules(Query, Transaction)