Package org.apache.nutch.parse
Class ParseImpl
- java.lang.Object
-
- org.apache.nutch.parse.ParseImpl
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseData
getData()
Other data extracted from the page.String
getText()
The textual content of the page.boolean
isCanonical()
Indicates if the parse is coming from a url or a sub-urlstatic ParseImpl
read(DataInput in)
void
readFields(DataInput in)
void
write(DataOutput out)
-
-
-
Method Detail
-
getText
public String getText()
Description copied from interface:Parse
The textual content of the page. This is indexed, searched, and used when generating snippets.
-
getData
public ParseData getData()
Description copied from interface:Parse
Other data extracted from the page.
-
isCanonical
public boolean isCanonical()
Description copied from interface:Parse
Indicates if the parse is coming from a url or a sub-url- Specified by:
isCanonical
in interfaceParse
- Returns:
- true if canonical, false otherwise
-
write
public final void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceWritable
- Throws:
IOException
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFields
in interfaceWritable
- Throws:
IOException
-
read
public static ParseImpl read(DataInput in) throws IOException
- Throws:
IOException
-
-