summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/grouping/result/GroupList.java
blob: ca51be8702f01f599fef7db30bd29d6dfe1f23d8 (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 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.grouping.result;

import com.yahoo.search.Result;
import com.yahoo.search.grouping.GroupingRequest;

/**
 * This class represents a labeled group list in the grouping result model. It is contained in {@link Group}, and
 * contains one or more {@link Group groups} itself, allowing for a hierarchy of grouping results. Use the {@link
 * GroupingRequest#getResultGroup(Result)} to retrieve grouping results.
 *
 * @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
 */
public class GroupList extends AbstractList {

    /**
     * Constructs a new instance of this class.
     *
     * @param label The label to assign to this.
     */
    public GroupList(String label) {
        super("grouplist", label);
    }
}