Skip to content

Commit

Permalink
modify TieredSpatialJoin.java code style
Browse files Browse the repository at this point in the history
  • Loading branch information
hsg77 committed May 6, 2019
1 parent 5656b3f commit 48f8828
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,12 @@ public void join(
private Map<Byte, HashSet<Byte>> createReprojectMap(
final Byte[] buildSide,
final Byte[] testSide,
final HashSet<Byte> sharedTiers) {
final HashSet<Byte> sharedTiers)
{
final Map<Byte, HashSet<Byte>> resultMap = Maps.newHashMap();
final int testLastIndex = testSide.length;
for (final Byte tierLeft : buildSide) {
for (final Byte tierLeft : buildSide)
{
final int firstGreater = Arrays.binarySearch(testSide, tierLeft);
//add same tier id
if (firstGreater >= 0) {
Expand All @@ -393,7 +395,7 @@ private Map<Byte, HashSet<Byte>> createReprojectMap(
HashSet<Byte> higherTiers = Sets.newHashSet();
for(Byte testID :testSide)
{
if(tierLeft<testID)
if(testID>tierLeft)
{
higherTiers.add(testID);
}
Expand Down

0 comments on commit 48f8828

Please sign in to comment.