Andy Seaborne created JENA-1107:
-----------------------------------
Summary: Rework 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, 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)