public class AggregateQuadTree
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AggregateQuadTree.Node |
Constructor and Description |
---|
AggregateQuadTree() |
Modifier and Type | Method and Description |
---|---|
static AggregateQuadTree.Node |
aggregateQuery(FileSystem fs,
Path p,
java.awt.Rectangle query_mbr) |
static AggregateQuadTree.Node |
aggregateQuery(FSDataInputStream in,
java.awt.Rectangle query_mbr)
Perform a selection query that retrieves all points in the given range.
|
static void |
build(Configuration conf,
Path inFile,
java.lang.String datasetName,
Path outFile)
Constructs an aggregate quad tree for an input HDF file on a selected
dataset identified by its name in the file.
|
static void |
build(short[] values,
short fillValue,
java.io.DataOutputStream out)
Constructs an aggregate quad tree out of a two-dimensional array of values.
|
static int |
computeZOrder(short x,
short y)
Computes the Z-order (Morton order) of a two-dimensional point.
|
static void |
main(java.lang.String[] args) |
static void |
merge(Configuration conf,
Path[] inFiles,
Path outFile)
Merges a list of aggregate trees (in the same order) and writes an output tree
that combines all input trees.
|
static void |
merge(java.io.DataInputStream[] inTrees,
java.io.DataOutputStream outTree)
Merges multiple trees of the same spatial resolution into one tree of
lower temporal resolution (larger time) and the same spatial resolution.
|
static int |
selectionQuery(FSDataInputStream in,
java.awt.Rectangle query_mbr,
ResultCollector2<java.awt.Point,java.lang.Short> output)
Perform a selection query that retrieves all points in the given range.
|
public static void build(Configuration conf, Path inFile, java.lang.String datasetName, Path outFile) throws java.lang.Exception
inFile
- datasetIndex
- outFile
- java.lang.Exception
public static void build(short[] values, short fillValue, java.io.DataOutputStream out) throws java.io.IOException
values
- out
- - the output stream to write the constructed quad tree tojava.io.IOException
public static void merge(Configuration conf, Path[] inFiles, Path outFile) throws java.io.IOException
build(Configuration, Path, java.lang.String, Path)
methods. The merged tree can be further merged using this method.conf
- inFiles
- outFile
- java.io.IOException
public static void merge(java.io.DataInputStream[] inTrees, java.io.DataOutputStream outTree) throws java.io.IOException
inTrees
- outTree
- java.io.IOException
public static int selectionQuery(FSDataInputStream in, java.awt.Rectangle query_mbr, ResultCollector2<java.awt.Point,java.lang.Short> output) throws java.io.IOException
in
- r
- java.io.IOException
public static AggregateQuadTree.Node aggregateQuery(FileSystem fs, Path p, java.awt.Rectangle query_mbr) throws java.io.IOException
java.io.IOException
public static AggregateQuadTree.Node aggregateQuery(FSDataInputStream in, java.awt.Rectangle query_mbr) throws java.io.IOException
in
- r
- java.io.IOException
public static int computeZOrder(short x, short y)
x
- y
- public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception