public class RangeQuery
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RangeQuery.RangeQueryMap
The map function used for range query
|
| Constructor and Description |
|---|
RangeQuery() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
static <S extends Shape> |
rangeQueryLocal(Path inPath,
Shape queryRange,
S shape,
OperationsParams params,
ResultCollector<S> output)
Runs a range query on the local machine (no MapReduce) and the output is
streamed to the provided result collector.
|
static Job |
rangeQueryMapReduce(Path inFile,
Path outFile,
OperationsParams params) |
public static Job rangeQueryMapReduce(Path inFile,
Path outFile,
OperationsParams params)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.InterruptedExceptionpublic static <S extends Shape> long rangeQueryLocal(Path inPath, Shape queryRange, S shape, OperationsParams params, ResultCollector<S> output) throws java.io.IOException, java.lang.InterruptedException
ResultCollector.collect(Object).
You can use ResultCollectorSynchronizer to synchronize calls to
your ResultCollector if you cannot design yours to be thread safe.inFile - params - output - java.io.IOExceptionjava.lang.InterruptedExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.InterruptedException