Package org.apache.druid.frame.field
Class StringArrayFieldWriter
- java.lang.Object
-
- org.apache.druid.frame.field.StringArrayFieldWriter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FieldWriter
public class StringArrayFieldWriter extends Object implements FieldWriter
LikeStringFieldWriter
, but reads arrays from aColumnValueSelector
instead of reading from aDimensionSelector
. SeeStringFieldReader
for format details.
-
-
Constructor Summary
Constructors Constructor Description StringArrayFieldWriter(BaseObjectColumnValueSelector<?> selector)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
StringArrayFieldWriter
public StringArrayFieldWriter(BaseObjectColumnValueSelector<?> selector)
-
-
Method Detail
-
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 interfaceFieldWriter
- Parameters:
memory
- memory region in little-endian orderposition
- position to writemaxSize
- 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 interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceFieldWriter
-
-