org.compass.core
Class CompassQuery.SortPropertyType

java.lang.Object
  extended by org.compass.core.util.Parameter
      extended by org.compass.core.CompassQuery.SortPropertyType
All Implemented Interfaces:
Serializable
Enclosing interface:
CompassQuery

public static final class CompassQuery.SortPropertyType
extends Parameter

Used to define the type of the property that will be sorted. Note that INT has the lowest memorty requirements and STRING the most.

Author:
kimchy
See Also:
Serialized Form

Field Summary
static CompassQuery.SortPropertyType AUTO
          Guess type of sort based on proeprty contents.
static CompassQuery.SortPropertyType FLOAT
          Sort using term values as encoded Floats.
static CompassQuery.SortPropertyType INT
          Sort using term values as encoded Integers.
static CompassQuery.SortPropertyType STRING
          Sort using term values as Strings.
 
Method Summary
 
Methods inherited from class org.compass.core.util.Parameter
readResolve, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTO

public static final CompassQuery.SortPropertyType AUTO
Guess type of sort based on proeprty contents. A regular expression is used to look at the first term indexed for the proeprty and determine if it represents an integer number, a floating point number, or just arbitrary string characters.


STRING

public static final CompassQuery.SortPropertyType STRING
Sort using term values as Strings. Sort values are String and lower values are at the front.


INT

public static final CompassQuery.SortPropertyType INT
Sort using term values as encoded Integers. Sort values are Integer and lower values are at the front.


FLOAT

public static final CompassQuery.SortPropertyType FLOAT
Sort using term values as encoded Floats. Sort values are Float and lower values are at the front.



Copyright (c) 2004-2008 The Compass Project.