Package org.apache.parquet.io
Interface OutputFile
- All Known Implementing Classes:
LocalOutputFile
public interface OutputFile
OutputFile is an interface with the methods needed by Parquet to write
data files using PositionOutputStream instances.-
Method Summary
Modifier and TypeMethodDescriptioncreate(long blockSizeHint) Opens a newPositionOutputStreamfor the data file to create.createOrOverwrite(long blockSizeHint) Opens a newPositionOutputStreamfor the data file to create or overwrite.longdefault StringgetPath()boolean
-
Method Details
-
create
Opens a newPositionOutputStreamfor the data file to create.- Returns:
- a new
PositionOutputStreamto write the file - Throws:
IOException- if the stream cannot be opened
-
createOrOverwrite
Opens a newPositionOutputStreamfor the data file to create or overwrite.- Returns:
- a new
PositionOutputStreamto write the file - Throws:
IOException- if the stream cannot be opened
-
supportsBlockSize
boolean supportsBlockSize()- Returns:
- a flag indicating if block size is supported.
-
defaultBlockSize
long defaultBlockSize()- Returns:
- the default block size.
-
getPath
- Returns:
- the path of the file, as a
String.
-