Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleDeleteIndexDeletionVector.java
public interface DeletionVector {

    void delete(long position);

    boolean checkedDelete(long position);
    
    boolean isDeleted(long position);

    boolean isEmpty();

    byte[] serializeToBytes();

    DeleteIndex deserializeFromBytes(byte[] bytes);
}

...

  1. original mode -> deletion vectors mode: can be directly switched by perform a full compaction, then set `deletion-vectors.enabled` = `true`, and time travel to the snapshots before enabled will be prohibited. 
  2. deletion vectors mode -> original mode, in theory, perform a full compaction, then clean up the old snapshot, and then set `deletion-vectors.enabled` = `false`,  and time travel to the snapshots before enabled will be prohibited.

Future work

  • Integrate deletion vectors into the with append table;
  • ...


[1]: https://github.com/apache/iceberg

...