diff --git a/src/main/java/net/agkn/hll/HLL.java b/src/main/java/net/agkn/hll/HLL.java index cdfd3ad..7741a37 100644 --- a/src/main/java/net/agkn/hll/HLL.java +++ b/src/main/java/net/agkn/hll/HLL.java @@ -16,6 +16,7 @@ * limitations under the License. */ +import java.io.Serializable; import java.util.Arrays; import it.unimi.dsi.fastutil.ints.Int2ByteOpenHashMap; @@ -34,12 +35,12 @@ /** * A probabilistic set of hashed long elements. Useful for computing - * the approximate cardinality of a stream of data in very small storage.

+ * the approximate cardinality of a stream of data in very small storage. * * A modified version of the * 'HyperLogLog' data structure and algorithm is used, which combines both * probabilistic and non-probabilistic techniques to improve the accuracy and - * storage requirements of the original algorithm.

+ * storage requirements of the original algorithm. * * More specifically, initializing and storing a new {@link HLL} will * allocate a sentinel value symbolizing the empty set ({@link HLLType#EMPTY}). @@ -48,7 +49,7 @@ * be sacrificed for memory footprint: the values in the sorted list are * "promoted" to a "{@link HLLType#SPARSE}" map-based HyperLogLog structure. * Finally, when enough registers are set, the map-based HLL will be converted - * to a bit-packed "{@link HLLType#FULL}" HyperLogLog structure.

+ * to a bit-packed "{@link HLLType#FULL}" HyperLogLog structure. * * This data structure is interoperable with the implementations found at: *