Class ListFacet.ListFacetConfig

    • Field Detail

      • columnName

        public String columnName
      • invert

        public boolean invert
      • omitBlank

        public boolean omitBlank
      • omitError

        public boolean omitError
      • selectBlank

        public boolean selectBlank
      • selectError

        public boolean selectError
    • Constructor Detail

      • ListFacetConfig

        public ListFacetConfig​(String name,
                               String expression,
                               String columnName,
                               boolean invert,
                               boolean omitBlank,
                               boolean omitError,
                               boolean selectBlank,
                               boolean selectError,
                               List<DecoratedValue> selection)
      • ListFacetConfig

        public ListFacetConfig​(String name,
                               String expression,
                               String columnName)
        Convenience constructor for a text facet in neutral configuration.
    • Method Detail

      • apply

        public ListFacet apply​(ColumnModel columnModel,
                               Map<String,​OverlayModel> overlayModels,
                               long projectId)
        Description copied from interface: FacetConfig
        Instantiates the given facet on a particular column model. This allows to check the validity of the configuration against a particular table schema (checking that the dependent columns exist, for instance).
        Specified by:
        apply in interface FacetConfig
        columnModel - the header of the table the facet is applied to.
        overlayModels - the overlay models of the table the facet is applied to (can be accessed by expressions evaluated by the facet)
        projectId - the id of the project this facet is evaluated on
        a computed facet on the given project.
      • getColumnDependencies

        public Set<String> getColumnDependencies()
        Description copied from interface: FacetConfig
        Computes the set of columns the facet depends on. If the facet relies on an unknown set of columns, or if it is not row-wise, this returns null.
        Specified by:
        getColumnDependencies in interface FacetConfig
        the set of column names the facet depends on.
      • isNeutral

        public boolean isNeutral()
        Description copied from interface: FacetConfig
        A neutral facet is a facet that does not filter out any row, i.e. it is in its initial, reset state. Neutral facets are still useful to visualize the distribution of values in a column.
        Specified by:
        isNeutral in interface FacetConfig
      • getExpression

        public String getExpression()
      • setExpression

        public void setExpression​(String expression)
      • getEvaluable

        public Evaluable getEvaluable()
      • getErrorMessage

        public String getErrorMessage()