*/
public static class Translate extends ROperator {
Translate(){super("translate"); }
public void execute(DTState state) throws RulesException {
boolean duplicates = state.datapop().booleanValue();
RArray keys = state.datapop().rArrayValue();
RTable table = state.datapop().rTableValue();
RArray valueArray = RArray.newArray(state.getSession(),duplicates,false);
for(IRObject key : keys){
if(table.containsKey(key)){
IRObject o = table.getValue(key);
valueArray.add(o);
if (state.testState(DTState.TRACE)) {
state.traceInfo("addto", "arrayId", valueArray.getID() + "",
o.postFix());
}
}
}