Class BinaryId
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.analysis.modules.BinaryId
-
public class BinaryId extends java.lang.Object
A binary id. Internally, this class uses 3 longs (64-bit) values.
-
-
Constructor Summary
Constructors Constructor Description BinaryId(java.lang.String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
long
getLength()
long
getLongHash()
Get a 64-bit hash value.int
hashCode()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getLongHash
public long getLongHash()
Get a 64-bit hash value. The probability of collisions is about: 50% for a set of 5 billion entries, 1% for 600 million, 0.0001% for 6 million entries.- Returns:
- a 64-bit hash value
-
getLength
public long getLength()
-
-