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 Type
    Method
    Description
    location(String location)
    Indicates location where new file will be written to.
    name(String name)
    Indicates name with which new file will be created.
    records(List<org.apache.iceberg.data.Record> records)
    Indicates list of records to be written.
    Writes provided list of records into the file.
  • Method Details

    • records

      FileWriter records(List<org.apache.iceberg.data.Record> records)
      Indicates list of records to be written.
      Parameters:
      records - list of records to be written into file
      Returns:
      current File Writer instance
    • location

      FileWriter location(String location)
      Indicates location where new file will be written to.
      Parameters:
      location - file location
      Returns:
      current File Writer instance
    • name

      FileWriter name(String 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