public class ColumnarFrameWriter extends Object implements FrameWriter
| Constructor and Description |
|---|
ColumnarFrameWriter(RowSignature signature,
List<SortColumn> sortColumns,
AppendableMemory rowOrderMemory,
List<FrameColumnWriter> columnWriters) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSelection()
Write the current row to the frame that is under construction, if there is enough space to do so.
|
void |
close() |
int |
getNumRows()
Returns the number of rows written so far.
|
long |
getTotalSize()
Returns the number of bytes that would be written by
FrameWriter.writeTo(org.apache.datasketches.memory.WritableMemory, long) if called now. |
long |
writeTo(org.apache.datasketches.memory.WritableMemory memory,
long startPosition)
Writes the frame to the provided memory location, which must have at least
FrameWriter.getTotalSize() bytes available. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoByteArraypublic ColumnarFrameWriter(RowSignature signature, List<SortColumn> sortColumns, @Nullable AppendableMemory rowOrderMemory, List<FrameColumnWriter> columnWriters)
public boolean addSelection()
FrameWriterFrameRowTooLargeException.addSelection in interface FrameWriterpublic int getNumRows()
FrameWritergetNumRows in interface FrameWriterpublic long getTotalSize()
FrameWriterFrameWriter.writeTo(org.apache.datasketches.memory.WritableMemory, long) if called now.getTotalSize in interface FrameWriterpublic long writeTo(org.apache.datasketches.memory.WritableMemory memory,
long startPosition)
FrameWriterFrameWriter.getTotalSize() bytes available.
Once this method is called, the frame writer is no longer usable and must be closed.
Returns the number of bytes written, which will equal FrameWriter.getTotalSize().writeTo in interface FrameWriterpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface FrameWriterCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.