Package com.attivio.sdk.search.facet
Class DateFacetRequest
- java.lang.Object
-
- com.attivio.sdk.search.facet.FacetRequest
-
- com.attivio.sdk.search.facet.DateFacetRequest
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class DateFacetRequest extends FacetRequest
Calendar based date facet.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDateFacetRequest.DateFacetIntervalAn interval for date faceting.static classDateFacetRequest.DateFacetResolution-
Nested classes/interfaces inherited from class com.attivio.sdk.search.facet.FacetRequest
FacetRequest.SortBy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDATE_SCALE_ATTRIBUTEName of attribute that will contain the scale used for date faceting.static java.lang.StringDATE_STEP_ATTRIBUTEName of attribute that will contain the step used for date faceting.static java.lang.StringTIME_ZONE_ATTRIBUTEName of attribute that will contain the time zone for date faceting.-
Fields inherited from class com.attivio.sdk.search.facet.FacetRequest
DEFAULT_MAX_MEMORY_USAGE, DEFAULT_PRIMARY_SORT, DEFAULT_SAMPLE_MODE, DEFAULT_SECONDARY_SORT, DEFAULT_SORT_BY
-
-
Constructor Summary
Constructors Constructor Description DateFacetRequest()DateFacetRequest(FieldExpression field)DateFacetRequest(FieldExpression field, java.util.List<DateFacetRequest.DateFacetInterval> intervals)DateFacetRequest(java.lang.String name)DateFacetRequest(java.lang.String name, FieldExpression field)DateFacetRequest(java.lang.String name, FieldExpression field, java.util.List<DateFacetRequest.DateFacetInterval> intervals)DateFacetRequest(java.lang.String name, java.util.List<DateFacetRequest.DateFacetInterval> intervals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterval(DateFacetRequest.DateFacetResolution resolution)voidaddInterval(DateFacetRequest.DateFacetResolution resolution, int step)protected intaddParameters(java.lang.StringBuilder buffer, int index)booleanequals(java.lang.Object other)java.util.List<DateFacetRequest.DateFacetInterval>getIntervals()inthashCode()booleanisFacetFinder()trueif the facet finder can replace this FacetRequest with a suggested FacetRequest.voidsetFacetFinder(boolean value)Set if FacetFinder is allowed to provide a suggestion for this FacetRequest.voidsetIntervals(DateFacetRequest.DateFacetInterval... value)voidsetIntervals(java.util.List<DateFacetRequest.DateFacetInterval> value)-
Methods inherited from class com.attivio.sdk.search.facet.FacetRequest
addName, addParameter, clone, getChildFacet, getDistributedMaxBuckets, getDistributedMinBucketCount, getField, getFieldExpression, getMaxBuckets, getMaxMemoryUsage, getMinBucketCount, getName, getPrimarySortOrder, getRawDistributedMaxBuckets, getRawDistributedMinBucketCount, getRawMaxBuckets, getRawMinBucketCount, getSecondarySortOrder, getShallowMode, getSortBy, isCalculateStatistics, setCalculateStatistics, setChildFacet, setDefaults, setDistributedMaxBuckets, setDistributedMaxBuckets, setDistributedMinBucketCount, setDistributedMinBucketCount, setField, setFieldExpression, setMaxBuckets, setMaxBuckets, setMaxMemoryUsage, setMinBucketCount, setMinBucketCount, setName, setPrimarySortOrder, setSecondarySortOrder, setShallowMode, setSortOrder, setSortOrder, setSortOrder, toFacetBuilder, toString, valueOf, valueOf
-
-
-
-
Field Detail
-
TIME_ZONE_ATTRIBUTE
public static final java.lang.String TIME_ZONE_ATTRIBUTE
Name of attribute that will contain the time zone for date faceting.- See Also:
- Constant Field Values
-
DATE_SCALE_ATTRIBUTE
public static final java.lang.String DATE_SCALE_ATTRIBUTE
Name of attribute that will contain the scale used for date faceting.- See Also:
- Constant Field Values
-
DATE_STEP_ATTRIBUTE
public static final java.lang.String DATE_STEP_ATTRIBUTE
Name of attribute that will contain the step used for date faceting.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DateFacetRequest
public DateFacetRequest()
-
DateFacetRequest
public DateFacetRequest(java.lang.String name)
-
DateFacetRequest
public DateFacetRequest(java.lang.String name, java.util.List<DateFacetRequest.DateFacetInterval> intervals)
-
DateFacetRequest
public DateFacetRequest(FieldExpression field)
-
DateFacetRequest
public DateFacetRequest(java.lang.String name, FieldExpression field)
-
DateFacetRequest
public DateFacetRequest(java.lang.String name, FieldExpression field, java.util.List<DateFacetRequest.DateFacetInterval> intervals)
-
DateFacetRequest
public DateFacetRequest(FieldExpression field, java.util.List<DateFacetRequest.DateFacetInterval> intervals)
-
-
Method Detail
-
isFacetFinder
public final boolean isFacetFinder()
trueif 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.
- Overrides:
isFacetFinderin classFacetRequest
-
setFacetFinder
public final void setFacetFinder(boolean value)
Set if FacetFinder is allowed to provide a suggestion for this FacetRequest.- Overrides:
setFacetFinderin classFacetRequest
-
getIntervals
public java.util.List<DateFacetRequest.DateFacetInterval> getIntervals()
-
setIntervals
public void setIntervals(DateFacetRequest.DateFacetInterval... value)
-
setIntervals
public void setIntervals(java.util.List<DateFacetRequest.DateFacetInterval> value)
-
addInterval
public void addInterval(DateFacetRequest.DateFacetResolution resolution)
-
addInterval
public void addInterval(DateFacetRequest.DateFacetResolution resolution, int step)
-
hashCode
public int hashCode()
Description copied from class:FacetRequest- Overrides:
hashCodein classFacetRequest
-
equals
public boolean equals(java.lang.Object other)
Description copied from class:FacetRequest- Overrides:
equalsin classFacetRequest
-
addParameters
protected int addParameters(java.lang.StringBuilder buffer, int index)- Overrides:
addParametersin classFacetRequest
-
-