Class TupleList<C>

    • Field Detail

      • first

        protected Tuple first
      • last

        protected Tuple last
      • size

        protected int size
    • Constructor Detail

      • TupleList

        public TupleList()
      • TupleList

        public TupleList​(C c)
      • TupleList

        public TupleList​(Tuple first,
                         Tuple last,
                         int size)
    • Method Detail

      • getContext

        public C getContext()
      • isEmpty

        public boolean isEmpty()
      • getFirst

        public Tuple getFirst​(Tuple tuple)
        Description copied from interface: TupleMemory
        The FactHandle is always the context fact and is necessary when the object being modified is in the both left and right node memories. This is because the memory on the opposite side would not have yet memory.removeAdd the fact, so it could potentially be in the wrong bucket. So the bucket matches check always checks to ignore the first facthandle if it's the same as the context fact.
        Specified by:
        getFirst in interface TupleMemory
      • getFirst

        public Tuple getFirst()
      • getLast

        public Tuple getLast()
      • removeFirst

        public Tuple removeFirst()
      • fullFastIterator

        public FastIterator<Tuple> fullFastIterator​(Tuple tuple)
        Description copied from interface: TupleMemory
        Iterator that resumes from the current RightTuple, regardless of whether the TupleMemory is hashed or not
        Specified by:
        fullFastIterator in interface TupleMemory
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • copyStateInto

        protected void copyStateInto​(TupleList other)
      • addAllToCollection

        public <I> void addAllToCollection​(java.util.Collection<I> c)