Class ComplexFrameColumnWriter
- java.lang.Object
-
- org.apache.druid.frame.write.columnar.ComplexFrameColumnWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable,FrameColumnWriter
public class ComplexFrameColumnWriter extends Object implements FrameColumnWriter
Column writer for complex columns. Dual toComplexFrameColumnReader.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddSelection()Adds the current value to the writervoidclose()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
-
-
-
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
-
-