aa
|
Public Member Functions | |
long | add_if (long x, int hash, ConcurrentAutoTable master) |
long | estimate_sum () |
void | print () |
long | sum () |
String | toString () |
Package Functions | |
CAT (CAT next, int sz, long init) | |
Static Private Member Functions | |
static boolean | CAS (long[] A, int idx, long old, long nnn) |
static long | rawIndex (long[] ary, int i) |
Private Attributes | |
volatile long | _fuzzy_sum_cache |
volatile long | _fuzzy_time |
final CAT | _next |
final long[] | _t |
Static Private Attributes | |
static final int | _Lbase = _unsafe.arrayBaseOffset(long[].class) |
static final int | _Lscale = _unsafe.arrayIndexScale(long[].class) |
static final Unsafe | _unsafe = UtilUnsafe.getUnsafe() |
static final int | MAX_SPIN =1 |
Definition at line 98 of file ConcurrentAutoTable.java.
|
package |
Definition at line 122 of file ConcurrentAutoTable.java.
References com.cliffc.aa.util.ConcurrentAutoTable.CAT._next, and com.cliffc.aa.util.ConcurrentAutoTable.CAT._t.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.add_if().
long com.cliffc.aa.util.ConcurrentAutoTable.CAT.add_if | ( | long | x, |
int | hash, | ||
ConcurrentAutoTable | master | ||
) |
Definition at line 131 of file ConcurrentAutoTable.java.
References com.cliffc.aa.util.ConcurrentAutoTable._cat, com.cliffc.aa.util.ConcurrentAutoTable.CAT._t, com.cliffc.aa.util.ConcurrentAutoTable.CAT.CAS(), com.cliffc.aa.util.ConcurrentAutoTable.CAS_cat(), com.cliffc.aa.util.ConcurrentAutoTable.CAT.CAT(), com.cliffc.aa.util.ConcurrentAutoTable.hash(), and com.cliffc.aa.util.ConcurrentAutoTable.CAT.MAX_SPIN.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.add_if().
|
staticprivate |
Definition at line 108 of file ConcurrentAutoTable.java.
References com.cliffc.aa.util.ConcurrentAutoTable.CAT._unsafe, and com.cliffc.aa.util.ConcurrentAutoTable.CAT.rawIndex().
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.add_if().
long com.cliffc.aa.util.ConcurrentAutoTable.CAT.estimate_sum | ( | ) |
Definition at line 184 of file ConcurrentAutoTable.java.
References com.cliffc.aa.util.ConcurrentAutoTable.CAT._fuzzy_sum_cache, com.cliffc.aa.util.ConcurrentAutoTable.CAT._fuzzy_time, com.cliffc.aa.util.ConcurrentAutoTable.CAT._t, and com.cliffc.aa.util.ConcurrentAutoTable.CAT.sum().
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.estimate_get().
void com.cliffc.aa.util.ConcurrentAutoTable.CAT.print | ( | ) |
Definition at line 198 of file ConcurrentAutoTable.java.
References com.cliffc.aa.util.ConcurrentAutoTable.CAT._next, com.cliffc.aa.util.ConcurrentAutoTable.CAT._t, and com.cliffc.aa.util.ConcurrentAutoTable.CAT.print().
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.print(), and com.cliffc.aa.util.ConcurrentAutoTable.CAT.print().
|
staticprivate |
Definition at line 104 of file ConcurrentAutoTable.java.
References com.cliffc.aa.util.ConcurrentAutoTable.CAT._Lbase, and com.cliffc.aa.util.ConcurrentAutoTable.CAT._Lscale.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.CAS().
long com.cliffc.aa.util.ConcurrentAutoTable.CAT.sum | ( | ) |
Definition at line 175 of file ConcurrentAutoTable.java.
References com.cliffc.aa.util.ConcurrentAutoTable.CAT._next, com.cliffc.aa.util.ConcurrentAutoTable.CAT._t, and com.cliffc.aa.util.ConcurrentAutoTable.CAT.sum().
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.estimate_sum(), com.cliffc.aa.util.ConcurrentAutoTable.get(), com.cliffc.aa.util.ConcurrentAutoTable.intValue(), com.cliffc.aa.util.ConcurrentAutoTable.longValue(), com.cliffc.aa.util.ConcurrentAutoTable.CAT.sum(), and com.cliffc.aa.util.ConcurrentAutoTable.CAT.toString().
String com.cliffc.aa.util.ConcurrentAutoTable.CAT.toString | ( | ) |
Definition at line 196 of file ConcurrentAutoTable.java.
References com.cliffc.aa.util.ConcurrentAutoTable.CAT.sum().
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.toString().
|
private |
Definition at line 117 of file ConcurrentAutoTable.java.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.estimate_sum().
|
private |
Definition at line 118 of file ConcurrentAutoTable.java.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.estimate_sum().
|
staticprivate |
Definition at line 102 of file ConcurrentAutoTable.java.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.rawIndex().
|
staticprivate |
Definition at line 103 of file ConcurrentAutoTable.java.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.rawIndex().
|
private |
Definition at line 116 of file ConcurrentAutoTable.java.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.CAT(), com.cliffc.aa.util.ConcurrentAutoTable.CAT.print(), and com.cliffc.aa.util.ConcurrentAutoTable.CAT.sum().
|
private |
Definition at line 120 of file ConcurrentAutoTable.java.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.add_if(), com.cliffc.aa.util.ConcurrentAutoTable.CAT.CAT(), com.cliffc.aa.util.ConcurrentAutoTable.CAT.estimate_sum(), com.cliffc.aa.util.ConcurrentAutoTable.internal_size(), com.cliffc.aa.util.ConcurrentAutoTable.CAT.print(), and com.cliffc.aa.util.ConcurrentAutoTable.CAT.sum().
|
staticprivate |
Definition at line 101 of file ConcurrentAutoTable.java.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.CAS().
|
staticprivate |
Definition at line 119 of file ConcurrentAutoTable.java.
Referenced by com.cliffc.aa.util.ConcurrentAutoTable.CAT.add_if().