public class RepositoryDataStoreCatalog extends GranuleCatalog
Repository on demand| Modifier and Type | Field and Description |
|---|---|
protected Properties |
params |
protected static Boolean |
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.
|
hints, multiScaleROIProvider| Constructor and Description |
|---|
RepositoryDataStoreCatalog(Properties params,
boolean create,
Repository repository,
String dataStoreName,
DataStoreFactorySpi spi,
Hints hints) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGranules(String typeName,
Collection<SimpleFeature> granules,
Transaction transaction) |
void |
computeAggregateFunction(Query query,
FeatureCalc function) |
void |
createType(SimpleFeatureType featureType) |
void |
createType(String identification,
String typeSpec) |
void |
createType(String namespace,
String typeName,
String typeSpec) |
void |
dispose() |
protected void |
disposeTileIndexStore()
Allows subclasses to dispose the tile index store
|
void |
drop()
Drop the underlying catalog, all the individual granule indexes.
|
protected void |
finalize() |
BoundingBox |
getBounds(String typeName) |
BoundingBox |
getBounds(String typeName,
Transaction t) |
void |
getGranuleDescriptors(Query query,
GranuleCatalogVisitor visitor) |
SimpleFeatureCollection |
getGranules(Query q) |
SimpleFeatureCollection |
getGranules(Query q,
Transaction t) |
int |
getGranulesCount(Query q) |
QueryCapabilities |
getQueryCapabilities(String typeName) |
protected DataStore |
getTileIndexStore()
Returns the tile index store
|
SimpleFeatureType |
getType(String typeName) |
String[] |
getTypeNames() |
protected Set<String> |
getValidTypeNames()
Returns the set of valid type names (this is going to be a live collection, the code is
allowed to modify it)
|
protected void |
handleInitializationException(Throwable t)
Called in case the initialization of the class failed, allows subclasses to clean up
|
protected 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) |
addGranule, getFootprintFiles, getGranuleFootprint, mergeHints, setMultiScaleROIProviderprotected static final Boolean TRACE_ENABLED
protected Properties params
public RepositoryDataStoreCatalog(Properties params, boolean create, Repository repository, String dataStoreName, DataStoreFactorySpi spi, Hints hints)
protected void handleInitializationException(Throwable t)
protected void initTileIndexStore(Properties params, boolean create, DataStoreFactorySpi spi) throws IOException, MalformedURLException
IOExceptionMalformedURLExceptionprotected void disposeTileIndexStore()
protected DataStore getTileIndexStore()
protected Set<String> getValidTypeNames()
protected void initializeTypeNames(Properties params) throws IOException
IOExceptionpublic void dispose()
dispose in class GranuleCatalogpublic int removeGranules(Query query)
removeGranules in class GranuleCatalogpublic int removeGranules(Query query, Transaction transaction)
removeGranules in class GranuleCatalogpublic void addGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) throws IOException
addGranules in class GranuleCatalogIOExceptionpublic void getGranuleDescriptors(Query query, GranuleCatalogVisitor visitor) throws IOException
getGranuleDescriptors in class GranuleCatalogIOExceptionpublic SimpleFeatureCollection getGranules(Query q) throws IOException
getGranules in class GranuleCatalogIOExceptionpublic SimpleFeatureCollection getGranules(Query q, Transaction t) throws IOException
getGranules in class GranuleCatalogIOExceptionpublic BoundingBox getBounds(String typeName)
getBounds in class GranuleCatalogpublic BoundingBox getBounds(String typeName, Transaction t)
getBounds in class GranuleCatalogpublic void createType(String namespace, String typeName, String typeSpec) throws IOException, SchemaException
createType in class GranuleCatalogIOExceptionSchemaExceptionpublic String[] getTypeNames()
getTypeNames in class GranuleCatalogpublic void createType(SimpleFeatureType featureType) throws IOException
createType in class GranuleCatalogIOExceptionpublic void removeType(String typeName) throws IOException
removeType in class GranuleCatalogIOExceptionpublic void createType(String identification, String typeSpec) throws SchemaException, IOException
createType in class GranuleCatalogSchemaExceptionIOExceptionpublic SimpleFeatureType getType(String typeName) throws IOException
getType in class GranuleCatalogIOExceptionpublic void computeAggregateFunction(Query query, FeatureCalc function) throws IOException
computeAggregateFunction in class GranuleCatalogIOExceptionpublic QueryCapabilities getQueryCapabilities(String typeName)
getQueryCapabilities in class GranuleCatalogprotected void finalize()
throws Throwable
public int getGranulesCount(Query q) throws IOException
getGranulesCount in class GranuleCatalogIOExceptionpublic void drop()
throws IOException
GranuleCatalogThis is usuallu done when deleting an ImageMosaic storre.
drop in class GranuleCatalogIOException - in case something bad happensCopyright © 1996–2021 Geotools. All rights reserved.