Package 

Interface ArrayReader

    • Method Summary

      Modifier and Type Method Description
      abstract Unit reserve(Integer length) Ensures the buffer can contain at least length elements, potentially increasing efficiency.
      abstract Unit padToLength(Integer length) Pads the buffer with nulls up until length elements, efficiently ensuring the length ahead of time.
      abstract Unit set(Integer index, T value) Directly sets the value in the buffer.
      abstract Unit add(T value) Add a value to the buffer
      abstract S getSerializer() The array element serializer
      • Methods inherited from class dev.thecodewarrior.prism.base.analysis.ArrayReader

        build, close, release, start
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • reserve

         abstract Unit reserve(Integer length)

        Ensures the buffer can contain at least length elements, potentially increasing efficiency. This can be used in cases where the element count is known before deserializing.

      • padToLength

         abstract Unit padToLength(Integer length)

        Pads the buffer with nulls up until length elements, efficiently ensuring the length ahead of time. This can be used in cases where the element count is known before deserializing, and must be used if elements are going to be populated using set.

      • set

         abstract Unit set(Integer index, T value)

        Directly sets the value in the buffer. This must be used in combination with padToLength to ensure the list's length is sufficient.

      • add

         abstract Unit add(T value)

        Add a value to the buffer

      • getSerializer

         abstract S getSerializer()

        The array element serializer