aboutsummaryrefslogtreecommitdiffstats
path: root/indexinglanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/PassthroughExpression.java
blob: f3c65d5742fe1a2db3802281fafd54409251113b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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;

/**
 * An output expression which has no search side effects.
 *
 * @author steinar
 */
public final class PassthroughExpression extends OutputExpression {

    private static final String PASSTHROUGH = "passthrough";

    public PassthroughExpression(String fieldName) {
        super(PASSTHROUGH, fieldName);
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj) && obj instanceof PassthroughExpression;
    }

}