Package com.yahoo.prelude.query
Enum Item.ItemType
- java.lang.Object
-
- java.lang.Enum<Item.ItemType>
-
- com.yahoo.prelude.query.Item.ItemType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Item.ItemType>
- Enclosing class:
- Item
public static enum Item.ItemType extends java.lang.Enum<Item.ItemType>
The definitions in Item.ItemType must match the ones in searchlib/src/searchlib/parsequery/parse.h
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AND
DOTPRODUCT
EQUIV
EXACT
INT
NEAR
NOT
ONEAR
OR
PAREN
PHRASE
PREDICATE_QUERY
PREFIX
PURE_WEIGHTED_INTEGER
PURE_WEIGHTED_STRING
RANK
REGEXP
SAME_ELEMENT
SUBSTRING
SUFFIX
WAND
WEAK_AND
WEIGHTEDSET
WORD
WORD_ALTERNATIVES
-
Field Summary
Fields Modifier and Type Field Description int
code
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Item.ItemType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Item.ItemType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OR
public static final Item.ItemType OR
-
AND
public static final Item.ItemType AND
-
NOT
public static final Item.ItemType NOT
-
RANK
public static final Item.ItemType RANK
-
WORD
public static final Item.ItemType WORD
-
INT
public static final Item.ItemType INT
-
PHRASE
public static final Item.ItemType PHRASE
-
PAREN
public static final Item.ItemType PAREN
-
PREFIX
public static final Item.ItemType PREFIX
-
SUBSTRING
public static final Item.ItemType SUBSTRING
-
NEAR
public static final Item.ItemType NEAR
-
ONEAR
public static final Item.ItemType ONEAR
-
SUFFIX
public static final Item.ItemType SUFFIX
-
EQUIV
public static final Item.ItemType EQUIV
-
WEIGHTEDSET
public static final Item.ItemType WEIGHTEDSET
-
WEAK_AND
public static final Item.ItemType WEAK_AND
-
EXACT
public static final Item.ItemType EXACT
-
SAME_ELEMENT
public static final Item.ItemType SAME_ELEMENT
-
PURE_WEIGHTED_STRING
public static final Item.ItemType PURE_WEIGHTED_STRING
-
PURE_WEIGHTED_INTEGER
public static final Item.ItemType PURE_WEIGHTED_INTEGER
-
DOTPRODUCT
public static final Item.ItemType DOTPRODUCT
-
WAND
public static final Item.ItemType WAND
-
PREDICATE_QUERY
public static final Item.ItemType PREDICATE_QUERY
-
REGEXP
public static final Item.ItemType REGEXP
-
WORD_ALTERNATIVES
public static final Item.ItemType WORD_ALTERNATIVES
-
-
Method Detail
-
values
public static Item.ItemType[] 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 (Item.ItemType c : Item.ItemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Item.ItemType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-