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

com.yahoo.vespa.indexinglanguage.expressions.ThisExpression Maven / Gradle / Ivy

The 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.indexinglanguage.expressions;

import com.yahoo.document.DataType;

/**
 * @author Simon Thoresen Hult
 */
public final class ThisExpression extends Expression {

    public ThisExpression() {
        super(UnresolvedDataType.INSTANCE);
    }

    @Override
    protected void doVerify(VerificationContext context) {
        // empty
    }

    @Override
    protected void doExecute(ExecutionContext context) {
        // empty
    }

    @Override
    public DataType createdOutputType() { return UnresolvedDataType.INSTANCE; }

    @Override
    public String toString() { return "this"; }

    @Override
    public boolean equals(Object obj) {
        return obj instanceof ThisExpression;
    }

    @Override
    public int hashCode() {
        return getClass().hashCode();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy