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
Constructors -
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:FileWriterIndicates list of records to be written.- Specified by:
recordsin interfaceFileWriter- Parameters:
records- list of records to be written into file- Returns:
- current File Writer instance
-
location
Description copied from interface:FileWriterIndicates location where new file will be written to.- Specified by:
locationin interfaceFileWriter- Parameters:
location- file location- Returns:
- current File Writer instance
-
name
Description copied from interface:FileWriterIndicates name with which new file will be created.- Specified by:
namein interfaceFileWriter- Parameters:
name- file name- Returns:
- current File Writer instance
-
write
Description copied from interface:FileWriterWrites provided list of records into the file.- Specified by:
writein interfaceFileWriter- Returns:
- written file information holder
-