public class GTDataStoreGranuleCatalog extends GranuleCatalog
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 |
---|
GTDataStoreGranuleCatalog(Properties params,
boolean create,
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) |
void |
getGranuleDescriptors(Query query,
GranuleCatalogVisitor visitor) |
SimpleFeatureCollection |
getGranules(Query q) |
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) |
void |
removeType(String typeName) |
addGranule, getFootprintFiles, getGranuleFootprint, mergeHints, setMultiScaleROIProvider
protected static final Boolean TRACE_ENABLED
protected Properties params
public GTDataStoreGranuleCatalog(Properties params, boolean create, DataStoreFactorySpi spi, Hints hints)
protected void initTileIndexStore(Properties params, boolean create, DataStoreFactorySpi spi) throws IOException, MalformedURLException
IOException
MalformedURLException
protected void handleInitializationException(Throwable t)
protected DataStore getTileIndexStore()
protected void disposeTileIndexStore()
protected Set<String> getValidTypeNames()
protected void initializeTypeNames(Properties params) throws IOException
IOException
public void dispose()
dispose
in class GranuleCatalog
public int removeGranules(Query query)
removeGranules
in class GranuleCatalog
public void addGranules(String typeName, Collection<SimpleFeature> granules, Transaction transaction) throws IOException
addGranules
in class GranuleCatalog
IOException
public void getGranuleDescriptors(Query query, GranuleCatalogVisitor visitor) throws IOException
getGranuleDescriptors
in class GranuleCatalog
IOException
public SimpleFeatureCollection getGranules(Query q) throws IOException
getGranules
in class GranuleCatalog
IOException
public BoundingBox getBounds(String typeName)
getBounds
in class GranuleCatalog
public void createType(String namespace, String typeName, String typeSpec) throws IOException, SchemaException
createType
in class GranuleCatalog
IOException
SchemaException
public String[] getTypeNames()
getTypeNames
in class GranuleCatalog
public void createType(SimpleFeatureType featureType) throws IOException
createType
in class GranuleCatalog
IOException
public void removeType(String typeName) throws IOException
removeType
in class GranuleCatalog
IOException
public void createType(String identification, String typeSpec) throws SchemaException, IOException
createType
in class GranuleCatalog
SchemaException
IOException
public SimpleFeatureType getType(String typeName) throws IOException
getType
in class GranuleCatalog
IOException
public void computeAggregateFunction(Query query, FeatureCalc function) throws IOException
computeAggregateFunction
in class GranuleCatalog
IOException
public QueryCapabilities getQueryCapabilities(String typeName)
getQueryCapabilities
in class GranuleCatalog
protected void finalize() throws Throwable
public int getGranulesCount(Query q) throws IOException
getGranulesCount
in class GranuleCatalog
IOException
public void drop() throws IOException
GranuleCatalog
This is usuallu done when deleting an ImageMosaic storre.
drop
in class GranuleCatalog
IOException
- in case something bad happensCopyright © 1996–2019 Geotools. All rights reserved.