Oracle Ultra Search Java API Reference
Release 10g

B12028-01

oracle.ultrasearch.query
Class AnyOf

java.lang.Object
extended byoracle.ultrasearch.query.AnyOf
All Implemented Interfaces:
Query

public class AnyOf
extends java.lang.Object
implements Query

Find documents with an attribute that has at least one of a set of values.

AnyOf can be applied to Date attribute, Number attribute, or String attribute. AnyOf is the logical complement of AllOf.

Since:
9.0.2
See Also:
AllOf

Constructor Summary
AnyOf(DateAttribute att, java.util.Date[] vals)
          Construct an AnyOf query on a DateAttribute
AnyOf(NumberAttribute att, java.math.BigDecimal[] vals)
          Construct an AnyOf query on a NumberAttribute
AnyOf(StringAttribute att, java.lang.String[] vals)
          Construct an AnyOf 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

AnyOf

public AnyOf(DateAttribute att,
             java.util.Date[] vals)
Construct an AnyOf query on a DateAttribute
Parameters:
att - a date attribute
vals - an array of Date values

AnyOf

public AnyOf(NumberAttribute att,
             java.math.BigDecimal[] vals)
Construct an AnyOf query on a NumberAttribute
Parameters:
att - a number attribute
vals - an array of BigDecimal values

AnyOf

public AnyOf(StringAttribute att,
             java.lang.String[] vals)
Construct an AnyOf query on a StringAttribute
Parameters:
att - a string attribute
vals - an array of String values
Method Detail

compile

public java.lang.String compile()
compile into a query string.
Specified by:
compile in interface Query
Returns:
a query string representing this query.

compileForCount

public java.lang.String compileForCount()
compile into a query string for counting hits.
Specified by:
compileForCount in interface Query
Returns:
a query string representing this query.

Oracle Ultra Search Java API Reference
Release 10g

B12028-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.