overflows = new short[0];
}
public SparseHll(Slice serialized)
{
BasicSliceInput input = serialized.getInput();
checkArgument(input.readByte() == Format.SPARSE_V1.getTag(), "invalid format tag");
indexBitLength = input.readByte();
checkArgument(indexBitLength >= 1 && indexBitLength <= 13, "indexBitLength is out of range");
numberOfHashes = input.readShort();
numberOfOverflows = input.readShort();
shortHashes = new short[numberOfHashes];
for (int i = 0; i < numberOfHashes; i++) {
shortHashes[i] = input.readShort();
}
overflows = new short[numberOfOverflows];
for (int i = 0; i < numberOfOverflows; i++) {
overflows[i] = input.readShort();
}
checkArgument(!input.isReadable(), "input is too big");
}