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()
Parsepublic ParseData getData()
Parsepublic boolean isCanonical()
ParseisCanonical in interface Parsepublic final void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic static ParseImpl read(DataInput in) throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation