public abstract class GranuleCatalog extends Object
Modifier and Type | Field and Description |
---|---|
protected Hints |
hints |
protected MultiLevelROIProvider |
multiScaleROIProvider |
Constructor and Description |
---|
GranuleCatalog(Hints hints) |
Modifier and Type | Method and Description |
---|---|
void |
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(SimpleFeatureType featureType) |
abstract void |
createType(String identification,
String typeSpec) |
abstract void |
createType(String namespace,
String typeName,
String typeSpec) |
abstract void |
dispose() |
abstract void |
drop()
Drop the underlying catalog, all the individual granule indexes.
|
abstract BoundingBox |
getBounds(String typeName) |
List<File> |
getFootprintFiles(SimpleFeature sf)
Returns the list of footprint files for the given granule
|
abstract void |
getGranuleDescriptors(Query q,
GranuleCatalogVisitor visitor) |
protected MultiLevelROI |
getGranuleFootprint(SimpleFeature sf)
Returns the footprint for the given granule.
|
abstract SimpleFeatureCollection |
getGranules(Query q) |
abstract int |
getGranulesCount(Query q) |
abstract QueryCapabilities |
getQueryCapabilities(String typeName) |
abstract SimpleFeatureType |
getType(String typeName) |
abstract String[] |
getTypeNames() |
protected Query |
mergeHints(Query q)
Merges the wrapper hints with the query ones, making sure not to overwrite the query ones
|
abstract int |
removeGranules(Query query) |
abstract void |
removeType(String typeName) |
void |
setMultiScaleROIProvider(MultiLevelROIProvider footprintProvider) |
protected final Hints hints
protected MultiLevelROIProvider multiScaleROIProvider
public GranuleCatalog(Hints hints)
hints
- public void addGranule(String typeName, SimpleFeature granule, Transaction transaction) throws IOException
IOException
public abstract void addGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) throws IOException
IOException
public abstract void computeAggregateFunction(Query q, FeatureCalc function) throws IOException
IOException
public abstract void createType(String namespace, String typeName, String typeSpec) throws IOException, SchemaException
IOException
SchemaException
public abstract void createType(SimpleFeatureType featureType) throws IOException
IOException
public abstract void createType(String identification, String typeSpec) throws SchemaException, IOException
SchemaException
IOException
public abstract void dispose()
public abstract BoundingBox getBounds(String typeName)
public abstract SimpleFeatureCollection getGranules(Query q) throws IOException
IOException
public abstract int getGranulesCount(Query q) throws IOException
IOException
public abstract void getGranuleDescriptors(Query q, GranuleCatalogVisitor visitor) throws IOException
IOException
public abstract QueryCapabilities getQueryCapabilities(String typeName)
public abstract SimpleFeatureType getType(String typeName) throws IOException
IOException
public abstract void removeType(String typeName) throws IOException
IOException
public abstract int removeGranules(Query query)
public abstract String[] getTypeNames()
protected Query mergeHints(Query q)
q
- public void setMultiScaleROIProvider(MultiLevelROIProvider footprintProvider)
protected MultiLevelROI getGranuleFootprint(SimpleFeature sf)
sf
- public List<File> getFootprintFiles(SimpleFeature sf) throws IOException
sf
- IOException
public abstract void drop() throws IOException
This is usuallu done when deleting an ImageMosaic storre.
IOException
- in case something bad happensCopyright © 1996–2019 Geotools. All rights reserved.