Interface DVFileWriter

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
BaseDVFileWriter

public interface DVFileWriter extends Closeable
A deletion vector file writer.
  • Method Details

    • delete

      void delete(String path, long pos, PartitionSpec spec, StructLike partition)
      Marks a position in a given data file as deleted.
      Parameters:
      path - the data file path
      pos - the data file position
      spec - the data file partition spec
      partition - the data file partition
    • result

      Returns a result that contains information about written DeleteFiles. The result is valid only after the writer is closed.
      Returns:
      the writer result
    • delete

      default void delete(String path, PositionDeleteIndex positionDeleteIndex, PartitionSpec spec, StructLike partition)
      Marks every position that is deleted in positionDeleteIndex as deleted in the given data file. Implementations should merge with existing position indices for the provided path
      Parameters:
      path - the data file path
      positionDeleteIndex - the position delete index containing all the positions to delete
      spec - the data file partition spec
      partition - the data file partition