config );
BetaMemory betaMemory = betaConstraints.createBetaMemory( config, NodeTypeEnums.JoinNode );
RuleBase rb = RuleBaseFactory.newRuleBase();
StatefulSession ss = rb.newStatefulSession();
InternalFactHandle fh1 = (InternalFactHandle) ss.insert( new Foo( "brie",
1 ) );
InternalFactHandle fh2 = (InternalFactHandle) ss.insert( new Foo( "brie",
1 ) );
InternalFactHandle fh3 = (InternalFactHandle) ss.insert( new Foo( "soda",
1 ) );
InternalFactHandle fh4 = (InternalFactHandle) ss.insert( new Foo( "soda",
1 ) );
InternalFactHandle fh5 = (InternalFactHandle) ss.insert( new Foo( "bread",
3 ) );
InternalFactHandle fh6 = (InternalFactHandle) ss.insert( new Foo( "bread",
3 ) );
InternalFactHandle fh7 = (InternalFactHandle) ss.insert( new Foo( "cream",
3 ) );
InternalFactHandle fh8 = (InternalFactHandle) ss.insert( new Foo( "gorda",
15 ) );
InternalFactHandle fh9 = (InternalFactHandle) ss.insert( new Foo( "beer",
16 ) );
InternalFactHandle fh10 = (InternalFactHandle) ss.insert( new Foo( "mars",
0 ) );
InternalFactHandle fh11 = (InternalFactHandle) ss.insert( new Foo( "snicker",
0 ) );
InternalFactHandle fh12 = (InternalFactHandle) ss.insert( new Foo( "snicker",
0 ) );
InternalFactHandle fh13 = (InternalFactHandle) ss.insert( new Foo( "snicker",
0 ) );
betaMemory.getLeftTupleMemory().add( new LeftTupleImpl( fh1,
null,
true ) );