public static class CrossHash.Yolk
extends java.lang.Object
CrossHash.Water
instead of the older, less-robust style Mist uses. This can be faster than
CrossHash.Curlup
, but only for small arrays as input (20 length or less); it tends to be slower on larger arrays,
though not by much, and should be the same for long[]
since they share an implementation for that type.
Normally you should prefer Curlup if you know some or all of your arrays will be of moderate size or larger.
Has a lot of predefined functors (192, named after 24 Greek letters and 72 Goetic demons, see
Wikipedia for the demons,
in both lower case and lower case with a trailing underscore). You probably want to use predefined
instead of wrangling demon names; you can always choose an element from predefined with a 7-bit number, and there
are 64 numbers outside that range so you can choose any of those when a functor must be different.Constructor and Description |
---|
Yolk() |
Yolk(java.lang.CharSequence seed) |
Yolk(long seed) |
Modifier and Type | Method and Description |
---|---|
int |
hash(boolean[] data) |
int |
hash(byte[] data) |
int |
hash(char[] data) |
int |
hash(char[][] data) |
int |
hash(char[] data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
int |
hash(java.lang.CharSequence data) |
int |
hash(java.lang.CharSequence[]... data) |
int |
hash(java.lang.CharSequence[] data) |
int |
hash(java.lang.CharSequence data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
int |
hash(double[] data) |
int |
hash(float[] data) |
int |
hash(int[] data) |
int |
hash(int[][] data) |
int |
hash(int[] data,
int length) |
int |
hash(java.lang.Iterable<? extends java.lang.CharSequence> data) |
int |
hash(java.util.List<? extends java.lang.CharSequence> data) |
int |
hash(long[] data) |
int |
hash(long[][] data) |
static int |
hash(long seed,
boolean[] data) |
static int |
hash(long seed,
byte[] data) |
static int |
hash(long seed,
char[] data) |
static int |
hash(long seed,
char[][] data) |
static int |
hash(long seed,
char[] data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
static int |
hash(long seed,
java.lang.CharSequence data) |
static int |
hash(long seed,
java.lang.CharSequence[]... data) |
static int |
hash(long seed,
java.lang.CharSequence[] data) |
static int |
hash(long seed,
java.lang.CharSequence data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
static int |
hash(long seed,
double[] data) |
static int |
hash(long seed,
float[] data) |
static int |
hash(long seed,
int[] data) |
static int |
hash(long seed,
int[][] data) |
static int |
hash(long seed,
int[] data,
int length) |
static int |
hash(long seed,
java.lang.Iterable<? extends java.lang.CharSequence> data) |
static int |
hash(long seed,
java.util.List<? extends java.lang.CharSequence> data) |
static int |
hash(long seed,
long[] data) |
static int |
hash(long seed,
long[][] data) |
static int |
hash(long seed,
java.lang.Object data) |
static int |
hash(long seed,
java.lang.Object[] data) |
static int |
hash(long seed,
short[] data) |
int |
hash(java.lang.Object data) |
int |
hash(java.lang.Object[] data) |
int |
hash(short[] data) |
long |
hash64(boolean[] data) |
long |
hash64(byte[] data) |
long |
hash64(char[] data) |
long |
hash64(char[][] data) |
long |
hash64(char[] data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
long |
hash64(java.lang.CharSequence data) |
long |
hash64(java.lang.CharSequence[]... data) |
long |
hash64(java.lang.CharSequence[] data) |
long |
hash64(java.lang.CharSequence data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
long |
hash64(double[] data) |
long |
hash64(float[] data) |
long |
hash64(int[] data) |
long |
hash64(int[][] data) |
long |
hash64(int[] data,
int length) |
long |
hash64(java.lang.Iterable<? extends java.lang.CharSequence> data) |
long |
hash64(java.util.List<? extends java.lang.CharSequence> data) |
long |
hash64(long[] data) |
long |
hash64(long[][] data) |
static long |
hash64(long seed,
boolean[] data) |
static long |
hash64(long seed,
byte[] data) |
static long |
hash64(long seed,
char[] data) |
static long |
hash64(long seed,
char[][] data) |
static long |
hash64(long seed,
char[] data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
static long |
hash64(long seed,
java.lang.CharSequence data) |
static long |
hash64(long seed,
java.lang.CharSequence[]... data) |
static long |
hash64(long seed,
java.lang.CharSequence[] data) |
static long |
hash64(long seed,
java.lang.CharSequence data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
static long |
hash64(long seed,
double[] data) |
static long |
hash64(long seed,
float[] data) |
static long |
hash64(long seed,
int[] data) |
static long |
hash64(long seed,
int[][] data) |
static long |
hash64(long seed,
int[] data,
int length) |
static long |
hash64(long seed,
java.lang.Iterable<? extends java.lang.CharSequence> data) |
static long |
hash64(long seed,
java.util.List<? extends java.lang.CharSequence> data) |
static long |
hash64(long seed,
long[] data) |
static long |
hash64(long seed,
long[][] data) |
static long |
hash64(long seed,
java.lang.Object data) |
static long |
hash64(long seed,
java.lang.Object[] data) |
static long |
hash64(long seed,
short[] data) |
long |
hash64(java.lang.Object data) |
long |
hash64(java.lang.Object[] data) |
long |
hash64(short[] data) |
public static final CrossHash.Yolk alpha
public static final CrossHash.Yolk beta
public static final CrossHash.Yolk gamma
public static final CrossHash.Yolk delta
public static final CrossHash.Yolk epsilon
public static final CrossHash.Yolk zeta
public static final CrossHash.Yolk eta
public static final CrossHash.Yolk theta
public static final CrossHash.Yolk iota
public static final CrossHash.Yolk kappa
public static final CrossHash.Yolk lambda
public static final CrossHash.Yolk mu
public static final CrossHash.Yolk nu
public static final CrossHash.Yolk xi
public static final CrossHash.Yolk omicron
public static final CrossHash.Yolk pi
public static final CrossHash.Yolk rho
public static final CrossHash.Yolk sigma
public static final CrossHash.Yolk tau
public static final CrossHash.Yolk upsilon
public static final CrossHash.Yolk phi
public static final CrossHash.Yolk chi
public static final CrossHash.Yolk psi
public static final CrossHash.Yolk omega
public static final CrossHash.Yolk alpha_
public static final CrossHash.Yolk beta_
public static final CrossHash.Yolk gamma_
public static final CrossHash.Yolk delta_
public static final CrossHash.Yolk epsilon_
public static final CrossHash.Yolk zeta_
public static final CrossHash.Yolk eta_
public static final CrossHash.Yolk theta_
public static final CrossHash.Yolk iota_
public static final CrossHash.Yolk kappa_
public static final CrossHash.Yolk lambda_
public static final CrossHash.Yolk mu_
public static final CrossHash.Yolk nu_
public static final CrossHash.Yolk xi_
public static final CrossHash.Yolk omicron_
public static final CrossHash.Yolk pi_
public static final CrossHash.Yolk rho_
public static final CrossHash.Yolk sigma_
public static final CrossHash.Yolk tau_
public static final CrossHash.Yolk upsilon_
public static final CrossHash.Yolk phi_
public static final CrossHash.Yolk chi_
public static final CrossHash.Yolk psi_
public static final CrossHash.Yolk omega_
public static final CrossHash.Yolk baal
public static final CrossHash.Yolk agares
public static final CrossHash.Yolk vassago
public static final CrossHash.Yolk samigina
public static final CrossHash.Yolk marbas
public static final CrossHash.Yolk valefor
public static final CrossHash.Yolk amon
public static final CrossHash.Yolk barbatos
public static final CrossHash.Yolk paimon
public static final CrossHash.Yolk buer
public static final CrossHash.Yolk gusion
public static final CrossHash.Yolk sitri
public static final CrossHash.Yolk beleth
public static final CrossHash.Yolk leraje
public static final CrossHash.Yolk eligos
public static final CrossHash.Yolk zepar
public static final CrossHash.Yolk botis
public static final CrossHash.Yolk bathin
public static final CrossHash.Yolk sallos
public static final CrossHash.Yolk purson
public static final CrossHash.Yolk marax
public static final CrossHash.Yolk ipos
public static final CrossHash.Yolk aim
public static final CrossHash.Yolk naberius
public static final CrossHash.Yolk glasya_labolas
public static final CrossHash.Yolk bune
public static final CrossHash.Yolk ronove
public static final CrossHash.Yolk berith
public static final CrossHash.Yolk astaroth
public static final CrossHash.Yolk forneus
public static final CrossHash.Yolk foras
public static final CrossHash.Yolk asmoday
public static final CrossHash.Yolk gaap
public static final CrossHash.Yolk furfur
public static final CrossHash.Yolk marchosias
public static final CrossHash.Yolk stolas
public static final CrossHash.Yolk phenex
public static final CrossHash.Yolk halphas
public static final CrossHash.Yolk malphas
public static final CrossHash.Yolk raum
public static final CrossHash.Yolk focalor
public static final CrossHash.Yolk vepar
public static final CrossHash.Yolk sabnock
public static final CrossHash.Yolk shax
public static final CrossHash.Yolk vine
public static final CrossHash.Yolk bifrons
public static final CrossHash.Yolk vual
public static final CrossHash.Yolk haagenti
public static final CrossHash.Yolk crocell
public static final CrossHash.Yolk furcas
public static final CrossHash.Yolk balam
public static final CrossHash.Yolk alloces
public static final CrossHash.Yolk caim
public static final CrossHash.Yolk murmur
public static final CrossHash.Yolk orobas
public static final CrossHash.Yolk gremory
public static final CrossHash.Yolk ose
public static final CrossHash.Yolk amy
public static final CrossHash.Yolk orias
public static final CrossHash.Yolk vapula
public static final CrossHash.Yolk zagan
public static final CrossHash.Yolk valac
public static final CrossHash.Yolk andras
public static final CrossHash.Yolk flauros
public static final CrossHash.Yolk andrealphus
public static final CrossHash.Yolk kimaris
public static final CrossHash.Yolk amdusias
public static final CrossHash.Yolk belial
public static final CrossHash.Yolk decarabia
public static final CrossHash.Yolk seere
public static final CrossHash.Yolk dantalion
public static final CrossHash.Yolk andromalius
public static final CrossHash.Yolk baal_
public static final CrossHash.Yolk agares_
public static final CrossHash.Yolk vassago_
public static final CrossHash.Yolk samigina_
public static final CrossHash.Yolk marbas_
public static final CrossHash.Yolk valefor_
public static final CrossHash.Yolk amon_
public static final CrossHash.Yolk barbatos_
public static final CrossHash.Yolk paimon_
public static final CrossHash.Yolk buer_
public static final CrossHash.Yolk gusion_
public static final CrossHash.Yolk sitri_
public static final CrossHash.Yolk beleth_
public static final CrossHash.Yolk leraje_
public static final CrossHash.Yolk eligos_
public static final CrossHash.Yolk zepar_
public static final CrossHash.Yolk botis_
public static final CrossHash.Yolk bathin_
public static final CrossHash.Yolk sallos_
public static final CrossHash.Yolk purson_
public static final CrossHash.Yolk marax_
public static final CrossHash.Yolk ipos_
public static final CrossHash.Yolk aim_
public static final CrossHash.Yolk naberius_
public static final CrossHash.Yolk glasya_labolas_
public static final CrossHash.Yolk bune_
public static final CrossHash.Yolk ronove_
public static final CrossHash.Yolk berith_
public static final CrossHash.Yolk astaroth_
public static final CrossHash.Yolk forneus_
public static final CrossHash.Yolk foras_
public static final CrossHash.Yolk asmoday_
public static final CrossHash.Yolk gaap_
public static final CrossHash.Yolk furfur_
public static final CrossHash.Yolk marchosias_
public static final CrossHash.Yolk stolas_
public static final CrossHash.Yolk phenex_
public static final CrossHash.Yolk halphas_
public static final CrossHash.Yolk malphas_
public static final CrossHash.Yolk raum_
public static final CrossHash.Yolk focalor_
public static final CrossHash.Yolk vepar_
public static final CrossHash.Yolk sabnock_
public static final CrossHash.Yolk shax_
public static final CrossHash.Yolk vine_
public static final CrossHash.Yolk bifrons_
public static final CrossHash.Yolk vual_
public static final CrossHash.Yolk haagenti_
public static final CrossHash.Yolk crocell_
public static final CrossHash.Yolk furcas_
public static final CrossHash.Yolk balam_
public static final CrossHash.Yolk alloces_
public static final CrossHash.Yolk caim_
public static final CrossHash.Yolk murmur_
public static final CrossHash.Yolk orobas_
public static final CrossHash.Yolk gremory_
public static final CrossHash.Yolk ose_
public static final CrossHash.Yolk amy_
public static final CrossHash.Yolk orias_
public static final CrossHash.Yolk vapula_
public static final CrossHash.Yolk zagan_
public static final CrossHash.Yolk valac_
public static final CrossHash.Yolk andras_
public static final CrossHash.Yolk flauros_
public static final CrossHash.Yolk andrealphus_
public static final CrossHash.Yolk kimaris_
public static final CrossHash.Yolk amdusias_
public static final CrossHash.Yolk belial_
public static final CrossHash.Yolk decarabia_
public static final CrossHash.Yolk seere_
public static final CrossHash.Yolk dantalion_
public static final CrossHash.Yolk andromalius_
public static final CrossHash.Yolk[] predefined
public Yolk()
public Yolk(long seed)
public Yolk(java.lang.CharSequence seed)
public long hash64(boolean[] data)
public long hash64(byte[] data)
public long hash64(short[] data)
public long hash64(char[] data)
public long hash64(java.lang.CharSequence data)
public long hash64(int[] data)
public long hash64(int[] data, int length)
public long hash64(long[] data)
public long hash64(float[] data)
public long hash64(double[] data)
public long hash64(char[] data, int start, int end)
data
- the char array to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public long hash64(java.lang.CharSequence data, int start, int end)
data
- the String or other CharSequence to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public long hash64(char[][] data)
public long hash64(int[][] data)
public long hash64(long[][] data)
public long hash64(java.lang.CharSequence[] data)
public long hash64(java.lang.CharSequence[]... data)
public long hash64(java.lang.Iterable<? extends java.lang.CharSequence> data)
public long hash64(java.util.List<? extends java.lang.CharSequence> data)
public long hash64(java.lang.Object[] data)
public long hash64(java.lang.Object data)
public int hash(boolean[] data)
public int hash(byte[] data)
public int hash(short[] data)
public int hash(char[] data)
public int hash(java.lang.CharSequence data)
public int hash(int[] data)
public int hash(int[] data, int length)
public int hash(long[] data)
public int hash(float[] data)
public int hash(double[] data)
public int hash(char[] data, int start, int end)
data
- the char array to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public int hash(java.lang.CharSequence data, int start, int end)
data
- the String or other CharSequence to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public int hash(char[][] data)
public int hash(int[][] data)
public int hash(long[][] data)
public int hash(java.lang.CharSequence[] data)
public int hash(java.lang.CharSequence[]... data)
public int hash(java.lang.Iterable<? extends java.lang.CharSequence> data)
public int hash(java.util.List<? extends java.lang.CharSequence> data)
public int hash(java.lang.Object[] data)
public int hash(java.lang.Object data)
public static long hash64(long seed, boolean[] data)
public static long hash64(long seed, byte[] data)
public static long hash64(long seed, short[] data)
public static long hash64(long seed, char[] data)
public static long hash64(long seed, java.lang.CharSequence data)
public static long hash64(long seed, int[] data)
public static long hash64(long seed, int[] data, int length)
public static long hash64(long seed, long[] data)
public static long hash64(long seed, float[] data)
public static long hash64(long seed, double[] data)
public static long hash64(long seed, char[] data, int start, int end)
data
- the char array to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public static long hash64(long seed, java.lang.CharSequence data, int start, int end)
data
- the String or other CharSequence to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public static long hash64(long seed, char[][] data)
public static long hash64(long seed, int[][] data)
public static long hash64(long seed, long[][] data)
public static long hash64(long seed, java.lang.CharSequence[] data)
public static long hash64(long seed, java.lang.CharSequence[]... data)
public static long hash64(long seed, java.lang.Iterable<? extends java.lang.CharSequence> data)
public static long hash64(long seed, java.util.List<? extends java.lang.CharSequence> data)
public static long hash64(long seed, java.lang.Object[] data)
public static long hash64(long seed, java.lang.Object data)
public static int hash(long seed, boolean[] data)
public static int hash(long seed, byte[] data)
public static int hash(long seed, short[] data)
public static int hash(long seed, char[] data)
public static int hash(long seed, java.lang.CharSequence data)
public static int hash(long seed, int[] data)
public static int hash(long seed, int[] data, int length)
public static int hash(long seed, long[] data)
public static int hash(long seed, float[] data)
public static int hash(long seed, double[] data)
public static int hash(long seed, char[] data, int start, int end)
data
- the char array to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public static int hash(long seed, java.lang.CharSequence data, int start, int end)
data
- the String or other CharSequence to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public static int hash(long seed, char[][] data)
public static int hash(long seed, int[][] data)
public static int hash(long seed, long[][] data)
public static int hash(long seed, java.lang.CharSequence[] data)
public static int hash(long seed, java.lang.CharSequence[]... data)
public static int hash(long seed, java.lang.Iterable<? extends java.lang.CharSequence> data)
public static int hash(long seed, java.util.List<? extends java.lang.CharSequence> data)
public static int hash(long seed, java.lang.Object[] data)
public static int hash(long seed, java.lang.Object data)
Copyright © Eben Howard 2012–2022. All rights reserved.