public class Facet extends Object
Constructor and Description |
---|
Facet() |
Modifier and Type | Method and Description |
---|---|
FacetAggregationSet |
getAggregation()
Flags indicating type of facet aggregation.
|
String |
getAggregationField()
Field on which aggregation will be performed.
|
String |
getAggregationType()
Type of field on which aggregation will be performed.
|
String |
getDisplayName()
Display name of facet.
|
Boolean |
getIncludeRemainingTerms()
Indicates if remaining terms should be included in results.
|
Integer |
getMaxResults()
Maximum number of results to return.
|
FacetMode |
getMode()
Mode of a facet (Default, Ranges).
|
String |
getName()
Name of facet.
|
List<String> |
getRanges()
List of facet ranges.
|
FacetTermSortMode |
getTermSortMode()
Indicates how terms should be sorted.
|
static String |
parse(com.mysema.query.types.expr.BooleanExpression expr) |
void |
setAggregation(FacetAggregationSet aggregation)
Flags indicating type of facet aggregation.
|
void |
setAggregationField(String aggregationField)
Field on which aggregation will be performed.
|
void |
setAggregationType(String aggregationType)
Type of field on which aggregation will be performed.
|
void |
setDisplayName(String displayName)
Display name of facet.
|
void |
setIncludeRemainingTerms(Boolean includeRemainingTerms)
Indicates if remaining terms should be included in results.
|
void |
setMaxResults(Integer maxResults)
Maximum number of results to return.
|
void |
setMode(FacetMode mode)
Mode of a facet (Default, Ranges).
|
void |
setName(com.mysema.query.types.Path<?> path)
Name of facet.
|
void |
setName(String name)
Name of facet.
|
void |
setRanges(com.mysema.query.types.expr.BooleanExpression... exprs)
List of facet ranges.
|
void |
setRanges(List<String> ranges)
List of facet ranges.
|
void |
setTermSortMode(FacetTermSortMode termSortMode)
Indicates how terms should be sorted.
|
public FacetAggregationSet getAggregation()
public void setAggregation(FacetAggregationSet aggregation)
aggregation
- public String getAggregationType()
public void setAggregationType(String aggregationType)
aggregationType
- public String getAggregationField()
public Integer getMaxResults()
public FacetMode getMode()
public String getName()
public FacetTermSortMode getTermSortMode()
public Boolean getIncludeRemainingTerms()
public void setIncludeRemainingTerms(Boolean includeRemainingTerms)
public void setAggregationField(String aggregationField)
aggregationField
- public void setDisplayName(String displayName)
getName
if null.displayName
- public void setMaxResults(Integer maxResults)
maxResults
- public void setMode(FacetMode mode)
mode
- public void setName(String name)
name
- public void setTermSortMode(FacetTermSortMode termSortMode)
termSortMode
- public void setRanges(com.mysema.query.types.expr.BooleanExpression... exprs)
exprs
- public void setName(com.mysema.query.types.Path<?> path)
path
- public static String parse(com.mysema.query.types.expr.BooleanExpression expr)
Copyright © 2016. All Rights Reserved.