Interface FileWriter<T,​R>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      long length()
      Returns the number of bytes that were currently written by this writer.
      R result()
      Returns a result that contains information about written DataFiles or DeleteFiles.
      default void write​(java.lang.Iterable<T> rows)
      Writes rows to a predefined spec/partition.
      void write​(T row)
      Writes a row to a predefined spec/partition.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • write

        default void write​(java.lang.Iterable<T> rows)
        Writes rows to a predefined spec/partition.
        Parameters:
        rows - data or delete records
      • write

        void write​(T row)
        Writes a row to a predefined spec/partition.
        Parameters:
        row - a data or delete record
      • length

        long length()
        Returns the number of bytes that were currently written by this writer.
        Returns:
        the number of written bytes
      • result

        R result()
        Returns a result that contains information about written DataFiles or DeleteFiles. The result is valid only after the writer is closed.
        Returns:
        the file writer result