ozone core API

org.ozoneDB.core.storage.gammaStore
Class ContainerLocationLoc

java.lang.Object
  extended byorg.ozoneDB.core.storage.gammaStore.Loc
      extended byorg.ozoneDB.core.storage.gammaStore.ContainerLocationLoc
All Implemented Interfaces:
java.io.Serializable

public class ContainerLocationLoc
extends Loc

Version:
$Id: ContainerLocationLoc.java,v 1.3 2004/03/21 21:05:51 leomekenkamp Exp $
Author:
Leo Mekenkamp (mind the anti sp@m)
See Also:
Serialized Form

Field Summary
protected  int[] dataFileIds
           
protected  int[] positions
           
 
Fields inherited from class org.ozoneDB.core.storage.gammaStore.Loc
keys
 
Constructor Summary
ContainerLocationLoc(int capacity, float bufferFactor)
           
ContainerLocationLoc(int capacity, int slack)
           
 
Method Summary
 ContainerLocation getContainerLocation(int pos)
           
private  void init()
           
static void main(java.lang.String[] args)
           
protected  void move(int from, int to)
          Extending classes _must_ implement their own move() and call this one as well.
 void putContainerLocation(int pos, ContainerLocation containerLocation)
          Note that we do not store containerLocation as an object, we simply take its values and copy it into internal arrays.
 java.lang.String toString()
           
 
Methods inherited from class org.ozoneDB.core.storage.gammaStore.Loc
getKey, getKeyPos, getKeyPosOrNearestGreater, getKeyPosOrNearestSmaller, getMaxKey, getMaxPos, getMinKey, getMinPos, isInUse, next, putKey, removeKey, removePos, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dataFileIds

protected int[] dataFileIds

positions

protected int[] positions
Constructor Detail

ContainerLocationLoc

public ContainerLocationLoc(int capacity,
                            float bufferFactor)

ContainerLocationLoc

public ContainerLocationLoc(int capacity,
                            int slack)
Method Detail

init

private void init()

putContainerLocation

public void putContainerLocation(int pos,
                                 ContainerLocation containerLocation)
Note that we do not store containerLocation as an object, we simply take its values and copy it into internal arrays. This saves a _lot_ of execution time during (de)serialization.


move

protected void move(int from,
                    int to)
Description copied from class: Loc
Extending classes _must_ implement their own move() and call this one as well.

Overrides:
move in class Loc

getContainerLocation

public ContainerLocation getContainerLocation(int pos)

toString

public java.lang.String toString()
Overrides:
toString in class Loc

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

ozone core API

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