Package org.openrefine.browsing.facets
Class StringFacet
- java.lang.Object
-
- org.openrefine.browsing.facets.StringFacet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StringFacet.Config
-
Constructor Summary
Constructors Constructor Description StringFacet(int columnIndex, StringFacet.Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetAggregator<?>
getAggregator()
An aggregator used to populate the facet state for this facet.FacetConfig
getConfig()
Returns the configuration of the facet.FacetResult
getFacetResult(FacetState state)
Returns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).FacetState
getInitialFacetState()
An initial facet state for this facet, which can then be used to scan the table and ingest statistics about rows or records.
-
-
-
Constructor Detail
-
StringFacet
public StringFacet(int columnIndex, StringFacet.Config config)
-
-
Method Detail
-
getConfig
public FacetConfig getConfig()
Description copied from interface:Facet
Returns the configuration of the facet.
-
getInitialFacetState
public FacetState 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
-
getAggregator
public FacetAggregator<?> 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
-
getFacetResult
public FacetResult 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
-
-