|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fuberlin.wiwiss.wiqa.count.CountConstraint
A constraint on the number of distinct values for a variable. Is used to implement the COUNT feature of WIQA. Occurrences of the constrained variable will be counted and compared to a fixed integer value with a comparision operator.
The supported operators are encoded as strings:
| Constructor Summary | |
CountConstraint(String variableName,
String operator,
int value,
ElementNamedGraph element)
Creates a new count constraint for a specific graph pattern. |
|
| Method Summary | |
ElementNamedGraph |
element()
|
boolean |
isMatchingCount(int count)
Compares an actual number of occurrences of the constrained variable to the fixed value. |
String |
operator()
|
int |
value()
|
String |
variableName()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CountConstraint(String variableName,
String operator,
int value,
ElementNamedGraph element)
variableName - The name of the constrained variable, for example "GRAPH"operator - Must be one of the supported comparision operatorsvalue - The actual count will be compared to this number.| Method Detail |
public String variableName()
public String operator()
public int value()
public ElementNamedGraph element()
public boolean isMatchingCount(int count)
count - The number of occurrences of the variable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||