Skip to content

Commit

Permalink
Made SpecificRow and types serializable by Kryo
Browse files Browse the repository at this point in the history
  • Loading branch information
GregOwen committed Aug 19, 2014
1 parent 2b46c4b commit c9e67de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ s"""
}.foreach(println)
}}}
*/
abstract class MutableValue {
abstract class MutableValue extends Serializable {
var isNull: Boolean = true
def boxed: Any
def update(v: Any)
Expand Down Expand Up @@ -197,6 +197,8 @@ class SpecificMutableRow(val values: Array[MutableValue]) extends MutableRow {
case _ => new MutableAny
}.toArray)

def this() = this(Seq.empty)

override def length: Int = values.length

override def setNullAt(i: Int): Unit = {
Expand Down

0 comments on commit c9e67de

Please sign in to comment.