|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.core.storage.classicStore.DeathObjectBuffer
Field Summary | |
(package private) int |
bufferSize
|
(package private) DeathObject |
head
head and tail of the double linked list |
DxMap |
objects
all objects ordered by their ObjectID |
(package private) DeathObject |
tail
|
Constructor Summary | |
DeathObjectBuffer()
the constructor |
Method Summary | |
boolean |
add(DeathObject obj)
adds the object to the bottom of the stack |
int |
count()
returns the current count of objects of the buffer |
boolean |
moveToTop(ObjectID oid)
moves the specified object to the top of the stack |
DeathObject |
objectForId(ObjectID oid)
returns the DeathObject for the specified ObjectID |
private void |
popOnBottom(DeathObject obj)
pops the object on the bottom of the stack |
private void |
popOnTop(DeathObject obj)
pops the object on the top of the stack |
DeathObject |
pushFromBottom()
removes and returns the object at the bottom |
DeathObject |
remove(ObjectID oid)
removes the object from the stack |
private void |
removeFromStack(DeathObject obj)
removes the object from the stack |
int |
size()
returns the current size of the buffer |
void |
updateSize(DeathObject obj,
boolean sub)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public DxMap objects
DeathObject head
DeathObject tail
int bufferSize
Constructor Detail |
public DeathObjectBuffer()
Method Detail |
public final int size()
public final int count()
public void updateSize(DeathObject obj, boolean sub)
public boolean add(DeathObject obj)
public DeathObject remove(ObjectID oid)
public boolean moveToTop(ObjectID oid)
public DeathObject pushFromBottom()
public DeathObject objectForId(ObjectID oid)
private void popOnTop(DeathObject obj)
private void popOnBottom(DeathObject obj)
private void removeFromStack(DeathObject obj)
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |