public class ColumnWriteStoreV1 extends Object
| Constructor and Description |
|---|
ColumnWriteStoreV1(MessageType schema,
PageWriteStore pageWriteStore,
BloomFilterWriteStore bloomFilterWriteStore,
ParquetProperties props) |
ColumnWriteStoreV1(MessageType schema,
PageWriteStore pageWriteStore,
ParquetProperties props) |
ColumnWriteStoreV1(PageWriteStore pageWriteStore,
ParquetProperties props)
Deprecated.
|
| 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
|
Set<ColumnDescriptor> |
getColumnDescriptors() |
ColumnWriter |
getColumnWriter(ColumnDescriptor path) |
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
ColumnWriteStore.endRecord(). |
long |
maxColMemSize() |
String |
memUsageString()
used for debugging purpose
|
String |
toString() |
public ColumnWriteStoreV1(MessageType schema, PageWriteStore pageWriteStore, ParquetProperties props)
@Deprecated public ColumnWriteStoreV1(PageWriteStore pageWriteStore, ParquetProperties props)
public ColumnWriteStoreV1(MessageType schema, PageWriteStore pageWriteStore, BloomFilterWriteStore bloomFilterWriteStore, ParquetProperties props)
public ColumnWriter getColumnWriter(ColumnDescriptor path)
getColumnWriter in interface ColumnWriteStorepath - the column for which to create a writerpublic Set<ColumnDescriptor> getColumnDescriptors()
public long getAllocatedSize()
ColumnWriteStoregetAllocatedSize in interface ColumnWriteStorepublic long getBufferedSize()
ColumnWriteStoregetBufferedSize in interface ColumnWriteStorepublic void flush()
ColumnWriteStoreflush in interface ColumnWriteStorepublic String memUsageString()
ColumnWriteStorememUsageString in interface ColumnWriteStorepublic long maxColMemSize()
public void close()
ColumnWriteStoreclose in interface AutoCloseableclose in interface ColumnWriteStorepublic void endRecord()
ColumnWriteStoreendRecord in interface ColumnWriteStorepublic boolean isColumnFlushNeeded()
ColumnWriteStoreColumnWriteStore.endRecord().isColumnFlushNeeded in interface ColumnWriteStoretrue if all the values shall be written to the underlying column writers before calling
ColumnWriteStore.endRecord()Copyright © 2024 The Apache Software Foundation. All rights reserved.