Class StringFrameColumnWriter<T extends ColumnValueSelector>
java.lang.Object
org.apache.druid.frame.write.columnar.StringFrameColumnWriter<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,FrameColumnWriter
public abstract class StringFrameColumnWriter<T extends ColumnValueSelector>
extends Object
implements FrameColumnWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longprotected booleanstatic final bytestatic final longprotected final ColumnCapabilities.Capable -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds the current value to the writervoidclose()abstract List<ByteBuffer>getUtf8ByteBuffersFromSelector(T selector) Extracts a list of ByteBuffers from the selector.longsize()Size (in bytes) of the column data that will get written whenFrameColumnWriter.writeTo(org.apache.datasketches.memory.WritableMemory, long)will be calledvoidundo()Reverts the last added value.longwriteTo(org.apache.datasketches.memory.WritableMemory memory, long startPosition) Writes the value of the column to the provided memory at the given position
-
Field Details
-
DATA_OFFSET
public static final long DATA_OFFSET- See Also:
-
MULTI_VALUE_BYTE
public static final byte MULTI_VALUE_BYTE- See Also:
-
MULTI_VALUE_POSITION
public static final long MULTI_VALUE_POSITION- See Also:
-
multiValue
-
encounteredMultiValueRow
protected boolean encounteredMultiValueRow
-
-
Method Details
-
addSelection
public boolean addSelection()Description copied from interface:FrameColumnWriterAdds the current value to the writer- Specified by:
addSelectionin interfaceFrameColumnWriter
-
undo
public void undo()Description copied from interface:FrameColumnWriterReverts the last added value. Undo calls cannot be called in successsion- Specified by:
undoin interfaceFrameColumnWriter
-
size
public long size()Description copied from interface:FrameColumnWriterSize (in bytes) of the column data that will get written whenFrameColumnWriter.writeTo(org.apache.datasketches.memory.WritableMemory, long)will be called- Specified by:
sizein interfaceFrameColumnWriter
-
writeTo
public long writeTo(org.apache.datasketches.memory.WritableMemory memory, long startPosition) Description copied from interface:FrameColumnWriterWrites the value of the column to the provided memory at the given position- Specified by:
writeToin interfaceFrameColumnWriter
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceFrameColumnWriter
-
getUtf8ByteBuffersFromSelector
Extracts a list of ByteBuffers from the selector. Null values are returned asFrameWriterUtils.NULL_STRING_MARKER_ARRAY.
-