Class StringHeap

java.lang.Object
org.apache.uima.cas.impl.StringHeap

final class StringHeap extends Object
Encapsulate string storage for the CAS.
  • Field Details

  • Constructor Details

    • StringHeap

      StringHeap()
  • Method Details

    • initMemory

      private final void initMemory()
    • reinit

      final void reinit(StringHeapDeserializationHelper shdh, boolean delta)
      Deserialize from a binary serialized CAS
      Parameters:
      shdh - Serialization helper datastructure.
    • serialize

      Create serialization helper datastructure.
      Returns:
      Serialization helper that can be interpreted easier by serialization code.
    • serialize

      StringHeapDeserializationHelper serialize(int startPos)
    • reset

      final void reset()
    • getStringForCode

      String getStringForCode(int stringCode)
    • copyCharsToBuffer

      int copyCharsToBuffer(int stringCode, char[] buffer, int start)
    • addString

      int addString(String s)
      Add a string.
      Parameters:
      s - The string.
      Returns:
      The positional code of the added string.
    • cloneStringReference

      int cloneStringReference(int stringCode)
    • addCharBuffer

      int addCharBuffer(char[] buffer, int start, int length)
    • getCharArrayLength

      final int getCharArrayLength(int stringCode)
    • getLeastStringCode

      final int getLeastStringCode()
    • getLargestStringCode

      final int getLargestStringCode()
    • getSize

      final int getSize()