it.unimi.di.mg4j.query
Enum Query.OutputType

java.lang.Object
  extended by java.lang.Enum<Query.OutputType>
      extended by it.unimi.di.mg4j.query.Query.OutputType
All Implemented Interfaces:
Serializable, Comparable<Query.OutputType>
Enclosing class:
Query

public static enum Query.OutputType
extends Enum<Query.OutputType>


Enum Constant Summary
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
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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. This method may be used to iterate over the constants as follows:
for (Query.OutputType c : Query.OutputType.values())
    System.out.println(c);

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 name
NullPointerException - if the argument is null