Package it.unimi.di.big.mg4j.query
Enum Query.OutputType
- java.lang.Object
-
- java.lang.Enum<Query.OutputType>
-
- it.unimi.di.big.mg4j.query.Query.OutputType
-
- All Implemented Interfaces:
Serializable
,Comparable<Query.OutputType>
,java.lang.constant.Constable
- Enclosing class:
- Query
public static enum Query.OutputType extends Enum<Query.OutputType>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LONG
Display document pointers and not intervals (requires an index with positions).SHORT
Display document pointers, but not intervals.SNIPPET
Display document pointers and snippets (requires an index with positions and a collection).TIME
Display just timings.TREC
Display results in TREC format.
-
Method Summary
Modifier and Type Method Description static Query.OutputType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Query.OutputType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TIME
public static final Query.OutputType TIME
Display just timings.
-
SHORT
public static final Query.OutputType SHORT
Display document pointers, but not intervals.
-
LONG
public static final Query.OutputType LONG
Display document pointers and not intervals (requires an index with positions).
-
SNIPPET
public static final Query.OutputType SNIPPET
Display document pointers and snippets (requires an index with positions and a collection).
-
TREC
public static final Query.OutputType TREC
Display results in TREC format.
-
-
Method Detail
-
values
public static Query.OutputType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Query.OutputType 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
-
-