Implement the Distributed Spatial Join Algorithm#1289
Merged
Conversation
063e426 to
548b200
Compare
JWileczek
added a commit
that referenced
this pull request
Mar 16, 2018
JWileczek
added a commit
that referenced
this pull request
Mar 16, 2018
rfecher
requested changes
Mar 16, 2018
| } | ||
|
|
||
| @Override | ||
| public Boolean call( |
|
|
||
| } | ||
| //Remove duplicates between tiers | ||
| //JavaPairRDD<GeoWaveInputKey, ByteArrayId> swappedResults = this.combinedResults.mapToPair(t -> t.swap()).reduceByKey((id1, id2) -> id1); |
| //JavaPairRDD<GeoWaveInputKey, ByteArrayId> swappedResults = this.combinedResults.mapToPair(t -> t.swap()).reduceByKey((id1, id2) -> id1); | ||
| this.combinedResults = this.combinedResults.reduceByKey((id1,id2) -> id1); | ||
|
|
||
| //swappedResults.cache(); |
| } | ||
| } | ||
|
|
||
| // List<ByteArrayId> insertIds = |
| //Cogroup groups on same tier ByteArrayId and pairs them into Iterable sets. | ||
| JavaPairRDD<ByteArrayId, Tuple2<Iterable<Tuple2<GeoWaveInputKey, Geometry>>, Iterable<Tuple2<GeoWaveInputKey, Geometry>>>> joinedTiers = leftTier.cogroup(rightTier, highestPartitionCount); | ||
| //Filter only the pairs that have data on both sides, bucket strategy should have been accounted for by this point. | ||
| //joinedTiers.cache(); |
|
|
||
| GeomFunction predicate = geomPredicate.value(); | ||
|
|
||
| //HashSet<Tuple2<GeoWaveInputKey, Geometry>> resultSet = Sets.newHashSet(); |
| throw new ParameterException( | ||
| "HDFS Base path must start with forward slash /"); | ||
| } | ||
| // if (!basePath.startsWith("/")) { |
| throw new ParameterException( | ||
| "HDFS Base path must start with forward slash /"); | ||
| } | ||
| // if (!basePath.startsWith("/")) { |
| LOGGER.error("Async error in join"); | ||
| e.printStackTrace(); | ||
| } | ||
| // typedJoin.join(session, hailRDD, tornadoRDD, distancePredicate, |
| FeatureSerializer simpleSerializer = new FeatureSerializer(); | ||
| PersistableSerializer persistSerializer = new PersistableSerializer(); | ||
|
|
||
| kryo.register( |
Contributor
There was a problem hiding this comment.
should be easy to register all persistables using PersistableFactory.getInstance().getClassIdMapping().entrySet().forEach(e -> kryo.register(e.getKey, simpleSerializer, e.getValue())); in place of specific concrete class registration.
JWileczek
added a commit
that referenced
this pull request
Mar 16, 2018
JWileczek
added a commit
that referenced
this pull request
Mar 16, 2018
JWileczek
added a commit
that referenced
this pull request
Mar 19, 2018
JWileczek
added a commit
that referenced
this pull request
Mar 19, 2018
rfecher
reviewed
Mar 20, 2018
|
|
||
| return new CustomIdIndex( | ||
| XZHierarchicalIndexFactory.createFullIncrementalTieredStrategy( | ||
| TieredSFCIndexFactory.createFullIncrementalTieredStrategy( |
Contributor
There was a problem hiding this comment.
doesn't this change our indexing approach for everything
JWileczek
added a commit
that referenced
this pull request
Mar 20, 2018
rfecher
approved these changes
Mar 22, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commits have not been squashed because I expect I may need to make a few changes before everything gets pulled in. Half expecting tests to fail because local testing is broken (see below).
A few pain points in this pull request that need to be addressed: