Skip to content

JsonProtocol Utility

JsonProtocol is an utility to convert SparkListenerEvents to and from JSON format.


JsonProtocol uses an Jackson Databind ObjectMapper for performing conversions to and from JSON.

Converting Spark Event to JSON

  event: SparkListenerEvent): JValue

sparkEventToJson converts the given SparkListenerEvent to JSON format.

sparkEventToJson is used when...FIXME

Converting JSON to Spark Event

  json: JValue): SparkListenerEvent

sparkEventFromJson converts a JSON-encoded event to a SparkListenerEvent.

sparkEventFromJson is used when...FIXME