public class ParquetWriterFactory extends Object implements FormatWriterFactory
FormatWriter
.Constructor and Description |
---|
ParquetWriterFactory(ParquetBuilder<InternalRow> writerBuilder)
Creates a new ParquetWriterFactory using the given builder to assemble the ParquetWriter.
|
Modifier and Type | Method and Description |
---|---|
FormatWriter |
create(PositionOutputStream stream,
String compression)
Creates a writer that writes to the given stream.
|
public ParquetWriterFactory(ParquetBuilder<InternalRow> writerBuilder)
writerBuilder
- The builder to construct the ParquetWriter.public FormatWriter create(PositionOutputStream stream, String compression) throws IOException
FormatWriterFactory
create
in interface FormatWriterFactory
stream
- The output stream to write the encoded data to.compression
- the compression value.IOException
- Thrown if the writer cannot be opened, or if the output stream throws an
exception.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.