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
Fields Modifier and Type Field Description static longDATA_OFFSETprotected booleanencounteredMultiValueRowprotected ColumnCapabilities.CapablemultiValue
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaddSelection()Adds 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 Detail
-
DATA_OFFSET
public static final long DATA_OFFSET
- See Also:
- Constant Field Values
-
multiValue
protected final ColumnCapabilities.Capable multiValue
-
encounteredMultiValueRow
protected boolean encounteredMultiValueRow
-
-
Method Detail
-
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
@Nullable public abstract List<ByteBuffer> getUtf8ByteBuffersFromSelector(T selector)
Extracts a list of ByteBuffers from the selector. Null values are returned asFrameWriterUtils.NULL_STRING_MARKER_ARRAY.
-
-