Skip to content

JsonProtocol Utility

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

ObjectMapper

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

Converting Spark Event to JSON

sparkEventToJson(
  event: SparkListenerEvent): JValue

sparkEventToJson converts the given SparkListenerEvent to JSON format.

sparkEventToJson is used when...FIXME

Converting JSON to Spark Event

sparkEventFromJson(
  json: JValue): SparkListenerEvent

sparkEventFromJson converts a JSON-encoded event to a SparkListenerEvent.

sparkEventFromJson is used when...FIXME