Class 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 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é
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Tuple.MapEntry<K,​V>
      Simple implementation of the Map interface
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods 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 Detail

      • Tuple

        public Tuple()
    • Method Detail

      • 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