org.apache.blur.thrift.generated
Enum ScoreType

java.lang.Object
  extended by java.lang.Enum<ScoreType>
      extended by org.apache.blur.thrift.generated.ScoreType
All Implemented Interfaces:
Serializable, Comparable<ScoreType>, TEnum

public enum ScoreType
extends Enum<ScoreType>
implements TEnum

The scoring type used during a SuperQuery to score multi Record hits within a ColumnFamily.
SUPERDuring a multi Record match, a calculation of the best match Record plus how often it occurs within the match Row produces the score that is used in the scoring of the SuperQuery.
AGGREGATEDuring a multi Record match, the aggregate score of all the Records within a ColumnFamily is used in the scoring of the SuperQuery.
BESTDuring a multi Record match, the best score of all the Records within a ColumnFamily is used in the scoring of the SuperQuery.
CONSTANTA constant score of 1 is used in the scoring of the SuperQuery.


Enum Constant Summary
AGGREGATE
           
BEST
           
CONSTANT
           
SUPER
           
 
Method Summary
static ScoreType findByValue(int value)
          Find a the enum type by its integer value, as defined in the Thrift IDL.
 int getValue()
          Get the integer value of this enum value, as defined in the Thrift IDL.
static ScoreType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ScoreType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUPER

public static final ScoreType SUPER

AGGREGATE

public static final ScoreType AGGREGATE

BEST

public static final ScoreType BEST

CONSTANT

public static final ScoreType CONSTANT
Method Detail

values

public static ScoreType[] 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 (ScoreType c : ScoreType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ScoreType 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

getValue

public int getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.

Specified by:
getValue in interface TEnum

findByValue

public static ScoreType findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.

Returns:
null if the value is not found.


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.