Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.search
Interface SortComparatorSource

All Superinterfaces:
  Serializable

All Known Implementing Classes:
  SortComparator

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,v 1.2 2004/05/19 23:05:27 tjones Exp $
Author:
  Tim Jones

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

Method Detail

### 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.
  Throws:
    `IOException` - If an error occurs reading the index.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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