Class Tuple

java.lang.Object
ca.uqac.lif.cep.tuples.Tuple
All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable, Map<String,Object>
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 a Map object with a few extra methods
  • TupleFixed: a fixed tuple assumes stronger hypotheses on its use in order to reduce memory usage and decrease response time.
Author:
Sylvain Hallé
  • Constructor Details

    • Tuple

      public Tuple()
  • Method Details

    • duplicate

      public final Tuple duplicate()
      Specified by:
      duplicate in interface ca.uqac.lif.cep.Duplicable
    • duplicate

      public abstract Tuple duplicate(boolean with_state)
      Specified by:
      duplicate in interface ca.uqac.lif.cep.Duplicable