Collection - (Tuple|Vector|Row)

Data System Architecture

About

A tuple is:

  • a finite list of elements (fields) - It can only contain a specific number of elements.
  • ordered by position
  • that may have different types.
  • and still be completely typesafe.

You can see tuple:

Example with a tuple assignement.

(x,y,z) = (2,4,'Bar')

would result in the following tuple:

<math> \begin{array}{rrr} 0 & \mapsto & x & \mapsto & 2\\ 1 & \mapsto & y & \mapsto & 4\\ 2 & \mapsto & z & \mapsto & Bar\\ \end{array} </math>

A Tuple has a schema defining each field

The term tuple comes from the set theory.

In set theory, an (ordered) n-tuple is a sequence (or ordered list) of n elements, where n is a non-negative integer.

Tuples are often used to describe other mathematical objects, such as vector

In a relational database, a tuple is called a row.

Size

Size Name Signature
1 Unit A
2 Pair A, B
3 Triplet A, B, C
4 Quartet A, B, C, D
5 Quintet A, B, C, D, E
6 Sextet A, B, C, D, E, F
7 Septet A, B, C, D, E, F, G
8 Octet A, B, C, D, E, F, G, H
9 Ennead A, B, C, D, E, F, G, H, I
10 Decade A, B, C, D, E, F, G, H, I, J

See also Function - Arity

Implementation

Documentation / Reference





Discover More
Relational Data Model
(Relation|Table) - Tabular data

A Relation is a logical data structure composed of tuple (row) attribute (column, field) The following data structure are a relation: a table, a materialized view (query) (store data) a query,...
Card Puncher Data Processing
Automata - Deterministic finite-state automata (DFA)

A Deterministic finite-state automata (DFA) is a finite automaton that cannot be in more than one state at any one time. The term deterministic refers to the fact that on each input there is one and only...
Card Puncher Data Processing
Cascading

use a Tuple model (See Javadoc Tuple). has a fail fast planner (it does not rely on the compiler, except in the arbitrary object...
Venn Diagram
Collection - Set

A set is: a data structure of the set theory a collection ofdistinct objects (then without duplicate) an unordered collection of objects The objects element of the set have the same type (the type...
Card Puncher Data Processing
Data Processing - (Batch|Bulk) Processing

An batch processing systems (bulk,offline) means: starting a process, reading a lot of data in batch (in parallel if possible) and terminating the process Simple code iterates generally...
Card Puncher Data Processing
Language - Assignment

An assignment is an expression that gives a value to a variable. assignmentstatementexpression assignmentstatementassignment In its simplest form, an assignment statement has a variable on the...
Image Vector
Linear Algebra - Vector

tuple in Linear algebra are called vector. A vector is a list of scalar (real number) used to represent a When the letters are in bold in a formula, it signifies that they're vectors, To represent...
Directed Relationship
Logical Data Modeling - Antisymmetry relationship

A Antisymmetric relation is a relationship that happens when for all a and b in X: if a is related to b then b isNOT related to a or b=a (reflexivity is allowed) In mathematical notation, an Antisymmetric...
Directed Relationship
Logical Data Modeling - Asymmetric Relation (Uni-directional|Antisymmetric)

An asymmetric relation is a type of binary relation that requiers: antisymmetry (ie if a is related to b, b is not related to a) and irreflexivity (ie an element cannot be related to itself) irreflexivity...
Data System Architecture
Logical Data Modeling - Entity (Row | Tuple | Member | Unit | Instance )

An entity isone thing which can be distinctly identified. Example: A specific person A specific company A specific group of persons, A specific place, A specific event It's a concept to...



Share this page:
Follow us:
Task Runner