Package org.apache.parquet.io
Interface OutputFile
-
- All Known Implementing Classes:
LocalOutputFile
public interface OutputFileOutputFileis an interface with the methods needed by Parquet to write data files usingPositionOutputStreaminstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PositionOutputStreamcreate(long blockSizeHint)Opens a newPositionOutputStreamfor the data file to create.PositionOutputStreamcreateOrOverwrite(long blockSizeHint)Opens a newPositionOutputStreamfor the data file to create or overwrite.longdefaultBlockSize()default StringgetPath()booleansupportsBlockSize()
-
-
-
Method Detail
-
create
PositionOutputStream create(long blockSizeHint) throws IOException
Opens a newPositionOutputStreamfor the data file to create.- Returns:
- a new
PositionOutputStreamto write the file - Throws:
IOException- if the stream cannot be opened
-
createOrOverwrite
PositionOutputStream createOrOverwrite(long blockSizeHint) throws IOException
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.
-
-