You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sis.apache.org by "Martin Desruisseaux (Jira)" <ji...@apache.org> on 2022/06/06 11:26:00 UTC

[jira] [Updated] (SIS-416) Consider adding StoreResource interface

     [ https://issues.apache.org/jira/browse/SIS-416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Desruisseaux updated SIS-416:
------------------------------------
    Affects Version/s: 1.2
                       1.1
                       1.0
                       0.8

> Consider adding StoreResource interface
> ---------------------------------------
>
>                 Key: SIS-416
>                 URL: https://issues.apache.org/jira/browse/SIS-416
>             Project: Spatial Information Systems
>          Issue Type: Task
>          Components: Storage
>    Affects Versions: 0.8, 1.0, 1.1, 1.2
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>            Priority: Major
>
> The {{org.apache.sis.storage}} package contains a {{Resource}} interface which is the root of all resources loaded by a data store ({{FeatureSet}}, {{Aggregate}}, _etc._). The resources do not tell us which data store created them. In some case we need this information, for example in order to be fetch the parameters used for opening the data store.
> We could add {{getDataStore()}} method in {{Resource}}, but not all resources are produced by a data store (a resource could be computed by a model for instance). A possible approach would be to define this method in a {{StoreResource}} sub-interface, to be implemented only by resources produces by data stores.
> Some open questions are:
> * What should be the behavior if a resource is used after the data store has been closed;
> * Do we really want those resources to keep a reference to their data store?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)