Enum Constant and Description |
---|
FETCH_MARK |
GENERATE_MARK |
INDEX_MARK |
INJECT_MARK |
PARSE_MARK |
SITEMAP_MARK |
UPDATEDB_MARK |
Modifier and Type | Method and Description |
---|---|
org.apache.avro.util.Utf8 |
checkMark(WebPage page) |
org.apache.avro.util.Utf8 |
getName() |
void |
putMark(WebPage page,
java.lang.String markValue) |
void |
putMark(WebPage page,
org.apache.avro.util.Utf8 markValue) |
org.apache.avro.util.Utf8 |
removeMark(WebPage page) |
org.apache.avro.util.Utf8 |
removeMarkIfExist(WebPage page)
Remove the mark only if the mark is present on the page.
|
static Mark |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mark[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mark INJECT_MARK
public static final Mark GENERATE_MARK
public static final Mark FETCH_MARK
public static final Mark PARSE_MARK
public static final Mark UPDATEDB_MARK
public static final Mark INDEX_MARK
public static final Mark SITEMAP_MARK
public static Mark[] values()
for (Mark c : Mark.values()) System.out.println(c);
public static Mark valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void putMark(WebPage page, org.apache.avro.util.Utf8 markValue)
public void putMark(WebPage page, java.lang.String markValue)
public org.apache.avro.util.Utf8 removeMark(WebPage page)
public org.apache.avro.util.Utf8 checkMark(WebPage page)
public org.apache.avro.util.Utf8 removeMarkIfExist(WebPage page)
page
- The page to remove the mark from.public org.apache.avro.util.Utf8 getName()
Copyright © 2019 The Apache Software Foundation