com.yahoo.vespa.model.container.search.searchchain.SourceGroup Maven / Gradle / Ivy
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.search.searchchain;
import com.yahoo.component.ComponentId;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;
/**
* A set of sources with the same name, each associated with a different provider, that fills the same role.
*
* @author Tony Vaagenes
*/
final class SourceGroup {
private final ComponentId id;
private Source leader;
private final Set