Package org.openrefine.browsing.facets
Class ListFacetResult
- java.lang.Object
-
- org.openrefine.browsing.facets.ListFacetResult
-
- All Implemented Interfaces:
FacetResult
public class ListFacetResult extends Object implements FacetResult
JSON representation of a list facet configuration bundled up with facet statistics
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListFacetResult.OtherChoiceWrapper class for choice counts and selection status for blank and error
-
Field Summary
Fields Modifier and Type Field Description protected long_blankCountprotected List<NominalFacetChoice>_choicesprotected ListFacet.ListFacetConfig_configprotected long_errorCountprotected String_errorMessage
-
Constructor Summary
Constructors Constructor Description ListFacetResult(ListFacet.ListFacetConfig config, String errorMessage)ListFacetResult(ListFacet.ListFacetConfig config, StringValuesFacetState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListFacetResult.OtherChoicegetBlankChoice()IntegergetChoiceCount()List<NominalFacetChoice>getChoices()StringgetColumnName()StringgetError()ListFacetResult.OtherChoicegetErrorChoice()StringgetExpression()booleangetInvert()protected intgetLimit()StringgetName()
-
-
-
Field Detail
-
_config
protected ListFacet.ListFacetConfig _config
-
_errorMessage
protected String _errorMessage
-
_choices
protected List<NominalFacetChoice> _choices
-
_blankCount
protected long _blankCount
-
_errorCount
protected long _errorCount
-
-
Constructor Detail
-
ListFacetResult
public ListFacetResult(ListFacet.ListFacetConfig config, StringValuesFacetState state)
-
ListFacetResult
public ListFacetResult(ListFacet.ListFacetConfig config, String errorMessage)
-
-
Method Detail
-
getName
public String getName()
-
getColumnName
public String getColumnName()
-
getExpression
public String getExpression()
-
getInvert
public boolean getInvert()
-
getError
public String getError()
-
getChoiceCount
public Integer getChoiceCount()
-
getChoices
public List<NominalFacetChoice> getChoices()
-
getBlankChoice
public ListFacetResult.OtherChoice getBlankChoice()
-
getErrorChoice
public ListFacetResult.OtherChoice getErrorChoice()
-
getLimit
protected int getLimit()
-
-