Class SparkLogicalTimestampProcessor

java.lang.Object
com.linkedin.venice.spark.datawriter.recordprocessor.SparkLogicalTimestampProcessor
All Implemented Interfaces:
Serializable, org.apache.spark.api.java.function.MapFunction<org.apache.spark.sql.Row,org.apache.spark.sql.Row>

public class SparkLogicalTimestampProcessor extends Object implements org.apache.spark.api.java.function.MapFunction<org.apache.spark.sql.Row,org.apache.spark.sql.Row>
A Spark MapFunction that processes input Row and converts the logical timestamp in the RMD field to the actual RMD byte array if necessary. It acts as pass through for non-long RMD types.
See Also:
  • Constructor Details

    • SparkLogicalTimestampProcessor

      public SparkLogicalTimestampProcessor(boolean containsLogicalTimestamp, String rmdSchemaString)
  • Method Details

    • call

      public org.apache.spark.sql.Row call(org.apache.spark.sql.Row record) throws Exception
      Specified by:
      call in interface org.apache.spark.api.java.function.MapFunction<org.apache.spark.sql.Row,org.apache.spark.sql.Row>
      Throws:
      Exception