File tree Expand file tree Collapse file tree 15 files changed +22
-21
lines changed
src/edu/umn/cs/spatialHadoop Expand file tree Collapse file tree 15 files changed +22
-21
lines changed Original file line number Diff line number Diff line change 1- package edu .umn .cs ;
1+ package edu .umn .cs . spatialHadoop ;
22
33import java .io .IOException ;
44import java .util .HashSet ;
2222import org .apache .hadoop .spatial .ResultCollector ;
2323import org .apache .hadoop .spatial .Shape ;
2424
25- import edu .umn .cs .spatialHadoop .TigerShape ;
2625import edu .umn .cs .spatialHadoop .operations .Sampler ;
2726
2827public class CommandLineArguments {
@@ -61,7 +60,7 @@ public Path[] getPaths() {
6160
6261 public Path getPath () {
6362 Path [] paths = getPaths ();
64- return paths .length > 1 ? paths [0 ] : null ;
63+ return paths .length > 0 ? paths [0 ] : null ;
6564 }
6665
6766 public GridInfo getGridInfo () {
Original file line number Diff line number Diff line change 1- package edu .umn .cs ;
1+ package edu .umn .cs . spatialHadoop ;
22
33/**
44 * Estimates a given value by taking a random sample from sample space until
Original file line number Diff line number Diff line change 1- package edu .umn .cs ;
1+ package edu .umn .cs . spatialHadoop ;
22
33import java .io .BufferedOutputStream ;
44import java .io .IOException ;
2323import org .apache .hadoop .spatial .SpatialSite ;
2424
2525
26+
2627/**
2728 * Generates a random file of rectangles or points based on some user
2829 * parameters
Original file line number Diff line number Diff line change 1- package edu .umn .cs ;
1+ package edu .umn .cs . spatialHadoop ;
22
33import java .util .HashMap ;
44import java .util .Map ;
Original file line number Diff line number Diff line change 4949import org .apache .hadoop .util .LineReader ;
5050import org .apache .hadoop .util .QuickSort ;
5151
52- import edu .umn .cs .CommandLineArguments ;
52+ import edu .umn .cs .spatialHadoop . CommandLineArguments ;
5353
5454/**
5555 * Performs a spatial join between two or more files using the redistribute-join
Original file line number Diff line number Diff line change 2626import org .apache .hadoop .spatial .SpatialSite ;
2727import org .apache .hadoop .util .LineReader ;
2828
29- import edu .umn .cs .CommandLineArguments ;
29+ import edu .umn .cs .spatialHadoop . CommandLineArguments ;
3030
3131/**
3232 * Finds the minimal bounding rectangle for a file.
Original file line number Diff line number Diff line change 5050import org .apache .hadoop .util .LineReader ;
5151import org .apache .hadoop .util .PriorityQueue ;
5252
53- import edu .umn .cs .CommandLineArguments ;
53+ import edu .umn .cs .spatialHadoop . CommandLineArguments ;
5454
5555/**
5656 * Performs k Nearest Neighbor (kNN) query over a spatial file.
Original file line number Diff line number Diff line change 2222import org .apache .hadoop .mapred .TextOutputFormat ;
2323import org .apache .hadoop .spatial .CellInfo ;
2424
25- import edu .umn .cs .CommandLineArguments ;
25+ import edu .umn .cs .spatialHadoop . CommandLineArguments ;
2626
2727
2828/**
Original file line number Diff line number Diff line change 11package edu .umn .cs .spatialHadoop .operations ;
22
3- import edu .umn .cs .RandomSpatialGenerator ;
3+ import edu .umn .cs .spatialHadoop . RandomSpatialGenerator ;
44
55/**
66 * The main entry point to all queries.
Original file line number Diff line number Diff line change 3636import org .apache .hadoop .spatial .SpatialSite ;
3737import org .apache .hadoop .util .LineReader ;
3838
39- import edu .umn .cs .CommandLineArguments ;
39+ import edu .umn .cs .spatialHadoop . CommandLineArguments ;
4040
4141/**
4242 * Performs a range query over a spatial file.
You can’t perform that action at this time.
0 commit comments