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

com.github.jparkie.spark.elasticsearch.SparkEsSerializer.scala Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package com.github.jparkie.spark.elasticsearch

/**
 * Serializes a T into an Array[Byte] for an IndexRequest.
 *
 * @tparam T T Object to serialize.
 */
trait SparkEsSerializer[T] extends Serializable {
  /**
   * Serialize a T from a DataFrame into an Array[Byte].
   *
   * @param value A T
   * @return The source T as Array[Byte].
   */
  def write(value: T): Array[Byte]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy