org.apache.mahout.cf.taste.hadoop.cooccurence
Class ItemSimilarityEstimator.FirstPartitioner

java.lang.Object
  extended by org.apache.mahout.cf.taste.hadoop.cooccurence.ItemSimilarityEstimator.FirstPartitioner
All Implemented Interfaces:
org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Partitioner<Bigram,org.apache.hadoop.io.Writable>
Enclosing class:
ItemSimilarityEstimator

public static class ItemSimilarityEstimator.FirstPartitioner
extends java.lang.Object
implements org.apache.hadoop.mapred.Partitioner<Bigram,org.apache.hadoop.io.Writable>

Partition based on the first part of the bigram.


Constructor Summary
ItemSimilarityEstimator.FirstPartitioner()
           
 
Method Summary
 void configure(org.apache.hadoop.mapred.JobConf jobConf)
           
 int getPartition(Bigram key, org.apache.hadoop.io.Writable value, int numPartitions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemSimilarityEstimator.FirstPartitioner

public ItemSimilarityEstimator.FirstPartitioner()
Method Detail

getPartition

public int getPartition(Bigram key,
                        org.apache.hadoop.io.Writable value,
                        int numPartitions)
Specified by:
getPartition in interface org.apache.hadoop.mapred.Partitioner<Bigram,org.apache.hadoop.io.Writable>

configure

public void configure(org.apache.hadoop.mapred.JobConf jobConf)
Specified by:
configure in interface org.apache.hadoop.mapred.JobConfigurable


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.