Package org.openrefine.browsing.facets
Interface Facet
-
- All Known Implementing Classes:
ListFacet
,RangeFacet
,ScatterplotFacet
,StringFacet
,TextSearchFacet
,TimeRangeFacet
public interface Facet
Interface of facets.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getConfig
FacetConfig getConfig()
Returns the configuration of the facet.
-
getInitialFacetState
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.
-
getAggregator
FacetAggregator<?> getAggregator()
An aggregator used to populate the facet state for this facet. It should accept the initial state returned bygetInitialFacetState()
.
-
getFacetResult
FacetResult getFacetResult(FacetState state)
Returns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).
-
-