Class MutablePointTree

    • Constructor Detail

      • MutablePointTree

        protected MutablePointTree()
        Sole constructor.
    • Method Detail

      • getValue

        public abstract void getValue​(int i,
                                      BytesRef packedValue)
        Set packedValue with a reference to the packed bytes of the i-th value.
      • getByteAt

        public abstract byte getByteAt​(int i,
                                       int k)
        Get the k-th byte of the i-th value.
      • getDocID

        public abstract int getDocID​(int i)
        Return the doc ID of the i-th value.
      • swap

        public abstract void swap​(int i,
                                  int j)
        Swap the i-th and j-th values.
      • save

        public abstract void save​(int i,
                                  int j)
        Save the i-th value into the j-th position in temporary storage.
      • restore

        public abstract void restore​(int i,
                                     int j)
        Restore values between i-th and j-th(excluding) in temporary storage into original storage.
      • moveToChild

        public final boolean moveToChild()
        Description copied from interface: PointValues.PointTree
        Move to the first child node and return true upon success. Returns false for leaf nodes and true otherwise.
        Specified by:
        moveToChild in interface PointValues.PointTree
      • moveToSibling

        public final boolean moveToSibling()
        Description copied from interface: PointValues.PointTree
        Move to the next sibling node and return true upon success. Returns false if the current node has no more siblings.
        Specified by:
        moveToSibling in interface PointValues.PointTree
      • moveToParent

        public final boolean moveToParent()
        Description copied from interface: PointValues.PointTree
        Move to the parent node and return true upon success. Returns false for the root node and true otherwise.
        Specified by:
        moveToParent in interface PointValues.PointTree