Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Class and Description |
---|---|
static class |
FieldComparator.ByteComparator
Parses field's values as byte (using
FieldCache.getBytes(org.apache.lucene.index.AtomicReader, java.lang.String, boolean) and sorts by ascending value |
static class |
FieldComparator.DocComparator
Sorts by ascending docID
|
static class |
FieldComparator.DoubleComparator
Parses field's values as double (using
FieldCache.getDoubles(org.apache.lucene.index.AtomicReader, java.lang.String, boolean) and sorts by ascending value |
static class |
FieldComparator.FloatComparator
Parses field's values as float (using
FieldCache.getFloats(org.apache.lucene.index.AtomicReader, java.lang.String, boolean) and sorts by ascending value |
static class |
FieldComparator.FloatDocValuesComparator
Uses float index values to sort by ascending value
|
static class |
FieldComparator.IntComparator
Parses field's values as int (using
FieldCache.getInts(org.apache.lucene.index.AtomicReader, java.lang.String, boolean) and sorts by ascending value |
static class |
FieldComparator.IntDocValuesComparator
Loads int index values and sorts by ascending value.
|
static class |
FieldComparator.LongComparator
Parses field's values as long (using
FieldCache.getLongs(org.apache.lucene.index.AtomicReader, java.lang.String, boolean) and sorts by ascending value |
static class |
FieldComparator.NumericComparator<T extends Number>
Base FieldComparator class for numeric types
|
static class |
FieldComparator.RelevanceComparator
Sorts by descending relevance.
|
static class |
FieldComparator.ShortComparator
Parses field's values as short (using
FieldCache.getShorts(org.apache.lucene.index.AtomicReader, java.lang.String, boolean) and sorts by ascending value |
static class |
FieldComparator.TermOrdValComparator
Sorts by field's natural Term sort order, using
ordinals.
|
static class |
FieldComparator.TermOrdValDocValuesComparator
Sorts by field's natural Term sort order, using
ordinals; this is just like
FieldComparator.TermValComparator except it uses DocValues to
retrieve the sort ords saved during indexing. |
static class |
FieldComparator.TermValComparator
Sorts by field's natural Term sort order.
|
static class |
FieldComparator.TermValDocValuesComparator
Sorts by field's natural Term sort order.
|
Modifier and Type | Field and Description |
---|---|
protected FieldComparator<?>[] |
FieldValueHitQueue.comparators |
protected FieldComparator<?> |
FieldValueHitQueue.firstComparator |
Modifier and Type | Method and Description |
---|---|
FieldComparator<?> |
SortField.getComparator(int numHits,
int sortPos)
Returns the
FieldComparator to use for
sorting. |
FieldComparator<?>[] |
FieldValueHitQueue.getComparators() |
abstract FieldComparator<?> |
FieldComparatorSource.newComparator(String fieldname,
int numHits,
int sortPos,
boolean reversed)
Creates a comparator for the field in the given index.
|
abstract FieldComparator<T> |
FieldComparator.setNextReader(AtomicReaderContext context)
Set a new
AtomicReaderContext . |
FieldComparator<T> |
FieldComparator.NumericComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Byte> |
FieldComparator.ByteComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Double> |
FieldComparator.DoubleComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Double> |
FieldComparator.FloatDocValuesComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Float> |
FieldComparator.FloatComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Short> |
FieldComparator.ShortComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Integer> |
FieldComparator.IntComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Long> |
FieldComparator.IntDocValuesComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Long> |
FieldComparator.LongComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Float> |
FieldComparator.RelevanceComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<Integer> |
FieldComparator.DocComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<BytesRef> |
FieldComparator.TermOrdValComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<BytesRef> |
FieldComparator.TermOrdValDocValuesComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<BytesRef> |
FieldComparator.TermValComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<BytesRef> |
FieldComparator.TermValDocValuesComparator.setNextReader(AtomicReaderContext context) |
Modifier and Type | Method and Description |
---|---|
void |
FieldValueHitQueue.setComparator(int pos,
FieldComparator<?> comparator) |
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.