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 classListFacet.DecoratedValueWrapperWrapper to respect the serialization formatstatic classListFacet.ListFacetConfig
-
Field Summary
Fields Modifier and Type Field Description protected int_cellIndexprotected String_errorMessageprotected Evaluable_evalstatic StringERR_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.ListFacetConfiggetConfig()Returns the configuration of the facet.ListFacetResultgetFacetResult(FacetState state)Returns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).StringValuesFacetStategetInitialFacetState()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:FacetAn initial facet state for this facet, which can then be used to scan the table and ingest statistics about rows or records.- Specified by:
getInitialFacetStatein interfaceFacet
-
getFacetResult
public ListFacetResult getFacetResult(FacetState state)
Description copied from interface:FacetReturns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).- Specified by:
getFacetResultin interfaceFacet
-
getAggregator
public FacetAggregator<StringValuesFacetState> getAggregator()
Description copied from interface:FacetAn aggregator used to populate the facet state for this facet. It should accept the initial state returned byFacet.getInitialFacetState().- Specified by:
getAggregatorin interfaceFacet
-
getConfig
public ListFacet.ListFacetConfig getConfig()
Description copied from interface:FacetReturns the configuration of the facet.
-
-