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

ai.vespa.client.dsl.DotProduct Maven / Gradle / Ivy

There is a newer version: 8.443.12
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.client.dsl;

import java.util.Map;

public class DotProduct extends QueryChain {

    private final String fieldName;
    private final Map weightedSet;

    DotProduct(String fieldName, Map weightedSet) {
        this.fieldName = fieldName;
        this.weightedSet = weightedSet;
        this.nonEmpty = true;
    }

    @Override
    public Select getSelect() {
        return sources.select;
    }

    @Override
    public String toString() {
        return "dotProduct(" + fieldName + ", " + Q.toJson(weightedSet) + ")";
    }

    @Override
    boolean hasPositiveSearchField(String fieldName) {
        // TODO: implementation
        throw new UnsupportedOperationException("method not implemented");
    }

    @Override
    boolean hasPositiveSearchField(String fieldName, Object value) {
        // TODO: implementation
        throw new UnsupportedOperationException("method not implemented");
    }

    @Override
    boolean hasNegativeSearchField(String fieldName) {
        // TODO: implementation
        throw new UnsupportedOperationException("method not implemented");
    }

    @Override
    boolean hasNegativeSearchField(String fieldName, Object value) {
        // TODO: implementation
        throw new UnsupportedOperationException("method not implemented");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy