Class TopFieldDocs

  extended by
      extended by
All Implemented Interfaces:

public class TopFieldDocs
extends TopDocs

Represents hits returned by,Filter,int,Sort).

See Also:
Serialized Form

Field Summary
 SortField[] fields
          The fields which were used to sort results by.
Fields inherited from class
scoreDocs, totalHits
Constructor Summary
TopFieldDocs(int totalHits, ScoreDoc[] scoreDocs, SortField[] fields, float maxScore)
          Creates one of these objects.
Method Summary
Methods inherited from class
getMaxScore, setMaxScore
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public SortField[] fields
The fields which were used to sort results by.

Constructor Detail


public TopFieldDocs(int totalHits,
                    ScoreDoc[] scoreDocs,
                    SortField[] fields,
                    float maxScore)
Creates one of these objects.

totalHits - Total number of hits for the query.
scoreDocs - The top hits for the query.
fields - The sort criteria used to find the top hits.
maxScore - The maximum score encountered.

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