sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SIS-360) Direct access to feature property array
Date Wed, 31 May 2017 10:06:04 GMT
Martin Desruisseaux created SIS-360:
---------------------------------------

             Summary: Direct access to feature property array
                 Key: SIS-360
                 URL: https://issues.apache.org/jira/browse/SIS-360
             Project: Spatial Information Systems
          Issue Type: Improvement
          Components: Features
    Affects Versions: 0.7
            Reporter: Martin Desruisseaux
            Priority: Minor


Some {{DataStore}} implementation creates a large amount of simple {{Feature}} instances.
By "simple", we mean that all their properties have a 1:1 cardinality (i.e. must appear exactly
once). The properties of those {{Feature}} can be stored in a plain array. This is indeed
what the {{org.apache.sis.feature.DenseFeature}} package-private implementation does (we avoid
exposing those implementation details in public API).

In the particular case where the {{Feature}} properties are stored in such array, it would
be more efficient to access them by index instead than by name. We would do that only for
a few performance-critical codes, and not in public API for avoiding complexity.

Possible approaches:

* Create a {{SimpleFeature}} interface in {{org.apache.sis.internal.feature}} package. That
interface could have a {{getPropertyValue(int)}} method.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message