Package io.trino.parquet.writer
Class ParquetWriter
- java.lang.Object
-
- io.trino.parquet.writer.ParquetWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ParquetWriter extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static io.airlift.slice.SliceMAGIC
-
Constructor Summary
Constructors Constructor Description ParquetWriter(OutputStream outputStream, org.apache.parquet.schema.MessageType messageType, Map<List<String>,Type> primitiveTypes, ParquetWriterOptions writerOption, org.apache.parquet.hadoop.metadata.CompressionCodecName compressionCodecName, String trinoVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetBufferedBytes()longgetRetainedBytes()longgetWrittenBytes()voidwrite(Page page)
-
-
-
Constructor Detail
-
ParquetWriter
public ParquetWriter(OutputStream outputStream, org.apache.parquet.schema.MessageType messageType, Map<List<String>,Type> primitiveTypes, ParquetWriterOptions writerOption, org.apache.parquet.hadoop.metadata.CompressionCodecName compressionCodecName, String trinoVersion)
-
-
Method Detail
-
getWrittenBytes
public long getWrittenBytes()
-
getBufferedBytes
public long getBufferedBytes()
-
getRetainedBytes
public long getRetainedBytes()
-
write
public void write(Page page) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-