|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.FieldComparator
org.apache.jackrabbit.core.query.lucene.FieldComparatorBase
org.apache.jackrabbit.core.query.lucene.sort.AbstractFieldComparator
public abstract class AbstractFieldComparator
Abstract base class for FieldComparators which keep their values
(Comparables) in an array.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator |
|---|
org.apache.lucene.search.FieldComparator.ByteComparator, org.apache.lucene.search.FieldComparator.DocComparator, org.apache.lucene.search.FieldComparator.DoubleComparator, org.apache.lucene.search.FieldComparator.FloatComparator, org.apache.lucene.search.FieldComparator.IntComparator, org.apache.lucene.search.FieldComparator.LongComparator, org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.ShortComparator, org.apache.lucene.search.FieldComparator.StringComparatorLocale, org.apache.lucene.search.FieldComparator.StringOrdValComparator, org.apache.lucene.search.FieldComparator.StringValComparator |
| Field Summary | |
|---|---|
protected List<org.apache.lucene.index.IndexReader> |
readers
The index readers. |
protected int[] |
starts
The document number starts for the readers. |
| Constructor Summary | |
|---|---|
protected |
AbstractFieldComparator(int numHits)
Create a new instance with the given number of values. |
| Method Summary | |
|---|---|
protected String |
getUUIDForIndex(int doc)
|
Comparable<?> |
getValue(int slot)
Return a value from the values array |
protected int |
readerIndex(int n)
Returns the reader index for document n. |
void |
setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
|
void |
setValue(int slot,
Comparable<?> value)
Add the given value to the values array |
| Methods inherited from class org.apache.jackrabbit.core.query.lucene.FieldComparatorBase |
|---|
compare, compare, compareBottom, copy, setBottom, sortValue, value |
| Methods inherited from class org.apache.lucene.search.FieldComparator |
|---|
binarySearch, binarySearch, setScorer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final List<org.apache.lucene.index.IndexReader> readers
protected int[] starts
readers.
| Constructor Detail |
|---|
protected AbstractFieldComparator(int numHits)
numHits - the number of values| Method Detail |
|---|
protected final int readerIndex(int n)
n.
n - document number.
public void setValue(int slot,
Comparable<?> value)
setValue in class FieldComparatorBaseslot - index into valuesvalue - value for addingpublic Comparable<?> getValue(int slot)
getValue in class FieldComparatorBaseslot - index to retrieve
public void setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
throws IOException
setNextReader in class org.apache.lucene.search.FieldComparatorIOException
protected String getUUIDForIndex(int doc)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||