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 aColumnValueSelectorinstead of reading from aDimensionSelector. SeeStringFieldReaderfor format details.
-
-
Constructor Summary
Constructors Constructor Description StringArrayFieldWriter(BaseObjectColumnValueSelector<?> selector, boolean removeNullBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Releases resources held by this writer.longwriteTo(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, boolean removeNullBytes)
-
-
Method Detail
-
writeTo
public long writeTo(org.apache.datasketches.memory.WritableMemory memory, long position, long maxSize)Description copied from interface:FieldWriterWrites the current selection at the given memory position.- Specified by:
writeToin 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:FieldWriterReleases resources held by this writer.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceFieldWriter
-
-