Class StringArrayFieldWriter

java.lang.Object
org.apache.druid.frame.field.StringArrayFieldWriter
All Implemented Interfaces:
Closeable, AutoCloseable, FieldWriter

public class StringArrayFieldWriter extends Object implements FieldWriter
Like StringFieldWriter, but reads arrays from a ColumnValueSelector instead of reading from a DimensionSelector. See StringFieldReader for format details.
  • Constructor Details

  • Method Details

    • writeTo

      public long writeTo(org.apache.datasketches.memory.WritableMemory memory, long position, long maxSize)
      Description copied from interface: FieldWriter
      Writes the current selection at the given memory position.
      Specified by:
      writeTo in interface FieldWriter
      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
    • close

      public void close()
      Description copied from interface: FieldWriter
      Releases resources held by this writer.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface FieldWriter