Search in sources :

Example 16 with RightTupleImpl

use of org.drools.core.reteoo.RightTupleImpl in project drools by kiegroup.

the class RightBuilder method insert.

public RightBuilder insert(Object... objects) {
    for (Object object : objects) {
        InternalFactHandle fh = (InternalFactHandle) wm.insert(object);
        RightTuple rightTuple = new RightTupleImpl(fh, sink);
        rightTuple.setPropagationContext(new PhreakPropagationContext());
        rightTuples.addInsert(rightTuple);
    }
    return this;
}
Also used : PhreakPropagationContext(org.drools.core.common.PhreakPropagationContext) RightTupleImpl(org.drools.core.reteoo.RightTupleImpl) InternalFactHandle(org.drools.core.common.InternalFactHandle) RightTuple(org.drools.core.reteoo.RightTuple)

Aggregations

RightTupleImpl (org.drools.core.reteoo.RightTupleImpl)16 InternalFactHandle (org.drools.core.common.InternalFactHandle)15 RightTuple (org.drools.core.reteoo.RightTuple)11 Test (org.junit.Test)11 DefaultFactHandle (org.drools.core.common.DefaultFactHandle)8 LeftTupleImpl (org.drools.core.reteoo.LeftTupleImpl)8 Cheese (org.drools.core.test.model.Cheese)8 FieldIndex (org.drools.core.util.AbstractHashTable.FieldIndex)8 Tuple (org.drools.core.spi.Tuple)7 TupleIndexHashTable (org.drools.core.util.index.TupleIndexHashTable)7 ClassObjectType (org.drools.core.base.ClassObjectType)6 InternalReadAccessor (org.drools.core.spi.InternalReadAccessor)6 TupleList (org.drools.core.util.index.TupleList)6 Declaration (org.drools.core.rule.Declaration)5 Pattern (org.drools.core.rule.Pattern)5 ArrayList (java.util.ArrayList)3 ClassFieldReader (org.drools.core.base.ClassFieldReader)3 LeftTuple (org.drools.core.reteoo.LeftTuple)3 SingleIndex (org.drools.core.util.AbstractHashTable.SingleIndex)3 InternalWorkingMemory (org.drools.core.common.InternalWorkingMemory)2