Interface FileAppender<D>

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    ManifestWriter, ParquetWriteAdapter

    public interface FileAppender<D>
    extends java.io.Closeable
    • Method Detail

      • add

        void add​(D datum)
      • addAll

        default void addAll​(java.util.Iterator<D> values)
      • addAll

        default void addAll​(java.lang.Iterable<D> values)
      • metrics

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

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

        default java.util.List<java.lang.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.