public interface BucketSelector
This interface leaks internal details about summary structure. One can implement and use custom instances to customize settings but be ready for major changes in following versions.
|Modifier and Type||Method and Description|
Selects buckets to store items in.
int selectBuckets(int seed, byte content)
The output array must contain integers between
Integer.MAX_VALUE. It is better
if all integers in that range have the same probability of appearance.
The output must be consistent, for any byte array
content, for any positive integer
multiple invocations of
selectBuckets(s, content) must return the same array.
Different seed values should lead to different resulting arrays.
The number of returned buckets may vary for different contents and the returned array may contain duplicates.
seed- a seed preventing items to fall in the same buckets at all compression levels.
content- the content to store.
Copyright © 2014. All rights reserved.