public class DateRangeQuery extends Object implements SearchQuery
| Modifier and Type | Class and Description |
|---|---|
static class |
DateRangeQuery.Builder
Helps create a
DateRangeQuery object |
static class |
DateRangeQuery.DateRange
Deprecated.
since 5.10, use
Range instead |
static class |
DateRangeQuery.DateRangeQueryType |
| Constructor and Description |
|---|
DateRangeQuery(@Nullable Date from,
@Nullable Date to,
boolean includeFrom,
boolean includeTo,
DateRangeQuery.DateRangeQueryType dateRangeQueryType)
Query for search results that have been modified within the specified range of dates.
|
DateRangeQuery(Date fromDate,
Date toDate,
boolean includeFrom,
boolean includeTo,
String fieldName) |
DateRangeQuery(DateRangeQuery.DateRange dateRange,
DateRangeQuery.DateRangeQueryType dateRangeQueryType)
Query for search results that have been modified within the specified range of dates.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SearchQuery |
expand()
Expands this query into a composite query (that composes other queries).
|
Optional<String> |
fieldName() |
com.atlassian.fugue.Option<String> |
getFieldName()
Deprecated.
since 7.0.1. Use
fieldName() |
Date |
getFromDate() |
String |
getKey() |
List |
getParameters()
List of parameters as
Strings or SearchQuerys. |
com.atlassian.fugue.Option<DateRangeQuery.DateRangeQueryType> |
getQueryType()
Deprecated.
since 7.0.1. Use
queryType() |
Date |
getToDate() |
int |
hashCode() |
boolean |
isIncludeFrom() |
boolean |
isIncludeTo() |
static DateRangeQuery.Builder |
newDateRangeQuery(DateRangeQuery.DateRangeQueryType type) |
static DateRangeQuery.Builder |
newDateRangeQuery(String fieldName) |
Optional<DateRangeQuery.DateRangeQueryType> |
queryType() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetBoostpublic DateRangeQuery(@Nullable Date from, @Nullable Date to, boolean includeFrom, boolean includeTo, DateRangeQuery.DateRangeQueryType dateRangeQueryType)
from - the beginning of the date range (can be null)to - the end date in the range (can be null)includeFrom - include the beginning date in the rangeincludeTo - include the end date in the rangedateRangeQueryType - the type of range query. See
DateRangeQuery.DateRangeQueryTypepublic DateRangeQuery(Date fromDate, Date toDate, boolean includeFrom, boolean includeTo, String fieldName)
public DateRangeQuery(DateRangeQuery.DateRange dateRange, DateRangeQuery.DateRangeQueryType dateRangeQueryType)
dateRange - the dateRange. See DateRangeQuery.DateRangedateRangeQueryType - the type of range query. See
DateRangeQuery.DateRangeQueryTypepublic static DateRangeQuery.Builder newDateRangeQuery(DateRangeQuery.DateRangeQueryType type)
public static DateRangeQuery.Builder newDateRangeQuery(String fieldName)
public String getKey()
getKey in interface SearchQuerypublic List getParameters()
SearchQueryStrings or SearchQuerys.getParameters in interface SearchQueryStrings or SearchQuerys.public Date getFromDate()
public Date getToDate()
public boolean isIncludeFrom()
public boolean isIncludeTo()
@Deprecated public com.atlassian.fugue.Option<DateRangeQuery.DateRangeQueryType> getQueryType()
queryType()public Optional<DateRangeQuery.DateRangeQueryType> queryType()
@Deprecated public com.atlassian.fugue.Option<String> getFieldName()
fieldName()public SearchQuery expand()
SearchQueryexpand in interface Expandable<SearchQuery>expand in interface SearchQueryCopyright © 2003–2020 Atlassian. All rights reserved.