first
Some checks failed
Reduce Adoc / reduce (push) Failing after 57s
Java Unit Test with Maven / test (push) Failing after 1m42s

This commit is contained in:
2025-12-29 13:59:13 +08:00
commit 2dfed7464e
555 changed files with 35895 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package com.alibaba.qlexpress4.runtime.context;
import com.alibaba.qlexpress4.runtime.Value;
import com.alibaba.qlexpress4.runtime.data.MapItemValue;
import java.util.Map;
/**
* Author: DQinYuan
*/
public class MapExpressContext implements ExpressContext {
private final Map<String, Object> source;
public MapExpressContext(Map<String, Object> source) {
this.source = source;
}
@Override
public Value get(Map<String, Object> attachments, String variableName) {
return new MapItemValue(source, variableName);
}
}