org.apache.mahout.common
Class IntPairWritable.Frequency

java.lang.Object
  extended by org.apache.mahout.common.IntPairWritable.Frequency
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IntPairWritable.Frequency>
Enclosing class:
IntPairWritable

public static class IntPairWritable.Frequency
extends java.lang.Object
implements java.lang.Comparable<IntPairWritable.Frequency>, java.io.Serializable

A wrapper class that associates pairs with frequency (Occurences)

See Also:
Serialized Form

Constructor Summary
IntPairWritable.Frequency(IntPairWritable bigram, double frequency)
           
 
Method Summary
 int compareTo(IntPairWritable.Frequency that)
           
 boolean equals(java.lang.Object right)
           
 double getFrequency()
           
 IntPairWritable getPair()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntPairWritable.Frequency

public IntPairWritable.Frequency(IntPairWritable bigram,
                                 double frequency)
Method Detail

getFrequency

public double getFrequency()

getPair

public IntPairWritable getPair()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object right)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(IntPairWritable.Frequency that)
Specified by:
compareTo in interface java.lang.Comparable<IntPairWritable.Frequency>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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