aboutsummaryrefslogtreecommitdiffstats
path: root/predicate-search/src/main/java/com/yahoo/search/predicate/annotator/PredicateTreeAnalyzerResult.java
blob: 0441febc6ac7685819dabc963b0b3bc9f6310498 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Yahoo. 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.document.predicate.Predicate;

import java.util.Map;

/**
 * Holds the results from {@link com.yahoo.search.predicate.annotator.PredicateTreeAnalyzer#analyzePredicateTree(com.yahoo.document.predicate.Predicate)}.
 *
 * @author bjorncs
 */
public class PredicateTreeAnalyzerResult {

    public final int minFeature;
    public final int treeSize;
    public final Map<Predicate, Integer> sizeMap;

    public PredicateTreeAnalyzerResult(int minFeature, int treeSize, Map<Predicate, Integer> sizeMap) {
        this.minFeature = minFeature;
        this.treeSize = treeSize;
        this.sizeMap = sizeMap;
    }
}