Package org.openrefine.browsing.facets
Class RangeFacet
- java.lang.Object
-
- org.openrefine.browsing.facets.RangeFacet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRangeFacet.RangeFacetConfig
-
Field Summary
Fields Modifier and Type Field Description protected int_cellIndexprotected ColumnModel_columnModelprotected Map<String,OverlayModel>_overlayModelsprotected long_projectIdstatic StringERR_NO_NUMERIC_VALUE_PRESENTprotected static StringFROMprotected static StringMAXprotected static StringMINprotected static StringTO
-
Constructor Summary
Constructors Constructor Description RangeFacet(RangeFacet.RangeFacetConfig config, int cellIndex, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetAggregator<NumericFacetState>getAggregator()An aggregator used to populate the facet state for this facet.FacetConfiggetConfig()Returns the configuration of the facet.FacetResultgetFacetResult(FacetState state)Returns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).NumericFacetStategetInitialFacetState()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_NO_NUMERIC_VALUE_PRESENT
public static final String ERR_NO_NUMERIC_VALUE_PRESENT
- See Also:
- Constant Field Values
-
MIN
protected static final String MIN
- See Also:
- Constant Field Values
-
MAX
protected static final String MAX
- See Also:
- Constant Field Values
-
TO
protected static final String TO
- See Also:
- Constant Field Values
-
FROM
protected static final String FROM
- See Also:
- Constant Field Values
-
_cellIndex
protected int _cellIndex
-
_columnModel
protected ColumnModel _columnModel
-
_overlayModels
protected Map<String,OverlayModel> _overlayModels
-
_projectId
protected long _projectId
-
-
Constructor Detail
-
RangeFacet
public RangeFacet(RangeFacet.RangeFacetConfig config, int cellIndex, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId)
-
-
Method Detail
-
getConfig
public FacetConfig getConfig()
Description copied from interface:FacetReturns the configuration of the facet.
-
getInitialFacetState
public NumericFacetState 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
-
getAggregator
public FacetAggregator<NumericFacetState> 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
-
getFacetResult
public FacetResult 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
-
-