fp.generateTopKFrequentPatterns(new StringRecordIterator(
new FileLineIterable(new File(input), encoding, false), pattern), fp
.generateFList(new StringRecordIterator(new FileLineIterable(new File(
input), encoding, false), pattern), minSupport), minSupport,
maxHeapSize, features, new StringOutputConvertor(
new SequenceFileOutputCollector<Text, TopKStringPatterns>(writer)));
writer.close();
List<Pair<String, TopKStringPatterns>> frequentPatterns = FPGrowth
.readFrequentPattern(fs, conf, path);