splitMiddle( false, false );
}
private void splitMiddle( boolean before, boolean testTempReplaced )
{
Tap sourceLower = new Hfs( new TextLine( new Fields( "offset", "line" ) ), "lower" );
Tap sourceUpper = new Hfs( new TextLine( new Fields( "offset", "line" ) ), "upper" );
Map sources = new HashMap();
sources.put( "lower", sourceLower );
sources.put( "upper", sourceUpper );
Scheme leftScheme = testTempReplaced ? new SequenceFile( new Fields( "num", "lower", "num2", "upper" ) ) : new TextLine( new Fields( "offset", "line" ), new Fields( "lower" ) );
Tap sinkLeft = new Hfs( leftScheme, "/splitmiddle/left", SinkMode.REPLACE );
Scheme rightScheme = testTempReplaced ? new SequenceFile( new Fields( "lower" ) ) : new TextLine( new Fields( "offset", "line" ), new Fields( "lower" ) );
Tap sinkRight = new Hfs( rightScheme, "/splitmiddle/right", SinkMode.REPLACE );
Map sinks = new HashMap();
sinks.put( "left", sinkLeft );