Mobios v0.91

mobios.index
Class VPLeafNode

java.lang.Object
  extended by mobios.index.VPLeafNode
All Implemented Interfaces:
Externalizable, Serializable

public class VPLeafNode
extends Object

A VPLeafNode is a LeafNode in a VPIndex.

Author:
Rui Mao, Willard
See Also:
Serialized Form

Constructor Summary
VPLeafNode()
           
VPLeafNode(IndexObject[] pivots, IndexObject[] children, int size, double[][] distance, double[][] pathDistance)
          Main constructor.
 
Method Summary
 double[] getDataPointPathDistance(int childIndex)
           
 double[] getDataPointPivotDistance(int childIndex)
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VPLeafNode

public VPLeafNode()

VPLeafNode

public VPLeafNode(IndexObject[] pivots,
                  IndexObject[] children,
                  int size,
                  double[][] distance,
                  double[][] pathDistance)
Main constructor.

Parameters:
pivots - an array of @IndexObjects comprising the pivots of this node.
children - an array of @IndexObjects comprising the children of this node.
size - the size of this leaf node.
distance - distances from each distinct data point (row) to each pivot
pathDistance - distances from each distinct data point (row) to each pivot(column) on the path from the root to this node.
Method Detail

getDataPointPivotDistance

public double[] getDataPointPivotDistance(int childIndex)
Parameters:
childIndex -
Returns:
the distances from a child to all the pivots.

getDataPointPathDistance

public double[] getDataPointPathDistance(int childIndex)
Parameters:
childIndex -
Returns:
the path distance list, consisting of the distances from a child to pivots on the path from the root to the node, can be of lenght 0, but can not be null.

writeExternal

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

readExternal

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

Mobios v0.91

(C) 2002 - 2006 The MoBIoS Group