Modifier and Type | Field and Description |
---|---|
static byte |
VERSION |
Constructor and Description |
---|
NutchDocument() |
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
String value) |
Metadata |
getDocumentMeta() |
Collection<String> |
getFieldNames() |
String |
getFieldValue(String name) |
List<String> |
getFieldValues(String name) |
float |
getScore() |
Iterator<Map.Entry<String,List<String>>> |
iterator()
Iterate over all fields.
|
void |
readFields(DataInput in) |
List<String> |
removeField(String name) |
void |
setScore(float score) |
String |
toString()
A utility-like method which can easily be used to write any
NutchDocument object to string for simple
debugging. |
void |
write(DataOutput out) |
public static final byte VERSION
public Collection<String> getFieldNames()
public float getScore()
public void setScore(float score)
public Metadata getDocumentMeta()
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException
public String toString()
NutchDocument
object to string for simple
debugging.Copyright © 2015 The Apache Software Foundation