Package org.apache.sedona.core.utils
Class SedonaConf
- java.lang.Object
-
- org.apache.sedona.core.utils.SedonaConf
-
- All Implemented Interfaces:
Serializable
public class SedonaConf extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSedonaConf.CRSTransformModeCRS transformation mode for ST_Transform function.
-
Constructor Summary
Constructors Constructor Description SedonaConf(org.apache.spark.SparkConf sparkConf)SedonaConf(org.apache.spark.sql.RuntimeConfig runtimeConfig)
-
Method Summary
-
-
-
Method Detail
-
fromActiveSession
public static SedonaConf fromActiveSession()
-
fromSparkEnv
public static SedonaConf fromSparkEnv()
-
getUseIndex
public boolean getUseIndex()
-
getIndexType
public IndexType getIndexType()
-
getJoinApproximateTotalCount
public long getJoinApproximateTotalCount()
-
getDatasetBoundary
public org.locationtech.jts.geom.Envelope getDatasetBoundary()
-
getJoinBuildSide
public JoinBuildSide getJoinBuildSide()
-
getJoinGridType
public GridType getJoinGridType()
-
getJoinSpartitionDominantSide
public JoinSpartitionDominantSide getJoinSpartitionDominantSide()
-
getFallbackPartitionNum
public int getFallbackPartitionNum()
-
getAutoBroadcastJoinThreshold
public long getAutoBroadcastJoinThreshold()
-
isIncludeTieBreakersInKNNJoins
public boolean isIncludeTieBreakersInKNNJoins()
-
getSpatialJoinOptimizationMode
public SpatialJoinOptimizationMode getSpatialJoinOptimizationMode()
-
getDBSCANIncludeOutliers
public Boolean getDBSCANIncludeOutliers()
-
getLibPostalDataDir
public String getLibPostalDataDir()
-
getLibPostalUseSenzing
public Boolean getLibPostalUseSenzing()
-
getCRSTransformMode
public SedonaConf.CRSTransformMode getCRSTransformMode()
Get the CRS transformation mode for ST_Transform.- Returns:
- The CRS transformation mode
- Since:
- 1.9.0
-
getCrsUrlBase
public String getCrsUrlBase()
Get the base URL for the URL-based CRS provider. When non-empty, aUrlCRSProvideris registered to resolve SRID definitions from this HTTP(S) endpoint.- Returns:
- The base URL, or empty string if disabled
- Since:
- 1.9.0
-
getCrsUrlPathTemplate
public String getCrsUrlPathTemplate()
Get the path template for the URL-based CRS provider. Supports placeholders:{authority}and{code}.- Returns:
- The path template (default: "/{authority}/{code}.json")
- Since:
- 1.9.0
-
getCrsUrlFormat
public String getCrsUrlFormat()
Get the expected response format for the URL-based CRS provider.- Returns:
- The format string: "projjson", "proj", "wkt1", or "wkt2" (default: "projjson")
- Since:
- 1.9.0
-
-