fp.generateFList(transactions.iterator(), 2),
2,
100,
new HashSet<String>(),
new StringOutputConverter(new SequenceFileOutputCollector<Text,TopKStringPatterns>(writer)),
new ContextStatusUpdater(null));
} finally {
Closeables.closeQuietly(writer);
}
List<Pair<String, TopKStringPatterns>> frequentPatterns = FPGrowth.readFrequentPattern(conf, path);