All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.vespa.model.search.SearchNodeWrapper Maven / Gradle / Ivy

There is a newer version: 8.409.18
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.search;

public class SearchNodeWrapper implements SearchInterface {

    private final NodeSpec nodeSpec;
    private final SearchNode node;

    public SearchNodeWrapper(NodeSpec nodeSpec, SearchNode node) {
        this.nodeSpec = nodeSpec;
        this.node = node;
    }

    @Override
    public NodeSpec getNodeSpec() {
        return nodeSpec;
    }

    @Override
    public String getHostName() {
        return node.getHostName();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy