Package org.drools.marshalling.impl.ProtobufMessages

Examples of org.drools.marshalling.impl.ProtobufMessages.FactHandle


            for (LeftTuple leftTuple = (LeftTuple) tupleIter.next(); leftTuple != null; leftTuple = (LeftTuple) tupleIter.next()) {
                Map<Object, RightTuple> matches = (Map<Object, RightTuple>) leftTuple.getObject();
                ProtobufMessages.NodeMemory.FromNodeMemory.FromContext.Builder _context = ProtobufMessages.NodeMemory.FromNodeMemory.FromContext.newBuilder()
                        .setTuple(PersisterHelper.createTuple(leftTuple));
                for (RightTuple rightTuple : matches.values()) {
                    FactHandle _handle = ProtobufMessages.FactHandle.newBuilder()
                            .setId(rightTuple.getFactHandle().getId())
                            .setRecency(rightTuple.getFactHandle().getRecency())
                            .build();
                    _context.addHandle(_handle);
                }
View Full Code Here


        LeftTupleIterator it = LeftTupleIterator.iterator(wm, ((QueryElementNodeMemory) memory).node);

        ProtobufMessages.NodeMemory.QueryElementNodeMemory.Builder _query = ProtobufMessages.NodeMemory.QueryElementNodeMemory.newBuilder();
        for (LeftTuple leftTuple = (LeftTuple) it.next(); leftTuple != null; leftTuple = (LeftTuple) it.next()) {
            InternalFactHandle handle = (InternalFactHandle) leftTuple.getObject();
            FactHandle _handle = ProtobufMessages.FactHandle.newBuilder()
                    .setId(handle.getId())
                    .setRecency(handle.getRecency())
                    .build();

            ProtobufMessages.NodeMemory.QueryElementNodeMemory.QueryContext.Builder _context = ProtobufMessages.NodeMemory.QueryElementNodeMemory.QueryContext.newBuilder()
View Full Code Here

            final org.drools.core.util.Iterator tupleIter = accmem.betaMemory.getLeftTupleMemory().iterator();
            for (LeftTuple leftTuple = (LeftTuple) tupleIter.next(); leftTuple != null; leftTuple = (LeftTuple) tupleIter.next()) {
                AccumulateContext accctx = (AccumulateContext) leftTuple.getObject();
                if (accctx.result != null) {
                    FactHandle _handle = ProtobufMessages.FactHandle.newBuilder()
                            .setId(accctx.result.getFactHandle().getId())
                            .setRecency(accctx.result.getFactHandle().getRecency())
                            .build();
                    _accumulate.addContext(
                            ProtobufMessages.NodeMemory.AccumulateNodeMemory.AccumulateContext.newBuilder()
View Full Code Here

            final org.drools.core.util.Iterator it = mem.memory.iterator();
            // iterates over all propagated handles and assert them to the new sink
            for (ObjectEntry entry = (ObjectEntry) it.next(); entry != null; entry = (ObjectEntry) it.next()) {
                LeftTuple leftTuple = (LeftTuple) entry.getKey();
                InternalFactHandle handle = (InternalFactHandle) entry.getValue();
                FactHandle _handle = ProtobufMessages.FactHandle.newBuilder()
                        .setId(handle.getId())
                        .setRecency(handle.getRecency())
                        .build();
                _ria.addContext(ProtobufMessages.NodeMemory.RIANodeMemory.RIAContext.newBuilder()
                        .setTuple(PersisterHelper.createTuple(leftTuple))
View Full Code Here

            for (LeftTuple leftTuple = (LeftTuple) tupleIter.next(); leftTuple != null; leftTuple = (LeftTuple) tupleIter.next()) {
                Map<Object, RightTuple> matches = (Map<Object, RightTuple>) leftTuple.getObject();
                ProtobufMessages.NodeMemory.FromNodeMemory.FromContext.Builder _context = ProtobufMessages.NodeMemory.FromNodeMemory.FromContext.newBuilder()
                        .setTuple(PersisterHelper.createTuple(leftTuple));
                for (RightTuple rightTuple : matches.values()) {
                    FactHandle _handle = ProtobufMessages.FactHandle.newBuilder()
                            .setId(rightTuple.getFactHandle().getId())
                            .setRecency(rightTuple.getFactHandle().getRecency())
                            .build();
                    _context.addHandle(_handle);
                }
View Full Code Here

        LeftTupleIterator it = LeftTupleIterator.iterator(wm, ((QueryElementNodeMemory) memory).node);

        ProtobufMessages.NodeMemory.QueryElementNodeMemory.Builder _query = ProtobufMessages.NodeMemory.QueryElementNodeMemory.newBuilder();
        for (LeftTuple leftTuple = (LeftTuple) it.next(); leftTuple != null; leftTuple = (LeftTuple) it.next()) {
            InternalFactHandle handle = (InternalFactHandle) leftTuple.getObject();
            FactHandle _handle = ProtobufMessages.FactHandle.newBuilder()
                    .setId(handle.getId())
                    .setRecency(handle.getRecency())
                    .build();

            ProtobufMessages.NodeMemory.QueryElementNodeMemory.QueryContext.Builder _context = ProtobufMessages.NodeMemory.QueryElementNodeMemory.QueryContext.newBuilder()
View Full Code Here

      for (LeftTuple leftTuple = (LeftTuple) tupleIter.next(); leftTuple != null; leftTuple = (LeftTuple) tupleIter
          .next()) {
        AccumulateContext accctx = (AccumulateContext) leftTuple
            .getObject();
        if (accctx.result != null) {
          FactHandle _handle = ProtobufMessages.FactHandle
              .newBuilder()
              .setId(accctx.result.getFactHandle().getId())
              .setRecency(
                  accctx.result.getFactHandle().getRecency())
              .build();
View Full Code Here

      for (ObjectEntry entry = (ObjectEntry) it.next(); entry != null; entry = (ObjectEntry) it
          .next()) {
        LeftTuple leftTuple = (LeftTuple) entry.getKey();
        InternalFactHandle handle = (InternalFactHandle) entry
            .getValue();
        FactHandle _handle = ProtobufMessages.FactHandle.newBuilder()
            .setId(handle.getId()).setRecency(handle.getRecency())
            .build();
        _ria.addContext(ProtobufMessages.NodeMemory.RIANodeMemory.RIAContext
            .newBuilder()
            .setTuple(PersisterHelper.createTuple(leftTuple))
View Full Code Here

            .getObject();
        ProtobufMessages.NodeMemory.FromNodeMemory.FromContext.Builder _context = ProtobufMessages.NodeMemory.FromNodeMemory.FromContext
            .newBuilder().setTuple(
                PersisterHelper.createTuple(leftTuple));
        for (RightTuple rightTuple : matches.values()) {
          FactHandle _handle = ProtobufMessages.FactHandle
              .newBuilder()
              .setId(rightTuple.getFactHandle().getId())
              .setRecency(rightTuple.getFactHandle().getRecency())
              .build();
          _context.addHandle(_handle);
View Full Code Here

        .newBuilder();
    for (LeftTuple leftTuple = (LeftTuple) it.next(); leftTuple != null; leftTuple = (LeftTuple) it
        .next()) {
      InternalFactHandle handle = (InternalFactHandle) leftTuple
          .getObject();
      FactHandle _handle = ProtobufMessages.FactHandle.newBuilder()
          .setId(handle.getId()).setRecency(handle.getRecency())
          .build();

      ProtobufMessages.NodeMemory.QueryElementNodeMemory.QueryContext.Builder _context = ProtobufMessages.NodeMemory.QueryElementNodeMemory.QueryContext
          .newBuilder()
View Full Code Here

TOP

Related Classes of org.drools.marshalling.impl.ProtobufMessages.FactHandle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.