public class ParquetRowBuffer extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close(String name)
Close the row buffer and release allocated memory for the channel.
|
Flusher<ParquetChunkData> |
createFlusher() |
net.snowflake.ingest.streaming.internal.ChannelData<T> |
flush(String filePath)
Flush the data in the row buffer by taking the ownership of the old vectors and pass all the
required info back to the flush service to build the blob
|
float |
getSize()
Get the current buffer size
|
InsertValidationResponse |
insertRows(Iterable<Map<String,Object>> rows,
String offsetToken)
Insert a batch of rows into the row buffer
|
void |
setupSchema(List<net.snowflake.ingest.streaming.internal.ColumnMetadata> columns) |
public void setupSchema(List<net.snowflake.ingest.streaming.internal.ColumnMetadata> columns)
public Flusher<ParquetChunkData> createFlusher()
public float getSize()
public InsertValidationResponse insertRows(Iterable<Map<String,Object>> rows, String offsetToken)
rows - input rowoffsetToken - offset token of the latest row in the batchpublic net.snowflake.ingest.streaming.internal.ChannelData<T> flush(String filePath)
filePath - the name of the file the data will be written inpublic void close(String name)
Copyright © 2023. All rights reserved.