public abstract class ARRSBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected CellIndexable |
arrSource |
protected int |
dim |
protected java.io.InputStreamReader |
inFile |
protected int |
nodeNum |
protected ARCellParser |
parser |
protected ARRSTree |
tree |
Constructor and Description |
---|
ARRSBuilder(java.lang.String command,
CellIndexable arrSource) |
Modifier and Type | Method and Description |
---|---|
boolean |
addKdNode(int parent,
int[] bounds) |
abstract boolean |
addLeaf(int parent,
int[] bounds,
int[] size)
Abstract method to create a leaf node with data.
|
boolean |
addNtreeNode(int parent,
int[] bounds) |
ARRSTree |
getARRSTree()
Get the ARRS tree
|
boolean |
isDim(int i) |
protected ISBounds |
makeBaseBounds(int[] bounds)
Return an ISBounds representing the base bounds for this AR Tree
|
protected int dim
protected int nodeNum
protected CellIndexable arrSource
protected java.io.InputStreamReader inFile
protected ARRSTree tree
protected ARCellParser parser
public ARRSBuilder(java.lang.String command, CellIndexable arrSource)
public boolean isDim(int i)
public boolean addKdNode(int parent, int[] bounds)
public boolean addNtreeNode(int parent, int[] bounds)
public abstract boolean addLeaf(int parent, int[] bounds, int[] size)
parent
- parent node for this leafbounds
- 2*dim array; 1st dim are lower bounds of leaf block in base space
2nd dim are upper bounds of leaf block in base spacesize
- array of length dim defining size of leaf block in points (?)protected ISBounds makeBaseBounds(int[] bounds)
bounds
- is a 2*dim array where 1st dim entries are lower bounds,
and last dim entries are upper bounds.public ARRSTree getARRSTree()