The SortField type exposes the following members.

Methods

  NameDescription
Public methodEquals
Returns true if
CopyC#
o
is equal to this. If a {@link SortComparatorSource} (deprecated) or {@link FieldCache.Parser} was provided, it must properly implement equals (unless a singleton is always used).
(Overrides Object..::..Equals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetComparator
Returns the {@link FieldComparator} to use for sorting. NOTE: This API is experimental and might change in incompatible ways in the next release.
Public methodGetComparatorSource
Public methodGetFactory Obsolete.
Public methodGetField
Returns the name of the field. Could return
CopyC#
null
if the sort is by SCORE or DOC.
Public methodGetHashCode
Returns true if
CopyC#
o
is equal to this. If a {@link SortComparatorSource} (deprecated) or {@link FieldCache.Parser} was provided, it must properly implement hashCode (unless a singleton is always used).
(Overrides Object..::..GetHashCode()()()().)
Public methodGetLocale
Returns the Locale by which term values are interpreted. May return
CopyC#
null
if no Locale was specified.
Public methodGetParser
Returns the instance of a {@link FieldCache} parser that fits to the given sort type. May return
CopyC#
null
if no parser was specified. Sorting is using the default parser then.
Public methodGetReverse
Returns whether the sort should be reversed.
Public methodGetType
Returns the type of contents in the field.
Public methodGetUseLegacySearch Obsolete.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetUseLegacySearch Obsolete.
Use legacy IndexSearch implementation: search with a DirectoryReader rather than passing a single hit collector to multiple SegmentReaders.
Public methodToString (Overrides Object..::..ToString()()()().)

See Also