public interface OutputFile
OutputFile
is an interface with the methods needed by Parquet to write
data files using PositionOutputStream
instances.Modifier and Type | Method and Description |
---|---|
PositionOutputStream |
create(long blockSizeHint)
Opens a new
PositionOutputStream for the data file to create. |
PositionOutputStream |
createOrOverwrite(long blockSizeHint)
Opens a new
PositionOutputStream for the data file to create or overwrite. |
long |
defaultBlockSize() |
default String |
getPath() |
boolean |
supportsBlockSize() |
PositionOutputStream create(long blockSizeHint) throws IOException
PositionOutputStream
for the data file to create.PositionOutputStream
to write the fileIOException
- if the stream cannot be openedPositionOutputStream createOrOverwrite(long blockSizeHint) throws IOException
PositionOutputStream
for the data file to create or overwrite.PositionOutputStream
to write the fileIOException
- if the stream cannot be openedboolean supportsBlockSize()
long defaultBlockSize()
Copyright © 2024 The Apache Software Foundation. All rights reserved.