Skip to content

Instantly share code, notes, and snippets.

View thomasnield's full-sized avatar

Thomas Nield thomasnield

  • Frisco, Texas (United States)
View GitHub Profile
@thomasnield
thomasnield / kryo.kt
Created July 30, 2016 03:12 — forked from MarioAriasC/kryo.kt
Kryo serialization works out-of-the-box with Kotlin
package org.cakesolutions.spark.kryo
import com.esotericsoftware.kryo.Kryo
import com.esotericsoftware.kryo.io.Input
import com.esotericsoftware.kryo.io.Output
import java.io.FileInputStream
import java.io.FileOutputStream
fun main(args: Array<String>) {
val kryo = Kryo()