Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provides a flag to control turning on auto indexing of spatial relations #137

Merged
merged 2 commits into from
Aug 5, 2017

Conversation

halfabrane
Copy link
Contributor

use option magellan.index = true while defining the spatial format to trigger auto indexing of the dataset. The precision of the index can be set using magellan.index.precision
eg.

spark.read.format("magellan").
  option("magellan.index", "true").
  load(path)

triggers a ZOrder Curve based index with default precision of 6 characters.

spark.read.format("magellan").
  option("magellan.index", "true").
  option("magellan.index.precision", "35")
  load(path) 

triggers a ZOrder Curve based index with 7 character precision

@codecov-io
Copy link

Codecov Report

Merging #137 into master will increase coverage by 2.8%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #137     +/-   ##
=========================================
+ Coverage   82.62%   85.43%   +2.8%     
=========================================
  Files          48       47      -1     
  Lines        1502     1359    -143     
  Branches       98       92      -6     
=========================================
- Hits         1241     1161     -80     
+ Misses        261      198     -63
Impacted Files Coverage Δ
src/main/scala/magellan/SpatialRelation.scala 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1483a5...8df0a62. Read the comment docs.

@harsha2010 harsha2010 merged commit a63fa79 into harsha2010:master Aug 5, 2017
@halfabrane halfabrane deleted the SPATIAL-INDEX branch August 8, 2017 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants