package org.reldb.rel.v0.vm.instructions.relvar; import org.reldb.rel.v0.storage.relvars.Relvar; import org.reldb.rel.v0.values.ValueRelation; import org.reldb.rel.v0.vm.Context; import org.reldb.rel.v0.vm.Instruction; public class OpRelvarInsertNoDuplicates extends Instruction { @Override public void execute(Context context) { // Insert into relvar // // POP - RelvarUpdatable // POP - ValueRelation long insertCount = ((Relvar)context.pop()).insertNoDuplicates(context.getGenerator(), (ValueRelation)context.pop()); context.getVirtualMachine().noticeInsert(insertCount); } }