@InterfaceStability.Uncommitted @InterfaceAudience.Public public class DateRangeQuery extends AbstractFtsQuery
String
form) can be customized (see dateTimeParser(String)
).Constructor and Description |
---|
DateRangeQuery() |
Modifier and Type | Method and Description |
---|---|
DateRangeQuery |
boost(double boost) |
DateRangeQuery |
dateTimeParser(String dateTimeParser)
The name of the date/time parser to use to interpret
start(String) and end(String) . |
DateRangeQuery |
end(Date end)
Sets the upper boundary of the range.
|
DateRangeQuery |
end(Date end,
boolean inclusive)
Sets the upper boundary of the range, inclusive or not depending on the second parameter.
|
DateRangeQuery |
end(String end)
Sets the upper boundary of the range.
|
DateRangeQuery |
end(String end,
boolean inclusive)
Sets the upper boundary of the range, inclusive or not depending on the second parameter.
|
DateRangeQuery |
field(String field) |
protected void |
injectParams(JsonObject input)
Override to inject query-specific parameters when doing the
SearchQuery.export() . |
DateRangeQuery |
start(Date start)
Sets the lower boundary of the range.
|
DateRangeQuery |
start(Date start,
boolean inclusive)
Sets the lower boundary of the range, inclusive or not depending on the second parameter.
|
DateRangeQuery |
start(String start)
Sets the lower boundary of the range.
|
DateRangeQuery |
start(String start,
boolean inclusive)
Sets the lower boundary of the range, inclusive or not depending on the second parameter.
|
injectParamsAndBoost, toString
public DateRangeQuery start(String start, boolean inclusive)
public DateRangeQuery start(String start)
start(String, boolean)
public DateRangeQuery end(String end, boolean inclusive)
public DateRangeQuery end(String end)
end(String, boolean)
public DateRangeQuery start(Date start, boolean inclusive)
Date
object, which is converted to RFC 3339 format using
SearchUtils.toFtsUtcString(Date)
, so you shouldn't use a non-default dateTimeParser(String)
after that.public DateRangeQuery start(Date start)
Date
object, which is converted to RFC 3339 format using
SearchUtils.toFtsUtcString(Date)
, so you shouldn't use a non-default dateTimeParser(String)
after that.start(Date, boolean)
public DateRangeQuery end(Date end, boolean inclusive)
Date
object, which is converted to RFC 3339 format using
SearchUtils.toFtsUtcString(Date)
, so you shouldn't use a non-default dateTimeParser(String)
after that.public DateRangeQuery end(Date end)
Date
object, which is converted to RFC 3339 format using
SearchUtils.toFtsUtcString(Date)
, so you shouldn't use a non-default dateTimeParser(String)
after that.end(Date, boolean)
public DateRangeQuery dateTimeParser(String dateTimeParser)
start(String)
and end(String)
. Should not
be modified when passing in Date
.public DateRangeQuery field(String field)
public DateRangeQuery boost(double boost)
boost
in class AbstractFtsQuery
protected void injectParams(JsonObject input)
AbstractFtsQuery
SearchQuery.export()
.injectParams
in class AbstractFtsQuery
input
- the prepared JsonObject
that will represent the query.Copyright © 2015 Couchbase, Inc.