org.apache.mahout.fpm.pfpgrowth.convertors
Class TopKPatternsOutputConverter<A extends Comparable<? super A>>
java.lang.Object
org.apache.mahout.fpm.pfpgrowth.convertors.TopKPatternsOutputConverter<A>
- Type Parameters:
A
-
- All Implemented Interfaces:
- org.apache.hadoop.mapred.OutputCollector<Integer,FrequentPatternMaxHeap>
public final class TopKPatternsOutputConverter<A extends Comparable<? super A>>
- extends Object
- implements org.apache.hadoop.mapred.OutputCollector<Integer,FrequentPatternMaxHeap>
An output converter which converts the output patterns and collects them in a
FrequentPatternMaxHeap
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopKPatternsOutputConverter
public TopKPatternsOutputConverter(org.apache.hadoop.mapred.OutputCollector<A,List<Pair<List<A>,Long>>> collector,
Map<Integer,A> reverseMapping)
collect
public void collect(Integer key,
FrequentPatternMaxHeap value)
throws IOException
- Specified by:
collect
in interface org.apache.hadoop.mapred.OutputCollector<Integer,FrequentPatternMaxHeap>
- Throws:
IOException
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.