Class ParquetFileWriter
java.lang.Object
org.apache.drill.metastore.iceberg.write.ParquetFileWriter
- All Implemented Interfaces:
FileWriter
Parquet File Writer implementation. Creates Parquet file in given location and name
and '.parquet' extension and writes given data into it.
Note: if file already exists, write operation will fail.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIndicates location where new file will be written to.Indicates name with which new file will be created.Indicates list of records to be written.write()
Writes provided list of records into the file.
-
Constructor Details
-
ParquetFileWriter
public ParquetFileWriter(org.apache.iceberg.Table table)
-
-
Method Details
-
records
Description copied from interface:FileWriter
Indicates list of records to be written.- Specified by:
records
in interfaceFileWriter
- Parameters:
records
- list of records to be written into file- Returns:
- current File Writer instance
-
location
Description copied from interface:FileWriter
Indicates location where new file will be written to.- Specified by:
location
in interfaceFileWriter
- Parameters:
location
- file location- Returns:
- current File Writer instance
-
name
Description copied from interface:FileWriter
Indicates name with which new file will be created.- Specified by:
name
in interfaceFileWriter
- Parameters:
name
- file name- Returns:
- current File Writer instance
-
write
Description copied from interface:FileWriter
Writes provided list of records into the file.- Specified by:
write
in interfaceFileWriter
- Returns:
- written file information holder
-