LUCENE-1764: beef up javadoc with warning

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@800119 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2009-08-02 17:59:21 +00:00
parent b91f993a0e
commit 3c586d3528
2 changed files with 35 additions and 19 deletions

View File

@ -24,16 +24,24 @@ import java.io.IOException;
/**
* Abstract base class for sorting hits returned by a Query.
*
* <p>This class should only be used if the other SortField
* types (SCORE, DOC, STRING, INT, FLOAT) do not provide an
* adequate sorting. It maintains an internal cache of values which
* could be quite large. The cache is an array of Comparable,
* one for each document in the index. There is a distinct
* Comparable for each unique term in the field - if
* some documents have the same term in the field, the cache
* array will have entries which reference the same Comparable.
* <p>
* This class should only be used if the other SortField types (SCORE, DOC,
* STRING, INT, FLOAT) do not provide an adequate sorting. It maintains an
* internal cache of values which could be quite large. The cache is an array of
* Comparable, one for each document in the index. There is a distinct
* Comparable for each unique term in the field - if some documents have the
* same term in the field, the cache array will have entries which reference the
* same Comparable.
*
* <p>Created: Apr 21, 2004 5:08:38 PM
* This class will be used as part of a key to a FieldCache value. You must
* implement hashCode and equals to avoid an explosion in RAM usage if you use
* instances that are not the same instance. If you are searching using the
* Remote contrib, the same instance of this class on the client will be a new
* instance on every call to the server, so hashCode/equals is very important in
* that situation.
*
* <p>
* Created: Apr 21, 2004 5:08:38 PM
*
*
* @version $Id$

View File

@ -24,10 +24,18 @@ import java.io.Serializable;
/**
* Expert: returns a comparator for sorting ScoreDocs.
*
* <p>Created: Apr 21, 2004 3:49:28 PM
* <p>
* Created: Apr 21, 2004 3:49:28 PM
*
* This class will be used as part of a key to a FieldCache value. You must
* implement hashCode and equals to avoid an explosion in RAM usage if you use
* instances that are not the same instance. If you are searching using the
* Remote contrib, the same instance of this class on the client will be a new
* instance on every call to the server, so hashCode/equals is very important in
* that situation.
*
* @version $Id$
* @version $Id: SortComparatorSource.java 747019 2009-02-23 13:59:50Z
* mikemccand $
* @since 1.4
* @deprecated Please use {@link FieldComparatorSource} instead.
*/