com.sun.labs.minion
Class WeightedField

java.lang.Object
  extended by com.sun.labs.minion.WeightedField
All Implemented Interfaces:
java.io.Serializable

public class WeightedField
extends java.lang.Object
implements java.io.Serializable

A class that contains the name of a field and a weight that should be applied to the similarity values for that field when finding documents similar to a given document.

See Also:
Serialized Form

Constructor Summary
WeightedField(java.lang.String fieldName, float weight)
          Creates a weighted field for a given field and weight.
 
Method Summary
 java.lang.String getFieldName()
           
 float getWeight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedField

public WeightedField(java.lang.String fieldName,
                     float weight)
Creates a weighted field for a given field and weight.

Parameters:
fieldName - the name of the field to which we want to apply the weight
weight - the weight that we want to apply
Method Detail

getFieldName

public java.lang.String getFieldName()

getWeight

public float getWeight()