ostore.archive
Class FragmentTag

java.lang.Object
  |
  +--dd.api.DDThresholdTag
        |
        +--ostore.archive.FragmentTag
All Implemented Interfaces:
DDTag, QuickSerializable

public class FragmentTag
extends DDThresholdTag

FragmentTag is the DDThresholdTag for archival Fragments.

Version:
$Id: FragmentTag.java,v 1.15 2004/05/13 20:13:06 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
Fragment, DDTag

Field Summary
 
Fields inherited from class dd.api.DDThresholdTag
low_watermark
 
Constructor Summary
FragmentTag(InputBuffer buffer)
          Constructs a FragmentTag from its serialized form.
FragmentTag(short low_watermark)
          Constructor: Creates a new FragmentTag.
 
Method Summary
 boolean equals(Object other)
          Compares this FragmentTag with another tag, and returns true iff they are the same type of tag.
 int hashCode()
          Calculates a Java hash code for this FragmentTag object (by returning its type_code)
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FragmentTag

public FragmentTag(short low_watermark)
Constructor: Creates a new FragmentTag.


FragmentTag

public FragmentTag(InputBuffer buffer)
            throws QSException
Constructs a FragmentTag from its serialized form.

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class DDThresholdTag
Parameters:
buffer - the output buffer to add the object to

equals

public boolean equals(Object other)
Compares this FragmentTag with another tag, and returns true iff they are the same type of tag.

Overrides:
equals in class DDThresholdTag
Parameters:
other - the object with which to compare this FragmentTag.
Returns:
true iff this and other are instanceof FragmentTag.

hashCode

public int hashCode()
Calculates a Java hash code for this FragmentTag object (by returning its type_code)

Overrides:
hashCode in class DDThresholdTag
Returns:
the Java hash code for this FragmentTag.

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class DDThresholdTag