public class SegmentServiceImpl extends AbstractServiceImpl implements org.apache.unomi.api.services.SegmentService, org.osgi.framework.SynchronousBundleListener
definitionsService, persistenceService| Constructor and Description |
|---|
SegmentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
void |
createScoringDefinition(String scope,
String scoringId,
String name,
String description) |
String |
getGeneratedPropertyKey(org.apache.unomi.api.conditions.Condition condition,
org.apache.unomi.api.conditions.Condition parentCondition) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Profile> |
getMatchingIndividuals(String segmentID,
int offset,
int size,
String sortBy) |
long |
getMatchingIndividualsCount(String segmentID) |
org.apache.unomi.api.segments.Scoring |
getScoringDefinition(String scoringId) |
org.apache.unomi.api.segments.DependentMetadata |
getScoringDependentMetadata(String scoringId) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> |
getScoringMetadatas(int offset,
int size,
String sortBy) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> |
getScoringMetadatas(org.apache.unomi.api.query.Query query) |
org.apache.unomi.api.segments.Segment |
getSegmentDefinition(String segmentId) |
org.apache.unomi.api.segments.DependentMetadata |
getSegmentDependentMetadata(String segmentId) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> |
getSegmentMetadatas(int offset,
int size,
String sortBy) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> |
getSegmentMetadatas(org.apache.unomi.api.query.Query query) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> |
getSegmentMetadatas(String scope,
int offset,
int size,
String sortBy) |
List<org.apache.unomi.api.Metadata> |
getSegmentMetadatasForProfile(org.apache.unomi.api.Profile profile) |
org.apache.unomi.api.segments.SegmentsAndScores |
getSegmentsAndScoresForProfile(org.apache.unomi.api.Profile profile) |
Boolean |
isProfileInSegment(org.apache.unomi.api.Profile profile,
String segmentId) |
void |
postConstruct() |
void |
preDestroy() |
void |
recalculatePastEventConditions() |
org.apache.unomi.api.segments.DependentMetadata |
removeScoringDefinition(String scoringId,
boolean validate) |
org.apache.unomi.api.segments.DependentMetadata |
removeSegmentDefinition(String segmentId,
boolean validate) |
void |
setAggregateQueryBucketSize(int aggregateQueryBucketSize) |
void |
setBatchSegmentProfileUpdate(boolean batchSegmentProfileUpdate) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setDailyDateExprEvaluationHourUtc(int dailyDateExprEvaluationHourUtc) |
void |
setEventService(org.apache.unomi.api.services.EventService eventService) |
void |
setMaximumIdsQueryCount(int maximumIdsQueryCount) |
void |
setMaxRetriesForUpdateProfileSegment(int maxRetriesForUpdateProfileSegment) |
void |
setPastEventsDisablePartitions(boolean pastEventsDisablePartitions) |
void |
setRulesService(org.apache.unomi.api.services.RulesService rulesService) |
void |
setSchedulerService(org.apache.unomi.api.services.SchedulerService schedulerService) |
void |
setScoringDefinition(org.apache.unomi.api.segments.Scoring scoring) |
void |
setSecondsDelayForRetryUpdateProfileSegment(long secondsDelayForRetryUpdateProfileSegment) |
void |
setSegmentDefinition(org.apache.unomi.api.segments.Segment segment) |
void |
setSegmentRefreshInterval(long segmentRefreshInterval) |
void |
setSegmentUpdateBatchSize(int segmentUpdateBatchSize) |
void |
setSendProfileUpdateEventForSegmentUpdate(boolean sendProfileUpdateEventForSegmentUpdate) |
void |
setTaskExecutionPeriod(long taskExecutionPeriod) |
void |
updateAutoGeneratedRules(org.apache.unomi.api.Metadata metadata,
org.apache.unomi.api.conditions.Condition condition) |
getMetadatas, getMetadatas, setDefinitionsService, setPersistenceServicepublic void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void setEventService(org.apache.unomi.api.services.EventService eventService)
public void setRulesService(org.apache.unomi.api.services.RulesService rulesService)
public void setSchedulerService(org.apache.unomi.api.services.SchedulerService schedulerService)
public void setSegmentUpdateBatchSize(int segmentUpdateBatchSize)
public void setAggregateQueryBucketSize(int aggregateQueryBucketSize)
public void setMaximumIdsQueryCount(int maximumIdsQueryCount)
public void setPastEventsDisablePartitions(boolean pastEventsDisablePartitions)
public void setSegmentRefreshInterval(long segmentRefreshInterval)
public void setMaxRetriesForUpdateProfileSegment(int maxRetriesForUpdateProfileSegment)
public void setSecondsDelayForRetryUpdateProfileSegment(long secondsDelayForRetryUpdateProfileSegment)
public void setBatchSegmentProfileUpdate(boolean batchSegmentProfileUpdate)
public void setSendProfileUpdateEventForSegmentUpdate(boolean sendProfileUpdateEventForSegmentUpdate)
public void setDailyDateExprEvaluationHourUtc(int dailyDateExprEvaluationHourUtc)
public void postConstruct()
throws IOException
IOExceptionpublic void preDestroy()
public org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> getSegmentMetadatas(int offset,
int size,
String sortBy)
getSegmentMetadatas in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> getSegmentMetadatas(String scope, int offset, int size, String sortBy)
getSegmentMetadatas in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> getSegmentMetadatas(org.apache.unomi.api.query.Query query)
getSegmentMetadatas in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.segments.Segment getSegmentDefinition(String segmentId)
getSegmentDefinition in interface org.apache.unomi.api.services.SegmentServicepublic void setSegmentDefinition(org.apache.unomi.api.segments.Segment segment)
setSegmentDefinition in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.segments.DependentMetadata getSegmentDependentMetadata(String segmentId)
getSegmentDependentMetadata in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.segments.DependentMetadata removeSegmentDefinition(String segmentId, boolean validate)
removeSegmentDefinition in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Profile> getMatchingIndividuals(String segmentID, int offset, int size, String sortBy)
getMatchingIndividuals in interface org.apache.unomi.api.services.SegmentServicepublic long getMatchingIndividualsCount(String segmentID)
getMatchingIndividualsCount in interface org.apache.unomi.api.services.SegmentServicepublic Boolean isProfileInSegment(org.apache.unomi.api.Profile profile, String segmentId)
isProfileInSegment in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.segments.SegmentsAndScores getSegmentsAndScoresForProfile(org.apache.unomi.api.Profile profile)
getSegmentsAndScoresForProfile in interface org.apache.unomi.api.services.SegmentServicepublic List<org.apache.unomi.api.Metadata> getSegmentMetadatasForProfile(org.apache.unomi.api.Profile profile)
getSegmentMetadatasForProfile in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> getScoringMetadatas(int offset,
int size,
String sortBy)
getScoringMetadatas in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Metadata> getScoringMetadatas(org.apache.unomi.api.query.Query query)
getScoringMetadatas in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.segments.Scoring getScoringDefinition(String scoringId)
getScoringDefinition in interface org.apache.unomi.api.services.SegmentServicepublic void setScoringDefinition(org.apache.unomi.api.segments.Scoring scoring)
setScoringDefinition in interface org.apache.unomi.api.services.SegmentServicepublic void createScoringDefinition(String scope, String scoringId, String name, String description)
createScoringDefinition in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.segments.DependentMetadata getScoringDependentMetadata(String scoringId)
getScoringDependentMetadata in interface org.apache.unomi.api.services.SegmentServicepublic org.apache.unomi.api.segments.DependentMetadata removeScoringDefinition(String scoringId, boolean validate)
removeScoringDefinition in interface org.apache.unomi.api.services.SegmentServicepublic void updateAutoGeneratedRules(org.apache.unomi.api.Metadata metadata,
org.apache.unomi.api.conditions.Condition condition)
public String getGeneratedPropertyKey(org.apache.unomi.api.conditions.Condition condition, org.apache.unomi.api.conditions.Condition parentCondition)
getGeneratedPropertyKey in interface org.apache.unomi.api.services.SegmentServicepublic void recalculatePastEventConditions()
recalculatePastEventConditions in interface org.apache.unomi.api.services.SegmentServicepublic void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic void setTaskExecutionPeriod(long taskExecutionPeriod)
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.