Skip to content

Commit

Permalink
Preface minimumOccurence members with val to make them final and immu…
Browse files Browse the repository at this point in the history
…table
  • Loading branch information
rnowling committed Sep 23, 2014
1 parent a200bab commit 6897252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mllib/src/main/scala/org/apache/spark/mllib/feature/IDF.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import org.apache.spark.rdd.RDD
*
*/
@Experimental
class IDF(minimumOccurence: Long) {
class IDF(val minimumOccurence: Long) {

def this() = this(0L)

Expand Down Expand Up @@ -71,7 +71,7 @@ class IDF(minimumOccurence: Long) {
private object IDF {

/** Document frequency aggregator. */
class DocumentFrequencyAggregator(minimumOccurence: Long) extends Serializable {
class DocumentFrequencyAggregator(val minimumOccurence: Long) extends Serializable {

/** number of documents */
private var m = 0L
Expand Down

0 comments on commit 6897252

Please sign in to comment.