public class RangeQuery
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RangeQuery.RangeFilter
A filter function that selects partitions overlapping with a query range.
|
static class |
RangeQuery.RangeQueryMap
The map function used for range query
|
static class |
RangeQuery.RangeQueryMapNoDupAvoidance
The map function used for range query
|
Modifier and Type | Field and Description |
---|---|
static RunningJob |
lastRunningJob
Reference to the last range query job submitted
|
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 long |
rangeQueryMapReduce(Path inFile,
Path outFile,
Shape query,
OperationsParams params) |
public static RunningJob lastRunningJob
public static long rangeQueryMapReduce(Path inFile, Path outFile, Shape query, OperationsParams params) throws java.io.IOException
java.io.IOException
public static <S extends Shape> long rangeQueryLocal(Path inPath, Shape queryRange, S shape, OperationsParams params, ResultCollector<S> output) throws java.io.IOException
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.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException