blob: a4c430125a4dd70e400f5530b97567906eb94f9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
package com.yahoo.vespa.indexinglanguage.expressions;
import com.yahoo.document.DataType;
import com.yahoo.document.DocumentType;
import com.yahoo.document.FieldPath;
import com.yahoo.vespa.objects.ObjectOperation;
import com.yahoo.vespa.objects.ObjectPredicate;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Returns the current execution value, that is the value passed to this expression.
* Referring to this explicitly is useful e.g to concatenate it to some other string:
* ... | input foo . " " . _ | ...
*
* @author bratseth
*/
public final class ExecutionValueExpression extends Expression {
public ExecutionValueExpression() {
super(null);
}
@Override
protected void doExecute(ExecutionContext context) {
// Noop: Set the output execution value to the current execution value
}
@Override
protected void doVerify(VerificationContext context) {}
@Override
public DataType createdOutputType() {
return UnresolvedDataType.INSTANCE;
}
@Override
public String toString() {
return "_";
}
@Override
public boolean equals(Object obj) {
return obj instanceof ExecutionValueExpression;
}
@Override
public int hashCode() {
return 9875876;
}
}
|