org.apache.labs.bananadb.store.data
Class FileHandler.Posting

java.lang.Object
  extended by org.apache.labs.bananadb.store.data.FileHandler.Posting
Direct Known Subclasses:
HashCodesPartition.Posting, Hashtable.Posting, KeysPartition.Posting, ValuesPartition.Posting
Enclosing class:
FileHandler<H extends FileHandler.Header,P extends FileHandler.Posting>

public abstract static class FileHandler.Posting
extends java.lang.Object


Field Summary
static byte FLAG_DELETED
           
static byte FLAG_IN_USE
           
static byte FLAG_NEVER_USED
           
 
Constructor Summary
FileHandler.Posting()
           
 
Method Summary
abstract  long getCreatedRevision()
           
abstract  long getDeletedRevision()
           
abstract  byte getFlag()
           
 byte getFlagForRevision(long revision)
           
abstract  int getPostingByteSize()
           
abstract  void setCreatedRevision(long revision)
           
abstract  void setDeletedRevision(long revision)
           
abstract  void setFlag(byte flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_NEVER_USED

public static final byte FLAG_NEVER_USED
See Also:
Constant Field Values

FLAG_IN_USE

public static final byte FLAG_IN_USE
See Also:
Constant Field Values

FLAG_DELETED

public static final byte FLAG_DELETED
See Also:
Constant Field Values
Constructor Detail

FileHandler.Posting

public FileHandler.Posting()
Method Detail

getPostingByteSize

public abstract int getPostingByteSize()

getFlag

public abstract byte getFlag()

setFlag

public abstract void setFlag(byte flag)

getCreatedRevision

public abstract long getCreatedRevision()

setCreatedRevision

public abstract void setCreatedRevision(long revision)

getDeletedRevision

public abstract long getDeletedRevision()

setDeletedRevision

public abstract void setDeletedRevision(long revision)

getFlagForRevision

public byte getFlagForRevision(long revision)
Parameters:
revision - read revision
Returns:
the flag for this posting in any given revision


Copyright © 2009 Apache Software Foundation. All Rights Reserved.