Package org.openrefine.browsing.facets
Class TextSearchFacet
- java.lang.Object
-
- org.openrefine.browsing.facets.TextSearchFacet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TextSearchFacet.TextSearchAggregator
static class
TextSearchFacet.TextSearchFacetConfig
static class
TextSearchFacet.TextSearchFacetState
-
Field Summary
Fields Modifier and Type Field Description protected int
_cellIndex
protected TextSearchFacet.TextSearchFacetConfig
_config
protected Pattern
_pattern
protected String
_query
-
Constructor Summary
Constructors Constructor Description TextSearchFacet(TextSearchFacet.TextSearchFacetConfig config, int cellIndex)
-
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.String
getColumnName()
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.String
getMode()
String
getName()
String
getQuery()
boolean
isCaseSensitive()
boolean
isInverted()
-
-
-
Field Detail
-
_config
protected TextSearchFacet.TextSearchFacetConfig _config
-
_cellIndex
protected int _cellIndex
-
_pattern
protected Pattern _pattern
-
_query
protected String _query
-
-
Constructor Detail
-
TextSearchFacet
public TextSearchFacet(TextSearchFacet.TextSearchFacetConfig config, int cellIndex)
-
-
Method Detail
-
getName
public String getName()
-
getColumnName
public String getColumnName()
-
getQuery
public String getQuery()
-
getMode
public String getMode()
-
isCaseSensitive
public boolean isCaseSensitive()
-
isInverted
public boolean isInverted()
-
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
-
-