@Immutable
public class Bucketer
extends java.lang.Object
The user identifier must be provided in the first data argument passed to
bucket(Experiment, String, ProjectConfig) and must be non-null and non-empty.
| Constructor and Description |
|---|
Bucketer() |
| Modifier and Type | Method and Description |
|---|---|
DecisionResponse<Variation> |
bucket(Experiment experiment,
java.lang.String bucketingId,
ProjectConfig projectConfig)
Assign a
Variation of an Experiment to a user based on hashed value from murmurhash3. |
@Nonnull public DecisionResponse<Variation> bucket(@Nonnull Experiment experiment, @Nonnull java.lang.String bucketingId, @Nonnull ProjectConfig projectConfig)
Variation of an Experiment to a user based on hashed value from murmurhash3.experiment - The Experiment in which the user is to be bucketed.bucketingId - string A customer-assigned value used to create the key for the murmur hash.projectConfig - The current projectConfigDecisionResponse including the Variation that user is bucketed into (or null) and the decision reasons