com.twitter.chill.VolatileByteRefSerializer.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-core Show documentation
Show all versions of spark-core Show documentation
Shaded version of Apache Spark 2.x.x for Presto
The newest version!
package com.twitter.chill
import scala.runtime.VolatileByteRef
class VolatileByteRefSerializer extends KSerializer[VolatileByteRef] {
def write(kser: Kryo, out: Output, item: VolatileByteRef) =
out.writeByte(item.elem)
def read(kser: Kryo, in: Input, cls: Class[VolatileByteRef]) =
new VolatileByteRef(in.readByte)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy