Mobios v0.91

mobios.type
Class Fragment

java.lang.Object
  extended by mobios.type.IndexObject
      extended by mobios.type.Fragment
All Implemented Interfaces:
Externalizable, Serializable, Comparable<IndexObject>

public class Fragment
extends IndexObject

TODO

Version:
2006.07.31
Author:
Willard
See Also:
Serialized Form

Constructor Summary
Fragment()
          TODO
Fragment(mobios.db.SequenceTable table, int rowID)
          TODO
 
Method Summary
 int compareTo(IndexObject oThat)
           
 boolean equals(Object object)
           
 IndexObject[] expand()
          This method is necessary to implement bucketing, so that similar objects are only stored once in the database.
 Symbol get(int i)
          TODO
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 int size()
           
 String toString()
          all implementing classes are required to override toString
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class mobios.type.IndexObject
getRowID, setRowID, setRowIDLength
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Fragment

public Fragment()
TODO


Fragment

public Fragment(mobios.db.SequenceTable table,
                int rowID)
TODO

Parameters:
table -
rowID -
Method Detail

get

public Symbol get(int i)
TODO

Parameters:
i -
Returns:

size

public int size()
Specified by:
size in class IndexObject
Returns:
the size of the object

expand

public IndexObject[] expand()
Description copied from class: IndexObject
This method is necessary to implement bucketing, so that similar objects are only stored once in the database. If you do not want to implement bucketing for your object, you can just return an array of length one containing this object.

Specified by:
expand in class IndexObject
Returns:
an array of IndexObjects

compareTo

public int compareTo(IndexObject oThat)
Specified by:
compareTo in interface Comparable<IndexObject>
Specified by:
compareTo in class IndexObject

equals

public final boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Description copied from class: IndexObject
all implementing classes are required to override toString

Specified by:
toString in class IndexObject

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class IndexObject
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class IndexObject
Throws:
IOException

Mobios v0.91

(C) 2002 - 2006 The MoBIoS Group