HBase 中如何使用 Cell 的类型?

How is the Type of a Cell used in HBase?

我正在阅读 Cell in HBase 并看到该值在给定行、列族、列限定符、时间戳和类型的情况下是唯一的。

我知道前 4 个,但对此一无所知 type 因为我一直都知道 HBase 将所有内容都存储为字节数组。然后我发现它不是值的类型而是The byte representation of the KeyValue.TYPE of this cell: one of Put, Delete, etc。 Link 到代码 here

这与HBase不会立即删除cell有关,而是放置了一个墓碑标记,表示cell被删除了。如果扫描和获取操作看到此标记,它们将忽略该单元格。在主要压缩之后,所有这些单元格将被物理删除。