|
||||||||||
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.ParseStatus
public class ParseStatus
Field Summary | |
---|---|
static byte |
FAILED
General failure. |
static short |
FAILED_EXCEPTION
Parsing failed. |
static short |
FAILED_INVALID_FORMAT
Parsing failed. |
static short |
FAILED_MISSING_CONTENT
Parsing failed. |
static short |
FAILED_MISSING_PARTS
Parsing failed. |
static short |
FAILED_TRUNCATED
Parsing failed. |
static String[] |
majorCodes
|
static byte |
NOTPARSED
Parsing was not performed. |
static ParseStatus |
STATUS_FAILURE
|
static ParseStatus |
STATUS_NOTPARSED
|
static ParseStatus |
STATUS_SUCCESS
|
static byte |
SUCCESS
Parsing succeeded. |
static short |
SUCCESS_REDIRECT
Parsed content contains a directive to redirect to another URL. |
Constructor Summary | |
---|---|
ParseStatus()
|
|
ParseStatus(int majorCode)
|
|
ParseStatus(int majorCode,
int minorCode)
|
|
ParseStatus(int majorCode,
int minorCode,
String message)
Simplified constructor for passing just a text message. |
|
ParseStatus(int majorCode,
int minorCode,
String[] args)
|
|
ParseStatus(int majorCode,
String message)
Simplified constructor for passing just a text message. |
|
ParseStatus(int majorCode,
String[] args)
|
|
ParseStatus(Throwable t)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String[] |
getArgs()
|
Parse |
getEmptyParse(Configuration conf)
A convenience method. |
int |
getMajorCode()
|
String |
getMessage()
A convenience method. |
int |
getMinorCode()
|
byte |
getVersion()
Return the version number of the current implementation. |
int |
hashCode()
|
boolean |
isSuccess()
A convenience method. |
static ParseStatus |
read(DataInput in)
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
void |
setArgs(String[] args)
|
void |
setMajorCode(byte majorCode)
|
void |
setMessage(String msg)
|
void |
setMinorCode(short minorCode)
|
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte NOTPARSED
public static final byte SUCCESS
public static final byte FAILED
public static final String[] majorCodes
public static final short SUCCESS_REDIRECT
public static final short FAILED_EXCEPTION
public static final short FAILED_TRUNCATED
public static final short FAILED_INVALID_FORMAT
public static final short FAILED_MISSING_PARTS
public static final short FAILED_MISSING_CONTENT
public static final ParseStatus STATUS_NOTPARSED
public static final ParseStatus STATUS_SUCCESS
public static final ParseStatus STATUS_FAILURE
Constructor Detail |
---|
public ParseStatus()
public ParseStatus(int majorCode, int minorCode, String[] args)
public ParseStatus(int majorCode)
public ParseStatus(int majorCode, String[] args)
public ParseStatus(int majorCode, int minorCode)
public ParseStatus(int majorCode, int minorCode, String message)
public ParseStatus(int majorCode, String message)
public ParseStatus(Throwable t)
Method Detail |
---|
public byte getVersion()
VersionedWritable
getVersion
in class VersionedWritable
public static ParseStatus read(DataInput in) throws IOException
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
readFields
in class VersionedWritable
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
write
in class VersionedWritable
IOException
public boolean isSuccess()
public String getMessage()
public String[] getArgs()
public int getMajorCode()
public int getMinorCode()
public Parse getEmptyParse(Configuration conf)
public String toString()
toString
in class Object
public void setArgs(String[] args)
public void setMessage(String msg)
public void setMajorCode(byte majorCode)
public void setMinorCode(short minorCode)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |