diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /predicate-search/src/main/java/com/yahoo/search/predicate/annotator/PredicateTreeAnnotations.java |
Publish
Diffstat (limited to 'predicate-search/src/main/java/com/yahoo/search/predicate/annotator/PredicateTreeAnnotations.java')
-rw-r--r-- | predicate-search/src/main/java/com/yahoo/search/predicate/annotator/PredicateTreeAnnotations.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/predicate-search/src/main/java/com/yahoo/search/predicate/annotator/PredicateTreeAnnotations.java b/predicate-search/src/main/java/com/yahoo/search/predicate/annotator/PredicateTreeAnnotations.java new file mode 100644 index 00000000000..0edf505e7f1 --- /dev/null +++ b/predicate-search/src/main/java/com/yahoo/search/predicate/annotator/PredicateTreeAnnotations.java @@ -0,0 +1,35 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.search.predicate.annotator; + +import com.yahoo.search.predicate.index.IntervalWithBounds; +import com.yahoo.search.predicate.index.conjunction.IndexableFeatureConjunction; + +import java.util.List; +import java.util.Map; + +/** + * Holds annotations for all the features of a predicate. + * This is sufficient information to insert the predicate into a PredicateIndex. + * + * @author <a href="mailto:magnarn@yahoo-inc.com">Magnar Nedland</a> + */ +public class PredicateTreeAnnotations { + public final int minFeature; + public final int intervalEnd; + public final Map<Long, List<Integer>> intervalMap; + public final Map<Long, List<IntervalWithBounds>> boundsMap; + public final Map<IndexableFeatureConjunction, List<Integer>> featureConjunctions; + + public PredicateTreeAnnotations( + int minFeature, + int intervalEnd, + Map<Long, List<Integer>> intervalMap, + Map<Long, List<IntervalWithBounds>> boundsMap, + Map<IndexableFeatureConjunction, List<Integer>> featureConjunctions) { + this.minFeature = minFeature; + this.intervalEnd = intervalEnd; + this.intervalMap = intervalMap; + this.boundsMap = boundsMap; + this.featureConjunctions = featureConjunctions; + } +} |