vishnu.model.algebra.algorithms.join
Class DefaultPartition

java.lang.Object
  extended by vishnu.model.algebra.algorithms.join.DefaultPartition
All Implemented Interfaces:
Partition

public class DefaultPartition
extends java.lang.Object
implements Partition

Author:
Mariano Tepper
 

Constructor Summary
DefaultPartition(TableContext c, java.lang.String hashColumn)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 void finishPartitioning()
           
 int hashCode()
           
 int partitionCount()
           
 boolean put(Record r)
           
 Record retrieve(int partitionNumber, int record)
           
 int size(int partitionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPartition

public DefaultPartition(TableContext c,
                        java.lang.String hashColumn)
Method Detail

put

public boolean put(Record r)
Specified by:
put in interface Partition

size

public int size(int partitionNumber)
Specified by:
size in interface Partition

retrieve

public Record retrieve(int partitionNumber,
                       int record)
Specified by:
retrieve in interface Partition

partitionCount

public int partitionCount()
Specified by:
partitionCount in interface Partition

finishPartitioning

public void finishPartitioning()
Specified by:
finishPartitioning in interface Partition

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object