All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.spark.WowRowEncoder.scala Maven / Gradle / Ivy

/**
 * DO NOT EDIT THIS FILE DIRECTLY, ANY CHANGE MAY BE OVERWRITE
 */
package org.apache.spark
import org.apache.spark.sql.Row
import org.apache.spark.sql.catalyst.InternalRow
import org.apache.spark.sql.catalyst.encoders.RowEncoder
import org.apache.spark.sql.types.StructType

object WowRowEncoder {
  def toRow(schema: StructType) = {
    RowEncoder.apply(schema).resolveAndBind().createDeserializer()

  }

  def fromRow(schema: StructType) = {
    RowEncoder.apply(schema).resolveAndBind().createSerializer()
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy