|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.terracotta.toolkit.search.Attribute<T>
public class Attribute<T>
Represents search attribute
Constructor Summary | |
---|---|
Attribute(String attributeName)
Construct a new attribute instance |
Method Summary | |
---|---|
AggregateFunction |
average()
Request an average value aggregation of this attribute |
AggregateFunction |
count()
Request a count aggregation of this attribute |
Clause |
eq(T value)
Create a clause where this attribute is equal to the given value |
boolean |
equals(Object obj)
|
Clause |
exists()
Create a clause that tests for presence of value for this attribute |
Clause |
ge(T value)
Create a clause where this attribute is greater than or equal to the given value |
String |
getAttributeName()
Get the attribute name |
Clause |
gt(T value)
Create a clause where this attribute is greater than the given value |
int |
hashCode()
|
Clause |
le(T value)
Create a clause where this attribute is less than or equal to the given value |
Clause |
lt(T value)
Create a clause where this attribute is less than the given value |
Clause |
matches(String regex)
Create a clause where this attribute's toString() matches the given expression See Matches for the expression syntax |
AggregateFunction |
max()
Request a maximum value aggregation of this attribute |
AggregateFunction |
min()
Request a minimum value aggregation of this attribute |
Clause |
ne(T value)
Create a clause where this attribute is not equal to the given value |
Clause |
oneOf(Collection<? extends T> values)
Create a clause where the value of this attribute must be one of the given values. |
Clause |
range(T min,
T max)
Create a range search clause between the given min/max (inclusive). |
Clause |
range(T min,
T max,
boolean minInclusive,
boolean maxInclusive)
Create a range clause between the given min/max with specified inclusiveness |
AggregateFunction |
sum()
Request a sum aggregation of this attribute |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Attribute(String attributeName)
attributeName
- the name of search attributeMethod Detail |
---|
public String getAttributeName()
public Clause range(T min, T max)
between(min, max, true, true)
min
- the minimum value in the rangemax
- the maximum value in the range
public Clause range(T min, T max, boolean minInclusive, boolean maxInclusive)
min
- the minimum value in the rangemax
- the maximum value in the rangeminInclusive
- is the minimum inclusive in the rangemaxInclusive
- is the maximum inclusive in the range
public Clause oneOf(Collection<? extends T> values)
values
-
public Clause ne(T value)
value
-
public Clause lt(T value)
value
-
public Clause le(T value)
value
-
public Clause gt(T value)
value
-
public Clause ge(T value)
value
-
public Clause eq(T value)
value
-
public Clause exists()
public Clause matches(String regex)
Matches
for the expression syntax
regex
-
public AggregateFunction count()
public AggregateFunction max()
public AggregateFunction min()
public AggregateFunction sum()
public AggregateFunction average()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |