Class ByteBufferMinMaxOffsetHeap


  • public class ByteBufferMinMaxOffsetHeap
    extends Object
    ByteBuffer-based implementation of the min-max heap developed by Atkinson, et al. (http://portal.acm.org/citation.cfm?id=6621), with some utility functions from Guava's MinMaxPriorityQueue.
    • Method Detail

      • reset

        public void reset()
      • addOffset

        public int addOffset​(int offset)
      • removeMin

        public int removeMin()
      • removeMax

        public int removeMax()
      • removeAt

        public int removeAt​(int deletedIndex)
      • setAt

        public void setAt​(int index,
                          int newVal)
      • getAt

        public int getAt​(int index)
      • indexOf

        public int indexOf​(int offset)
      • removeOffset

        public void removeOffset​(int offset)
      • getHeapSize

        public int getHeapSize()