Package org.openrefine.browsing.facets
Class TimeRangeFacet
- java.lang.Object
-
- org.openrefine.browsing.facets.TimeRangeFacet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeRangeFacet.TimeRangeFacetConfig
-
Field Summary
Fields Modifier and Type Field Description protected int
_cellIndex
protected ColumnModel
_columnModel
protected TimeRangeFacet.TimeRangeFacetConfig
_config
protected String
_errorMessage
protected Map<String,OverlayModel>
_overlayModels
protected long
_projectId
protected static String
FROM
protected static String
MAX
protected static String
MIN
protected static String
TO
-
Constructor Summary
Constructors Constructor Description TimeRangeFacet(TimeRangeFacet.TimeRangeFacetConfig 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<TimeRangeFacetState>
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.
-
-
-
Field Detail
-
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
-
_config
protected TimeRangeFacet.TimeRangeFacetConfig _config
-
_cellIndex
protected int _cellIndex
-
_errorMessage
protected String _errorMessage
-
_columnModel
protected ColumnModel _columnModel
-
_overlayModels
protected Map<String,OverlayModel> _overlayModels
-
_projectId
protected long _projectId
-
-
Constructor Detail
-
TimeRangeFacet
public TimeRangeFacet(TimeRangeFacet.TimeRangeFacetConfig config, int cellIndex, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId)
-
-
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<TimeRangeFacetState> 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
-
-