HBASE-13632 - Backport HBASE-13368 to branch-1 and 0.98 (Ram)
This commit is contained in:
parent
a64b3da63b
commit
ad8f1d076f
|
@ -26,7 +26,7 @@ import org.apache.hadoop.conf.Configuration;
|
|||
/**
|
||||
* This class represents a common API for hashing functions.
|
||||
*/
|
||||
@InterfaceAudience.Public
|
||||
@InterfaceAudience.Private
|
||||
@InterfaceStability.Stable
|
||||
public abstract class Hash {
|
||||
/** Constant to denote invalid hash type. */
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.apache.hadoop.hbase.classification.InterfaceStability;
|
|||
* @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
|
||||
* Dr. Dobbs Article</a>
|
||||
*/
|
||||
@InterfaceAudience.Public
|
||||
@InterfaceAudience.Private
|
||||
@InterfaceStability.Stable
|
||||
public class JenkinsHash extends Hash {
|
||||
private static final int BYTE_MASK = 0xff;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.apache.hadoop.hbase.classification.InterfaceStability;
|
|||
* <p>The C version of MurmurHash 2.0 found at that site was ported
|
||||
* to Java by Andrzej Bialecki (ab at getopt org).</p>
|
||||
*/
|
||||
@InterfaceAudience.Public
|
||||
@InterfaceAudience.Private
|
||||
@InterfaceStability.Stable
|
||||
public class MurmurHash extends Hash {
|
||||
private static MurmurHash _instance = new MurmurHash();
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.apache.hadoop.hbase.classification.InterfaceStability;
|
|||
* <p>MurmurHash3 is the successor to MurmurHash2. It comes in 3 variants, and
|
||||
* the 32-bit version targets low latency for hash table use.</p>
|
||||
*/
|
||||
@InterfaceAudience.Public
|
||||
@InterfaceAudience.Private
|
||||
@InterfaceStability.Stable
|
||||
public class MurmurHash3 extends Hash {
|
||||
private static MurmurHash3 _instance = new MurmurHash3();
|
||||
|
|
Loading…
Reference in New Issue