Package org.apache.nutch.indexer
Class NutchField
- java.lang.Object
-
- org.apache.nutch.indexer.NutchField
-
-
Constructor Summary
Constructors Constructor Description NutchField()NutchField(Object value)NutchField(Object value, float weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Object value)NutchFieldclone()List<Object>getValues()floatgetWeight()voidreadFields(DataInput in)voidreset()voidsetWeight(float weight)StringtoString()voidwrite(DataOutput out)
-
-
-
Method Detail
-
add
public void add(Object value)
-
getWeight
public float getWeight()
-
setWeight
public void setWeight(float weight)
-
reset
public void reset()
-
clone
public NutchField clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceWritable- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceWritable- Throws:
IOException
-
-