Java 类it.unimi.dsi.fastutil.ints.Int2ByteAVLTreeMap 实例源码

项目:hyperloglog    文件:HLLSparseRegister.java   
public HLLSparseRegister(int p, int pp, int qp) {
  this.p = p;
  this.sparseMap = new Int2ByteAVLTreeMap();
  this.tempList = new int[HLLConstants.TEMP_LIST_DEFAULT_SIZE];
  this.tempListIdx = 0;
  this.pPrime = pp;
  this.qPrime = qp;
  this.mask = ((1 << pPrime) - 1) ^ ((1 << p) - 1);
  this.pPrimeMask = ((1 << pPrime) - 1);
  this.qPrimeMask = (1 << qPrime) - 1;
}