blob: 7485ce69f98f977296b838ab3960529b568425ac (
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
|
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchlib.rankingexpression.transform;
import com.yahoo.searchlib.rankingexpression.evaluation.Value;
import java.util.Map;
/**
* Provides a context in which transforms on ranking expressions take place.
*
* @author bratseth
*/
public class TransformContext {
private final Map<String, Value> constants;
public TransformContext(Map<String, Value> constants) {
this.constants = constants;
}
public Map<String, Value> constants() { return constants; }
}
|