Enum SimpleQueryFlag
- java.lang.Object
-
- java.lang.Enum<SimpleQueryFlag>
-
- org.hibernate.search.engine.search.predicate.dsl.SimpleQueryFlag
-
- All Implemented Interfaces:
Serializable,Comparable<SimpleQueryFlag>
public enum SimpleQueryFlag extends Enum<SimpleQueryFlag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANDEnablesANDoperator (+)ESCAPEEnablesESCAPEoperator (\)FUZZYEnablesFUZZYoperators: (~) on single termsNEAREnablesNEARoperators: (~) on phrasesNOTEnablesNOToperator (-)OREnablesORoperator (|)PHRASEEnablesPHRASEoperator (")PRECEDENCEEnablesPRECEDENCEoperators:(and)PREFIXEnablesPREFIXoperator (*)WHITESPACEEnablesWHITESPACEoperators: ' ' '\n' '\r' '\t'
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleQueryFlagvalueOf(String name)Returns the enum constant of this type with the specified name.static SimpleQueryFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AND
public static final SimpleQueryFlag AND
EnablesANDoperator (+)
-
NOT
public static final SimpleQueryFlag NOT
EnablesNOToperator (-)
-
OR
public static final SimpleQueryFlag OR
EnablesORoperator (|)
-
PREFIX
public static final SimpleQueryFlag PREFIX
EnablesPREFIXoperator (*)
-
PHRASE
public static final SimpleQueryFlag PHRASE
EnablesPHRASEoperator (")
-
PRECEDENCE
public static final SimpleQueryFlag PRECEDENCE
EnablesPRECEDENCEoperators:(and)
-
ESCAPE
public static final SimpleQueryFlag ESCAPE
EnablesESCAPEoperator (\)
-
WHITESPACE
public static final SimpleQueryFlag WHITESPACE
EnablesWHITESPACEoperators: ' ' '\n' '\r' '\t'
-
FUZZY
public static final SimpleQueryFlag FUZZY
EnablesFUZZYoperators: (~) on single terms
-
NEAR
public static final SimpleQueryFlag NEAR
EnablesNEARoperators: (~) on phrases
-
-
Method Detail
-
values
public static SimpleQueryFlag[] 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 (SimpleQueryFlag c : SimpleQueryFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimpleQueryFlag 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
-
-