Package org.geotools.coverage.grid.io
Class RenamingGranuleStore
Object
RenamingGranuleSource
RenamingGranuleStore
- All Implemented Interfaces:
GranuleSource,GranuleStore
Write supporting subclass of
RenamingGranuleSource-
Field Summary
Fields inherited from class RenamingGranuleSource
delegate, name, schemaFields inherited from interface GranuleSource
FILE_VIEW, FILES, NATIVE_BOUNDS, NATIVE_BOUNDS_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGranules(SimpleFeatureCollection granules) Add all the granules from the specified collection to thisGranuleStore.Gets theTransactionthat thisGranuleStoreis currently operating against.intremoveGranules(Filter filter) Removes granules selected by the given filter.intremoveGranules(Filter filter, Hints hints) Removes granules selected by the given filter, controlled by a set of hints (might be implementation dependent and eventually ignored).voidsetTransaction(Transaction transaction) Provide a transaction for commit/rollback control of a modifying operation on thisGranuleStore.voidupdateGranules(String[] attributeNames, Object[] attributeValues, Filter filter) Modifies the attributes with the supplied values in all granules selected by the given filter.Methods inherited from class RenamingGranuleSource
dispose, getBounds, getCount, getGranules, getSchema, renameQueryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GranuleSource
dispose, getBounds, getCount, getGranules, getSchema, getSupportedHints
-
Constructor Details
-
RenamingGranuleStore
- Throws:
IOException
-
-
Method Details
-
addGranules
Description copied from interface:GranuleStoreAdd all the granules from the specified collection to thisGranuleStore.- Specified by:
addGranulesin interfaceGranuleStore- Parameters:
granules- the granules to add
-
removeGranules
Description copied from interface:GranuleStoreRemoves granules selected by the given filter.- Specified by:
removeGranulesin interfaceGranuleStore- Parameters:
filter- an OpenGIS filter
-
removeGranules
Description copied from interface:GranuleStoreRemoves granules selected by the given filter, controlled by a set of hints (might be implementation dependent and eventually ignored).- Specified by:
removeGranulesin interfaceGranuleStore- Parameters:
filter- an OpenGIS filterhints- a set of hints to control how the removal is performed
-
updateGranules
Description copied from interface:GranuleStoreModifies the attributes with the supplied values in all granules selected by the given filter.- Specified by:
updateGranulesin interfaceGranuleStore- Parameters:
attributeNames- the attributes to modifyattributeValues- the new values for the attributesfilter- an OpenGIS filter
-
getTransaction
Description copied from interface:GranuleStoreGets theTransactionthat thisGranuleStoreis currently operating against.Transaction t = GranuleStore.getTransaction(); try { GranuleStore.addGranules (granules); t.commit(); } catch( IOException erp ){ // something went wrong; t.rollback(); }- Specified by:
getTransactionin interfaceGranuleStore- Returns:
- Transaction in use, or Transaction.AUTO_COMMIT
-
setTransaction
Description copied from interface:GranuleStoreProvide a transaction for commit/rollback control of a modifying operation on thisGranuleStore.Transaction t = new DefaultTransaction(); GranuleStore.setTransaction(t); try { GranuleStore.addGranules (granules); t.commit(); } catch ( IOException ex ) { // something went wrong; t.rollback(); } finally { t.close(); }- Specified by:
setTransactionin interfaceGranuleStore- Parameters:
transaction- the transaction
-