public class ChunckedLongTrail extends ChunckedTrail<LongWorld> implements IStoredLongTrail
current, worlds
Constructor and Description |
---|
ChunckedLongTrail(int ws,
int nbWorlds,
double loadfactor)
Constructs a trail with predefined size and loadfactor
|
Modifier and Type | Method and Description |
---|---|
void |
buildFakeHistory(StoredLong v,
long initValue,
int olderStamp) |
void |
savePreviousState(StoredLong v,
long oldValue,
int oldStamp) |
void |
worldPush(int worldIndex)
Moving up to the next world.
|
allocated, worldCommit, worldPop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
worldCommit, worldPop
public ChunckedLongTrail(int ws, int nbWorlds, double loadfactor)
ws
- the initial world sizenbWorlds
- the initial number of worldsloadfactor
- how to resize worldpublic void worldPush(int worldIndex)
IStorage
public void savePreviousState(StoredLong v, long oldValue, int oldStamp)
savePreviousState
in interface IStoredLongTrail
public void buildFakeHistory(StoredLong v, long initValue, int olderStamp)
buildFakeHistory
in interface IStoredLongTrail
Copyright © 2018. All rights reserved.