public class DateFacetRequest extends FacetRequest
Modifier and Type | Class and Description |
---|---|
static class |
DateFacetRequest.DateFacetInterval
An interval for date faceting.
|
static class |
DateFacetRequest.DateFacetResolution |
FacetRequest.SortBy
Modifier and Type | Field and Description |
---|---|
static String |
DATE_SCALE_ATTRIBUTE
Name of attribute that will contain the scale used for date faceting.
|
static String |
DATE_STEP_ATTRIBUTE
Name of attribute that will contain the step used for date faceting.
|
static String |
TIME_ZONE_ATTRIBUTE
Name of attribute that will contain the time zone for date faceting.
|
DEFAULT_MAX_MEMORY_USAGE, DEFAULT_PRIMARY_SORT, DEFAULT_SAMPLE_MODE, DEFAULT_SECONDARY_SORT, DEFAULT_SORT_BY
Constructor and Description |
---|
DateFacetRequest() |
DateFacetRequest(FieldExpression field) |
DateFacetRequest(FieldExpression field,
List<DateFacetRequest.DateFacetInterval> intervals) |
DateFacetRequest(String field) |
DateFacetRequest(String field,
List<DateFacetRequest.DateFacetInterval> intervals) |
Modifier and Type | Method and Description |
---|---|
void |
addInterval(DateFacetRequest.DateFacetResolution resolution) |
void |
addInterval(DateFacetRequest.DateFacetResolution resolution,
int step) |
protected int |
addParameters(StringBuilder buffer,
int index) |
boolean |
equals(Object other) |
List<DateFacetRequest.DateFacetInterval> |
getIntervals() |
int |
hashCode() |
boolean |
isFacetFinder()
true if the facet finder can replace this FacetRequest with a suggested FacetRequest. |
void |
setFacetFinder(boolean value)
Set if FacetFinder is allowed to provide a suggestion for this FacetRequest.
|
void |
setIntervals(DateFacetRequest.DateFacetInterval... value) |
void |
setIntervals(List<DateFacetRequest.DateFacetInterval> value) |
addName, addParameter, clone, getBucketComparator, getDistributedMaxBuckets, getDistributedMinBucketCount, getField, getFieldExpression, getMaxBuckets, getMaxMemoryUsage, getMinBucketCount, getName, getPrimarySortOrder, getRawDistributedMaxBuckets, getRawDistributedMinBucketCount, getRawMaxBuckets, getRawMinBucketCount, getSecondarySortOrder, getShallowMode, getSortBy, isCalculateStatistics, isFacetTokens, setCalculateStatistics, setDefaults, setDistributedMaxBuckets, setDistributedMaxBuckets, setDistributedMinBucketCount, setDistributedMinBucketCount, setFacetTokens, setField, setFieldExpression, setMaxBuckets, setMaxBuckets, setMaxMemoryUsage, setMinBucketCount, setMinBucketCount, setName, setPrimarySortOrder, setSecondarySortOrder, setShallowMode, setSortOrder, setSortOrder, setSortOrder, toString, valueOf
public static final String TIME_ZONE_ATTRIBUTE
public static final String DATE_SCALE_ATTRIBUTE
public static final String DATE_STEP_ATTRIBUTE
public DateFacetRequest()
public DateFacetRequest(String field)
public DateFacetRequest(String field, List<DateFacetRequest.DateFacetInterval> intervals)
public DateFacetRequest(FieldExpression field)
public DateFacetRequest(FieldExpression field, List<DateFacetRequest.DateFacetInterval> intervals)
public final boolean isFacetFinder()
true
if the facet finder can replace this FacetRequest with a suggested FacetRequest.
This will replace a FacetRequest for a numeric field with a RangeFacetRequest when facet finder runs.
isFacetFinder
in class FacetRequest
public final void setFacetFinder(boolean value)
setFacetFinder
in class FacetRequest
public List<DateFacetRequest.DateFacetInterval> getIntervals()
public void setIntervals(DateFacetRequest.DateFacetInterval... value)
public void setIntervals(List<DateFacetRequest.DateFacetInterval> value)
public void addInterval(DateFacetRequest.DateFacetResolution resolution)
public void addInterval(DateFacetRequest.DateFacetResolution resolution, int step)
public int hashCode()
FacetRequest
hashCode
in class FacetRequest
public boolean equals(Object other)
FacetRequest
equals
in class FacetRequest
protected int addParameters(StringBuilder buffer, int index)
addParameters
in class FacetRequest
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.