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 void
add(Object value)
NutchField
clone()
List<Object>
getValues()
float
getWeight()
void
readFields(DataInput in)
void
reset()
void
setWeight(float weight)
String
toString()
void
write(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:
clone
in classObject
- Throws:
CloneNotSupportedException
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFields
in interfaceWritable
- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceWritable
- Throws:
IOException
-
-