Package org.openrefine.browsing.facets
Class ListFacet
- java.lang.Object
-
- org.openrefine.browsing.facets.ListFacet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListFacet.DecoratedValueWrapper
Wrapper to respect the serialization formatstatic class
ListFacet.ListFacetConfig
-
Field Summary
Fields Modifier and Type Field Description protected int
_cellIndex
protected String
_errorMessage
protected Evaluable
_eval
static String
ERR_TOO_MANY_CHOICES
-
Constructor Summary
Constructors Constructor Description ListFacet(ListFacet.ListFacetConfig config, ColumnModel model, Map<String,OverlayModel> overlayModels, long projectId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object[]
createMatches()
FacetAggregator<StringValuesFacetState>
getAggregator()
An aggregator used to populate the facet state for this facet.ListFacet.ListFacetConfig
getConfig()
Returns the configuration of the facet.ListFacetResult
getFacetResult(FacetState state)
Returns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).StringValuesFacetState
getInitialFacetState()
An initial facet state for this facet, which can then be used to scan the table and ingest statistics about rows or records.
-
-
-
Field Detail
-
ERR_TOO_MANY_CHOICES
public static final String ERR_TOO_MANY_CHOICES
- See Also:
- Constant Field Values
-
_cellIndex
protected int _cellIndex
-
_eval
protected Evaluable _eval
-
_errorMessage
protected String _errorMessage
-
-
Constructor Detail
-
ListFacet
public ListFacet(ListFacet.ListFacetConfig config, ColumnModel model, Map<String,OverlayModel> overlayModels, long projectId)
-
-
Method Detail
-
createMatches
protected Object[] createMatches()
-
getInitialFacetState
public StringValuesFacetState getInitialFacetState()
Description copied from interface:Facet
An initial facet state for this facet, which can then be used to scan the table and ingest statistics about rows or records.- Specified by:
getInitialFacetState
in interfaceFacet
-
getFacetResult
public ListFacetResult getFacetResult(FacetState state)
Description copied from interface:Facet
Returns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).- Specified by:
getFacetResult
in interfaceFacet
-
getAggregator
public FacetAggregator<StringValuesFacetState> getAggregator()
Description copied from interface:Facet
An aggregator used to populate the facet state for this facet. It should accept the initial state returned byFacet.getInitialFacetState()
.- Specified by:
getAggregator
in interfaceFacet
-
getConfig
public ListFacet.ListFacetConfig getConfig()
Description copied from interface:Facet
Returns the configuration of the facet.
-
-