Interface FileAppender<D>

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ManifestWriter, ParquetWriteAdapter, PuffinWriter

public interface FileAppender<D> extends Closeable
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    add(D datum)
     
    default void
    addAll(Iterable<D> values)
     
    default void
    addAll(Iterator<D> values)
     
    long
    Returns the length of this file.
    Returns Metrics for this file.
    default List<Long>
    Returns a list of recommended split locations, if applicable, null otherwise.

    Methods inherited from interface java.io.Closeable Link icon

    close
  • Method Details Link icon

    • add Link icon

      void add(D datum)
    • addAll Link icon

      default void addAll(Iterator<D> values)
    • addAll Link icon

      default void addAll(Iterable<D> values)
    • metrics Link icon

      Metrics metrics()
      Returns Metrics for this file. Only valid after the file is closed.
    • length Link icon

      long length()
      Returns the length of this file.
    • splitOffsets Link icon

      default List<Long> splitOffsets()
      Returns a list of recommended split locations, if applicable, null otherwise.

      When available, this information is used for planning scan tasks whose boundaries are determined by these offsets. The returned list must be sorted in ascending order. Only valid after the file is closed.