Skip to content

Instantly share code, notes, and snippets.

@davidmoten
Last active June 29, 2019 07:17
Show Gist options
  • Save davidmoten/a9c39f93f2a6ebeb2eff7c1d7fbd0c06 to your computer and use it in GitHub Desktop.
Save davidmoten/a9c39f93f2a6ebeb2eff7c1d7fbd0c06 to your computer and use it in GitHub Desktop.
// search with the index for an hour around Sydney
int count =
index
.search(
new double[] { -33.68, 150.86, t},
new double[] { -34.06, 151.34, t + TimeUnit.HOURS.toMillis(1)})
.concurrency(1)
.url("https://craft-positions.s3-ap-southeast-2.amazonaws.com/input-sorted.csv")
.count()
.get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment