aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/federation/sourceref/Target.java
blob: 1f302f96e831c05a47e5c641449673502fa788a2 (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
28
29
30
31
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.federation.sourceref;

import com.yahoo.component.AbstractComponent;
import com.yahoo.component.ComponentId;
import com.yahoo.processing.request.Properties;

/**
 * @author Tony Vaagenes
 */
public abstract class Target extends AbstractComponent {

    final ComponentId localId;
    final boolean isDerived;

    Target(ComponentId localId, boolean derived) {
        super(localId);
        this.localId = localId;
        isDerived = derived;
    }

    Target(ComponentId localId) {
        this(localId, false);
    }

    public abstract SearchChainInvocationSpec responsibleSearchChain(Properties queryProperties) throws UnresolvedSearchChainException;
    public abstract String searchRefDescription();

    abstract void freeze();

}