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
Class to represent a date range.
|
static class |
DateRangeQuery.DateRangeQueryType |
Constructor and Description |
---|
DateRangeQuery(Date from,
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) |
DateRangeQuery.DateRangeQueryType |
getDateRangeQueryType()
Deprecated.
since 5.7 use getQueryType()
|
com.atlassian.fugue.Option<String> |
getFieldName() |
Date |
getFromDate() |
String |
getKey() |
List |
getParameters()
List of parameters as
String s or SearchQuery s. |
com.atlassian.fugue.Option<DateRangeQuery.DateRangeQueryType> |
getQueryType() |
Date |
getToDate() |
int |
hashCode() |
boolean |
isIncludeFrom() |
boolean |
isIncludeTo() |
static DateRangeQuery.Builder |
newDateRangeQuery(DateRangeQuery.DateRangeQueryType type) |
static DateRangeQuery.Builder |
newDateRangeQuery(String fieldName) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
expand
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 DateRangeQuery.DateRangeQueryType getDateRangeQueryType()
public com.atlassian.fugue.Option<DateRangeQuery.DateRangeQueryType> getQueryType()
public com.atlassian.fugue.Option<String> getFieldName()
Copyright © 2003–2016 Atlassian. All rights reserved.