com.yahoo.vespa.indexinglanguage.expressions.ThisExpression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of indexinglanguage Show documentation
Show all versions of indexinglanguage Show documentation
Interpreter for the Indexing Language
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();
}
}