...
Code Block | ||||
---|---|---|---|---|
| ||||
public interface DeletionVector { void delete(long position); boolean checkedDelete(long position); boolean isDeleted(long position); boolean isEmpty(); byte[] serializeToBytes(); DeleteIndex deserializeFromBytes(byte[] bytes); } |
...
- 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.
- 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
...