Skip to content
Snippets Groups Projects
Commit e8f3669c authored by Andrew Ash's avatar Andrew Ash
Browse files

Update tuning.md

Make the example more compilable
parent bc36ee4f
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ Finally, to register your classes with Kryo, create a public class that extends ...@@ -49,7 +49,7 @@ Finally, to register your classes with Kryo, create a public class that extends
{% highlight scala %} {% highlight scala %}
import com.esotericsoftware.kryo.Kryo import com.esotericsoftware.kryo.Kryo
class MyRegistrator extends KryoRegistrator { class MyRegistrator extends spark.KryoRegistrator {
override def registerClasses(kryo: Kryo) { override def registerClasses(kryo: Kryo) {
kryo.register(classOf[MyClass1]) kryo.register(classOf[MyClass1])
kryo.register(classOf[MyClass2]) kryo.register(classOf[MyClass2])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment