Class TupleIndexRBTree

    • Method Detail

      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • getFirst

        public Tuple getFirst​(Tuple rightTuple)
        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
      • fullFastIterator

        public FastIterator<Tuple> fullFastIterator​(Tuple leftTuple)
        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:
      • coerceType

        public static java.lang.Comparable coerceType​(AbstractHashTable.FieldIndex index,
                                                      java.lang.Comparable treeRootKey,
                                                      java.lang.Comparable key)