org.apache.lucene.search

Interface SortComparatorSource

All Superinterfaces:
Serializable
Known Implementing Classes:
SortComparator

public interface SortComparatorSource
extends Serializable

Expert: returns a comparator for sorting ScoreDocs.

Created: Apr 21, 2004 3:49:28 PM

Version:
$Id: SortComparatorSource.java,v 1.2 2004/05/19 23:05:27 tjones Exp $

Author:
Tim Jones

Since:
1.4

Method Summary

ScoreDocComparator
newComparator(IndexReader reader, String fieldname)
Creates a comparator for the field in the given index.

Method Details

newComparator

public ScoreDocComparator newComparator(IndexReader reader,
                                        String fieldname)
            throws IOException
Creates a comparator for the field in the given index.

Parameters:
reader - Index to create comparator for.
fieldname - Field to create comparator for.

Returns:
Comparator of ScoreDoc objects.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.