org.apache.lucene.search

Interface SortComparatorSource

public interface SortComparatorSource extends Serializable

Expert: returns a comparator for sorting ScoreDocs.

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

Since: 1.4

Version: $Id: SortComparatorSource.java 150348 2004-05-19 23:05:27Z tjones $

Author: Tim Jones

Method Summary
ScoreDocComparatornewComparator(IndexReader reader, String fieldname)
Creates a comparator for the field in the given index.

Method Detail

newComparator

public ScoreDocComparator newComparator(IndexReader reader, String fieldname)
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.

Throws: IOException If an error occurs reading the index.

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