[
https://issues.apache.org/jira/browse/JENA-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15072941#comment-15072941
]
ASF GitHub Bot commented on JENA-1107:
--------------------------------------
GitHub user afs opened a pull request:
https://github.com/apache/jena/pull/115
JENA-1107 : Improve Tuple.
Improvements:
* Tuple as Interface
* Implementation focused on being "Tuples", not only for TDB (it's
historical origin).
* Less space for small tuples.
* Avoid array overheads for small tuples.
* TupleMap uses more consistent naming than ColumnMap.
* TupleMap can be used for index mapping, array mapping, not use Tuple
mapping.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/afs/jena master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/115.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #115
----
commit 571e97553c9d5ccb29818ed85afb70e4fe0318c2
Author: Andy Seaborne <[email protected]>
Date: 2015-12-28T16:27:01Z
JENA-1107: Rework Tuple
commit c665f63004fee2d465f2cbcb48d2defd17e12858
Author: Andy Seaborne <[email protected]>
Date: 2015-12-28T16:27:48Z
JENA-1107: Changes due to reworking Tuple.
commit 9687f8368960d6505d910313d752a68194dbea23
Author: Andy Seaborne <[email protected]>
Date: 2015-12-28T16:57:39Z
Tuple.asArray
commit b5d593d2d132e23533937924891a6d642afe32f2
Author: Andy Seaborne <[email protected]>
Date: 2015-12-28T17:34:56Z
Clean up whitespace inconsistencies
----
> Improve jena-base lib.Tuple
> ---------------------------
>
> Key: JENA-1107
> URL: https://issues.apache.org/jira/browse/JENA-1107
> Project: Apache Jena
> Issue Type: Improvement
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
>
> Tuples, which are immutable, value-equality fixed length sequences of
> instances of the same type, accessed by index.
> They are like {{T[]}} but immutable, with .equals based on contents, and
> could be improved to work independently of their original use in TDB.
> Proposal:
> # Make Tuple an interface (simpler than current), with special
> implementations for low number of elements.
> # {{ColumnMap}} ==> {{TupleMap}} and sort out the naming as much as possible
> to use as a way to manage index mapping, not just rewriting Tuples.
> An intermediate step is to move {{ColumnMap}} into TDB.
> This is not a proposal to add it to {{Triple}} or {{Quad}}.
> {{Triple}} is not the same as a 3-length {{Tuple<Node>}}. Triple elements
> are accessed by name ({{getSubject}} etc), not index. SPO is just one
> possible order in which to think about triples but it has no special status.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)