gpt4 book ai didi

HBase:列族 TTL

转载 作者:行者123 更新时间:2023-12-03 18:35:09 26 4
gpt4 key购买 nike

根据 HBase 规范:

"ColumnFamilies can set a TTL length in seconds, and HBase will automatically delete rows once the expiration time is reached. This applies to all versions of a row - even the current one. The TTL time encoded in the HBase for the row is specified in UTC."

具体我不明白的是这句话“一旦达到到期时间”......什么?所有单元的所有版本?至少一个单元格的一个版本?

假设我有一个表,其列族的 TTL 设置为 X。

  • 我正在插入一个时间戳为 1 的单元格:该行的到期日期是什么? 1 + X?
  • 接下来,我将插入另一个带有时间戳 2 的单元格(使用相同的行键):整行的到期日期是什么?还是 1 + X 还是 2 + X?

最佳答案

这似乎是 HBase 引用指南中的一个错字。它应该说“细胞”,而不是“行”;除了其单元格的时间戳之外,一行没有内置时间戳。

关于HBase:列族 TTL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12236318/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com