aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/main/java/com/yahoo/document/select/Context.java
blob: f36daf47c2381d608c4f0f64cdc06b166b9e484c (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.document.select;

import com.yahoo.document.DocumentOperation;

import java.util.HashMap;
import java.util.Map;

public class Context {

    private DocumentOperation documentOperation;
    private Map<String, Object> variables = new HashMap<>();

    public Context(DocumentOperation documentOperation) {
        this.documentOperation = documentOperation;
    }

    public DocumentOperation getDocumentOperation() {
        return documentOperation;
    }

    public void setDocumentOperation(DocumentOperation documentOperation) {
        this.documentOperation = documentOperation;
    }

    public Map<String, Object> getVariables() {
        return variables;
    }

    public void setVariables(Map<String, Object> variables) {
        this.variables = variables;
    }
}