Package org.alfresco.search.model
Class RequestRange
- java.lang.Object
-
- org.alfresco.search.model.RequestRange
-
@Validated public class RequestRange extends Object
Facet range
-
-
Constructor Summary
Constructors Constructor Description RequestRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestRangeaddExcludeFiltersItem(String excludeFiltersItem)RequestRangeaddIncludeItem(String includeItem)RequestRangeaddOtherItem(String otherItem)RequestRangeend(String end)booleanequals(Object o)RequestRangeexcludeFilters(List<String> excludeFilters)RequestRangefield(String field)RequestRangegap(String gap)StringgetEnd()The end of the rangeList<String>getExcludeFilters()Filter queries to exclude when calculating statisticsStringgetField()The name of the field to perform rangeStringgetGap()Bucket sizeList<String>getInclude()lower, upper, edge, outer, allStringgetLabel()A label to include as a pivot referenceList<String>getOther()before, after, between, non, allStringgetStart()The start of the rangeRequestRangehardend(Boolean hardend)inthashCode()RequestRangeinclude(List<String> include)BooleanisHardend()If true means that the last bucket will end at “end” even if it is less than “gap” wide.RequestRangelabel(String label)RequestRangeother(List<String> other)voidsetEnd(String end)voidsetExcludeFilters(List<String> excludeFilters)voidsetField(String field)voidsetGap(String gap)voidsetHardend(Boolean hardend)voidsetInclude(List<String> include)voidsetLabel(String label)voidsetOther(List<String> other)voidsetStart(String start)RequestRangestart(String start)StringtoString()
-
-
-
Method Detail
-
field
public RequestRange field(String field)
-
getField
public String getField()
The name of the field to perform range- Returns:
- field
-
setField
public void setField(String field)
-
start
public RequestRange start(String start)
-
getStart
public String getStart()
The start of the range- Returns:
- start
-
setStart
public void setStart(String start)
-
end
public RequestRange end(String end)
-
getEnd
public String getEnd()
The end of the range- Returns:
- end
-
setEnd
public void setEnd(String end)
-
gap
public RequestRange gap(String gap)
-
getGap
public String getGap()
Bucket size- Returns:
- gap
-
setGap
public void setGap(String gap)
-
hardend
public RequestRange hardend(Boolean hardend)
-
isHardend
public Boolean isHardend()
If true means that the last bucket will end at “end” even if it is less than “gap” wide.- Returns:
- hardend
-
setHardend
public void setHardend(Boolean hardend)
-
other
public RequestRange other(List<String> other)
-
addOtherItem
public RequestRange addOtherItem(String otherItem)
-
include
public RequestRange include(List<String> include)
-
addIncludeItem
public RequestRange addIncludeItem(String includeItem)
-
label
public RequestRange label(String label)
-
getLabel
public String getLabel()
A label to include as a pivot reference- Returns:
- label
-
setLabel
public void setLabel(String label)
-
excludeFilters
public RequestRange excludeFilters(List<String> excludeFilters)
-
addExcludeFiltersItem
public RequestRange addExcludeFiltersItem(String excludeFiltersItem)
-
getExcludeFilters
public List<String> getExcludeFilters()
Filter queries to exclude when calculating statistics- Returns:
- excludeFilters
-
-