com.hp.hpl.jena.graph.query
Class InitialStage

java.lang.Object
  extended by com.hp.hpl.jena.graph.query.Stage
      extended by com.hp.hpl.jena.graph.query.InitialStage

public class InitialStage
extends Stage

The initial stage of a query, responsible for dropping the no-variables-bound seed binding domain into the remaining stages of the query pipeline.

Author:
kers

Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.query.Stage
stillOpen
 
Constructor Summary
InitialStage(int count)
          The value passed in is the computed width of the result array(s); this is used to allocate the seeding node array.
 
Method Summary
 void close()
           
 Pipe deliver(Pipe result)
          To deliver value into the Pipe result, we drop in a binding array of the correct width in which all the elements are null, then we close the pipe.
 
Methods inherited from class com.hp.hpl.jena.graph.query.Stage
connectFrom, initial, isClosed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitialStage

public InitialStage(int count)
The value passed in is the computed width of the result array(s); this is used to allocate the seeding node array.

Parameters:
count - the width of the result binding array
Method Detail

close

public void close()
Overrides:
close in class Stage

deliver

public Pipe deliver(Pipe result)
To deliver value into the Pipe result, we drop in a binding array of the correct width in which all the elements are null, then we close the pipe. Everything else is spawned by the following stages.

Specified by:
deliver in class Stage


Licenced under the Apache License, Version 2.0