org.ozoneDB.core.storage.gammaStore
Class ContainerLocationLoc
java.lang.Object
org.ozoneDB.core.storage.gammaStore.Loc
org.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
Fields inherited from class org.ozoneDB.core.storage.gammaStore.Loc |
keys |
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 |
dataFileIds
protected int[] dataFileIds
positions
protected int[] positions
ContainerLocationLoc
public ContainerLocationLoc(int capacity,
float bufferFactor)
ContainerLocationLoc
public ContainerLocationLoc(int capacity,
int slack)
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
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.