Class FacetHelper
- java.lang.Object
-
- fr.gouv.vitam.common.database.builder.facet.FacetHelper
-
- Direct Known Subclasses:
FacetParserHelper
public class FacetHelper extends java.lang.Object
Facet helper
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FacetHelper()
Constructor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Facet
dateRange(java.lang.String name, java.lang.String field, java.lang.String nestedPath, java.lang.String dateFormat, java.util.List<RangeFacetValue> ranges)
Create a date range facetstatic Facet
dateRange(java.lang.String name, java.lang.String field, java.lang.String dateFormat, java.util.List<RangeFacetValue> ranges)
Create a date range facetstatic Facet
filters(java.lang.String name, java.util.Map<java.lang.String,Query> filters)
Create a filters facetstatic Facet
terms(java.lang.String name, java.lang.String field, java.lang.Integer size, FacetOrder order)
Create a facetstatic Facet
terms(java.lang.String name, java.lang.String field, java.lang.String nestdPath, java.lang.Integer size, FacetOrder order)
Create a facet
-
-
-
Method Detail
-
terms
public static final Facet terms(java.lang.String name, java.lang.String field, java.lang.String nestdPath, java.lang.Integer size, FacetOrder order) throws InvalidCreateOperationException
Create a facet- Parameters:
name
- name of the facetfield
- field of facet datanestdPath
- nested path of field of facet datasize
- size of the facetorder
- order of the facet- Returns:
- a Facet
- Throws:
InvalidCreateOperationException
- when creating facet errors
-
terms
public static final Facet terms(java.lang.String name, java.lang.String field, java.lang.Integer size, FacetOrder order) throws InvalidCreateOperationException
Create a facet- Parameters:
name
- name of the facetfield
- field of facet datasize
- size of the facetorder
- order of the facet- Returns:
- a Facet
- Throws:
InvalidCreateOperationException
- when creating facet errors
-
dateRange
public static final Facet dateRange(java.lang.String name, java.lang.String field, java.lang.String nestedPath, java.lang.String dateFormat, java.util.List<RangeFacetValue> ranges) throws InvalidCreateOperationException
Create a date range facet- Parameters:
name
- name of the facetfield
- field of facet datanestedPath
- nested path of field of facet datadateFormat
- the date format for the ranges of the facetranges
-- Returns:
- Throws:
InvalidCreateOperationException
-
dateRange
public static final Facet dateRange(java.lang.String name, java.lang.String field, java.lang.String dateFormat, java.util.List<RangeFacetValue> ranges) throws InvalidCreateOperationException
Create a date range facet- Parameters:
name
- name of the facetfield
- field of facet datadateFormat
- the date format for the ranges of the facetranges
-- Returns:
- Throws:
InvalidCreateOperationException
-
filters
public static final Facet filters(java.lang.String name, java.util.Map<java.lang.String,Query> filters) throws InvalidCreateOperationException
Create a filters facet- Parameters:
name
- name of the facetfilters
- map of named filer queries- Returns:
- a Facet
- Throws:
InvalidCreateOperationException
- when creating facet errors
-
-