public class ParseImpl extends Object implements Parse, org.apache.hadoop.io.Writable
Parser.getParse(Content)
Constructor and Description |
---|
ParseImpl() |
ParseImpl(Parse parse) |
ParseImpl(ParseText text,
ParseData data) |
ParseImpl(ParseText text,
ParseData data,
boolean isCanonical) |
ParseImpl(String text,
ParseData data) |
Modifier and Type | Method and 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-url
|
static ParseImpl |
read(DataInput in) |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
public ParseImpl()
public ParseImpl(Parse parse)
public String getText()
Parse
public ParseData getData()
Parse
public boolean isCanonical()
Parse
isCanonical
in interface Parse
public final void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public static ParseImpl read(DataInput in) throws IOException
IOException
Copyright © 2014 The Apache Software Foundation