Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-01


oracle.ultrasearch.query
Class Between

java.lang.Object
  extended by oracle.ultrasearch.query.Between

All Implemented Interfaces:
Query

public class Between
extends java.lang.Object
implements Query

Find documents that has an attribute value within a range. Between can be applied to Date attribute, or Number attribute.

Since:
9.0.2

Constructor Summary
Between(DateAttribute att, java.util.Date v1, java.util.Date v2)
          Construct a Between query on a DateAttribute.
Between(NumberAttribute att, java.math.BigDecimal v1, java.math.BigDecimal v2)
          Construct a Between query on a NumberAttribute.

 

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

Between

public Between(DateAttribute att,
               java.util.Date v1,
               java.util.Date v2)
Construct a Between query on a DateAttribute. The range specified is greater than v1 and less than v2, i.e. (v1 ... v2). Note: only the year, month, day parts of Date values are used in comparison.
Parameters:
att - a date attribute
v1 - a Date value, not null
v2 - a Date value, not null

Between

public Between(NumberAttribute att,
               java.math.BigDecimal v1,
               java.math.BigDecimal v2)
Construct a Between query on a NumberAttribute. The range specified is greater than v1 and less than v2, i.e. (v1 ... v2). Note: only 32 bits of precision are used in comparison.
Parameters:
att - a number attribute
v1 - a BigDecimal value, not null
v2 - a BigDecimal value, not null

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.

Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-01


Copyright © 2002,2007, Oracle. All Rights Reserved.