Package org.apache.druid.frame.field
Class StringArrayFieldWriter
java.lang.Object
org.apache.druid.frame.field.StringArrayFieldWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,FieldWriter
Like
StringFieldWriter, but reads arrays from a ColumnValueSelector instead of reading from
a DimensionSelector.
See StringFieldReader for format details.-
Constructor Summary
ConstructorsConstructorDescriptionStringArrayFieldWriter(BaseObjectColumnValueSelector<?> selector, boolean removeNullBytes) -
Method Summary
-
Constructor Details
-
StringArrayFieldWriter
-
-
Method Details
-
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
-