cTree.iterator(),
freqList,
minSupport,
maxHeapSize,
PFPGrowth.getGroupMembers(key.get(), maxPerGroup, numFeatures),
new IntegerStringOutputConverter(
new ContextWriteOutputCollector<IntWritable, TransactionTree, Text, TopKStringPatterns>(context),
featureReverseMap),
new ContextStatusUpdater<IntWritable, TransactionTree, Text, TopKStringPatterns>(context));
} else {
FPGrowth<Integer> fpGrowth = new FPGrowth<Integer>();
fpGrowth.generateTopKFrequentPatterns(
new IteratorAdapter(cTree.iterator()),
localFList,
minSupport,
maxHeapSize,
Sets.newHashSet(PFPGrowth.getGroupMembers(key.get(),
maxPerGroup,
numFeatures).toList()),
new IntegerStringOutputConverter(
new ContextWriteOutputCollector<IntWritable,TransactionTree,Text,TopKStringPatterns>(context),
featureReverseMap),
new ContextStatusUpdater<IntWritable,TransactionTree,Text,TopKStringPatterns>(context));
}
}