public class StreamOutputFile extends Object implements org.apache.parquet.io.OutputFile
OutputFile interface that goes against a Paimon PositionOutputStream.
Because the implementation goes against an open stream, rather than open its own streams against a file, instances can create one stream only.
| Constructor and Description |
|---|
StreamOutputFile(PositionOutputStream stream)
Creates a new StreamOutputFile.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.parquet.io.PositionOutputStream |
create(long blockSizeHint) |
org.apache.parquet.io.PositionOutputStream |
createOrOverwrite(long blockSizeHint) |
long |
defaultBlockSize() |
boolean |
supportsBlockSize() |
public StreamOutputFile(PositionOutputStream stream)
create(long) or createOrOverwrite(long) returns a stream that writes to the given stream.stream - The stream to write to.public org.apache.parquet.io.PositionOutputStream create(long blockSizeHint)
create in interface org.apache.parquet.io.OutputFilepublic org.apache.parquet.io.PositionOutputStream createOrOverwrite(long blockSizeHint)
createOrOverwrite in interface org.apache.parquet.io.OutputFilepublic boolean supportsBlockSize()
supportsBlockSize in interface org.apache.parquet.io.OutputFilepublic long defaultBlockSize()
defaultBlockSize in interface org.apache.parquet.io.OutputFileCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.