Package com._1c.g5.v8.dt.search.core
Enum SearchType
- java.lang.Object
-
- java.lang.Enum<SearchType>
-
- com._1c.g5.v8.dt.search.core.SearchType
-
- All Implemented Interfaces:
Serializable
,Comparable<SearchType>
public enum SearchType extends Enum<SearchType>
The type of the FTS search
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SearchType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SearchType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERIC
public static final SearchType GENERIC
Generic search. Allows to search for any substring. Uses automatic extension of the searched string using wildcards with the serious performance penalty
-
FRAGMENT
public static final SearchType FRAGMENT
Fragment search. The text is being split by separate words and fragments (dot-separated, etc). Allows faster searches for exact matches.
-
FQN
public static final SearchType FQN
FQN search. The text is being split by separate words, all QN/FQNs are left as is. This index allows to search for exact FQNs as well as dependent FQNs (which starts with the given search string)
-
-
Method Detail
-
values
public static SearchType[] 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 (SearchType c : SearchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SearchType 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 nameNullPointerException
- if the argument is null
-
-