private Joiner getJoiner() { switch( getJoinType() ) { case INNER: return new InnerJoin(); case LEFT: return new LeftJoin(); case RIGHT: return new RightJoin(); case FULL: return new OuterJoin(); default: throw new IllegalStateException( "unknown join type" ); } } }
results.add( new Tuple( null, "h1", null, "H1" ) ); handleJoins( "joinouterinner", new RightJoin(), results );
results.add( new Tuple( null, "h1", null, "H1" ) ); handleJoins( "joinouterinner", new RightJoin(), results );
Pipe outer = new CoGroup( "outer", fielded, new Fields( 0 ), uniques, new Fields( "word" ), new OuterJoin() ); Pipe left = new CoGroup( "left", fielded, new Fields( 0 ), uniques, new Fields( "word" ), new LeftJoin() ); Pipe right = new CoGroup( "right", fielded, new Fields( 0 ), uniques, new Fields( "word" ), new RightJoin() );
Pipe outer = new CoGroup( "outer", fielded, new Fields( 0 ), uniques, new Fields( "word" ), new OuterJoin() ); Pipe left = new CoGroup( "left", fielded, new Fields( 0 ), uniques, new Fields( "word" ), new LeftJoin() ); Pipe right = new CoGroup( "right", fielded, new Fields( 0 ), uniques, new Fields( "word" ), new RightJoin() );