PolicySpec

class PolicySpec

Contains all policy parameters, if any.

__init__(hash_salt: int) None[source]

Construct the policy spec.

Parameters

hash_saltint

Salt value fed into hash used to deterministically choose whether to keep or drop ranks.

Methods

Attributes

static GetAlgoIdentifier() str[source]

Get programatic name for underlying retention algorithm.

static GetAlgoTitle() str[source]

Get human-readable name for underlying retention algorithm.

GetEvalCtor() str[source]
GetHashSalt() int[source]
__init__(hash_salt: int) None[source]

Construct the policy spec.

Parameters

hash_saltint

Salt value fed into hash used to deterministically choose whether to keep or drop ranks.

__repr__() str[source]

Return repr(self).

__str__() str[source]

Return str(self).

hash_salt: int