private Builder() { instance = new ExperimentBatch(); }
SegmentationProfile segmentationProfile = SegmentationProfile.from(experimentBatch.getProfile()).build(); if (experimentBatch.getLabels().contains(experiment.getLabel())) { LOGGER.debug("Experiment ({}) is part of given ExperimentBatch....", experiment.getLabel()); experimentBatch.getLabels().remove(experiment.getLabel()); } else { LOGGER.debug("Experiment ({}) is NOT part of given ExperimentBatch....", experiment.getLabel()); experimentBatch.getLabels().forEach(iExpLabel -> { if (!pExpLables.contains(iExpLabel)) { allAssignments.add(nullAssignment(userID, applicationName, null, Assignment.Status.EXPERIMENT_NOT_FOUND));
if (LOGGER.isDebugEnabled()) LOGGER.debug("populateExperimentMetadata - STARTED: userID={}, appName={}, context={}, experimentBatch={}, experimentIds={}", userID, appName, context, experimentBatch, allowAssignments); if (isNull(experimentBatch.getLabels()) && !allowAssignments.isPresent()) { LOGGER.error("Invalid input to CassandraAssignmentsRepository.populateExperimentMetadata(): Given input: userID={}, appName={}, context={}, experimentBatch={}, allowAssignments={}", userID, appName, context, experimentBatch, allowAssignments); return;
/** * Create experiment batch for given segmentation profile and experiment labels * * @param segmentationProfile * @param labels * @return ExperimentBatch */ private ExperimentBatch createExperimentBatch(SegmentationProfile segmentationProfile, HashSet<Experiment.Label> labels) { ExperimentBatch.Builder experimentBatchBuilder = ExperimentBatch.newInstance(); if (nonNull(segmentationProfile)) { experimentBatchBuilder.withProfile(segmentationProfile.getProfile()); } if (nonNull(labels)) { experimentBatchBuilder.withLabels(labels); } return experimentBatchBuilder.build(); }
Map<Experiment.ID, List<Experiment.ID>> exclusionMap) { LOGGER.debug("populateAssignmentsMetadata - STARTED: userID={}, appName={}, context={}, experimentBatch={}, experimentIds={}", userID, appName, context, experimentBatch, allowAssignments); if (isNull(experimentBatch.getLabels()) && !allowAssignments.isPresent()) { LOGGER.error("Invalid input to AssignmentsImpl.populateAssignmentsMetadata(): Given input: userID={}, appName={}, context={}, experimentBatch={}, allowAssignments={}", userID, appName, context, experimentBatch, allowAssignments); return;
private Builder() { instance = new ExperimentBatch(); }