Class GranuleCatalog

    • Method Detail

      • 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

        public abstract void computeAggregateFunction​(Query q,
                                                      FeatureCalc function)
                                               throws IOException
        Throws:
        IOException
      • createType

        public abstract void createType​(String namespace,
                                        String typeName,
                                        String typeSpec)
                                 throws IOException,
                                        SchemaException
        Throws:
        IOException
        SchemaException
      • createType

        public abstract void createType​(SimpleFeatureType featureType)
                                 throws IOException
        Throws:
        IOException
      • createType

        public abstract void createType​(String identification,
                                        String typeSpec)
                                 throws SchemaException,
                                        IOException
        Throws:
        SchemaException
        IOException
      • dispose

        public abstract void dispose()
      • getBounds

        public abstract BoundingBox getBounds​(String typeName)
      • getGranulesCount

        public abstract int getGranulesCount​(Query q)
                                      throws IOException
        Throws:
        IOException
      • getGranuleDescriptors

        public abstract void getGranuleDescriptors​(Query q,
                                                   GranuleCatalogVisitor visitor)
                                            throws IOException
        Throws:
        IOException
      • getQueryCapabilities

        public abstract QueryCapabilities getQueryCapabilities​(String typeName)
      • getType

        public abstract SimpleFeatureType getType​(String typeName)
                                           throws IOException
        Throws:
        IOException
      • removeType

        public abstract void removeType​(String typeName)
                                 throws IOException
        Throws:
        IOException
      • removeGranules

        public int removeGranules​(Query query,
                                  Transaction transaction)
      • getTypeNames

        public abstract String[] getTypeNames()
      • mergeHints

        protected Query mergeHints​(Query q)
        Merges the wrapper hints with the query ones, making sure not to overwrite the query ones
      • setMultiScaleROIProvider

        public void setMultiScaleROIProvider​(MultiLevelROIProvider footprintProvider)
      • getGranuleFootprint

        protected MultiLevelROI getGranuleFootprint​(SimpleFeature sf)
        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

        public List<File> getFootprintFiles​(SimpleFeature sf)
                                     throws IOException
        Returns the list of footprint files for the given granule
        Throws:
        IOException
      • drop

        public abstract void drop()
                           throws IOException
        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
      • getParentLocation

        protected abstract String getParentLocation()
      • getHints

        public Hints getHints()