aboutsummaryrefslogtreecommitdiffstats
path: root/indexinglanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/FieldValueAdapter.java
blob: 91622c4b85a42e675719941f45ba16dab62c2ace (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.indexinglanguage.expressions;

import com.yahoo.document.FieldPath;
import com.yahoo.document.datatypes.FieldValue;

/**
 * @author Simon Thoresen Hult
 */
public interface FieldValueAdapter extends FieldTypeAdapter {

    FieldValue getInputValue(String fieldName);
    FieldValue getInputValue(FieldPath fieldPath);

    FieldValueAdapter setOutputValue(Expression exp, String fieldName, FieldValue fieldValue);

    /** Returns true if this has values for all possibly existing inputs, or represents a partial set of values. */
    boolean isComplete();

}