public class LocalOutputFile extends Object implements OutputFile
LocalOutputFile is an implementation needed by Parquet to write
to local data files using PositionOutputStream instances.| Constructor and Description |
|---|
LocalOutputFile(Path file) |
| Modifier and Type | Method and Description |
|---|---|
PositionOutputStream |
create(long blockSize)
Opens a new
PositionOutputStream for the data file to create. |
PositionOutputStream |
createOrOverwrite(long blockSize)
Opens a new
PositionOutputStream for the data file to create or overwrite. |
long |
defaultBlockSize() |
String |
getPath() |
boolean |
supportsBlockSize() |
public LocalOutputFile(Path file)
public PositionOutputStream create(long blockSize) throws IOException
OutputFilePositionOutputStream for the data file to create.create in interface OutputFilePositionOutputStream to write the fileIOException - if the stream cannot be openedpublic PositionOutputStream createOrOverwrite(long blockSize) throws IOException
OutputFilePositionOutputStream for the data file to create or overwrite.createOrOverwrite in interface OutputFilePositionOutputStream to write the fileIOException - if the stream cannot be openedpublic boolean supportsBlockSize()
supportsBlockSize in interface OutputFilepublic long defaultBlockSize()
defaultBlockSize in interface OutputFilepublic String getPath()
getPath in interface OutputFileString.Copyright © 2023 The Apache Software Foundation. All rights reserved.