public interface ColumnWriteStore extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the related output stream and release any resources
|
void |
endRecord()
called to notify of record boundaries
|
void |
flush()
when we are done writing to flush to the underlying storage
|
long |
getAllocatedSize()
used for information
|
long |
getBufferedSize()
used to flush row groups to disk
|
ColumnWriter |
getColumnWriter(ColumnDescriptor path) |
default boolean |
isColumnFlushNeeded()
Returns whether flushing the possibly cached values (or nulls) to the underlying column writers is necessary,
because the pages might be closed after the next invocation of
endRecord(). |
String |
memUsageString()
used for debugging purpose
|
ColumnWriter getColumnWriter(ColumnDescriptor path)
path - the column for which to create a writervoid flush()
void endRecord()
long getAllocatedSize()
long getBufferedSize()
String memUsageString()
void close()
close in interface AutoCloseabledefault boolean isColumnFlushNeeded()
endRecord().true if all the values shall be written to the underlying column writers before calling
endRecord()Copyright © 2023 The Apache Software Foundation. All rights reserved.