Package org.apache.sis.internal.storage
Interface StoreResource
- All Superinterfaces:
Resource
- All Known Implementing Classes:
AsciiGridStore
,BandGroup
,DataCube
,ImageFileDirectory
,MultiImageStore
,MultiImageStore.Writable
,MultiResolutionImage
,PRJDataStore
,RasterStore
,RawRasterStore
,SingleImageStore
,SingleImageStore.Writable
,StaxDataStore
,Store
,Store
,Store
,Store
,Store
,URIDataStore
,WorldFileResource
,WorldFileStore
,WritableResource
,WritableStore
,WritableStore
,WritableStore
,WritableStore
A resource produced directly by a data store.
This interface can be implemented by the following resources:
DataStore
itself, in which casegetOriginator()
returnsthis
.- Resources returned by the
DataStore.findResource(String)
method. - If the data store is an aggregate, resources returned by
Aggregate.components()
.
subset(Query)
methods.
Use case
This interface provides information about whichDataStore
produced this resource.
It allows for example to fetch the parameters
used for opening the data store. Combined with the resource identifier,
it makes possible to save information needed for reopening the same resource later.
This use case is the reason why this interface should be implemented only by resources produced
directly by a data store, because otherwise the parameters and identifiers would not be
sufficient information for identifying the resource.
Future evolution
This interface is not yet in public API. Whether we should commit this interface in public API is an open question. See SIS-416.- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the data store that produced this resource.Methods inherited from interface org.apache.sis.storage.Resource
addListener, getIdentifier, getMetadata, removeListener