Interface FileWriter
- All Known Implementing Classes:
ParquetFileWriter
public interface FileWriter
Generic interface that provides functionality to write data into the file.
File format will be determined by the implementation.
-
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.
-
Method Details
-
records
Indicates list of records to be written.- Parameters:
records
- list of records to be written into file- Returns:
- current File Writer instance
-
location
Indicates location where new file will be written to.- Parameters:
location
- file location- Returns:
- current File Writer instance
-
name
Indicates name with which new file will be created.- Parameters:
name
- file name- Returns:
- current File Writer instance
-
write
File write()Writes provided list of records into the file.- Returns:
- written file information holder
-