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
String s or SearchQuery s. |
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, wait
getBoost
public 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.DateRangeQueryType
public DateRangeQuery(Date fromDate, Date toDate, boolean includeFrom, boolean includeTo, String fieldName)
public DateRangeQuery(DateRangeQuery.DateRange dateRange, DateRangeQuery.DateRangeQueryType dateRangeQueryType)
dateRange
- the dateRange. See DateRangeQuery.DateRange
dateRangeQueryType
- the type of range query. See
DateRangeQuery.DateRangeQueryType
public static DateRangeQuery.Builder newDateRangeQuery(DateRangeQuery.DateRangeQueryType type)
public static DateRangeQuery.Builder newDateRangeQuery(String fieldName)
public String getKey()
getKey
in interface SearchQuery
public List getParameters()
SearchQuery
String
s or SearchQuery
s.getParameters
in interface SearchQuery
String
s or SearchQuery
s.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()
SearchQuery
expand
in interface Expandable<SearchQuery>
expand
in interface SearchQuery
Copyright © 2003–2019 Atlassian. All rights reserved.