Interface FieldWriter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Releases resources held by this writer.
      long writeTo​(org.apache.datasketches.memory.WritableMemory memory, long position, long maxSize)
      Writes the current selection at the given memory position.
    • Method Detail

      • writeTo

        long writeTo​(org.apache.datasketches.memory.WritableMemory memory,
                     long position,
                     long maxSize)
        Writes the current selection at the given memory position.
        Parameters:
        memory - memory region in little-endian order
        position - position to write
        maxSize - maximum number of bytes to write
        Returns:
        number of bytes written, or -1 if "maxSize" was not enough memory