|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.gold.java.AboraHeaper
|
+--org.abora.gold.xpp.basic.Heaper
|
+--org.abora.gold.collection.tables.ScruTable
|
+--org.abora.gold.collection.tables.MuTable
|
+--org.abora.gold.collection.grand.GrandHashTable
| Field Summary | |
protected int |
cacheHash
|
protected Position |
cacheKey
|
protected Heaper |
cacheValue
|
protected PtrArray |
grandNodes
|
protected CoordinateSpace |
myCs
|
protected Counter |
myDoublingFrontIndex
|
protected Counter |
myDoublingPasses
|
protected IntegerVar |
myOutstandingSteppers
|
protected Counter |
myTally
|
protected int |
nodeIndexShift
|
protected int |
numNodes
|
| Fields inherited from class org.abora.gold.collection.tables.MuTable |
AlreadyInTableSignal, NotInDomainSignal, NullInsertionSignal |
| Fields inherited from class org.abora.gold.collection.tables.ScruTable |
NotInTableSignal, WrongCoordSpaceSignal |
| Fields inherited from class org.abora.gold.xpp.basic.Heaper |
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes |
| Fields inherited from class org.abora.gold.java.AboraHeaper |
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag |
| Constructor Summary | |
GrandHashTable(CoordinateSpace cs,
int nNodes)
|
|
GrandHashTable(Rcvr receiver)
|
|
| Method Summary | |
ImmuTable |
asImmuTable()
Return a side-effect-free snapshot of my current contents. See ScruSet::asImmuSet. |
MuTable |
asMuTable()
Note that muTable->asMuTable() returns a copy of the original. |
Heaper |
atStore(Position aKey,
Heaper aHeaper)
Associate value with key, whether or not there is a previous association. Return the old range element if the position was previously occupied, NULL otherwise |
void |
checkSteppers()
|
void |
considerNeedForDoubling()
Compute location of doubling front from tally. |
CoordinateSpace |
coordinateSpace()
The kind of elements used to index into the table are Positions of this coordinate space. |
ScruTable |
copy()
A new one whose initial state is my current state, but that doesn't track changes. |
IntegerVar |
count()
Return the number of domain elements, which is to say, the number of associations. 'table->count()' should be equivalent to 'table->domain()->count()'. Used to say: 'Return the number of range elements'. |
void |
destruct()
Classes should implement this message rather than a destructor. |
XnRegion |
domain()
Return an XuRegion representing a snapshot of the current domain. 'table->domain()->hasMember(p)' iff 'table->fetch(p) !!= NULL'. |
ScruTable |
emptySize(IntegerVar size)
Return an empty table just like the current one. |
Heaper |
fetch(Position key)
Return the range element at the domain position key. |
void |
fewerSteppers()
|
boolean |
includesIntKey(IntegerVar aKey)
Unboxed version. |
boolean |
includesKey(Position aKey)
includesKey is used to test for the presence of a key->value pair in the table. |
static void |
initTimeNonInherited()
GrandHashTable initTimeNonInherited |
void |
inspect()
|
static void |
inspectPieces()
|
void |
invalidateCache()
|
boolean |
isEmpty()
Is there anything in the table? 'table->isEmpty()' iff 'table->domain()->isEmpty()'. |
static Heaper |
make(CoordinateSpace cs)
A new empty MuTable whose domain space is 'cs'. |
static Heaper |
make(CoordinateSpace cs,
int nNodes)
|
void |
moreSteppers()
|
GrandNode |
nodeAt(IntegerVar idx)
|
IntegerVar |
nodeCount()
|
void |
printOn(java.io.PrintWriter aStream)
|
void |
restartGrandHashTable(Rcvr trans)
re-initialize the non-persistent part |
XnRegion |
runAt(Position index)
Return the length of the run starting at position key. |
XnRegion |
runAtInt(IntegerVar index)
Unboxed version. |
void |
sendSelfTo(Xmtr xmtr)
do nothing |
TableStepper |
stepper(OrderSpec order)
Return a TableStepper which will enumerate my key->value mappings. |
ScruTable |
subTable(XnRegion region)
Return a table which contains only the intersection of this table's domain and the domain specified by 'region'. table->subTable(r)->domain()->isEqual( table->domain()->intersect(r) ). It is unspecified whether the resulting table starts as a snapshot of a subset of me, after which we go our own ways; or whether the resulting table is a view onto a subset of me, such that changes to me are also visible to him. |
boolean |
wipe(Position aKey)
Remove a key->value association from the table. Do not blast (or do anything else) if the key is not in my current domain. Return TRUE if the association was present and removed, Return FALSE if the association was not there |
| Methods inherited from class org.abora.gold.collection.tables.MuTable |
actualHashForEqual, atIntIntroduce, atIntReplace, atIntroduce, atIntStore, atReplace, intFetch, intRemove, introduceAll, introduceAll, introduceAll, intWipe, isEqual, make, problems, remove, removeAll, replaceAll, replaceAll, replaceAll, storeAll, storeAll, storeAll, test, wipeAll |
| Methods inherited from class org.abora.gold.collection.tables.ScruTable |
asOrderedCollection, backfollowFrom, contentsEqual, contentsHash, dox, get, intGet, isEqual, printOnWithSimpleSyntax, printOnWithSyntax, range, stepper, theOne, transformedBy |
| Methods inherited from class org.abora.gold.java.AboraHeaper |
asOop, basicInspect, displayString, error, hack, halt, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected PtrArray grandNodes
protected int numNodes
protected int nodeIndexShift
protected Counter myTally
protected Counter myDoublingFrontIndex
protected Counter myDoublingPasses
protected CoordinateSpace myCs
protected int cacheHash
protected Position cacheKey
protected Heaper cacheValue
protected IntegerVar myOutstandingSteppers
| Constructor Detail |
public GrandHashTable(CoordinateSpace cs,
int nNodes)
public GrandHashTable(Rcvr receiver)
| Method Detail |
public Heaper atStore(Position aKey,
Heaper aHeaper)
MuTable
atStore in class MuTablepublic boolean wipe(Position aKey)
MuTable
wipe in class MuTablepublic CoordinateSpace coordinateSpace()
ScruTable
coordinateSpace in class MuTablepublic IntegerVar count()
ScruTable
count in class MuTablepublic XnRegion domain()
ScruTable
domain in class MuTablepublic Heaper fetch(Position key)
ScruTable
fetch in class MuTablepublic ScruTable subTable(XnRegion region)
ScruTable
subTable in class MuTablepublic boolean includesIntKey(IntegerVar aKey)
ScruTable
includesIntKey in class MuTablepublic boolean includesKey(Position aKey)
ScruTable
includesKey in class MuTablepublic boolean isEmpty()
ScruTable
isEmpty in class MuTablepublic ScruTable copy()
ScruTable
copy in class MuTablepublic ScruTable emptySize(IntegerVar size)
ScruTable
emptySize in class MuTablepublic void printOn(java.io.PrintWriter aStream)
printOn in class ScruTablepublic XnRegion runAt(Position index)
ScruTable
runAt in class MuTablepublic XnRegion runAtInt(IntegerVar index)
ScruTable
runAtInt in class MuTablepublic void checkSteppers()
public void fewerSteppers()
public void moreSteppers()
public TableStepper stepper(OrderSpec order)
ScruTable
stepper in class MuTablepublic void destruct()
Heaper
destruct in class Heaperpublic void considerNeedForDoubling()
public void invalidateCache()
public void restartGrandHashTable(Rcvr trans)
public GrandNode nodeAt(IntegerVar idx)
public IntegerVar nodeCount()
public void inspect()
inspect in class AboraHeaperpublic static void inspectPieces()
public ImmuTable asImmuTable()
ScruTable
asImmuTable in class MuTablepublic MuTable asMuTable()
MuTable
asMuTable in class MuTablepublic void sendSelfTo(Xmtr xmtr)
Heaper
sendSelfTo in class MuTablepublic static Heaper make(CoordinateSpace cs)
MuTable
public static Heaper make(CoordinateSpace cs,
int nNodes)
public static void initTimeNonInherited()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||