Public Member Functions
|ProjectionDFA (ProjectionTree *_pt, PassiveProjectionTree *_ppt)|
|void||print (OutputStream &dos)|
|Debug prints the projection DFA to. |
|ProjectionDFAState *||getInitialState ()|
|Returns the initial (starting) state of the projection DFA. |
|The initial (starting) state of the projection DFA. |
The information from the statical analysis phase are compiled into this (lazily constructed) DFA. The DFA then can be used to determine whether tokens must be loaded into the buffer or can be projected away when successively processing the input stream/file.
Constructor - creating object using the ProjectionTree object that has been computed in the statical analysis phase. Note that the ProjectionDFA is computed lazily while projecting the input stream, in order to avoid unnecessary computations (the projection DFA may be unlimited in size and therefore cannot even be computed in advance)
|[in]||_pt||The ProjectionTree object that contains information on required paths as well as role information.|
|[in]||_ppt||The PassiveProjectionTree object that contains required paths.|
|ProjectionDFAState * ProjectionDFA::getInitialState||(||)||
Returns the initial (starting) state of the projection DFA.
Returns the initial (starting) state of the projection DFA, i.e. the state corresponfing to thevirtual XML document root.
|ProjectioDFAState*||The starting state of the projection DFA.|
Referenced by Buffer::Buffer().
|void ProjectionDFA::print||(||OutputStream &||dos||)|
Debug prints the projection DFA to.
Note that only those parts of the projection DFA will be output that have been computed so far. This means that the shape of the ProjectionDFA does not only depend on the input query, but also on the current state in reading the input document and the input document itself.
|[in]||dos||Reference to the (debug) OutputStream.|