Package ca.uqac.lif.cep.tuples
Class Tuple
- java.lang.Object
-
- ca.uqac.lif.cep.tuples.Tuple
-
- All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable
,java.util.Map<java.lang.String,java.lang.Object>
- Direct Known Subclasses:
TupleFixed
,TupleMap
public abstract class Tuple extends java.lang.Object implements ca.uqac.lif.cep.Duplicable, java.util.Map<java.lang.String,java.lang.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 aMap
object 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 Classes Modifier and Type Class Description static class
Tuple.MapEntry<K,V>
Simple implementation of the Map interface
-
Constructor Summary
Constructors Constructor Description Tuple()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tuple
duplicate()
abstract Tuple
duplicate(boolean with_state)
-