Class GranuleCatalog
Object
GranuleCatalog
- Direct Known Subclasses:
CachingDataStoreGranuleCatalog,GTDataStoreGranuleCatalog,LockingGranuleCatalog,QueryCacheGranuleCatalog,RepositoryDataStoreCatalog
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CatalogConfigurationBeansprotected final Hintsprotected MultiLevelROIProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGranule(String typeName, SimpleFeature granule, Transaction transaction) abstract voidaddGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) abstract voidcomputeAggregateFunction(Query q, FeatureCalc function) abstract voidcreateType(String identification, String typeSpec) abstract voidcreateType(String namespace, String typeName, String typeSpec) abstract voidcreateType(SimpleFeatureType featureType) abstract voiddispose()abstract voiddrop()Drop the underlying catalog, all the individual granule indexes.abstract BoundingBoxgetBounds(String typeName, Transaction t) protected CatalogConfigurationBeansReturns the list of footprint files for the given granuleabstract voidgetGranuleDescriptors(Query q, GranuleCatalogVisitor visitor) protected MultiLevelROIReturns the footprint for the given granule.abstract SimpleFeatureCollectiongetGranules(Query q) getGranules(Query q, Transaction t) abstract intgetHints()protected abstract Stringabstract QueryCapabilitiesgetQueryCapabilities(String typeName) abstract SimpleFeatureTypeabstract String[]protected QuerymergeHints(Query q) Merges the wrapper hints with the query ones, making sure not to overwrite the query onesabstract intremoveGranules(Query query) Deprecated.intremoveGranules(Query query, Transaction transaction) abstract voidremoveType(String typeName) voidsetMultiScaleROIProvider(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:
IOExceptionSchemaException
-
createType
- Throws:
IOException
-
createType
public abstract void createType(String identification, String typeSpec) throws SchemaException, IOException - Throws:
SchemaExceptionIOException
-
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)