Interface CatalogsMaintenanceConfig
- All Known Subinterfaces:
CatalogsMaintenanceConfig.BuildableCatalogsMaintenanceConfig
@ConfigMapping(prefix="polaris.persistence.nosql.maintenance.catalog")
public interface CatalogsMaintenanceConfig
No SQL persistence implementation of Polaris stores a history of changes per kind of object
(principals, principal roles, grants, immediate tasks, catalog roles and catalog state).
The rules are defined using a CEL script. The default rules for all kinds of objects are to retain the history for 3 days, for the catalog state for 30 days.
The scripts have access to the following declared values:
ref(string) name of the referencecommits(64-bit int) number of the currently processed commit, starting at1ageDays(64-bit int) age of currently processed commit in daysageHours(64-bit int) age of currently processed commit in hoursageMinutes(64-bit int) age of currently processed commit in minutes
Scripts must return a boolean yielding whether the commit shall be retained.
Note that maintenance-service implementations can keep the first not-to-be-retained commit.
Example scripts
ageDays < 30 || commits <= 10retains the reference history with at least 10 commits and commits that are younger than 30 daystrueretains the whole reference historyfalseretains the most recent commit
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
DEFAULT_PRINCIPALS_RETAIN
- See Also:
-
DEFAULT_PRINCIPAL_ROLES_RETAIN
- See Also:
-
DEFAULT_GRANTS_RETAIN
- See Also:
-
DEFAULT_IMMEDIATE_TASKS_RETAIN
- See Also:
-
DEFAULT_CATALOGS_HISTORY_RETAIN
- See Also:
-
DEFAULT_CATALOG_ROLES_RETAIN
- See Also:
-
DEFAULT_CATALOG_POLICIES_RETAIN
- See Also:
-
DEFAULT_CATALOG_STATE_RETAIN
- See Also:
-
-
Method Details
-
principalsRetain
-
principalRolesRetain
-
grantsRetain
-
immediateTasksRetain
-
catalogsHistoryRetain
-
catalogRolesRetain
-
catalogPoliciesRetain
-
catalogStateRetain
-