为了能节省空间,Lucene使用PackedInts类对long类型的数据进行压缩存储,基于内存使用率(memory-efficient)跟解压速度(读取速度),提供了多种压缩方法,我们先通过类图预览下这些压缩方法。

图1:

Lucene 压缩存储之PackedInts(一)

  图1中MutableImpl类是PackedInts的内部类,其中Packed64SingleBlock是一个抽象类,它的实现如下所示:

图2:

Lucene 压缩存储之PackedInts(一)

看这里:https://www.amazingkoala.com.cn/Lucene/yasuocunchu/2019/1217/118.html

相关文章:

  • 2021-06-14
  • 2021-10-31
  • 2022-01-13
  • 2021-08-02
  • 2021-05-20
  • 2021-04-17
  • 2021-10-24
猜你喜欢
  • 2021-10-02
  • 2021-07-18
  • 2021-06-04
  • 2021-07-17
  • 2021-09-20
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案