Interface DatasetConstraintsProvider
public interface DatasetConstraintsProvider
Interface to be implemented by Spring beans that should be used in
SupersetDashboard component.
For instance:
@Component("app_CovidDatasetConstraint")
public class DashboardDatasetConstraintsProvider implements DatasetConstraintsProvider {
@Override
public List<DatasetConstraint> getConstraints() {
return List.of(new DatasetConstraint(13, "country_name = 'United States'"));
}
}
And view descriptor:
<superset:dashboard id="dashboard"
height="100%"
width="100%"
datasetConstraintsProviderBean="app_CovidDatasetConstraint"
embeddedId="d0ec568a-04cb-4408-a072-f2ba4e011f20"/>
-
Method Summary
-
Method Details
-
getConstraints
List<DatasetConstraint> getConstraints()- Returns:
- list of dataset constraints
-