|
Oracle Ultra Search APIs 9.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ultrasearch.query.Equals
Find documents with an attribute that equals a value.
Equality is interpreted differently for each attribute type. For DateAttribute, only the year, month, day parts of Date values are used in comparison. For NumberAttribute, only 32 bits of precision are used in comparison. For StringAttribute, equality is based on hash value, so there is a small probability of error when results are returned.
Constructor Summary | |
Equals(DateAttribute att, java.util.Date d) Construct a Equals query on a StringAttribute. |
|
Equals(NumberAttribute att, java.math.BigDecimal bd) Construct a Equals query on a StringAttribute. |
|
Equals(StringAttribute att, java.lang.String s) Construct a Equals query on a StringAttribute. |
Method Summary | |
java.lang.String |
compile() compile into a query string. |
java.lang.String |
compileForCount() compile into a query string for counting hits. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Equals(StringAttribute att, java.lang.String s)
att
- a string attributes
- a String value, not nullpublic Equals(DateAttribute att, java.util.Date d)
att
- a date attributed
- a Date value, not nullpublic Equals(NumberAttribute att, java.math.BigDecimal bd)
att
- a number attributebd
- a BigDecimal value, not nullMethod Detail |
public java.lang.String compile()
public java.lang.String compileForCount()
|
Oracle Ultra Search APIs 9.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |