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 class
ListFacetResult.OtherChoice
Wrapper class for choice counts and selection status for blank and error
-
Field Summary
Fields Modifier and Type Field Description protected long
_blankCount
protected List<NominalFacetChoice>
_choices
protected ListFacet.ListFacetConfig
_config
protected long
_errorCount
protected 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.OtherChoice
getBlankChoice()
Integer
getChoiceCount()
List<NominalFacetChoice>
getChoices()
String
getColumnName()
String
getError()
ListFacetResult.OtherChoice
getErrorChoice()
String
getExpression()
boolean
getInvert()
protected int
getLimit()
String
getName()
-
-
-
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()
-
-