1 6 7 package com.hp.hpl.jena.graph.query; 8 9 17 18 public abstract class Stage 19 { 20 21 protected Stage previous; 22 23 protected volatile boolean stillOpen = true; 24 25 26 public static Stage initial( int count ) 27 { return new InitialStage( count ); } 28 29 30 public Stage connectFrom( Stage s ) 31 { previous = s; return this; } 32 33 public boolean isClosed() 34 { return !stillOpen; } 35 36 protected final void markClosed() 37 { stillOpen = false; } 38 39 public void close() 40 { 41 previous.close(); 42 markClosed(); 43 } 44 45 50 public abstract Pipe deliver( Pipe sink ); 51 } 52 53 82 | Popular Tags |