ozone core API

org.ozoneDB.core.classicStore
Class DeathObjectBuffer

java.lang.Object
  |
  +--org.ozoneDB.core.classicStore.DeathObjectBuffer

public class DeathObjectBuffer
extends java.lang.Object


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

objects

public DxMap objects
all objects ordered by their ObjectID


head

DeathObject head
head and tail of the double linked list


tail

DeathObject tail

bufferSize

int bufferSize
Constructor Detail

DeathObjectBuffer

public DeathObjectBuffer()
the constructor

Method Detail

size

public final int size()
returns the current size of the buffer


count

public final int count()
returns the current count of objects of the buffer


updateSize

public void updateSize(DeathObject obj,
                       boolean sub)

add

public boolean add(DeathObject obj)
adds the object to the bottom of the stack


remove

public DeathObject remove(ObjectID oid)
removes the object from the stack


moveToTop

public boolean moveToTop(ObjectID oid)
moves the specified object to the top of the stack


pushFromBottom

public DeathObject pushFromBottom()
removes and returns the object at the bottom


objectForId

public DeathObject objectForId(ObjectID oid)
returns the DeathObject for the specified ObjectID


popOnTop

private void popOnTop(DeathObject obj)
pops the object on the top of the stack


popOnBottom

private void popOnBottom(DeathObject obj)
pops the object on the bottom of the stack


removeFromStack

private void removeFromStack(DeathObject obj)
removes the object from the stack


ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.