aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/search/SearchColumn.java
blob: b45db0d1dc3f1ef5e6c236985beaed4d07978bb4 (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
25
26
27
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.search;

import com.yahoo.config.model.producer.AbstractConfigProducer;

import java.util.LinkedList;
import java.util.List;

/**
 * @author Simon Thoresen Hult
 */
public class SearchColumn extends AbstractConfigProducer {

    // All search nodes contained in this column, these also exist as child config producers.
    private final List<SearchNode> nodes = new LinkedList<>();

    public SearchColumn(SearchCluster parent, String name, int index) {
        super(parent, name);
    }

    /** @return The number of rows in this column. */
    public int getNumRows() { return nodes.size(); }

    /** @return All search nodes contained in this column. */
    public List<SearchNode> getSearchNodes() { return nodes; }

}