org.apache.nutch.storage
Enum Mark
java.lang.Object
java.lang.Enum<Mark>
org.apache.nutch.storage.Mark
- All Implemented Interfaces:
- Serializable, Comparable<Mark>
public enum Mark
- extends Enum<Mark>
INJECT_MARK
public static final Mark INJECT_MARK
GENERATE_MARK
public static final Mark GENERATE_MARK
FETCH_MARK
public static final Mark FETCH_MARK
PARSE_MARK
public static final Mark PARSE_MARK
UPDATEDB_MARK
public static final Mark UPDATEDB_MARK
INDEX_MARK
public static final Mark INDEX_MARK
values
public static Mark[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Mark c : Mark.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Mark valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
putMark
public void putMark(WebPage page,
org.apache.avro.util.Utf8 markValue)
putMark
public void putMark(WebPage page,
String markValue)
removeMark
public org.apache.avro.util.Utf8 removeMark(WebPage page)
checkMark
public org.apache.avro.util.Utf8 checkMark(WebPage page)
removeMarkIfExist
public org.apache.avro.util.Utf8 removeMarkIfExist(WebPage page)
- Remove the mark only if the mark is present on the page.
- Parameters:
page
- The page to remove the mark from.
- Returns:
- If the mark was present.
Copyright © 2012 The Apache Software Foundation