|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.conquiris.lucene.search.SortBuilder
public final class SortBuilder
Sort building class. The comparators provided as arguments MUST support null values.
| Method Summary | |
|---|---|
SortBuilder |
add(BooleanSchemaItem field)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(BooleanSchemaItem field,
boolean reverse)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(DoubleSchemaItem field)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(DoubleSchemaItem field,
boolean reverse)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(DoubleSchemaItem field,
Comparator<Double> comparator)
Adds a sort field specified by the provided comparator. |
SortBuilder |
add(DoubleSchemaItem field,
Comparator<Double> comparator,
boolean reverse)
Adds a sort field specified by the provided comparator. |
SortBuilder |
add(DoubleSchemaItem field,
double... values)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(DoubleSchemaItem field,
Iterable<Double> values)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(DoubleSchemaItem field,
Iterable<Double> values,
boolean reverse)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(FloatSchemaItem field)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(FloatSchemaItem field,
boolean reverse)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(FloatSchemaItem field,
Comparator<Float> comparator)
Adds a sort field specified by the provided comparator. |
SortBuilder |
add(FloatSchemaItem field,
Comparator<Float> comparator,
boolean reverse)
Adds a sort field specified by the provided comparator. |
SortBuilder |
add(FloatSchemaItem field,
float... values)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(FloatSchemaItem field,
Iterable<Float> values)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(FloatSchemaItem field,
Iterable<Float> values,
boolean reverse)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(InstantSchemaItem field)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(InstantSchemaItem field,
boolean reverse)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(IntegerSchemaItem field)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(IntegerSchemaItem field,
boolean reverse)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(IntegerSchemaItem field,
Comparator<Integer> comparator)
Adds a sort field specified by the provided comparator. |
SortBuilder |
add(IntegerSchemaItem field,
Comparator<Integer> comparator,
boolean reverse)
Adds a sort field specified by the provided comparator. |
SortBuilder |
add(IntegerSchemaItem field,
int... values)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(IntegerSchemaItem field,
Iterable<Integer> values)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(IntegerSchemaItem field,
Iterable<Integer> values,
boolean reverse)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(Iterable<? extends SortField> fields)
Adds some sort fields. |
SortBuilder |
add(LongSchemaItem field)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(LongSchemaItem field,
boolean reverse)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(LongSchemaItem field,
Comparator<Long> comparator)
Adds a sort field specified by the provided comparator. |
SortBuilder |
add(LongSchemaItem field,
Comparator<Long> comparator,
boolean reverse)
Adds a sort field specified by the provided comparator. |
SortBuilder |
add(LongSchemaItem field,
Iterable<Long> values)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(LongSchemaItem field,
Iterable<Long> values,
boolean reverse)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(LongSchemaItem field,
long... values)
Adds a sort field specified by the provided value list. |
SortBuilder |
add(SortField... fields)
Adds some sort fields. |
SortBuilder |
add(SortField field)
Adds a sort field. |
SortBuilder |
add(TextSchemaItem field)
Adds a sort by terms in the field specified by the provided schema item. |
SortBuilder |
add(TextSchemaItem field,
boolean reverse)
Adds a sort by terms in the field specified by the provided schema item. |
Sort |
build()
Creates the sort specification. |
static SortField |
field(BooleanSchemaItem field)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(BooleanSchemaItem field,
boolean reverse)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(DoubleSchemaItem field)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(DoubleSchemaItem field,
boolean reverse)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(DoubleSchemaItem field,
Comparator<Double> comparator)
Creates a sort field specified by the provided comparator. |
static SortField |
field(DoubleSchemaItem field,
Comparator<Double> comparator,
boolean reverse)
Creates a sort field specified by the provided comparator. |
static SortField |
field(DoubleSchemaItem field,
double... values)
Creates a sort field specified by the provided value list. |
static SortField |
field(DoubleSchemaItem field,
Iterable<Double> values)
Creates a sort field specified by the provided value list. |
static SortField |
field(DoubleSchemaItem field,
Iterable<Double> values,
boolean reverse)
Creates a sort field specified by the provided value list. |
static SortField |
field(FloatSchemaItem field)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(FloatSchemaItem field,
boolean reverse)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(FloatSchemaItem field,
Comparator<Float> comparator)
Creates a sort field specified by the provided comparator. |
static SortField |
field(FloatSchemaItem field,
Comparator<Float> comparator,
boolean reverse)
Creates a sort field specified by the provided comparator. |
static SortField |
field(FloatSchemaItem field,
float... values)
Creates a sort field specified by the provided value list. |
static SortField |
field(FloatSchemaItem field,
Iterable<Float> values)
Creates a sort field specified by the provided value list. |
static SortField |
field(FloatSchemaItem field,
Iterable<Float> values,
boolean reverse)
Creates a sort field specified by the provided value list. |
static SortField |
field(InstantSchemaItem field)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(InstantSchemaItem field,
boolean reverse)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(IntegerSchemaItem field)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(IntegerSchemaItem field,
boolean reverse)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(IntegerSchemaItem field,
Comparator<Integer> comparator)
Creates a sort field specified by the provided comparator. |
static SortField |
field(IntegerSchemaItem field,
Comparator<Integer> comparator,
boolean reverse)
Creates a sort field specified by the provided comparator. |
static SortField |
field(IntegerSchemaItem field,
int... values)
Creates a sort field specified by the provided value list. |
static SortField |
field(IntegerSchemaItem field,
Iterable<Integer> values)
Creates a sort field specified by the provided value list. |
static SortField |
field(IntegerSchemaItem field,
Iterable<Integer> values,
boolean reverse)
Creates a sort field specified by the provided value list. |
static SortField |
field(LongSchemaItem field)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(LongSchemaItem field,
boolean reverse)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(LongSchemaItem field,
Comparator<Long> comparator)
Creates a sort field specified by the provided comparator. |
static SortField |
field(LongSchemaItem field,
Comparator<Long> comparator,
boolean reverse)
Creates a sort field specified by the provided comparator. |
static SortField |
field(LongSchemaItem field,
Iterable<Long> values)
Creates a sort field specified by the provided value list. |
static SortField |
field(LongSchemaItem field,
Iterable<Long> values,
boolean reverse)
Creates a sort field specified by the provided value list. |
static SortField |
field(LongSchemaItem field,
long... values)
Creates a sort field specified by the provided value list. |
static SortField |
field(TextSchemaItem field)
Creates a sort by terms in the field specified by the provided schema item. |
static SortField |
field(TextSchemaItem field,
boolean reverse)
Creates a sort by terms in the field specified by the provided schema item. |
static SortBuilder |
newBuilder()
Creates a new builder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SortBuilder newBuilder()
public static SortField field(TextSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public static SortField field(TextSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(IntegerSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public static SortField field(IntegerSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(LongSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public static SortField field(LongSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(FloatSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public static SortField field(FloatSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(DoubleSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public static SortField field(DoubleSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(BooleanSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public static SortField field(BooleanSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(InstantSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public static SortField field(InstantSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(IntegerSchemaItem field,
Comparator<Integer> comparator,
boolean reverse)
field - Field identified by an schema item.comparator - Comparator to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(IntegerSchemaItem field,
Comparator<Integer> comparator)
field - Field identified by an schema item.comparator - Comparator to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(IntegerSchemaItem field,
Iterable<Integer> values,
boolean reverse)
field - Field identified by an schema item.values - Value list to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(IntegerSchemaItem field,
Iterable<Integer> values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(IntegerSchemaItem field,
int... values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(LongSchemaItem field,
Comparator<Long> comparator,
boolean reverse)
field - Field identified by an schema item.comparator - Comparator to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(LongSchemaItem field,
Comparator<Long> comparator)
field - Field identified by an schema item.comparator - Comparator to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(LongSchemaItem field,
Iterable<Long> values,
boolean reverse)
field - Field identified by an schema item.values - Value list to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(LongSchemaItem field,
Iterable<Long> values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(LongSchemaItem field,
long... values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(FloatSchemaItem field,
Comparator<Float> comparator,
boolean reverse)
field - Field identified by an schema item.comparator - Comparator to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(FloatSchemaItem field,
Comparator<Float> comparator)
field - Field identified by an schema item.comparator - Comparator to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(FloatSchemaItem field,
Iterable<Float> values,
boolean reverse)
field - Field identified by an schema item.values - Value list to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(FloatSchemaItem field,
Iterable<Float> values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(FloatSchemaItem field,
float... values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(DoubleSchemaItem field,
Comparator<Double> comparator,
boolean reverse)
field - Field identified by an schema item.comparator - Comparator to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(DoubleSchemaItem field,
Comparator<Double> comparator)
field - Field identified by an schema item.comparator - Comparator to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(DoubleSchemaItem field,
Iterable<Double> values,
boolean reverse)
field - Field identified by an schema item.values - Value list to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(DoubleSchemaItem field,
Iterable<Double> values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public static SortField field(DoubleSchemaItem field,
double... values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.public Sort build()
build in interface Builder<Sort>public SortBuilder add(SortField field)
public SortBuilder add(Iterable<? extends SortField> fields)
public SortBuilder add(SortField... fields)
public SortBuilder add(TextSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public SortBuilder add(TextSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(IntegerSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public SortBuilder add(IntegerSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(LongSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public SortBuilder add(LongSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(FloatSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public SortBuilder add(FloatSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(DoubleSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public SortBuilder add(DoubleSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(BooleanSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public SortBuilder add(BooleanSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(InstantSchemaItem field,
boolean reverse)
field - Field identified by an schema item.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.public SortBuilder add(InstantSchemaItem field)
field - Field identified by an schema item.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(IntegerSchemaItem field,
Comparator<Integer> comparator,
boolean reverse)
field - Field identified by an schema item.comparator - Comparator to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(IntegerSchemaItem field,
Comparator<Integer> comparator)
field - Field identified by an schema item.comparator - Comparator to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(IntegerSchemaItem field,
Iterable<Integer> values,
boolean reverse)
field - Field identified by an schema item.values - Value list to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(IntegerSchemaItem field,
Iterable<Integer> values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(IntegerSchemaItem field,
int... values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(LongSchemaItem field,
Comparator<Long> comparator,
boolean reverse)
field - Field identified by an schema item.comparator - Comparator to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(LongSchemaItem field,
Comparator<Long> comparator)
field - Field identified by an schema item.comparator - Comparator to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(LongSchemaItem field,
Iterable<Long> values,
boolean reverse)
field - Field identified by an schema item.values - Value list to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(LongSchemaItem field,
Iterable<Long> values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(LongSchemaItem field,
long... values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(FloatSchemaItem field,
Comparator<Float> comparator,
boolean reverse)
field - Field identified by an schema item.comparator - Comparator to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(FloatSchemaItem field,
Comparator<Float> comparator)
field - Field identified by an schema item.comparator - Comparator to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(FloatSchemaItem field,
Iterable<Float> values,
boolean reverse)
field - Field identified by an schema item.values - Value list to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(FloatSchemaItem field,
Iterable<Float> values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(FloatSchemaItem field,
float... values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(DoubleSchemaItem field,
Comparator<Double> comparator,
boolean reverse)
field - Field identified by an schema item.comparator - Comparator to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(DoubleSchemaItem field,
Comparator<Double> comparator)
field - Field identified by an schema item.comparator - Comparator to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(DoubleSchemaItem field,
Iterable<Double> values,
boolean reverse)
field - Field identified by an schema item.values - Value list to use.reverse - True if natural order should be reversed.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(DoubleSchemaItem field,
Iterable<Double> values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
public SortBuilder add(DoubleSchemaItem field,
double... values)
field - Field identified by an schema item.values - Value list to use.
IllegalArgumentException - if the provided schema item is not indexed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||