Package org.apache.nutch.parse
Class ParseImpl
java.lang.Object
org.apache.nutch.parse.ParseImpl
The result of parsing a page's raw content.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()Other data extracted from the page.getText()The textual content of the page.booleanIndicates if the parse is coming from a url or a sub-urlstatic ParseImplvoidreadFields(DataInput in) final voidwrite(DataOutput out)
-
Constructor Details
-
ParseImpl
public ParseImpl() -
ParseImpl
-
ParseImpl
-
ParseImpl
-
ParseImpl
-
-
Method Details
-
getText
Description copied from interface:ParseThe textual content of the page. This is indexed, searched, and used when generating snippets. -
getData
Description copied from interface:ParseOther data extracted from the page. -
isCanonical
public boolean isCanonical()Description copied from interface:ParseIndicates if the parse is coming from a url or a sub-url- Specified by:
isCanonicalin interfaceParse- Returns:
- true if canonical, false otherwise
-
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-
readFields
- Specified by:
readFieldsin interfaceWritable- Throws:
IOException
-
read
- Throws:
IOException
-