Class ShortHeap

java.lang.Object
org.apache.uima.cas.impl.CommonAuxHeap
org.apache.uima.cas.impl.ShortHeap

final class ShortHeap extends CommonAuxHeap
Encapsulate 16 bit storage for a CAS.HEAP_CELL_SIZE
  • Field Details

    • heap

      short[] heap
  • Constructor Details

    • ShortHeap

      ShortHeap()
    • ShortHeap

      ShortHeap(int heapBaseSize, int heapMultLimit)
  • Method Details

    • initMemory

      final void initMemory()
      Specified by:
      initMemory in class CommonAuxHeap
    • initMemory

      final void initMemory(int size)
      Specified by:
      initMemory in class CommonAuxHeap
    • getCapacity

      final int getCapacity()
      Specified by:
      getCapacity in class CommonAuxHeap
    • growHeapIfNeeded

      void growHeapIfNeeded()
      Specified by:
      growHeapIfNeeded in class CommonAuxHeap
    • resetToZeros

      void resetToZeros()
      Specified by:
      resetToZeros in class CommonAuxHeap
    • getHeapValue

      short getHeapValue(int offset)
    • setHeapValue

      void setHeapValue(short val, int pos)
    • addShort

      int addShort(short val)
    • reinit

      protected void reinit(short[] shortHeap)