Package org.apache.parquet.io
Class LocalOutputFile
java.lang.Object
org.apache.parquet.io.LocalOutputFile
- All Implemented Interfaces:
OutputFile
LocalOutputFile is an implementation needed by Parquet to write
to local data files using PositionOutputStream instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(long blockSize) Opens a newPositionOutputStreamfor the data file to create.createOrOverwrite(long blockSize) Opens a newPositionOutputStreamfor the data file to create or overwrite.longgetPath()boolean
-
Constructor Details
-
LocalOutputFile
-
-
Method Details
-
create
Description copied from interface:OutputFileOpens a newPositionOutputStreamfor the data file to create.- Specified by:
createin interfaceOutputFile- Returns:
- a new
PositionOutputStreamto write the file - Throws:
IOException- if the stream cannot be opened
-
createOrOverwrite
Description copied from interface:OutputFileOpens a newPositionOutputStreamfor the data file to create or overwrite.- Specified by:
createOrOverwritein interfaceOutputFile- Returns:
- a new
PositionOutputStreamto write the file - Throws:
IOException- if the stream cannot be opened
-
supportsBlockSize
public boolean supportsBlockSize()- Specified by:
supportsBlockSizein interfaceOutputFile- Returns:
- a flag indicating if block size is supported.
-
defaultBlockSize
public long defaultBlockSize()- Specified by:
defaultBlockSizein interfaceOutputFile- Returns:
- the default block size.
-
getPath
- Specified by:
getPathin interfaceOutputFile- Returns:
- the path of the file, as a
String.
-