|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.io.VersionedWritable org.apache.nutch.parse.ParseData
public final class ParseData
Data extracted from a page's content.
Parse.getData()
Field Summary | |
---|---|
static String |
DIR_NAME
|
Constructor Summary | |
---|---|
ParseData()
|
|
ParseData(ParseStatus status,
String title,
Outlink[] outlinks,
Metadata contentMeta)
|
|
ParseData(ParseStatus status,
String title,
Outlink[] outlinks,
Metadata contentMeta,
Metadata parseMeta)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Metadata |
getContentMeta()
The original Metadata retrieved from content |
String |
getMeta(String name)
Get a metadata single value. |
Outlink[] |
getOutlinks()
The outlinks of the page. |
Metadata |
getParseMeta()
Other content properties. |
ParseStatus |
getStatus()
The status of parsing the page. |
String |
getTitle()
The title of the page. |
byte |
getVersion()
|
static void |
main(String[] argv)
|
static ParseData |
read(DataInput in)
|
void |
readFields(DataInput in)
|
void |
setParseMeta(Metadata parseMeta)
|
String |
toString()
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DIR_NAME
Constructor Detail |
---|
public ParseData()
public ParseData(ParseStatus status, String title, Outlink[] outlinks, Metadata contentMeta)
public ParseData(ParseStatus status, String title, Outlink[] outlinks, Metadata contentMeta, Metadata parseMeta)
Method Detail |
---|
public ParseStatus getStatus()
public String getTitle()
public Outlink[] getOutlinks()
public Metadata getContentMeta()
public Metadata getParseMeta()
public void setParseMeta(Metadata parseMeta)
public String getMeta(String name)
getContentMeta()
,
getParseMeta()
public byte getVersion()
getVersion
in class VersionedWritable
public final void readFields(DataInput in) throws IOException
readFields
in interface Writable
readFields
in class VersionedWritable
IOException
public final void write(DataOutput out) throws IOException
write
in interface Writable
write
in class VersionedWritable
IOException
public static ParseData read(DataInput in) throws IOException
IOException
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
public static void main(String[] argv) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |