Skip to content

Commit

Permalink
[DOCS] Fix grammar and spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton committed Sep 18, 2024
1 parent b4800d3 commit d7774dd
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
*/
package org.apache.sedona.core.enums;

public enum JoinSparitionDominantSide {
public enum JoinSpartitionDominantSide {
LEFT,
RIGHT,
NONE;

public static JoinSparitionDominantSide getJoinSparitionDominantSide(String str) {
for (JoinSparitionDominantSide me : JoinSparitionDominantSide.values()) {
public static JoinSpartitionDominantSide getJoinSpartitionDominantSide(String str) {
for (JoinSpartitionDominantSide me : JoinSpartitionDominantSide.values()) {
if (me.name().equalsIgnoreCase(str)) {
return me;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

public class CombineShapeReader extends RecordReader<ShapeKey, PrimitiveShape> {

/** dubug logger */
/** debug logger */
private static final Logger logger = LoggerFactory.getLogger(CombineShapeReader.class);
/** suffix of attribute file */
private static final String DBF_SUFFIX = "dbf";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class ShapeFileReader extends RecordReader<ShapeKey, ShpRecord> {
/** Iterator of indexes of records */
private int[] indexes;

/** whether use index, true when using indexes */
/** whether to use index, true when using indexes */
private boolean useIndex = false;

/** current index id */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* containing all necessary points for accurate kNN results. The final union of local join results
* provides the complete kNN join result for the datasets R and S.
*
* <p>It generates List<List<Integer>> expandedParitionedBoundaries based on the quad tree.
* <p>It generates List<List<Integer>> expandedPartitionedBoundaries based on the quad tree.
*/
public class QuadTreeRTPartitioning extends QuadtreePartitioning {
static final Logger log = Logger.getLogger(QuadTreeRTPartitioning.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.apache.sedona.core.enums.GridType;
import org.apache.sedona.core.enums.IndexType;
import org.apache.sedona.core.enums.JoinBuildSide;
import org.apache.sedona.core.enums.JoinSparitionDominantSide;
import org.apache.sedona.core.enums.JoinSpartitionDominantSide;
import org.apache.sedona.core.enums.SpatialJoinOptimizationMode;
import org.apache.spark.sql.RuntimeConfig;
import org.apache.spark.sql.SparkSession;
Expand All @@ -40,7 +40,7 @@ public class SedonaConf implements Serializable {

// Parameters for JoinQuery including RangeJoin and DistanceJoin

private JoinSparitionDominantSide joinSparitionDominantSide;
private JoinSpartitionDominantSide joinSpartitionDominantSide;

private JoinBuildSide joinBuildSide;

Expand Down Expand Up @@ -80,8 +80,8 @@ public SedonaConf(RuntimeConfig runtimeConfig) {
GridType.getGridType(getConfigValue(runtimeConfig, "join.gridtype", "kdbtree"));
this.joinBuildSide =
JoinBuildSide.getBuildSide(getConfigValue(runtimeConfig, "join.indexbuildside", "left"));
this.joinSparitionDominantSide =
JoinSparitionDominantSide.getJoinSparitionDominantSide(
this.joinSpartitionDominantSide =
JoinSpartitionDominantSide.getJoinSpartitionDominantSide(
getConfigValue(runtimeConfig, "join.spatitionside", "left"));
this.fallbackPartitionNum =
Integer.parseInt(getConfigValue(runtimeConfig, "join.numpartition", "-1"));
Expand Down Expand Up @@ -137,8 +137,8 @@ public GridType getJoinGridType() {
return joinGridType;
}

public JoinSparitionDominantSide getJoinSparitionDominantSide() {
return joinSparitionDominantSide;
public JoinSpartitionDominantSide getJoinSpartitionDominantSide() {
return joinSpartitionDominantSide;
}

public int getFallbackPartitionNum() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public boolean SaveRasterImageAsS3File(
public boolean SaveVectorImageAsLocalFile(
JavaPairRDD<Integer, String> distributedImage, String outputPath, ImageType imageType)
throws Exception {
logger.info("[Sedona-Viz][SaveVectormageAsLocalFile][Start]");
logger.info("[Sedona-Viz][SaveVectorImageAsLocalFile][Start]");
JavaRDD<String> distributedVectorImageNoKey =
distributedImage.map(
new Function<Tuple2<Integer, String>, String>() {
Expand All @@ -353,7 +353,7 @@ public String call(Tuple2<Integer, String> vectorObject) throws Exception {
}
});
this.SaveVectorImageAsLocalFile(distributedVectorImageNoKey.collect(), outputPath, imageType);
logger.info("[Sedona-Viz][SaveVectormageAsLocalFile][Stop]");
logger.info("[Sedona-Viz][SaveVectorImageAsLocalFile][Stop]");
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public abstract class VisualizationOperator implements Serializable {
protected int partitionIntervalY;

/*
* Parameter tells whether do photo filter in parallel and do rendering in parallel
* Parameter tells whether to do photo filter in parallel and do rendering in parallel
*/
/** The has been spatial partitioned. */
protected boolean hasBeenSpatialPartitioned = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public class SedonaVizImageGenerator extends ImageGenerator {
// String outputPath, ImageType imageType)
// throws Exception
// {
// logger.info("[Sedona-VizViz][SaveVectormageAsLocalFile][Start]");
// logger.info("[Sedona-VizViz][SaveVectorImageAsLocalFile][Start]");
// JavaRDD<String> distributedVectorImageNoKey = distributedImage.map(new
// Function<Tuple2<Integer, String>, String>()
// {
Expand All @@ -275,7 +275,7 @@ public class SedonaVizImageGenerator extends ImageGenerator {
// });
// this.SaveVectorImageAsLocalFile(distributedVectorImageNoKey.collect(), outputPath,
// imageType);
// logger.info("[Sedona-VizViz][SaveVectormageAsLocalFile][Stop]");
// logger.info("[Sedona-VizViz][SaveVectorImageAsLocalFile][Stop]");
// return true;
// }
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public static List<Tuple2<Pixel, Double>> FindPixelCoordinates(
result.add(new Tuple2<Pixel, Double>(newPixel, 1.0));
} catch (Exception e) {
/*
* This spatial object is out of the given dataset boudanry. It is ignored here.
* This spatial object is out of the given dataset boundary. It is ignored here.
*/
}
eps += dy;
Expand All @@ -525,7 +525,7 @@ public static List<Tuple2<Pixel, Double>> FindPixelCoordinates(
result.add(new Tuple2<Pixel, Double>(newPixel, 1.0));
} catch (Exception e) {
/*
* This spatial object is out of the given dataset boudanry. It is ignored here.
* This spatial object is out of the given dataset boundary. It is ignored here.
*/
}
eps += dx;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package org.apache.spark.sql.sedona_sql.strategy.join

import org.apache.sedona.core.enums.JoinSparitionDominantSide
import org.apache.sedona.core.enums.JoinSpartitionDominantSide
import org.apache.sedona.core.spatialOperator.{JoinQuery, SpatialPredicate}
import org.apache.sedona.core.spatialOperator.JoinQuery.JoinParams
import org.apache.sedona.core.utils.SedonaConf
Expand Down Expand Up @@ -56,7 +56,7 @@ trait TraitJoinQueryExec extends TraitJoinQueryBase {
// Only do SpatialRDD analyze when the user doesn't know approximate total count of the spatial partitioning
// dominant side rdd
if (sedonaConf.getJoinApproximateTotalCount == -1) {
if (sedonaConf.getJoinSparitionDominantSide == JoinSparitionDominantSide.LEFT) {
if (sedonaConf.getJoinSpartitionDominantSide == JoinSpartitionDominantSide.LEFT) {
leftShapes.analyze()
} else {
rightShapes.analyze()
Expand All @@ -67,7 +67,7 @@ trait TraitJoinQueryExec extends TraitJoinQueryBase {

var numPartitions = -1
try {
if (sedonaConf.getJoinSparitionDominantSide == JoinSparitionDominantSide.LEFT) {
if (sedonaConf.getJoinSpartitionDominantSide == JoinSpartitionDominantSide.LEFT) {
if (sedonaConf.getFallbackPartitionNum != -1) {
numPartitions = sedonaConf.getFallbackPartitionNum
} else {
Expand All @@ -93,7 +93,7 @@ trait TraitJoinQueryExec extends TraitJoinQueryBase {
print(e.getMessage)
// Partition number are not qualified
// Use fallback num partitions specified in SedonaConf
if (sedonaConf.getJoinSparitionDominantSide == JoinSparitionDominantSide.LEFT) {
if (sedonaConf.getJoinSpartitionDominantSide == JoinSpartitionDominantSide.LEFT) {
numPartitions = sedonaConf.getFallbackPartitionNum
doSpatialPartitioning(leftShapes, rightShapes, numPartitions, sedonaConf)
} else {
Expand Down

0 comments on commit d7774dd

Please sign in to comment.