Package ca.uqac.lif.cep.tuples
Class Tuple
java.lang.Object
ca.uqac.lif.cep.tuples.Tuple
- Direct Known Subclasses:
TupleFixed,TupleMap
public abstract class Tuple
extends Object
implements ca.uqac.lif.cep.Duplicable, Map<String,Object>
A (named) tuple is a map between attribute names (character strings) and
attribute values (any kind of Object). This class is a generalization of
the classical concept of "tuple" in relational databases (where attributes
can only have scalar values).
There are two direct descendents of the Tuple class:
TupleMap: the most general implementation of a tuple; this is basically aMapobject with a few extra methodsTupleFixed: a fixed tuple assumes stronger hypotheses on its use in order to reduce memory usage and decrease response time.
- Author:
- Sylvain Hallé
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSimple implementation of the Map interface -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
Tuple
public Tuple()
-
-
Method Details
-
duplicate
- Specified by:
duplicatein interfaceca.uqac.lif.cep.Duplicable
-
duplicate
- Specified by:
duplicatein interfaceca.uqac.lif.cep.Duplicable
-