Skip to content

Commit 05dc6f2

Browse files
committed
Hashcode and organize imports
1 parent 16d5d47 commit 05dc6f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/linalg/Matrices.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ import java.util.{Arrays, Random}
2121

2222
import scala.collection.mutable.{ArrayBuilder => MArrayBuilder, HashSet => MHashSet, ArrayBuffer}
2323

24+
import breeze.linalg.{CSCMatrix => BSM, DenseMatrix => BDM, Matrix => BM}
25+
2426
import org.apache.spark.annotation.DeveloperApi
2527
import org.apache.spark.sql.Row
2628
import org.apache.spark.sql.types._
2729
import org.apache.spark.sql.catalyst.expressions.GenericMutableRow
2830

29-
import breeze.linalg.{CSCMatrix => BSM, DenseMatrix => BDM, Matrix => BM}
30-
3131
/**
3232
* Trait for a local matrix.
3333
*/
@@ -185,6 +185,8 @@ private[spark] class MatrixUDT extends UserDefinedType[Matrix] {
185185
}
186186
}
187187

188+
override def hashCode(): Int = 1994
189+
188190
private[spark] override def asNullable: MatrixUDT = this
189191
}
190192

0 commit comments

Comments
 (0)