edu.unh.sdb.datasource
Class ISPartitioning

java.lang.Object
  extended by edu.unh.sdb.datasource.ISPartitioning
Direct Known Subclasses:
RegularISPartitioning

public abstract class ISPartitioning
extends java.lang.Object

A ISPartitioning provides a mapping between an N-Dimensional index space and an integer partitioning Space of the same dimensionality.


Field Summary
protected  int dimensionality
           
 
Constructor Summary
ISPartitioning(IndexSpaceID partitionDimensions, ISBounds spaceBounds)
          The first argument specifies the shape of each partition, not the dimensions of the partSpace.
ISPartitioning(int[] partitioningDimensions, ISBounds spaceBounds)
           
ISPartitioning(ISBounds partitioningBounds, ISBounds spaceBounds)
           
 
Method Summary
 int dim()
           
abstract  ISBounds getIndexedBounds(ISBounds bounds, IndexSpaceID partitioningIndex)
          Sets the argument ISBounds to the bounds corresponding to the partition ID.
 ISIterator getISIterator()
           
 ISBounds getPartitioningBounds()
           
 int[] getPartitioningDimensions(int[] dimensions)
           
abstract  ISBoundsIterator getPartitionIterator(ISBounds subSpace)
           
 ISBounds getSpaceBounds()
           
 boolean inBounds(IndexSpaceID pid)
          Return true if the argument represents a partition coordinate that is within the bounds of this partitioning.
 boolean inBounds(int[] coords)
          Return true if the argument represents a partition coordinate that is within the bounds of this partitioning.
abstract  IndexSpaceID map(IndexSpaceID p)
           
abstract  ISBounds map(ISBounds b)
           
 java.lang.String toString()
          Return a String representing the object.
 java.lang.String toString(java.lang.String indent)
          Return a String representing the object indented by the argument string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dimensionality

protected int dimensionality
Constructor Detail

ISPartitioning

public ISPartitioning(ISBounds partitioningBounds,
                      ISBounds spaceBounds)

ISPartitioning

public ISPartitioning(IndexSpaceID partitionDimensions,
                      ISBounds spaceBounds)
The first argument specifies the shape of each partition, not the dimensions of the partSpace.


ISPartitioning

public ISPartitioning(int[] partitioningDimensions,
                      ISBounds spaceBounds)
Method Detail

dim

public final int dim()

getPartitioningBounds

public ISBounds getPartitioningBounds()

inBounds

public final boolean inBounds(IndexSpaceID pid)
Return true if the argument represents a partition coordinate that is within the bounds of this partitioning. This is a partitioning space operation, not an index space operation.


inBounds

public final boolean inBounds(int[] coords)
Return true if the argument represents a partition coordinate that is within the bounds of this partitioning. This is a partitioning space operation, not an index space operation.


getPartitioningDimensions

public int[] getPartitioningDimensions(int[] dimensions)

getSpaceBounds

public ISBounds getSpaceBounds()

getPartitionIterator

public abstract ISBoundsIterator getPartitionIterator(ISBounds subSpace)

getISIterator

public ISIterator getISIterator()

map

public abstract IndexSpaceID map(IndexSpaceID p)

map

public abstract ISBounds map(ISBounds b)

getIndexedBounds

public abstract ISBounds getIndexedBounds(ISBounds bounds,
                                          IndexSpaceID partitioningIndex)
Sets the argument ISBounds to the bounds corresponding to the partition ID.


toString

public java.lang.String toString()
Return a String representing the object.

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String indent)
Return a String representing the object indented by the argument string.