# Collection - (Tuple|Vector|Row)

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:

$\begin{array}{rrr} 0 & \mapsto & x & \mapsto & 2\\ 1 & \mapsto & y & \mapsto & 4\\ 2 & \mapsto & z & \mapsto & Bar\\ \end{array}$

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

## Documentation / Reference

Discover More
(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,...
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...

use a Tuple model (See Javadoc Tuple). has a fail fast planner (it does not rely on the compiler, except in the arbitrary object...
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...
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...
Data Processing - Batch

The batch semantics means grouping data into batch in order to manipulate a lot of data at once as opposed to read and process each unit of data. The data is stored in a container: for disk...
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...
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...
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...
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...