Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/12498#discussion_r60305408
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/feature/HashingTF.scala ---
@@ -97,3 +126,41 @@ class HashingTF(val numFeatures: Int) extends
Serializable {
dataset.rdd.map(this.transform).toJavaRDD()
}
}
+
+object HashingTF {
+
+ private[spark] val Native: String = "native"
+
+ private[spark] val Murmur3: String = "murmur3"
+
+ private[spark] val supportedHashAlgorithms = Set(Native, Murmur3)
--- End diff --
Can you store this as an Array in case someone makes this public later on
(and does not realize it needs to be Java-friendly)?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]