Skip to content

Commit

Permalink
cuSpatial: Use Double as the input type (#142)
Browse files Browse the repository at this point in the history
Signed-off-by: Liangcai Li <[email protected]>

Co-authored-by: Liangcai Li <[email protected]>
  • Loading branch information
firestarman and firestarman authored Apr 6, 2022
1 parent f6d68cf commit 88b4f23
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* A Spark Java UDF that computes what the `spatial_join` test does here.
* https://github.com/zhangjianting/cuspatial_benchmark_nyctaxi/blob/main/python/spatial_join.py
*/
public class PointInPolygon implements UDF2<Integer, Integer, List<Integer>>, RapidsUDF {
public class PointInPolygon implements UDF2<Double, Double, List<Integer>>, RapidsUDF {

private String shapeFile;
private boolean localPathParsed;
Expand All @@ -42,7 +42,7 @@ public PointInPolygon(String shapeFileName) {

/** Row-by-row implementation that executes on the CPU */
@Override
public List<Integer> call(Integer x, Integer y) {
public List<Integer> call(Double x, Double y) {
// not supported yet
throw new UnsupportedOperationException();
}
Expand Down

0 comments on commit 88b4f23

Please sign in to comment.