38
38
* <a href="https://github.com/aappleby/smhasher">SMHasher</a>:
39
39
* </p>
40
40
*
41
- * <blockquote> "All MurmurHash versions are public domain software, and the author disclaims all copyright to their
42
- * code." </blockquote>
41
+ * <blockquote>
42
+ * "All MurmurHash versions are public domain software, and the author disclaims all copyright to their
43
+ * code."
44
+ * </blockquote>
43
45
*
44
46
* <p>
45
- * Original adaption from <a href=https://hive.apache.org/">Apache Hive</a>.
47
+ * Original adaption from <a href=" https://hive.apache.org/">Apache Hive</a>.
46
48
* That adaption contains a {@code hash64} method that is not part of the original
47
49
* MurmurHash3 code. It is not recommended to use these methods. They will be removed in a future release. To obtain a
48
50
* 64-bit hash use half of the bits from the {@code hash128x64} methods using the input data converted to bytes.
@@ -62,12 +64,16 @@ public final class MurmurHash3 {
62
64
* Generates 32-bit hash from input bytes. Bytes can be added incrementally and the new
63
65
* hash computed.
64
66
*
65
- * <p>This is an implementation of the 32-bit hash function {@code MurmurHash3_x86_32}
66
- * from Austin Appleby's original MurmurHash3 {@code c++} code in SMHasher.</p>
67
+ * <p>
68
+ * This is an implementation of the 32-bit hash function {@code MurmurHash3_x86_32}
69
+ * from Austin Appleby's original MurmurHash3 {@code c++} code in SMHasher.
70
+ * </p>
67
71
*
68
- * <p>This implementation contains a sign-extension bug in the finalization step of
72
+ * <p>
73
+ * This implementation contains a sign-extension bug in the finalization step of
69
74
* any bytes left over from dividing the length by 4. This manifests if any of these
70
- * bytes are negative.</p>
75
+ * bytes are negative.
76
+ * </p>
71
77
*
72
78
* @deprecated Use IncrementalHash32x86. This corrects the processing of trailing bytes.
73
79
*/
@@ -84,9 +90,11 @@ public IncrementalHash32() {
84
90
/**
85
91
* {@inheritDoc}
86
92
*
87
- * <p>This implementation contains a sign-extension bug in the finalization step of
93
+ * <p>
94
+ * This implementation contains a sign-extension bug in the finalization step of
88
95
* any bytes left over from dividing the length by 4. This manifests if any of these
89
- * bytes are negative.<p>
96
+ * bytes are negative.
97
+ * <p>
90
98
*
91
99
* @deprecated Use IncrementalHash32x86. This corrects the processing of trailing bytes.
92
100
*/
@@ -121,8 +129,10 @@ int finalise(final int hash, final int unprocessedLength, final byte[] unprocess
121
129
* Generates 32-bit hash from input bytes. Bytes can be added incrementally and the new
122
130
* hash computed.
123
131
*
124
- * <p>This is an implementation of the 32-bit hash function {@code MurmurHash3_x86_32}
125
- * from Austin Appleby's original MurmurHash3 {@code c++} code in SMHasher.</p>
132
+ * <p>
133
+ * This is an implementation of the 32-bit hash function {@code MurmurHash3_x86_32}
134
+ * from Austin Appleby's original MurmurHash3 {@code c++} code in SMHasher.
135
+ * </p>
126
136
*
127
137
* @since 1.14
128
138
*/
@@ -406,8 +416,10 @@ private static long getLittleEndianLong(final byte[] data, final int index) {
406
416
* int hash = MurmurHash3.hash128(data, offset, data.length, seed);
407
417
* </pre>
408
418
*
409
- * <p>Note: The sign extension bug in {@link #hash128(byte[], int, int, int)} does not effect
410
- * this result as the default seed is positive.</p>
419
+ * <p>
420
+ * Note: The sign extension bug in {@link #hash128(byte[], int, int, int)} does not effect
421
+ * this result as the default seed is positive.
422
+ * </p>
411
423
*
412
424
* @param data The input byte array
413
425
* @return The 128-bit hash (2 longs)
@@ -420,11 +432,15 @@ public static long[] hash128(final byte[] data) {
420
432
/**
421
433
* Generates 128-bit hash from the byte array with the given offset, length and seed.
422
434
*
423
- * <p>This is an implementation of the 128-bit hash function {@code MurmurHash3_x64_128}
424
- * from Austin Appleby's original MurmurHash3 {@code c++} code in SMHasher.</p>
435
+ * <p>
436
+ * This is an implementation of the 128-bit hash function {@code MurmurHash3_x64_128}
437
+ * from Austin Appleby's original MurmurHash3 {@code c++} code in SMHasher.
438
+ * </p>
425
439
*
426
- * <p>This implementation contains a sign-extension bug in the seed initialization.
427
- * This manifests if the seed is negative.</p>
440
+ * <p>
441
+ * This implementation contains a sign-extension bug in the seed initialization.
442
+ * This manifests if the seed is negative.
443
+ * </p>
428
444
*
429
445
* @param data The input byte array
430
446
* @param offset The first element of array
@@ -459,8 +475,10 @@ public static long[] hash128(final byte[] data, final int offset, final int leng
459
475
* int hash = MurmurHash3.hash128(bytes, offset, bytes.length, seed);
460
476
* </pre>
461
477
*
462
- * <p>Note: The sign extension bug in {@link #hash128(byte[], int, int, int)} does not effect
463
- * this result as the default seed is positive.</p>
478
+ * <p>
479
+ * Note: The sign extension bug in {@link #hash128(byte[], int, int, int)} does not effect
480
+ * this result as the default seed is positive.
481
+ * </p>
464
482
*
465
483
* @param data The input String
466
484
* @return The 128-bit hash (2 longs)
0 commit comments