Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/8279#discussion_r37315899
--- Diff: docs/mllib-frequent-pattern-mining.md ---
@@ -77,22 +79,60 @@ that stores the frequent itemsets with their
frequencies.
import java.util.List;
import com.google.common.base.Joiner;
+import com.google.common.collect.Lists;
--- End diff --
Guava utils are not necessary here. Could you help verify the following?
1. The `Joiner` usage can be removed. `println("[" +
Joiner.on(",").join(itemset.javaItems()) + "]")` is the same as
`println(itemset.javaItems())`.
2. `Lists.newArrayList` could be replaced by Java's `Arrays.asList`.
Then we can remove Guava dependency from the example code.
---
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]