Skip to main content

SedonaContext

builder()

This method adds the basic Sedona configuration to the SparkSession builder. Usually the user does not need to call this method directly, as it is configured when a cluster is created. This method is needed when the user wants to manually configure Sedona :return: SparkSession.builder

create()

This is the core of whole package, It uses py4j to run wrapper which takes existing SparkSession and register the core logics of Apache Sedona, for this SparkSession.

Parameters

SparkSession
required
pyspark.sql.SparkSession, spark session instance

Returns

SparkSession
SedonaContext which is an instance of SparkSession